joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5474
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x4a54b1
cmp dword [ebp + 0x14], edi
je 0x4a54b1
cmp ecx, edi
jne 0x4a54b8
call fcn.004a815c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a80fd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a54cc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a54ed
cmp ebx, 0xffffffff
je 0x4a54dc
push ebx
push edi
push ecx
call fcn.004a4250
add esp, 0xc
cmp esi, edi
je 0x4a5499
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a5499
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a550a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a5511
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a5603
test dword [esi + 0xc], 0x10c
je 0x4a5566
mov eax, dword [esi + 4]
test eax, eax
je 0x4a5566
jl 0x4a5664
mov edi, ebx
cmp ebx, eax
jb 0x4a5537
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a560b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004adcb3
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a55fb
cmp ebx, dword [ebp - 0xc]
jb 0x4a55d3
cmp dword [ebp - 0xc], 0
je 0x4a5590
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a5585
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a558c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a559b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a559b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a5637
push eax
push dword [ebp - 8]
push esi
call fcn.004adc86
pop ecx
push eax
call fcn.004adb89
add esp, 0xc
test eax, eax
je 0x4a5676
cmp eax, 0xffffffff
je 0x4a5664
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a55fb
push esi
call fcn.004ad4a3
pop ecx
cmp eax, 0xffffffff
je 0x4a5668
cmp dword [ebp - 4], 0
je 0x4a5637
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a5519
mov eax, dword [ebp + 0x14]
jmp 0x4a54b3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a5622
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a4250
add esp, 0xc
call fcn.004a815c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a54a9
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a564d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a4250
add esp, 0xc
call fcn.004a815c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a54a9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a54b3
or dword [esi + 0xc], 0x10
jmp 0x4a5668
Function at 0x4a7ff6
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4ca3b0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a4250
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4a80d5
test ebx, ebx
jne 0x4a80d5
push 2
call fcn.004b0196
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.004a39f3
add ebp, 0x2a8
leave
ret

Function at 0x4a80fd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x51d130]
call fcn.004ab5a5
pop ecx
test eax, eax
je 0x4a8113
pop ebp
jmp eax
push 2
call fcn.004b0196
pop ecx
pop ebp
jmp fcn.004a7ff6
Function at 0x4aa66f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4ca948]
je 0x4aa68a
inc edi
cmp edi, 0x17
jb 0x4aa67b
cmp edi, 0x17
jae 0x4aa80a
push ebp
push 3
call fcn.004b0ab2
pop ecx
cmp eax, 1
je 0x4aa7d6
push 3
call fcn.004b0ab2
pop ecx
test eax, eax
jne 0x4aa6be
cmp dword [0x4ca6a0], 1
je 0x4aa7d6
cmp ebx, 0xfc
je 0x4aa809
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51d5f0
push ebp
call fcn.004aec90
add esp, 0xc
test eax, eax
je 0x4aa6f4
push esi
push esi
push esi
push esi
push esi
call fcn.004a7ff6
add esp, 0x14
push 0x104
mov esi, 0x51d609
push esi
push 0
mov byte [0x51d70d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aa738
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004aec90
add esp, 0xc
test eax, eax
je 0x4aa738
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a7ff6
add esp, 0x14
push esi
call fcn.004aeb70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4aa77d
push esi
call fcn.004aeb70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51d904
push 0x4c03cc
sub ecx, eax
push ecx
push eax
call fcn.004b09ff
add esp, 0x14
test eax, eax
je 0x4aa77d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a7ff6
add esp, 0x14
jmp 0x4aa77f
xor esi, esi
push 0x4c03c8
push ebx
push ebp
call fcn.004b098e
add esp, 0xc
test eax, eax
je 0x4aa79f
push esi
push esi
push esi
push esi
push esi
call fcn.004a7ff6
add esp, 0x14
push dword [edi*8 + 0x4ca94c]
push ebx
push ebp
call fcn.004b098e
add esp, 0xc
test eax, eax
je 0x4aa7c1
push esi
push esi
push esi
push esi
push esi
call fcn.004a7ff6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b0827
add esp, 0xc
jmp 0x4aa809
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4aa809
cmp ebp, 0xffffffff
je 0x4aa809
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ca94c]
push dword [esi]
call fcn.004aeb70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4ab9ce
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4ab9e7
push esi
call fcn.004aa317
pop ecx
mov edi, eax
test edi, edi
je 0x4abb4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x51d90c], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x51d910], eax
call esi
push str.FlsFree
push edi
mov dword [0x51d914], eax
call esi
cmp dword [0x51d90c], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x51d918], eax
je 0x4aba50
cmp dword [0x51d910], 0
je 0x4aba50
cmp dword [0x51d914], 0
je 0x4aba50
test eax, eax
jne 0x4aba74
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x51d910], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x51d90c], 0x4ab614
mov dword [0x51d914], esi
mov dword [0x51d918], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4caa28], eax
cmp eax, 0xffffffff
je 0x4abb54
push dword [0x51d910]
push eax
call esi
test eax, eax
je 0x4abb54
call fcn.004aa623
push dword [0x51d90c]
call fcn.004ab52d
push dword [0x51d910]
mov dword [0x51d90c], eax
call fcn.004ab52d
push dword [0x51d914]
mov dword [0x51d910], eax
call fcn.004ab52d
push dword [0x51d918]
mov dword [0x51d914], eax
call fcn.004ab52d
add esp, 0x10
mov dword [0x51d918], eax
call fcn.004a9636
test eax, eax
je 0x4abb4f
push fcn.004ab836
push dword [0x51d90c]
call fcn.004ab5a5
pop ecx
call eax
mov dword [0x4caa24], eax
cmp eax, 0xffffffff
je 0x4abb4f
push 0x214
push 1
call fcn.004ac39a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4abb4f
push esi
push dword [0x4caa24]
push dword [0x51d914]
call fcn.004ab5a5
pop ecx
call eax
test eax, eax
je 0x4abb4f
push 0
push esi
call fcn.004ab6c0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4abb56
call fcn.004ab683
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ac0d0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4ac0e1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ac0de
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4ac100
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4ac13a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ac132
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ac13c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4ac122
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4ad4a3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4ad4cc
call fcn.004a815c
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a80fd
add esp, 0x14
jmp 0x4ad5c3
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4ad5c3
test al, 0x40
jne 0x4ad5c3
test al, 2
je 0x4ad4ee
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4ad5c3
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4ad504
push esi
call fcn.004b00f4
pop ecx
jmp 0x4ad509
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004adc86
pop ecx
push eax
call fcn.004adb89
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4ad5b3
cmp eax, 0xffffffff
je 0x4ad5b3
test byte [esi + 0xc], 0x82
jne 0x4ad588
push esi
call fcn.004adc86
pop ecx
cmp eax, 0xffffffff
je 0x4ad573
push esi
call fcn.004adc86
pop ecx
cmp eax, 0xfffffffe
je 0x4ad573
push esi
call fcn.004adc86
sar eax, 5
push esi
lea edi, [eax*4 + 0x51dbe0]
call fcn.004adc86
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4ad578
mov eax, 0x4cb168
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4ad588
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4ad5a6
mov eax, dword [esi + 0xc]
test al, 8
je 0x4ad5a6
test eax, 0x400
jne 0x4ad5a6
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4ad5c6
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x4afd43
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x51da88]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x4afd8c
call edi
mov esi, eax
cmp esi, ebx
je 0x4afd73
mov dword [0x51da88], 1
jmp 0x4afd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4afd87
mov eax, ebp
mov dword [0x51da88], eax
jmp 0x4afd8c
mov eax, dword [0x51da88]
cmp eax, 1
jne 0x4afe19
cmp esi, ebx
jne 0x4afda8
call edi
mov esi, eax
cmp esi, ebx
jne 0x4afda8
xor eax, eax
jmp 0x4afe71
mov eax, esi
cmp word [esi], bx
je 0x4afdbd
add eax, ebp
cmp word [eax], bx
jne 0x4afdaf
add eax, ebp
cmp word [eax], bx
jne 0x4afdaf
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4afe0e
push ebp
call fcn.004ac35a
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4afe0e
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4afe0a
push dword [esp + 0x10]
call fcn.004a3b8f
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4afe71
cmp eax, ebp
je 0x4afe21
cmp eax, ebx
jne 0x4afda1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x4afda1
cmp byte [esi], bl
je 0x4afe3f
inc eax
cmp byte [eax], bl
jne 0x4afe35
inc eax
cmp byte [eax], bl
jne 0x4afe35
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004ac35a
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4afe5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4afda1
push ebp
push esi
push edi
call fcn.004a42d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4b0827
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ab59c
and dword [ebp - 4], 0
cmp dword [0x51dab4], 0
mov ebx, eax
jne 0x4b08d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b0987
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b0987
push eax
call fcn.004ab52d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51dab4], eax
call esi
push eax
call fcn.004ab52d
mov dword [esp], 0x4c0660
push edi
mov dword [0x51dab8], eax
call esi
push eax
call fcn.004ab52d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51dabc], eax
call esi
push eax
call fcn.004ab52d
pop ecx
mov dword [0x51dac4], eax
test eax, eax
je 0x4b08d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ab52d
pop ecx
mov dword [0x51dac0], eax
mov eax, dword [0x51dac0]
cmp eax, ebx
je 0x4b092e
cmp dword [0x51dac4], ebx
je 0x4b092e
push eax
call fcn.004ab5a5
push dword [0x51dac4]
mov esi, eax
call fcn.004ab5a5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b092e
test edi, edi
je 0x4b092e
call esi
test eax, eax
je 0x4b0925
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b0925
test byte [ebp - 0xc], 1
jne 0x4b092e
or dword [ebp + 0x10], 0x200000
jmp 0x4b0967
mov eax, dword [0x51dab8]
cmp eax, ebx
je 0x4b0967
push eax
call fcn.004ab5a5
pop ecx
test eax, eax
je 0x4b0967
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b0967
mov eax, dword [0x51dabc]
cmp eax, ebx
je 0x4b0967
push eax
call fcn.004ab5a5
pop ecx
test eax, eax
je 0x4b0967
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51dab4]
call fcn.004ab5a5
pop ecx
test eax, eax
je 0x4b0987
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b0989
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3017
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004aff58
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4b309d
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004aff58
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4b309d
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4b3132
jg 0x4b3076
cmp esi, ebx
jbe 0x4b3132
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b30a9
call fcn.004a815c
mov dword [eax], 0xc
call fcn.004a815c
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b31cb
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4b30c9
jg 0x4b30c5
cmp esi, ebx
jb 0x4b30c9
mov eax, ebx
jmp 0x4b30cb
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004ae260
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b3115
cdq
sub esi, eax
sbb edi, edx
js 0x4b30ec
jg 0x4b30bb
test esi, esi
ja 0x4b30bb
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b31cb
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4b319b
call fcn.004a816f
cmp dword [eax], 5
jne 0x4b312a
call fcn.004a815c
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4b30ef
cmp edi, ebx
jg 0x4b31a7
jl 0x4b313c
cmp esi, ebx
jae 0x4b31a7
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004aff58
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b309d
push dword [ebp + 8]
call fcn.004a65b0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4b31a7
call fcn.004a815c
mov dword [eax], 0xd
call fcn.004a816f
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4b309d
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004aff58
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b309d
xor eax, eax
jmp 0x4b30a4
Function at 0x403374
Capabilities:
Query or enumerate registry value

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

Function at 0x404110
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d04c], 0
je 0x404171
cmp word [0x45d220], 0xd7b2
jne 0x404139
cmp dword [0x45d228], 0
jbe 0x404139
mov eax, 0x45d21c
call dword [0x45d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
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 0x404198
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x40418d
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406160
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 0x4061c6
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.00404504
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061cd
lea eax, [ebp - 0x10]
call fcn.00404294
ret

Function at 0x40b2fc
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 0x40b335
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404384
jmp 0x40b33e
mov eax, ebx
mov edx, esi
call fcn.004042e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba00
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b868
mov eax, dword [0x45c0c0]
cmp byte [eax], 0
je 0x40ba7c
mov eax, dword [0x45bed4]
call fcn.00402da4
call fcn.00402c3c
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.00408ab8
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 0x40bac4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bab2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45be84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d668]
call fcn.004055cc
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