joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423ded
Capabilities:
Create directory

Disassembly:
push 0x58
mov eax, 0x4401b8
call fcn.0042dbe5
mov esi, ecx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423e00
sub eax, edx
cmp eax, 0x104
jbe 0x423e18
xor al, al
call fcn.0042dc68
ret
push esi
lea ecx, [ebp - 0x48]
call fcn.00408751
xor esi, esi
mov dword [ebp - 4], esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00408384
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x423e46
lea eax, [ebp - 0x44]
push esi
push esi
push esi
push eax
lea ebx, [ebp - 0x2c]
call fcn.0042409f
add esp, 0x10
mov esi, ebx
call fcn.00422f95
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x423e68
lea eax, [ebp - 0x28]
call fcn.00423cf3
test al, al
jne 0x423e8b
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408339
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00408339
jmp 0x423e10
mov esi, dword [ebp - 0x18]
mov edi, 0x4062d4
push edi
mov edx, esi
lea ebx, [ebp - 0x48]
call fcn.0040efa5
mov ebx, eax
jmp 0x423f1a
mov eax, ebx
sub eax, esi
inc eax
push eax
push esi
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x64]
call fcn.0040b3fa
push 0xffffffffffffffff
mov eax, esi
push 0
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040adc0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x423ed3
lea eax, [ebp - 0x28]
call fcn.00423cf3
test al, al
jne 0x423ef5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x423ee8
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x423f21
lea esi, [ebx + 1]
cmp esi, dword [ebp - 0x34]
jae 0x423f4e
push edi
mov edx, esi
lea ebx, [ebp - 0x48]
call fcn.0040efa5
push 0
push 1
lea ecx, [ebp - 0x64]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00408339
cmp ebx, 0xffffffff
jne 0x423ea2
jmp 0x423f5a
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00408339
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408339
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00408339
mov al, bl
jmp 0x423e12
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00408339
mov bl, 1
jmp 0x423f2f
Function at 0x423f5e
Capabilities:
Copy file

Disassembly:
push 0x64
mov eax, 0x440a70
call fcn.0042dbe5
mov eax, dword [ebp + 8]
mov ebx, ecx
push eax
push ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
call fcn.0042af67
test eax, eax
pop ecx
pop ecx
jne 0x423f8a
mov al, 1
call fcn.0042dc68
ret
push 0xf
pop esi
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
call fcn.00408384
mov dword [ebp - 4], edi
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
call fcn.00408384
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], esi
call fcn.00408384
mov eax, ebx
mov byte [ebp - 4], 2
call fcn.00423cd0
test al, al
push edi
jne 0x423fea
xor ebx, ebx
inc ebx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00408339
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00408339
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408339
xor al, al
jmp 0x423f84
push edi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x6c]
lea ebx, [ebp - 0x2c]
call fcn.0042409f
mov edi, dword [ebp - 0x44]
add esp, 0x10
cmp dword [ebp - 0x30], 0x10
jae 0x424009
lea edi, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebp - 0x28]
jae 0x424015
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x64]
push 0
push eax
xor ebx, ebx
call fcn.00424198
test al, al
pop ecx
pop ecx
jne 0x424042
xor esi, esi
inc ebx
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00408339
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00408339
push esi
jmp 0x423fdd
cmp dword [ebp - 0x4c], 0x10
mov ecx, dword [ebp - 0x60]
jae 0x42404e
lea ecx, [ebp - 0x60]
call fcn.00423ded
xor ebx, ebx
inc ebx
test al, al
jne 0x42405e
xor esi, esi
jmp 0x42402b
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42409a
mov byte [ebp - 0x65], al
xor esi, esi
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00408339
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00408339
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408339
mov al, byte [ebp - 0x65]
jmp 0x423f84
mov byte [ebp - 0x65], bl
jmp 0x424072
Function at 0x4247b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x448138]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x218], 0
and dword [ebp - 0x21c], 0
push ebx
push edi
lea ebx, [ebp - 0x21c]
lea edi, [ebp - 0x218]
call fcn.00423a29
mov bl, al
xor eax, eax
xor edi, edi
cmp dword [ebp - 0x21c], edi
setne al
xor ecx, ecx
mov ch, byte [ebp - 0x218]
or eax, ecx
test bl, bl
jne 0x424897
cmp eax, 0x500
jae 0x4248a2
test bl, bl
lea eax, [ebp - 0x214]
push eax
sete bl
push 1
push dword [ebp + 8]
push ebx
call fcn.00424946
add esp, 0x10
test eax, eax
jl 0x424852
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x42483e
sub eax, edx
sar eax, 1
jne 0x424932
lea eax, [ebp - 0x214]
push eax
push edi
push dword [ebp + 8]
push ebx
call fcn.00424946
add esp, 0x10
test eax, eax
jl 0x424887
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x424873
sub eax, edx
sar eax, 1
jne 0x424932
xor al, al
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042acb7
leave
ret
cmp eax, 0x45a
jb 0x424817
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x218], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x424817
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
je 0x424915
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x424915
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x424915
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x42491e
sub eax, edx
sar eax, 1
je 0x424817
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00424680
pop ecx
pop ecx
jmp 0x424889
Function at 0x42557b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x448138]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x1c
mov eax, 0x4400e5
call fcn.0042db7c
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp]
push edi
push eax
mov ebx, ecx
call fcn.00432e00
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x425634
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00408384
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
lea edi, [ebp]
xor esi, esi
call fcn.00424198
test al, al
pop ecx
pop ecx
je 0x42561d
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x4255fd
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42561d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408339
mov eax, esi
jmp 0x4256b1
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408339
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp]
push edi
push eax
call fcn.00432e00
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec eax
cmp eax, 0x102
ja 0x4256aa
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00408384
push edi
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp]
xor esi, esi
mov dword [ebp - 4], 1
call fcn.00424198
test al, al
pop ecx
pop ecx
je 0x42569e
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x42568d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x42560a
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408339
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0042acb7
add ebp, 0x108
leave
ret

Function at 0x426482
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
mov eax, dword [edi]
push esi
mov esi, dword [0x44a45c]
mov dword [ebp - 4], eax
jne 0x4264a2
test eax, eax
jbe 0x4264a2
push 0x57
pop eax
jmp 0x42650e
movzx eax, word [ebp + 8]
push ebx
push eax
push dword [ebp + 0xc]
push esi
call dword [0x449740]
mov ebx, eax
test ebx, ebx
je 0x426508
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x426508
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp - 4]
jbe 0x4264da
mov dword [edi], esi
jmp 0x426501
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4264f8
push esi
push eax
push dword [ebp + 0x10]
call fcn.0042ff10
add esp, 0xc
xor eax, eax
jmp 0x42650d
xor eax, eax
inc eax
cmp dword [edi], eax
mov dword [edi], eax
jae 0x4264f4
mov eax, 0xea
jmp 0x42650d
mov eax, 0x716
pop ebx
pop esi
leave
ret
Function at 0x426511
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x18
mov eax, 0x4400ba
call fcn.0042db7c
mov ecx, dword [ebp + 0xc]
xor esi, esi
cmp ecx, esi
je 0x4265cb
cmp word [ecx], si
je 0x4265cb
movzx edx, word [ebp + 8]
mov eax, dword [0x44a45c]
push edx
push ecx
push eax
mov dword [ebp - 0x10], esi
mov ebx, eax
call dword [0x449740]
mov edi, eax
test edi, edi
je 0x4265cb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4265cb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jbe 0x426573
mov esi, edi
jmp 0x426590
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42658d
push edi
push eax
push ebx
call fcn.0042ff10
add esp, 0xc
jmp 0x426593
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
shr esi, 1
push eax
mov eax, esi
lea edi, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.0040ad7a
mov esi, edi
mov dword [ebp - 4], ebx
call fcn.0040ac2f
push eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x10]
push dword [ebp + 8]
call fcn.00426482
add esp, 0xc
test eax, eax
je 0x4265d3
call fcn.00420b6d
xor al, al
call fcn.0042dc54
ret
call fcn.0040ac2f
mov esi, dword [ebp + 0x10]
call fcn.004089f9
lea esi, [ebp - 0x24]
call fcn.00420b6d
mov al, 1
jmp 0x4265cd
Function at 0x42acb7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448138]
jne 0x42acc1
repz ret
jmp fcn.004323fa

Function at 0x43b3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431be8
xor ebx, ebx
cmp dword [0x44a2f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43b475
push 0x402f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43b3e0
xor eax, eax
jmp 0x43b539
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402f30
push edi
call esi
cmp eax, ebx
je 0x43b3d9
push eax
call fcn.00431b85
mov dword [esp], 0x402f20
push edi
mov dword [0x44a2f4], eax
call esi
push eax
call fcn.00431b85
mov dword [esp], 0x402f0c
push edi
mov dword [0x44a2f8], eax
call esi
push eax
call fcn.00431b85
mov dword [0x44a2fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0042e1ce
test eax, eax
pop ecx
pop ecx
je 0x43b443
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042af84
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43b475
push 0x402ef0
push edi
call esi
push eax
call fcn.00431b85
cmp eax, ebx
pop ecx
mov dword [0x44a304], eax
je 0x43b475
push 0x402ed8
push edi
call esi
push eax
call fcn.00431b85
pop ecx
mov dword [0x44a300], eax
mov eax, dword [0x44a300]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43b4ee
cmp dword [0x44a304], esi
je 0x43b4ee
push eax
call fcn.00431bf1
pop ecx
call eax
cmp eax, ebx
je 0x43b4bb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44a304]
call fcn.00431bf1
pop ecx
call eax
test eax, eax
je 0x43b4bb
test byte [ebp - 0x18], 1
jne 0x43b4ee
lea eax, [ebp - 0xc]
push eax
call fcn.0042e205
test eax, eax
pop ecx
je 0x43b4d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042af84
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43b4e5
or dword [ebp + 0x10], 0x200000
jmp 0x43b51f
or dword [ebp + 0x10], 0x40000
jmp 0x43b51f
mov eax, dword [0x44a2f8]
cmp eax, esi
je 0x43b51f
push eax
call fcn.00431bf1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b51f
mov eax, dword [0x44a2fc]
cmp eax, esi
je 0x43b51f
push dword [ebp - 4]
push eax
call fcn.00431bf1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44a2f4]
call fcn.00431bf1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x404e1a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [str.V__]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004030bc
mov dword [ebp - 0x14], eax
cmp dword [0x427fb0], esi
jne 0x404f0d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404fed
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x404fed
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404fed
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x427fb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x427fb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x427fb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427fc0], eax
test eax, eax
je 0x404f0a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427fbc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404f32
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404f25
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404f47
push 4
pop eax
jmp 0x404fef
cmp dword [ebp - 0x14], esi
je 0x404f47
push dword [0x427fb0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404f2c
mov eax, dword [0x427fbc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x404fa5
cmp dword [0x427fc0], edi
je 0x404fa5
push eax
call ebx
push dword [0x427fc0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404fa5
test eax, eax
je 0x404fa5
call ecx
test eax, eax
je 0x404f9a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404f9a
test byte [ebp - 8], 1
jne 0x404fa5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x404fd5
mov eax, dword [0x427fb4]
cmp eax, edi
je 0x404fd2
push eax
call ebx
test eax, eax
je 0x404fd2
call eax
mov esi, eax
test esi, esi
je 0x404fd2
mov eax, dword [0x427fb8]
cmp eax, edi
je 0x404fd2
push eax
call ebx
test eax, eax
je 0x404fd2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x427fb0]
call ebx
test eax, eax
je 0x404fed
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x404fef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040161c
mov esp, ebp
pop ebp
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0xc8f2622
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x21f57dc0
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xfff2fb4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0fff4ad0
test esi, esi
jne 0xfff2fea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0fff4bc0
jmp 0xfff3008
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0fff2eb8
mov edi, eax
test esi, esi
je 0xfff3008
cmp dword [ebx], 0
je 0xfff3008
dec esi
jmp 0xfff2ff1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0xfff3c38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x10008020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0xfff3cd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0xfff3cb0
xor eax, eax
push ebp
push 0xfff3ca9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0xfff3cec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfff3cb0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x10008020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x10008020], ax
mov esp, ebp
pop ebp
ret

Function at 0xfff4950
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x10009044], 0
je 0xfff49b1
cmp word [0x10009218], 0xd7b2
jne 0xfff4979
cmp dword [0x10009220], 0
jbe 0xfff4979
mov eax, 0x10009214
call dword [0x10009230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0xfff49d8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x1000802c], 0
jne 0xfff49cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0xfff5cf8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0xfff5f28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0xfff5d7b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0xfff5f28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0xfff5d7b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0xfff5f44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0xfff5e04
xor eax, eax
push ebp
push 0xfff5dfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0fff5b34
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0xfff5de2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0xfff5f64
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0xfff5de2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfff5e04
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0xfff5f1e
cmp byte [ebp - 0xd], 0
jne 0xfff5e4b
cmp byte [ebp - 0x12], 0
je 0xfff5f1e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0xfff5e64
dec ebx
cmp byte [ebx], 0x2e
je 0xfff5e73
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0xfff5e63
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0xfff5f1e
inc ebx
cmp byte [ebp - 0x12], 0
je 0xfff5eb0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0xfff5f1e
cmp byte [ebp - 0xd], 0
je 0xfff5f1e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0xfff5f1e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret