joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022cf
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x90
mov eax, 0x411774
call fcn.0040d65c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023b7
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 0
and dword [ebp - 4], 0
mov ecx, dword [0x41c214]
push dword [ecx + 4]
mov eax, dword [ebx]
push eax
push str.__s_s___mini
lea edi, [ebp - 0x98]
call fcn.00401be7
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push 0x415ba8
lea esi, [ebp - 0x54]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
call fcn.004018e5
mov byte [ebp - 4], 1
push dword [ebx + 0x54]
mov eax, esi
call fcn.0040180f
mov eax, dword [ebp - 0x98]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40236d
sub eax, ecx
push eax
push dword [ebp - 0x98]
push 1
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004017fe
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x98]
call fcn.004017fe
call fcn.0040d6a6
ret 4

Function at 0x4023bf
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push 0x138
mov eax, 0x411739
call fcn.0040d65c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x144]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402523
mov eax, dword [ebx]
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
push eax
lea esi, [ebp - 0x140]
mov dword [ebp - 0x140], ecx
mov byte [ebp - 0x13c], 0
call fcn.004018e5
and dword [ebp - 4], 0
push 0x415c28
mov eax, esi
call fcn.0040180f
push dword [ebp - 0x140]
lea eax, [ebp - 0x74]
push 0x63
push eax
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0xfc]
call fcn.00401be7
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0xb4]
push 0x415ba8
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
call fcn.004018e5
push str._News
mov eax, esi
mov byte [ebp - 4], 2
call fcn.0040180f
push dword [ebx + 0x54]
mov eax, esi
call fcn.0040180f
mov eax, dword [ebp - 0xfc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4024c4
sub eax, ecx
push eax
push dword [ebp - 0xfc]
push 1
push 0
push dword [ebp - 0xb8]
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.004017fe
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.004017fe
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x140]
call fcn.004017fe
call fcn.0040d6a6
ret 4
Function at 0x4029ec
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x418024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402a29
xor al, al
jmp 0x402a8e
lea eax, [ebp - 0x134]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402a85
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x402a77
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call fcn.00406e1b
pop ecx
pop ecx
test eax, eax
jne 0x402a77
push dword [ebp - 0x12c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x402a77
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x134]
push eax
push edi
call esi
test eax, eax
jne 0x402a43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004061ea
leave
ret 4
Function at 0x4046a9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x4046bb
xor eax, eax
jmp 0x40478b
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x40476f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4155a8]
add ecx, 8
sub edi, 8
dec esi
jne 0x4046d2
pop ebx
test edi, edi
je 0x404788
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4155a8]
inc ecx
dec edi
jne 0x404773
not eax
pop esi
pop edi
pop ebp
ret

Function at 0x404de1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x404e11
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e0c
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x404e39
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x404e22
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040b810
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x405ea7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x424c
call fcn.0040cab0
mov eax, dword [0x418024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
mov dword [ebp - 0x4248], eax
je 0x405edd
push dword [edi]
call fcn.004058c8
pop ecx
mov esi, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [esi + 4]
jl 0x405ef2
mov eax, 0x10000
jmp 0x4060ce
cmp ebx, dword [esi + 0x10]
jge 0x405f05
call fcn.00405452
jmp 0x405f05
mov esi, dword [edi]
call fcn.00405484
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x405efe
lea eax, [ebp - 0x4240]
push eax
push ebx
mov ecx, edi
call fcn.00405a32
test byte [ebp - 0x4138], 0x10
je 0x405f3f
lea eax, [ebp - 0x423c]
push eax
add edi, 0x138
push edi
call fcn.00405deb
pop ecx
xor eax, eax
jmp 0x4060cd
mov ebx, dword [ebp - 0x4248]
mov cl, byte [ebx]
mov eax, ebx
mov esi, ebx
test cl, cl
je 0x406004
cmp cl, 0x2f
je 0x405f5d
cmp cl, 0x5c
jne 0x405f60
lea eax, [esi + 1]
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x405f53
cmp eax, ebx
je 0x406004
lea esi, [ebp - 0x110]
mov ecx, ebx
sub esi, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405f79
sub eax, ebx
mov byte [ebp + eax - 0x111], dl
cmp byte [ebp - 0x110], 0x2f
je 0x405fad
cmp byte [ebp - 0x110], 0x5c
je 0x405fad
cmp byte [ebp - 0x10f], 0x3a
mov byte [ebp - 0x4241], dl
jne 0x405fb4
mov byte [ebp - 0x4241], 1
lea eax, [ebp - 0x110]
push 0x4160c8
push eax
call fcn.00407049
mov esi, eax
lea eax, [ebp - 0x110]
push 0x4160cc
push eax
call fcn.00407049
add esp, 0x10
test eax, eax
setne al
test esi, esi
setne cl
or al, cl
or al, byte [ebp - 0x4241]
jne 0x406004
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 0x138]
push eax
call fcn.00405deb
pop ecx
pop ecx
xor eax, eax
push eax
push dword [ebp - 0x4138]
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40602e
mov eax, 0x200
jmp 0x4060ce
push dword [edi]
call fcn.00405683
pop ecx
mov byte [ebp - 0x4241], 0
mov esi, 0x4000
jmp 0x406062
je 0x40607e
push 0
lea ecx, [ebp - 0x4248]
push ecx
push eax
lea eax, [ebp - 0x4110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406077
lea eax, [ebp - 0x4110]
push eax
mov eax, dword [edi]
mov ecx, esi
call fcn.00405774
pop ecx
test eax, eax
jns 0x406044
mov byte [ebp - 0x4241], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4060af
cmp byte [ebp - 0x4241], 0
jne 0x4060af
lea eax, [ebp - 0x4124]
push eax
lea eax, [ebp - 0x4134]
push eax
lea eax, [ebp - 0x412c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.004058c8
movzx eax, byte [ebp - 0x4241]
neg eax
sbb eax, eax
and eax, 0x400
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061ea
leave
ret 8

Function at 0x4061ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418024]
jne 0x4061f4
repz ret
jmp fcn.00407862
Function at 0x40a94d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418024]
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.00407d69
and dword [ebp - 0x14], 0
cmp dword [0x419ff8], 0
mov dword [ebp - 0x18], eax
jne 0x40aa00
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aaa8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40aaa8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x419ff8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x419ffc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41a000], eax
call edi
push eax
call esi
mov dword [0x41a008], eax
test eax, eax
je 0x40aa00
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41a004], eax
mov eax, dword [0x41a004]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa59
cmp dword [0x41a008], ecx
je 0x40aa59
push eax
call esi
push dword [0x41a008]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa59
test ebx, ebx
je 0x40aa59
call edi
test eax, eax
je 0x40aa50
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa50
test byte [ebp - 8], 1
jne 0x40aa59
or dword [ebp + 0x10], 0x200000
jmp 0x40aa8c
mov eax, dword [0x419ffc]
cmp eax, dword [ebp - 0x18]
je 0x40aa8c
push eax
call esi
test eax, eax
je 0x40aa8c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aa8c
mov eax, dword [0x41a000]
cmp eax, dword [ebp - 0x18]
je 0x40aa8c
push eax
call esi
test eax, eax
je 0x40aa8c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x419ff8]
call esi
test eax, eax
je 0x40aaa8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aaaa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061ea
leave
ret
Function at 0x402ab0
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.004041c0
test esi, esi
jne 0x402ae6
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.004042b0
jmp 0x402b04
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c4
mov edi, eax
test esi, esi
je 0x402b04
cmp dword [ebx], 0
je 0x402b04
dec esi
jmp 0x402aed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403274
Capabilities:
Query or enumerate registry value

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

Function at 0x403fc0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49604c], 0
je 0x404021
cmp word [0x496220], 0xd7b2
jne 0x403fe9
cmp dword [0x496228], 0
jbe 0x403fe9
mov eax, 0x49621c
call dword [0x496238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49306c
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 0x404048
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x493030], 0
jne 0x40403d
push 0
push 0x493064
push 0x49306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404174
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.00402788
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40413c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405a94
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 0x405cc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405cc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ba0
xor eax, eax
push ebp
push 0x405b99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004058dc
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 0x405b7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b7e
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 0x405ba0
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 0x405cba
cmp byte [ebp - 0xd], 0
jne 0x405be7
cmp byte [ebp - 0x12], 0
je 0x405cba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c00
dec ebx
cmp byte [ebx], 0x2e
je 0x405c0f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c4c
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 0x405cba
cmp byte [ebp - 0xd], 0
je 0x405cba
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 0x405cba
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 0x40638c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4063f2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404430
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e08
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f9
lea eax, [ebp - 0x10]
call fcn.004041c0
ret

Function at 0x40c060
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 0x40c099
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042b0
jmp 0x40c0a2
mov eax, ebx
mov edx, esi
call fcn.00404214
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0ac
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 0x40c0cd
mov al, byte [esp]
jmp 0x40c0cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c754
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5cc
mov eax, dword [0x494ef4]
cmp byte [eax], 0
je 0x40c7d0
mov eax, dword [0x494b28]
call fcn.00402bcc
call fcn.004028f0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004091e0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c818
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c806
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x494aa0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x496668]
call fcn.004058a0
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 0x40d0d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d1ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404258
lea eax, [ebp - 8]
call fcn.004046d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404680
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d198
mov eax, ebx
call fcn.00402788
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d191
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404680
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d17b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d17b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d198
mov eax, dword [ebp - 0x10]
call fcn.004027a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1b5
lea eax, [ebp - 8]
call fcn.004041c0
ret

Function at 0x40d6a4
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 0x40d708
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.00404430
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c3c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d70f
lea eax, [ebp - 0xc]
call fcn.004041c0
ret

Function at 0x423a70
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.004238c8
dec esi
jne 0x423a92
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424be8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49688c
cmp dword [edi], 0
jne 0x424c64
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x496888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4936d0
mov ecx, 2
call fcn.00402984
mov edx, 0x424bc0
lea eax, [esi + 5]
call fcn.00424be0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424be0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424c39
mov dword [0x496888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425e80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425e86
ret

Function at 0x4282c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x428319
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428300
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4282f0
jmp 0x428319
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x428301
pop ebx
mov esp, ebp
pop ebp
ret