joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457b74
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414554]
call fcn.00404870
xor eax, eax
push ebp
push 0x457cb8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x460dd0], 0
jne 0x457bc7
mov ecx, dword [0x460eb4]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b6dc
call fcn.00403914
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b9c
mov eax, ebx
call fcn.00404740
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x457cc8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004057fc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404750
test eax, eax
jle 0x457c5f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x457c58
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404160
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404148
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407ed8
test eax, eax
jne 0x457c58
mov ebx, 0x15
jmp 0x457c64
mov ebx, 0x10
jmp 0x457c64
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x460dd0]
call fcn.00457acc
mov eax, dword [ebp - 8]
call fcn.00457acc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457cbf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 0x10]
mov edx, dword [0x414554]
call fcn.00404940
ret
Function at 0x413fb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00425780
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00425780
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x414010
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x523060]
test esi, esi
jle 0x414130
mov eax, dword [0x523064]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x414044
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4140c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x414030
mov dword [esp], ebx
call fcn.00414a30
mov edi, eax
test eax, eax
je 0x414157
mov eax, dword [0x523064]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00414b70
mov edx, dword [0x523064]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x414137
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4140c0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4140d0
add dword [0x523060], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x523064]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4140c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00413fb0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x41404e
mov eax, dword [0x523064]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00413fb0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00413fb0
lea esi, [esi]
nop
Function at 0x414730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x414860
ja 0x414778
test eax, eax
je 0x4147f8
mov eax, dword [0x523078]
test eax, eax
je 0x4148e0
mov dword [0x523078], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x414765
mov eax, dword [0x523078]
test eax, eax
je 0x414765
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x523074]
sub esp, 4
test ebx, ebx
je 0x4147dd
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x414908
test ebp, ebp
je 0x414908
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4147b0
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x414765
mov eax, dword [0x523078]
test eax, eax
jne 0x414878
mov eax, dword [0x523078]
cmp eax, 1
jne 0x414765
mov ebx, dword [0x523074]
test ebx, ebx
je 0x414831
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x414820
mov dword [0x523074], 0
mov dword [0x523078], 0
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x414765
call fcn.00413fa0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x523074]
sub esp, 4
test ebx, ebx
je 0x4148c5
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x4148f8
test ebp, ebp
je 0x4148f8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4148a0
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x414801
mov dword [esp], 0x52307c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x41475b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4148a0
jmp 0x4148c5
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4147b0
jmp 0x4147dd

Function at 0x414a30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x414a55
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x414a60
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x414a55
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x414aa8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x414a9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x414aaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x414a90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x414ed0
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x414f00
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp fcn.004258c0
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x414f40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x414f80
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x414fa8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4152a0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x515014]
test eax, eax
je 0x4152bb
mov eax, dword [0x515018]
test eax, eax
je 0x4152d0
mov eax, dword [0x515020]
test eax, eax
jns 0x415320
mov dword [0x515020], 0
ret
push ebx
sub esp, 0x18
lock add dword [0x51501c], 1
jne 0x415328
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x415370
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x5230a8], eax
call fcn.004258c0
mov dword [0x515018], 1
test eax, eax
sete al
movzx eax, al
mov dword [0x515020], eax
add esp, 0x18
pop ebx
ret
ret
mov eax, dword [0x515018]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x415356
lea esi, [esi]
nop
mov dword [esp], 0
call ebx
mov ecx, dword [0x515018]
sub esp, 4
test ecx, ecx
je 0x415340
mov edx, dword [0x515020]
test edx, edx
jns 0x415319
mov dword [0x515020], 0
add esp, 0x18
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415302

Function at 0x415380
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x24
mov edx, dword [0x515020]
test edx, edx
js 0x4153a0
mov eax, dword [0x5230ac]
test edx, edx
jne 0x4153b4
add esp, 0x24
pop ebx
pop esi
ret
call fcn.004152a0
mov edx, dword [0x515020]
mov eax, dword [0x5230ac]
test edx, edx
je 0x415398
mov esi, dword [0x5230a8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x1c]
add esp, 0x24
pop ebx
pop esi
ret
Function at 0x415450
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov edi, eax
push esi
mov esi, 1
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov ebp, dword [edx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x41548f
mov dword [0x5230ac], ebp
mov eax, dword [ebx]
add esi, 1
mov ebp, dword [eax]
mov dword [ebx], ebp
mov eax, dword [edi]
mov edx, dword [edi + 4]
test ebp, ebp
je 0x415560
mov ecx, dword [esp + 0x28]
mov ebp, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call eax
test eax, eax
jne 0x415591
test ebp, ebp
je 0x415510
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 4], 0xa
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ebp
cmp eax, 7
je 0x4155a5
cmp eax, 8
jne 0x415591
mov eax, dword [ebx]
mov ebp, dword [eax]
mov eax, dword [0x515020]
test eax, eax
js 0x415550
test eax, eax
je 0x415480
mov eax, dword [0x5230a8]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x415486
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415486
call fcn.004152a0
mov eax, dword [0x515020]
jmp 0x41551d
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
je 0x4155a0
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 5
mov edx, dword [esp + 0x2c]
mov dword [edx], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4155c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x515020]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x415640
test eax, eax
jne 0x4155f0
mov eax, dword [0x5230ac]
mov dword [0x5230ac], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x5230a8]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x5230a8]
mov dword [ebx], esi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4155e5
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.004152a0
mov eax, dword [0x515020]
jmp 0x4155d4
Function at 0x415650
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x515020]
test eax, eax
js 0x4156a0
test eax, eax
jne 0x415678
mov dword [0x5230ac], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x5230a8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x41566d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004152a0
mov eax, dword [0x515020]
jmp 0x415663
Function at 0x415790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x515020]
mov esi, dword [esp + 0x50]
test eax, eax
js 0x415818
mov edi, dword [0x5230ac]
test eax, eax
jne 0x41582c
mov dword [esp + 0x2c], edi
test edi, edi
je 0x415805
mov eax, edi
lea ebx, [esp + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4157fb
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x415860
cmp eax, 8
jne 0x4158e0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4157bc
mov eax, 5
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004152a0
mov eax, dword [0x515020]
mov edi, dword [0x5230ac]
test eax, eax
je 0x4157ae
mov edi, dword [0x5230a8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4157ae
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], 0
mov dword [esp + 0x2c], edi
mov dword [esi + 0x10], eax
jmp 0x41587b
mov eax, dword [esi + 0x10]
cmp edi, eax
mov ecx, dword [edi + 0x18]
sete al
movzx eax, al
lea ebp, [eax*4]
test ecx, ecx
je 0x4158c6
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, ebp
or eax, 2
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 7
je 0x4158ea
cmp eax, 8
jne 0x4158d0
mov edi, dword [esp + 0x2c]
mov edi, dword [edi]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x415878
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 3
jmp 0x41580a
mov eax, ebx
call fcn.004153f0
lea esi, [esi]
lea esi, [esi]
nop
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x515020]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x415950
mov esi, dword [0x5230ac]
test edx, edx
jne 0x415965
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.00415450
cmp eax, 7
je 0x41598f
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.004152a0
mov edx, dword [0x515020]
mov esi, dword [0x5230ac]
test edx, edx
je 0x41591e
mov esi, dword [0x5230a8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x41591e
lea eax, [esp + 0x18]
call fcn.004153f0
lea esi, [esi]
nop
Function at 0x415a30
Capabilities:
Get thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x415a48
add esp, 0x18
pop ebx
jmp fcn.00415790
call fcn.00415380
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 8], eax
mov eax, ebx
call fcn.00415450
lea eax, [esp + 8]
call fcn.004153f0
lea esi, [esi]
Function at 0x4afe30
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x58
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
mov dword [esp + 0x34], 0x5109a0
mov dword [esp + 0x38], 0x514b90
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x4afed5
mov dword [esp + 0x44], esp
call fcn.004155c0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x20], 1
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll__read
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4afec0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00415650
mov eax, dword [esp + 0x14]
add esp, 0x58
pop ebp
ret 8
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x4afea3
jmp 0x4afe64
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043d8
test esi, esi
jne 0x402e23
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.004044c8
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034d8
Capabilities:
Query or enumerate registry value

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

Function at 0x404254
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x4042b5
cmp word [0x46c21c], 0xd7b2
jne 0x40427d
cmp dword [0x46c224], 0
jbe 0x40427d
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46906c
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 0x4042dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x4042d1
push 0
push 0x469064
push 0x46906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406028
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 0x40608e
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.00404648
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403090
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406078
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406095
lea eax, [ebp - 0x10]
call fcn.004043d8
ret

Function at 0x408c14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x408c45
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x408c4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x408c7d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404898
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x408d8a
test byte [ebp - 0xc], 0x10
jne 0x408d8e
xor eax, eax
jmp 0x408d90
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x408d9c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x409068
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404898
push eax
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret