joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf20
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c070
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44bf40
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44bf21
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c070
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44bf40
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44bf70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44bfc7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44bfdd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044c000
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44c000
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44c090
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44c0d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44c550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ef50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c100
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c180
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c180
lea ecx, [esi + 0xc]
call fcn.004607b6
lea ecx, [esi + 0x10]
call fcn.004607b6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044e9b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044e9b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044e9b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046082b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046082b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d1f8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f178
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d208
call fcn.0044d720
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d2eb
cmp byte [edi], 0
je 0x44d2eb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d22d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044bf20
test eax, eax
jne 0x44d24d
push 0x48d468
lea ecx, [esi + 0x38]
call fcn.00460968
jmp 0x44d2eb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044bf70
test eax, eax
jne 0x44d27c
mov ecx, esi
call fcn.0044c070
push edi
add esi, 0x38
push 0x48d444
push esi
call fcn.0045e7c7
add esp, 0xc
jmp 0x44d2eb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044dfa0
test eax, eax
je 0x44d2e4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044d3c0
test eax, eax
jne 0x44d300
push edi
lea eax, [esi + 0x38]
push 0x48d420
push eax
call fcn.0045e7c7
add esp, 0xc
mov ecx, esi
call fcn.0044d720
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44d3a8
mov ecx, dword [0x48d6d8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045e7c7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c020
test eax, eax
jne 0x44d36a
push 0x48d404
lea ecx, [esi + 0x38]
call fcn.00460968
jmp 0x44d37a
push 0xfa
mov ecx, esi
call fcn.0044dfa0
test eax, eax
jne 0x44d397
mov ecx, esi
call fcn.0044d720
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046082b
jmp 0x44d2eb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046082b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x462bcf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462c07
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460c86
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460c5e
jmp 0x462c13
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4642bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4642ff
call fcn.00469e81
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4642ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4642f6
xor eax, eax
jmp 0x464307
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046430d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a3b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a3df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a3fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a317
jmp 0x46a3fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a3fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a317
test edi, edi
mov eax, edi
jne 0x46a3e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x10b01350
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10b0135a
pushal
call 0x10b01360
pop ebp
sub ebp, 0x10
sub ebp, 0xb01350
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10b01384
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10b0138d
mov eax, 0xb01350
add eax, ebp
add eax, 0x63
mov ecx, 0x60b
mov edx, 0x7441f703
xor byte [eax], dl
inc eax
dec ecx
jne 0x10b013a4
jmp 0x10b013b7
mov dh, cl
mov byte [edx + 0x303033f], cl
add dl, 0xfb
add eax, dword [ebx]
add eax, dword [eax]
into
mov ebx, 0x3030305
mov ecx, 0x303032b
hlt
Function at 0x40274a
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor ebx, ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp ebx, 0x5c9f22f
jg 0x40277a
inc ebx
cmp ebx, 0x1fa20be2
jl 0x402760
cmp dword [0x447344], 0x400
jne 0x4027e2
push 0x43ddc0
push str.zudutalegexojefupo
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push esi
call fcn.00402846
push esi
push esi
call fcn.00402880
push esi
call fcn.00402b84
pop ecx
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004029ca
fstp st(0)
push esi
call fcn.00402bf8
add esp, 0xc
xor ebx, ebx
cmp ebx, 0xd0fe
jge 0x4027f3
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x58bc6e
jg 0x40280c
inc ebx
cmp ebx, 0xe52f
jl 0x4027e4
mov eax, dword [0x4402e4]
mov dword [0x447344], eax
call fcn.004024cb
mov edi, 0x3078f
cmp dword [0x447344], 0x51f
jne 0x40283a
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x402820
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4059ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f598]
jne 0x4059d8
repz ret
jmp fcn.0040847a
Function at 0x406d1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404280
and dword [ebp - 0x14], 0
cmp dword [0x441ef4], 0
mov dword [ebp - 0x18], eax
jne 0x406dce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406e76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406e76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x441ef4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x441ef8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x441efc], eax
call edi
push eax
call esi
mov dword [0x441f04], eax
test eax, eax
je 0x406dce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x441f00], eax
mov eax, dword [0x441f00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406e27
cmp dword [0x441f04], ecx
je 0x406e27
push eax
call esi
push dword [0x441f04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406e27
test ebx, ebx
je 0x406e27
call edi
test eax, eax
je 0x406e1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406e1e
test byte [ebp - 8], 1
jne 0x406e27
or dword [ebp + 0x10], 0x200000
jmp 0x406e5a
mov eax, dword [0x441ef8]
cmp eax, dword [ebp - 0x18]
je 0x406e5a
push eax
call esi
test eax, eax
je 0x406e5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406e5a
mov eax, dword [0x441efc]
cmp eax, dword [ebp - 0x18]
je 0x406e5a
push eax
call esi
test eax, eax
je 0x406e5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x441ef4]
call esi
test eax, eax
je 0x406e76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406e78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059ce
leave
ret
Function at 0x1002f9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1002f9df
pop dword [ebp - 4]
mov eax, 0x1002f9df
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xfcdf5321
add dword [ebp - 0x14], 0x5172f22a
mov dword [ebp - 0x10], 0x3c1ba94f
sub dword [ebp - 0x10], 0x9e85d0a
mov dword [ebp - 0xc], 0x481e547e
add dword [ebp - 0xc], 0x42defb0
mov dword [ebp - 8], 0x1e1eff7d
sub dword [ebp - 8], 0x1e1eff7d
lea eax, [ebp - 0x14]
push eax
mov eax, 0xe9eee37c
sub eax, 0xd9eb0300
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x3f8b86b9
add dword [ebp - 0x14], 0x34e6e29d
mov dword [ebp - 0x10], 0xda2fb5c8
add dword [ebp - 0x10], 0x673cabad
mov dword [ebp - 0xc], 0x1db16702
add dword [ebp - 0xc], 0x45be056a
mov dword [ebp - 8], 0x7033a19f
sub dword [ebp - 8], 0x7033a19f
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x74b85470
sub eax, 0x64b473ec
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x39c52
push 0
call eax
mov ecx, 0x190a57f3
sub ecx, 0x190a1f50
mov edx, eax
mov esi, 0x10071200
add esi, dword [ebp - 4]
mov ebx, 0x18922911
sub ebx, 0x7f9c128b
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 0xcc27a5c
sub edx, 0xcc27a58
add esi, 0x34bcf1de
sub esi, 0x34bcf1da
loop 0x1002faf6
add eax, 0x570e2169
sub eax, 0x570d4c0a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd29ba899
sub ecx, 0xc29ba899
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x1003aaa0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
push 0x100000
lea eax, [esp + 0xc]
mov dword [esp + 4], 0xffffffff
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0xc
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x1003ab3a
mov eax, dword [esp]
cdq
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edx
cdq
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push 2
mov dword [esp + 0x2c], edx
push edi
mov eax, dword [eax + 0x2d0]
call eax
mov esi, eax
test esi, esi
je 0x1003ab32
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0
mov eax, dword [eax + 0x350]
push esi
push edi
call eax
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret 8
xor eax, eax
add esp, 0x24
ret 8

Function at 0x1003abd0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
push dword [esp + 0x1c]
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x398]
call eax
mov ecx, dword [edi]
mov ebx, eax
push dword [esp + 0x1c]
push edi
mov ecx, dword [ecx + 0x39c]
call ecx
mov dword [esp + 0xc], 0
test ebx, ebx
jne 0x1003ac0a
pop edi
or eax, 0xffffffff
pop ebx
ret 0x14
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
test eax, eax
mov edx, 0xfffffffe
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
ret 0x14

Function at 0x1003ac40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x398]
call eax
mov dword [esp + 4], 0
test eax, eax
jne 0x1003ac65
or eax, 0xffffffff
ret 0x18
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1003ac75
lea eax, [esi - 2]
pop esi
ret 0x18
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x1003ac95
mov eax, 0xfffffffd
pop esi
ret 0x18
push dword [esp + 0x10]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
xor eax, eax
mov ecx, 0xfffffffc
cmp esi, dword [esp + 8]
pop esi
cmovne eax, ecx
ret 0x18

Function at 0x93047c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x930482
pop ebp
sub ebp, 6
sub ebp, 0x53047c
jmp 0x9304e0
jmp 0x9304e9
mov eax, 0x53047c
add eax, ebp
add eax, 0x93
mov ecx, 0x623
mov edx, 0x29e524d4
xor byte [eax], dl
inc eax
dec ecx
jne 0x930500
jmp 0x930513
mov esi, 0xc4d4bc94
aam 0xd4
mov esp, 0xd4f818d4
out 0x14, eax
test byte [ebx], ch
inc ecx
lodsb al, byte [esi]
xchg ebp, eax
popfd
aam 0x84
pop edi
sbb dword [edi + 0x5d], ebx
call 0x5667da06
adc eax, 0xd4d4d42c
xlatb
sbb dword [edx + edx*8 - 0x2c], ebp
aam 0xd4
outsb dx, byte [esi]
cld
aam 0xd4
aam 0x23
xlatb
sbb al, 0x5f
push ebp
fcom st(4)
aam 0xd4
xlatb
adc dword [esp + edi*4 - 0x2b22128f], eax
mov esp, 0xd49d1e00
aad 0xf8
invalid
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402bd4
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.0040485c
test esi, esi
jne 0x402c0a
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.0040494c
jmp 0x402c28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a88
mov edi, eax
test esi, esi
je 0x402c28
cmp dword [ebx], 0
je 0x402c28
dec esi
jmp 0x402c11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40388c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40386c
xor eax, eax
push ebp
push 0x403865
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 0x4038a8
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 0x40386c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4f6020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40465c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fa04c], 0
je 0x4046bd
cmp word [0x4fa220], 0xd7b2
jne 0x404685
cmp dword [0x4fa228], 0
jbe 0x404685
mov eax, 0x4fa21c
call dword [0x4fa238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f6070
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 0x4046e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f6030], 0
jne 0x4046d9
push 0
push 0x4f6068
push 0x4f6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402814
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4fa04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047d8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406118
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 0x406348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40619b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406348
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40619b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406224
xor eax, eax
push ebp
push 0x40621d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f60
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 0x406202
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406384
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406202
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 0x406224
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 0x40633e
cmp byte [ebp - 0xd], 0
jne 0x40626b
cmp byte [ebp - 0x12], 0
je 0x40633e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406284
dec ebx
cmp byte [ebx], 0x2e
je 0x406293
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406283
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40633e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062d0
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 0x40633e
cmp byte [ebp - 0xd], 0
je 0x40633e
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 0x40633e
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