joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442464]
jne 0x40be63
repz ret
jmp fcn.004142c4

Function at 0x412ebd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004075c6
and dword [ebp - 4], 0
cmp dword [0x44462c], 0
mov ebx, eax
jne 0x412f6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41301f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41301f
push eax
call fcn.00407554
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44462c], eax
call esi
push eax
call fcn.00407554
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444630], eax
call esi
push eax
call fcn.00407554
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444634], eax
call esi
push eax
call fcn.00407554
pop ecx
mov dword [0x44463c], eax
test eax, eax
je 0x412f6e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407554
pop ecx
mov dword [0x444638], eax
mov eax, dword [0x444638]
cmp eax, ebx
je 0x412fc6
cmp dword [0x44463c], ebx
je 0x412fc6
push eax
call fcn.004075cf
push dword [0x44463c]
mov esi, eax
call fcn.004075cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412fc6
test edi, edi
je 0x412fc6
call esi
test eax, eax
je 0x412fbd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412fbd
test byte [ebp - 0xc], 1
jne 0x412fc6
or dword [ebp + 0x10], 0x200000
jmp 0x412fff
mov eax, dword [0x444630]
cmp eax, ebx
je 0x412fff
push eax
call fcn.004075cf
pop ecx
test eax, eax
je 0x412fff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412fff
mov eax, dword [0x444634]
cmp eax, ebx
je 0x412fff
push eax
call fcn.004075cf
pop ecx
test eax, eax
je 0x412fff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44462c]
call fcn.004075cf
pop ecx
test eax, eax
je 0x41301f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413021
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408f48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x41764c
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408f68
call fcn.00408f10
mov eax, dword [ebp - 4]
jmp 0x408f81
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408f89
test al, 7
jne 0x408f6d
cmp esi, 8
jb 0x409012
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408f92
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x409034
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409019
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x200
cmp dword [esp + 0x208], 0
push ebx
push esi
push edi
jne 0x4010ca
mov esi, dword [esp + 0x218]
test esi, esi
je 0x40103d
lea eax, [esp + 0x10c]
push esi
push str.installorainst__s
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
call ebx
add esp, 0xc
jmp 0x40106e
mov eax, dword [str.installorainst]
mov ebx, dword [0x405018]
lea edx, [esp + 0x10c]
mov edi, dword [0x40501c]
mov ecx, str.installorainst
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
lea eax, [esp + 0x10c]
push 5
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
call edi
cmp ax, 0x20
jae 0x4010c5
test esi, esi
je 0x40109c
lea eax, [esp + 0xc]
push esi
push str.orainst__s
push eax
call ebx
add esp, 0xc
jmp 0x4010b3
mov ecx, dword [str.orainst]
mov eax, str.orainst
lea edx, [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
lea eax, [esp + 0xc]
push 5
push eax
call edi
cmp ax, 0x20
sbb eax, eax
inc eax
jmp 0x4010ca
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x200
ret 0x10

Function at 0x4010d6
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x401ce8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x405060], eax
mov al, ah
and eax, 0xff
mov dword [0x40506c], eax
mov eax, dword [0x405060]
shr dword [0x405060], 0x10
and eax, 0xff
mov dword [0x405068], eax
shl eax, 8
add eax, dword [0x40506c]
mov dword [0x405064], eax
call fcn.00401c3d
mov dword [ebp - 4], 0
call fcn.00401b4f
call fcn.00401b44
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40341c], eax
call fcn.004016b8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x405038], eax
call fcn.004015ed
call fcn.0040126e
mov esi, dword [0x40341c]
mov al, byte [esi]
cmp al, 0x22
je 0x40118a
cmp al, 0x20
jbe 0x4011b6
inc esi
cmp byte [esi], 0x20
ja 0x401182
jmp 0x4011b6
inc esi
cmp byte [esi], 0x22
je 0x4011b5
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4011b0
movzx eax, bl
push eax
call fcn.004015aa
add esp, 4
test eax, eax
je 0x4011aa
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401193
cmp byte [esi], 0x22
jne 0x4011b6
inc esi
cmp byte [esi], 0
je 0x4011c6
cmp byte [esi], 0x20
ja 0x4011c6
inc esi
cmp byte [esi], 0
jne 0x4011bb
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4011e6
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040129e
jmp 0x401222
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012c0
Capabilities:
Terminate process

Disassembly:
mov dword [0x405098], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x405094], bl
jne 0x40131c
cmp dword [0x403418], 0
je 0x40130a
mov esi, dword [0x403410]
sub esi, 4
cmp dword [0x403418], esi
ja 0x40130a
mov eax, dword [esi]
test eax, eax
je 0x4012ff
call eax
sub esi, 4
cmp dword [0x403418], esi
jbe 0x4012f7
push 0x405990
push 0x40598c
call fcn.0040133f
add esp, 8
push 0x405998
push 0x405994
call fcn.0040133f
add esp, 8
test ebx, ebx
jne 0x40133c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x40625c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406281
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406278
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062f4
cmp dword [0x440a20], ebx
je 0x4062f4
cmp byte [0x440620], bl
je 0x4062c0
cmp dword [0x40a880], 0xffffffff
jne 0x4062c9
push 4
push 0x40000000
push 0x440620
call fcn.00405c10
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062f4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062f4
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f5e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f51
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064e0
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064bc
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x4064b7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406515
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064f8
pop edi
pop esi
not eax
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402c54
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4fe008], 0x8088405
inc edx
mov dword [ebx + 0x4fe008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4030d0
Capabilities:
Query or enumerate registry value

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

Function at 0x403e34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50204c], 0
je 0x403e95
cmp word [0x502220], 0xd7b2
jne 0x403e5d
cmp dword [0x502228], 0
jbe 0x403e5d
mov eax, 0x50221c
call dword [0x502238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4fe070
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 0x403ebc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fe034], 0
jne 0x403eb1
push 0
push 0x4fe068
push 0x4fe070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405700
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 0x405930
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405783
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405930
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405783
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40594c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40580c
xor eax, eax
push ebp
push 0x405805
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405548
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 0x4057ea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40596c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057ea
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 0x40580c
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 0x405926
cmp byte [ebp - 0xd], 0
jne 0x405853
cmp byte [ebp - 0x12], 0
je 0x405926
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40586c
dec ebx
cmp byte [ebx], 0x2e
je 0x40587b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40586b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405926
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058b8
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 0x405926
cmp byte [ebp - 0xd], 0
je 0x405926
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 0x405926
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 0x40603c
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 0x4060a2
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.00404220
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40608c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060a9
lea eax, [ebp - 0x10]
call fcn.00403fb0
ret

Function at 0x408c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404470
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c19
test al, 0x10
jne 0x408c1d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b6e4
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 0x40b71d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040a0
jmp 0x40b726
mov eax, ebx
mov edx, esi
call fcn.00404004
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bdd8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc50
mov eax, dword [0x500f20]
cmp byte [eax], 0
je 0x40be54
mov eax, dword [0x500ccc]
call fcn.00402a84
call fcn.004028f8
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.00408e08
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 0x40be9c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x500c6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x502668]
call fcn.0040550c
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 0x40c744
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 0x40c81a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404048
lea eax, [ebp - 8]
call fcn.004044c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404470
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c804
mov eax, ebx
call fcn.00402790
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7fd
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.00404470
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c7e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c82c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c7e7
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 0x40c804
mov eax, dword [ebp - 0x10]
call fcn.004027b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c821
lea eax, [ebp - 8]
call fcn.00403fb0
ret

Function at 0x40cda4
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 0x40ce08
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.00404220
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408860
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce0f
lea eax, [ebp - 0xc]
call fcn.00403fb0
ret

Function at 0x420194
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x502888
cmp dword [edi], 0
jne 0x420210
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x502884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4fe528
mov ecx, 2
call fcn.0040298c
mov edx, 0x42016c
lea eax, [esi + 5]
call fcn.0042018c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042018c
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 0x4201e5
mov dword [0x502884], 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 0x421864
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 0x42186a
ret
Function at 0x423f14
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 0x423f65
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423f4c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423f3c
jmp 0x423f65
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 0x423f4d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e7c4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404460
xor eax, eax
push ebp
push 0x42e8f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42e8c5
xor eax, eax
push ebp
push 0x42e8be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404270
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42e893
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42e882
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404270
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404470
mov edx, ebx
pop ecx
call fcn.0040298c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e889
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x500bdc]
mov dl, 1
mov eax, dword [0x4075bc]
call fcn.0040bf68
call fcn.004039ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e8f9
lea eax, [ebp - 4]
call fcn.00403fb0
ret