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

Disassembly:
call fcn.00411e28
jmp 0x41173f
push 0x5c
push 0x412068
call fcn.00411efc
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x41390c
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41178c
cmp eax, edi
jne 0x41179e
mov esi, ebx
cmp dword [0x413910], ebx
jne 0x4117ab
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4117da
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411775
cmp dword [0x413910], 0
jne 0x4117d4
mov dword [0x413910], ebx
push 0x401018
push 0x40100c
call fcn.0041192a
pop ecx
pop ecx
test eax, eax
je 0x4117da
jmp 0x411913
mov dword [0x413124], ebx
cmp dword [0x413910], ebx
jne 0x4117fd
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x413910], 2
test esi, esi
jne 0x41180a
xor eax, eax
mov ecx, 0x41390c
xchg dword [ecx], eax
cmp dword [0x413914], 0
je 0x411838
push 0x413914
call fcn.00411d20
pop ecx
test eax, eax
je 0x411838
push 0
push 2
push 0
mov esi, dword [0x413914]
mov ecx, esi
call dword [0x414220]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x411896
test cl, cl
je 0x411854
test edi, edi
jne 0x411896
mov al, byte [esi]
test al, al
je 0x411864
cmp al, 0x20
ja 0x411864
inc esi
mov dword [ebp - 0x20], esi
jmp 0x411854
test byte [ebp - 0x40], 1
je 0x411870
movzx eax, word [ebp - 0x3c]
jmp 0x411873
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x413120], eax
cmp dword [0x413138], 0
jne 0x4118ef
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x4118a7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4118ba
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x411845
cmp dword [0x413124], 0
jne 0x411903
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x413120]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41191f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00411f44
ret

Function at 0x411c0f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x412090
call fcn.00411f98
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x411c6f
cmp eax, 0xffffffff
je 0x411c6f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x411c68
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x411c68
cmp edx, 0x10000000
jae 0x411c68
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x411c65
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00411fdd
ret 4
Function at 0x411cd0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x411d0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x411d06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x411d10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x411cf6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x411df0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x411e06
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x411e21
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
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 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
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 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x401430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041a0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x40135a
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Happ
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x401509
push edi
push dword [ebp - 0x38]
push edi
push edi
push 0x190
push 0x258
push 0xffffee08
push 0xffffee6c
push 0
push str.umbrage
push str.Happ
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041a8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041a8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401509
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014ee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40407f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41fec5
call fcn.00411607
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.00410cc0
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.00402e98
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x40415d
cmp byte [ebp - 0xd], bl
je 0x404117
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00403e18
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x404142
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00403e18
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x4040f7
mov eax, dword [ebp - 0x14]
cmp dword [0x4287ac], eax
jne 0x404184
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40417a
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.00403909
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00410d3a
add ebp, 0x124
leave
ret 4
Function at 0x408c70
Capabilities:
Get geographical location
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
movzx eax, ax
push esi
push 3
push eax
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0040ebbf
pop ecx
push ebx
push eax
push 3
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareIntelDisplayigfxcuihkcmd_resources
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408cf5
push ebx
push dword [ebp - 8]
push 1
push esi
push str.UserLangID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
pop edi
pop esi
pop ebx
je 0x408d06
push dword [ebp - 8]
call fcn.0040ee20
pop ecx
leave
ret
Function at 0x408d48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x422118
push 0x15
push edi
push 0x422178
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
mov ebx, str.SoftwareIntelDisplayigfxcui3D
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push SysReAllocString
call esi
cmp dword [ebp - 0x1c], edi
je 0x408db6
cmp eax, edi
jne 0x408ed1
cmp dword [ebp - 0x14], edi
je 0x408ed1
cmp dword [ebp - 0x20], edi
jl 0x408ed1
push 0x38
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00410cc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Basic
push dword [ebp - 8]
call esi
xor ebx, ebx
inc ebx
test eax, eax
jne 0x408e03
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
jmp 0x408e06
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.VertexProcessing
push dword [ebp - 8]
call esi
test eax, eax
jne 0x408e29
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
jmp 0x408e2c
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.TextureQuality
push dword [ebp - 8]
call esi
test eax, eax
jne 0x408e4f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
jmp 0x408e52
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.AnisotropicFiltering
push dword [ebp - 8]
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.VSync
push dword [ebp - 8]
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x38
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x408eb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x408ec7
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x18], edi
je 0x408ed1
push dword [ebp - 0x18]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409341
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00407610
mov ebx, eax
cmp ebx, esi
je 0x4093b1
lea ecx, [ebp - 0x70]
call fcn.0040759b
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410d3a
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4093c9
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409341
cmp eax, esi
jne 0x4093fb
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x4093b9
lea ecx, [ebp - 0x70]
call fcn.0040759b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00407540
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040759b
mov eax, esi
jmp 0x409397
Function at 0x40cac1
Capabilities:
Check os version

Disassembly:
push 0xa0
mov eax, 0x4203ab
call fcn.00411670
mov ebx, dword [ebp + 8]
and dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], ebx
xor edi, edi
lea eax, [ebp + 0xc]
inc edi
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00403dab
push 0x94
lea eax, [ebp - 0xa4]
push 0
push eax
mov dword [ebp - 0xa8], edi
call fcn.00410cc0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x40cb51
cmp dword [ebp - 0xa0], 5
jne 0x40cb51
push str.Global_
mov ecx, ebx
call fcn.00403e18
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00403af1
push 0
push edi
lea ecx, [ebp + 0xc]
call fcn.00403909
mov eax, ebx
call fcn.004116ba
ret

Function at 0x40d025
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp dword [0x428810], ebx
jne 0x40d062
push 0x428810
push ebx
push ebx
push 0x40cb64
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x40d05b
mov dword [0x428810], ebx
mov byte [ebp - 1], bl
jmp 0x40d062
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x410d3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427470]
jne 0x410d44
repz ret
jmp fcn.00414875

Function at 0x41ba24
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.00415810
and dword [ebp - 4], 0
cmp dword [0x429318], 0
mov ebx, eax
jne 0x41bad5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bb86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41bb86
push eax
call fcn.0041579e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429318], eax
call esi
push eax
call fcn.0041579e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42931c], eax
call esi
push eax
call fcn.0041579e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429320], eax
call esi
push eax
call fcn.0041579e
pop ecx
mov dword [0x429328], eax
test eax, eax
je 0x41bad5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041579e
pop ecx
mov dword [0x429324], eax
mov eax, dword [0x429324]
cmp eax, ebx
je 0x41bb2d
cmp dword [0x429328], ebx
je 0x41bb2d
push eax
call fcn.00415819
push dword [0x429328]
mov esi, eax
call fcn.00415819
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41bb2d
test edi, edi
je 0x41bb2d
call esi
test eax, eax
je 0x41bb24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bb24
test byte [ebp - 0xc], 1
jne 0x41bb2d
or dword [ebp + 0x10], 0x200000
jmp 0x41bb66
mov eax, dword [0x42931c]
cmp eax, ebx
je 0x41bb66
push eax
call fcn.00415819
pop ecx
test eax, eax
je 0x41bb66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41bb66
mov eax, dword [0x429320]
cmp eax, ebx
je 0x41bb66
push eax
call fcn.00415819
pop ecx
test eax, eax
je 0x41bb66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429318]
call fcn.00415819
pop ecx
test eax, eax
je 0x41bb86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bb88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029f0
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.00404128
test esi, esi
jne 0x402a26
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.00404218
jmp 0x402a44
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028a4
mov edi, eax
test esi, esi
je 0x402a44
cmp dword [ebx], 0
je 0x402a44
dec esi
jmp 0x402a2d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40339c
Capabilities:
Query or enumerate registry value

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

Function at 0x403fac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41904c], 0
je 0x40400d
cmp word [0x419220], 0xd7b2
jne 0x403fd5
cmp dword [0x419228], 0
jbe 0x403fd5
mov eax, 0x41921c
call dword [0x419238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x418050
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 0x404034
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x418018], 0
jne 0x404029
push 0
push 0x418070
push 0x418050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409bb4
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 0x409bed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404218
jmp 0x409bf6
mov eax, ebx
mov edx, esi
call fcn.0040417c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a2a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a120
mov eax, dword [0x4186f4]
cmp byte [eax], 0
je 0x40a315
mov eax, dword [0x418634]
call fcn.00402d88
call fcn.004027d0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407500
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 0x40a35c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a34b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x418614]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x419718]
call fcn.004056dc
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 0x40b014
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 0x40b078
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.00404390
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004071c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b07f
lea eax, [ebp - 0xc]
call fcn.00404128
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10001800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0xc], 2
jae 0x10001037
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jmp 0x1000103e
mov dword [ebp - 0x2c], 2
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x100010b8
cmp dword [ebp - 0x14], 0
je 0x100010b8
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + ecx*4 - 0x24]
mov al, byte [edx]
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + ecx*4 - 0x24]
mov byte [edx], 0xc3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
call dword [ebp + eax*4 - 0x24]
jmp 0x100010a3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + ecx*4 - 0x24]
mov al, byte [ebp - 0x1c]
mov byte [edx], al
jmp 0x1000105b
cmp dword [ebp - 0x14], 0
jne 0x100010dc
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push 0x40
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret