joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404610
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407fa7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40efcc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407fa7
cmp eax, 1
je 0x407fc8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407fa7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407f74
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407fa3
xor eax, eax
inc eax
jmp 0x407fe7
cmp edi, eax
jae 0x407fab
xor eax, eax
jmp 0x407fe7
cmp eax, esi
jae 0x407fb2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40efcc]
jmp 0x407fcb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40146e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407318], esi
push edi
jne 0x40148e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x407314], esi
mov byte [0x407310], al
jne 0x4014f4
mov ecx, dword [0x407848]
test ecx, ecx
je 0x4014d5
mov eax, dword [0x407844]
sub eax, 4
cmp eax, ecx
jmp 0x4014ce
mov eax, dword [eax]
test eax, eax
je 0x4014c0
call eax
mov eax, dword [0x407844]
sub eax, 4
cmp eax, dword [0x407848]
mov dword [0x407844], eax
jae 0x4014b8
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x4014f4
mov eax, dword [edi]
test eax, eax
je 0x4014ed
call eax
add edi, 4
cmp edi, esi
jb 0x4014e5
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401513
mov eax, dword [edi]
test eax, eax
je 0x40150c
call eax
add edi, 4
cmp edi, esi
jb 0x401504
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40152d
push dword [ebp + 8]
mov dword [0x407318], 1
call fcn.004013d4
pop ebp
ret

Function at 0x40156f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407280]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407040]
je 0x4015a4
inc eax
cmp eax, 0x13
jb 0x401595
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407040]
jne 0x4016ca
mov eax, dword [0x4072c8]
cmp eax, 1
je 0x4016a2
cmp eax, edx
jne 0x4015d4
cmp dword [0x407034], 1
je 0x4016a2
cmp ecx, 0xfc
je 0x4016ca
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40160a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004028a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40163e
mov eax, edi
push eax
call fcn.00402ad0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405520
push edi
call fcn.004029a0
add esp, 0x10
push edi
call fcn.00402ad0
push dword [esi + 0x407044]
mov ebx, eax
call fcn.00402ad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402080
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004028a0
push edi
push ebx
call fcn.004028b0
push 0x405500
push ebx
call fcn.004028b0
push dword [esi + 0x407044]
push ebx
call fcn.004028b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402799
add esp, 0x2c
jmp 0x4016ca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x407044]
push dword [esi]
call fcn.00402ad0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402b8c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402799
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40743c], ebx
push esi
push edi
jne 0x402819
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402854
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40743c], eax
je 0x402854
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407440], eax
call esi
cmp dword [0x4072d8], 2
mov dword [0x407444], eax
jne 0x402819
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40744c], eax
je 0x402819
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407448], eax
mov eax, dword [0x407448]
test eax, eax
je 0x40285e
call eax
test eax, eax
je 0x402845
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40744c]
test eax, eax
je 0x402845
test byte [ebp - 8], 1
jne 0x40285e
cmp dword [0x4072e4], 4
jb 0x402858
or byte [ebp + 0x12], 0x20
jmp 0x40287d
xor eax, eax
jmp 0x40288d
or byte [ebp + 0x12], 4
jmp 0x40287d
mov eax, dword [0x407440]
test eax, eax
je 0x40287d
call eax
mov ebx, eax
test ebx, ebx
je 0x40287d
mov eax, dword [0x407444]
test eax, eax
je 0x40287d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40743c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403bdc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403be3
cmp ebx, dword [eax + 4]
jae 0x403be3
xor eax, eax
jmp 0x403dd3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403bf4
xor eax, eax
inc eax
jmp 0x403dd2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403c0a
cmp ecx, edx
jae 0x403d4f
cmp dword [eax + 4], 0
je 0x403c13
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403bfb
cmp dword [ebp + 8], 0
je 0x403c35
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403d4f
cmp eax, esi
jae 0x403d4f
mov eax, dword [0x407450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403c5a
cmp dword [esi*4 + 0x407458], edi
je 0x403d53
inc esi
cmp esi, eax
jl 0x403c48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403dcf
cmp dword [ebp - 8], 0x1000000
jne 0x403dcf
test byte [ebp - 0xc], 0xcc
je 0x403cd8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403dcf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403dcf
cmp word [eax + 0x18], 0x10b
jne 0x403dcf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403dcf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403cd8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403cd8
test byte [ecx + 0x27], 0x80
jne 0x403d4f
push 1
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403bec
mov ecx, dword [0x407450]
test ecx, ecx
mov edx, ecx
jle 0x403d0c
lea eax, [ecx*4 + 0x407454]
cmp dword [eax], edi
je 0x403d0c
dec edx
sub eax, 4
test edx, edx
jg 0x403d00
test edx, edx
jne 0x403d3d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403d19
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403d31
lea eax, [edx*4 + 0x407458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403d1f
cmp ecx, 0x10
jge 0x403d3d
inc ecx
mov dword [0x407450], ecx
push 0
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403bec
xor eax, eax
jmp 0x403dd2
test esi, esi
jle 0x403bec
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407498
call ebx
test eax, eax
jne 0x403bec
cmp dword [esi*4 + 0x407458], edi
je 0x403da9
mov eax, dword [0x407450]
lea esi, [eax - 1]
test esi, esi
jl 0x403d97
cmp dword [esi*4 + 0x407458], edi
je 0x403d93
dec esi
jns 0x403d87
test esi, esi
jge 0x403da7
cmp eax, 0x10
jge 0x403da2
inc eax
mov dword [0x407450], eax
lea esi, [eax - 1]
jmp 0x403da9
je 0x403dc1
xor ecx, ecx
test esi, esi
jl 0x403dc1
lea eax, [ecx*4 + 0x407458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403daf
push 0
push 0x407498
call ebx
jmp 0x403bec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40405e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402080
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4040f9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4072d8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4040f9
cmp eax, 1
je 0x40411a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4040f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4040c6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4040f5
xor eax, eax
inc eax
jmp 0x404139
cmp edi, eax
jae 0x4040fd
xor eax, eax
jmp 0x404139
cmp eax, esi
jae 0x404104
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4072d8]
jmp 0x40411d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.100043a8
test esi, esi
jne 0x10002e23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.10004498
jmp 0x10002e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.10002c88
mov dword [esp], eax
test esi, esi
je 0x10002e44
cmp dword [ebx], 0
je 0x10002e44
dec esi
jmp 0x10002e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x100034a8
Capabilities:
Query or enumerate registry value

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

Function at 0x10004224
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x10051044], 0
je 0x10004285
cmp word [0x10051218], 0xd7b2
jne 0x1000424d
cmp dword [0x10051220], 0
jbe 0x1000424d
mov eax, 0x10051214
call dword [0x10051230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1004f06c
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 0x100042ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1004f030], 0
jne 0x100042a1
push 0
push 0x1004f064
push 0x1004f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x10005fd8
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 0x1000603e
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.10004618
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1000306c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10006028
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10006045
lea eax, [ebp - 0x10]
call fcn.100043a8
ret

Function at 0x1000afac
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 0x1000afe5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.10004498
jmp 0x1000afee
mov eax, ebx
mov edx, esi
call fcn.100043fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x1000b6b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x1000b518
mov eax, dword [0x10050038]
cmp byte [eax], 0
je 0x1000b72c
mov eax, dword [0x1004fe68]
call fcn.10002ed8
call fcn.10002bb4
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.10008788
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 0x1000b774
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x1000b762
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x1004fe18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x10051660]
call fcn.10005444
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 0x1000bfd0
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 0x1000c0a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.10004440
lea eax, [ebp - 8]
call fcn.100048b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.10004868
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x1000c090
mov eax, ebx
call fcn.10002a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1000c089
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.10004868
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x1000c073
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1000c0b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x1000c073
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 0x1000c090
mov eax, dword [ebp - 0x10]
call fcn.10002a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000c0ad
lea eax, [ebp - 8]
call fcn.100043a8
ret

Function at 0x1000c580
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 0x1000c5e4
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.10004618
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.10008304
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000c5eb
lea eax, [ebp - 0xc]
call fcn.100043a8
ret

Function at 0x1001a740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x10051880
cmp dword [edi], 0
jne 0x1001a7bc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x1005187c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x1004f3e8
mov ecx, 2
call fcn.10002c48
mov edx, 0x1001a718
lea eax, [esi + 5]
call fcn.1001a738
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.1001a738
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 0x1001a791
mov dword [0x1005187c], 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 0x1001cb4c
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 0x1001cb52
ret

Function at 0x1001efc4
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 0x1001f015
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x1001effc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x1001efec
jmp 0x1001f015
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 0x1001effd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002854c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x10028498
call sub.user32.dll_EnumWindows
ret

Function at 0x1002866c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x100286e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.100280cc
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x10028691
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.10027ccc
cmp dword [ebp - 4], 0
je 0x100286d3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.10004868
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100286f0
lea eax, [ebp - 4]
call fcn.100043a8
ret