joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ec78
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x52ecb0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0052cd2f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0052cd07
jmp 0x52ecbc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x53036a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5303ac
call fcn.005361e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5303ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5303a3
xor eax, eax
jmp 0x5303b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005303ba
pop edi
pop esi
pop ebx
ret 4

Function at 0x536718
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x536746
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x536764
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053667e
jmp 0x536764
mov eax, dword [esi + 0x14]
test eax, eax
je 0x536764
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053667e
test edi, edi
mov eax, edi
jne 0x53674e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Link many functions at runtime
Set console window title

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x20]
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call ebx
add esp, 4
mov esi, eax
push 0
call ebx
add esp, 4
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push esi
push 0x100077fc
push str.CONIN_
push eax
call ebp
add esp, 0x10
push 1
call ebx
add esp, 4
mov esi, eax
push 1
call ebx
add esp, 4
push esi
push 0x100077e4
push str.CONOUT_
push eax
call ebp
add esp, 0x10
push 0x10007a79
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor esi, esi
cmp edi, 1
jne 0x10001139
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 1
test eax, eax
je 0x10001139
push str.RtlAdjustPrivilege
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001139
lea ecx, [esp + 3]
push ecx
push 0
push 1
push 0x14
call eax
push 0x10
call fcn.10004ef6
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [0x100094dc], eax
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10001139
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCloseKey
push eax
call ebx
mov ecx, dword [0x100094dc]
mov dword [ecx + 8], eax
push str.RegOpenKeyExA
push edi
call ebx
mov ecx, dword [0x100094dc]
mov dword [ecx], eax
push str.RegQueryValueExA
push edi
call ebx
mov ecx, dword [0x100094dc]
mov dword [ecx + 4], eax
push str.RegSetValueExA
push edi
call ebx
mov ecx, dword [0x100094dc]
mov dword [ecx + 0xc], eax
push 1
call fcn.10004ef6
add esp, 4
mov ecx, eax
call fcn.100017c0
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10004f5c
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10002120
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [0x100094d4]
test eax, eax
je 0x10002164
mov edi, ecx
xor ebx, ebx
mov ebp, 0x14
mov ecx, dword [0x100094cc]
nop word [eax + eax]
mov edx, dword [ecx + ebp]
shr edx, 1
and edx, 1
cmp edx, edi
jne 0x1000216b
inc ebx
add ebp, 0x2c
cmp eax, ebx
jne 0x10002150
xor esi, esi
jmp 0x1000222a
xor eax, eax
test edi, edi
setne al
lea ecx, [esp + 4]
mov edx, 0xffffffff
push eax
call fcn.10002470
add esp, 4
mov eax, dword [0x100094d4]
xor esi, esi
cmp ebx, eax
jae 0x100021d0
mov ecx, dword [0x100094cc]
jmp 0x100021a8
inc ebx
add ebp, 0x2c
cmp ebx, eax
jae 0x100021d0
mov edx, dword [ecx + ebp]
shr edx, 1
and edx, 1
cmp edx, edi
je 0x100021a0
mov ecx, ebx
mov edx, edi
call fcn.100027e0
test eax, eax
jne 0x100021ce
mov ecx, dword [0x100094cc]
mov eax, dword [0x100094d4]
jmp 0x100021a0
mov esi, eax
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x1000222a
mov dword [esp], esi
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x10002218
xor esi, esi
jmp 0x100021f5
inc esi
cmp ebp, esi
je 0x10002218
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x100021f0
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100021f0
push ebx
push 0
push dword [0x100094c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10004f5c
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100027e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 0xc], eax
mov esi, dword [0x100094cc]
imul ebp, ecx, 0x2c
mov ecx, dword [esi + ebp]
movzx eax, byte [esi + ebp + 0x14]
xor edx, edx
test al, 1
sete dl
lea edx, [edx + edx*4]
lea edi, [ecx + edx]
add edi, 0xfffffffb
and eax, 1
lea eax, [eax*2 + 5]
lea ecx, [esp + 8]
push ecx
push 0x40
mov dword [esp + 0xc], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002866
lea ecx, [esi + ebp]
add ecx, 0x14
test ebx, ebx
mov dword [esp], ecx
je 0x1000286d
mov byte [edi], 0xe9
mov eax, dword [esi + ebp + 4]
sub eax, edi
add eax, 0xfffffffb
mov dword [edi + 1], eax
test byte [ecx], 1
lea edx, [esp + 8]
je 0x10002891
add esi, ebp
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10002891
mov esi, 0xa
jmp 0x100028cb
test byte [ecx], 1
lea eax, [esi + ebp + 0xc]
lea edx, [esp + 8]
jne 0x10002887
movzx ecx, byte [eax + 4]
mov byte [edi + 4], cl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x10002891
mov ecx, dword [eax]
mov eax, dword [eax + 3]
mov dword [edi + 3], eax
mov dword [edi], ecx
push edx
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp]
movzx eax, byte [edx]
and bl, 1
mov ecx, ebx
add cl, bl
and al, 0xf9
or al, cl
shl bl, 2
or bl, al
mov byte [edx], bl
xor esi, esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10004f5c
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002900
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], edx
mov ebx, ecx
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 0x10], eax
xor esi, esi
mov ebp, 1
xor eax, eax
lock cmpxchg dword [0x100094c4], ebp
je 0x10002948
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp esi, 0x20
setae al
push eax
call edi
inc esi
xor eax, eax
lock cmpxchg dword [0x100094c4], ebp
jne 0x10002930
cmp dword [0x100094c8], 0
je 0x10002991
test ebx, ebx
je 0x1000299b
mov ecx, dword [0x100094d4]
mov esi, 4
test ecx, ecx
je 0x10002a38
mov eax, dword [0x100094cc]
neg ecx
xor ebp, ebp
nop word cs:[eax + eax]
cmp dword [eax], ebx
je 0x100029aa
dec ebp
add eax, 0x2c
cmp ecx, ebp
jne 0x10002980
jmp 0x10002a38
mov esi, 2
jmp 0x10002a38
mov ecx, dword [esp]
call fcn.10002120
mov esi, eax
jmp 0x10002a38
cmp ebp, 1
je 0x10002a38
mov eax, dword [eax + 0x14]
shr eax, 1
and eax, 1
mov edi, dword [esp]
cmp eax, edi
jne 0x100029cc
xor esi, esi
cmp edi, 1
adc esi, 5
jmp 0x10002a38
neg ebp
lea ecx, [esp + 4]
mov edx, ebp
push 1
call fcn.10002470
add esp, 4
mov ecx, ebp
mov edx, edi
call fcn.100027e0
mov esi, eax
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x10002a38
mov eax, dword [esp + 0xc]
mov dword [esp], eax
test eax, eax
je 0x10002a29
xor ebp, ebp
jmp 0x10002a06
inc ebp
cmp dword [esp], ebp
je 0x10002a29
push dword [ebx + ebp*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x10002a00
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002a00
push ebx
push 0
push dword [0x100094c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
xchg dword [0x100094c4], eax
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10004f5c
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10003b90
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp ebx, 0xffffffff
je 0x10003c6a
mov esi, ecx
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x10003bd6
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x10003bd6
dec ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x10003cae
cmp dword [esi + 0x4c], 0
je 0x10003c6e
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
cmp dword [eax], ecx
jne 0x10003bfe
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10003c75
mov byte [esp + 0xb], bl
lea edx, [esi + 0x40]
mov edi, dword [ecx]
mov ebp, esp
lea eax, [esp + 0xc]
push ebp
lea ebp, [esp + 0x30]
push ebp
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push edx
call dword [edi + 0x1c]
mov edi, 0xffffffff
cmp eax, 2
jae 0x10003c8d
mov ebp, dword [esp]
lea eax, [esp + 0xc]
sub ebp, eax
je 0x10003c57
push dword [esi + 0x4c]
push ebp
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebp, eax
jne 0x10003cac
mov byte [esi + 0x3d], 1
lea eax, [esp + 0xb]
cmp dword [esp + 4], eax
mov eax, 0xffffffff
jmp 0x10003ca7
xor ebx, ebx
jmp 0x10003cae
mov ebx, 0xffffffff
jmp 0x10003cae
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
jmp 0x10003cae
cmp eax, 3
jne 0x10003cac
movsx eax, byte [esp + 0xb]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov edi, ebx
mov ebx, edi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004f5c
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10004060
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x10004090
cmp dword [ebx + 0x38], 0
je 0x10004099
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
xor eax, eax
xor edx, edx
jmp 0x1000414b
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 4], esi
je 0x100040d4
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x100040d4
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x1000413f
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x100040f8
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop
cmp esi, 0x1000
jb 0x10004125
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call edi
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, 0xfff
je 0x10004100
jmp 0x1000413f
test esi, esi
je 0x1000413d
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
jmp 0x1000413f
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10004160
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
cmp dword [ecx + 0x38], 0
je 0x1000417e
mov ecx, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x100041f9
cmp ebp, 1
mov ecx, edx
sbb ecx, 0
jl 0x100041f9
mov esi, ebp
mov ecx, dword [ebx + 0x30]
mov ebp, dword [ecx]
test ebp, ebp
jle 0x10004200
mov dword [esp + 4], 0
mov dword [esp + 8], esi
cmp ebp, esi
mov ecx, 0
sbb ecx, edx
mov ecx, dword [esp + 4]
cmovae ecx, edx
mov dword [esp + 4], ecx
cmovae ebp, esi
push ebp
push edi
push eax
mov esi, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, esi
add esp, 0xc
add edi, ebp
mov dword [esp], edi
mov ecx, dword [esp + 8]
mov edi, ecx
sub edi, ebp
sbb esi, dword [esp + 4]
mov eax, dword [ebx + 0x30]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov ebp, ecx
jmp 0x10004209
mov dword [esp], edi
mov edi, ebp
jmp 0x10004207
mov dword [esp], edi
mov ebp, esi
mov edi, esi
mov esi, edx
cmp edi, 1
mov eax, esi
sbb eax, 0
jl 0x10004234
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10004234
push eax
push edi
push 1
push dword [esp + 0xc]
mov ebx, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, ebx
add esp, 0x10
sub edi, eax
sbb esi, 0
sub ebp, edi
sbb edx, esi
mov eax, ebp
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x10004630
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x10009440]
xor eax, esp
mov dword [esp + 0x24], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x100046b1
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x100046b1
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100046af
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x24]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
mov ebp, esp
lea edi, [esp + 4]
push ebp
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x100046c6
cmp eax, 1
je 0x1000468b
test eax, eax
jne 0x100046af
mov byte [esi + 0x3d], 0
mov ebx, dword [esp]
sub ebx, edi
je 0x100046a6
push dword [esi + 0x4c]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x100046af
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x100046b1
xor ebx, ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10004f5c
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x100046b1
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x465551
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x51a66c]
cmp eax, 0xffffffff
jne 0x46565d
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa25e00
call sub.msvcrt.dll_memset
mov dword [0xa25e00], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa25e44
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa25e44
mov dword [esp + 0x20], 0xa25e00
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x465653
mov eax, dword [0xa25e44]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa25e44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa25e48]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x51a66c], 1
jmp 0x46565d
mov dword [0x51a66c], 0
mov eax, dword [0x51a66c]
leave
ret
Function at 0x47664a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00476246
test eax, eax
sete al
test al, al
je 0x476676
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x476729
mov edx, dword [0x68b69c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa1510c], eax
mov eax, dword [0xa1510c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x4766ad
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x476729
mov eax, dword [0x68b698]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa15110], eax
mov edi, 0xa15118
mov eax, dword [0xa15110]
mov eax, dword [eax]
mov dword [esp + 4], 0xa1511c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa15118]
mov edx, dword [0xa1511c]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x47671e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x47671e
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x476729
mov eax, dword [0xa15118]
mov edx, dword [0xa1511c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4780cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00476246
test eax, eax
sete al
test al, al
je 0x47810d
mov eax, 0xfffffffe
jmp 0x4782c7
mov edx, dword [0x68b69c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa15054], eax
mov eax, dword [0xa15054]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x478142
mov eax, 0xfffffffd
jmp 0x4782c7
cmp dword [ebp - 0x14], 0
jns 0x478152
mov eax, 0xfffffffc
jmp 0x4782c7
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x47819c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00477f95
mov dword [0xa15058], eax
mov eax, dword [0xa15058]
test eax, eax
setne al
test al, al
je 0x47819c
mov eax, dword [0xa15058]
jmp 0x4782c7
mov eax, dword [0x68b698]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa1505c], eax
jmp 0x4782ad
cmp dword [ebp - 0x14], 0
jle 0x4781cd
mov dword [0xa15060], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x4781e3
mov eax, dword [ebp - 0x18]
mov dword [0xa15060], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa15060]
mov eax, dword [0xa1505c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa15068
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x47824f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa15070], eax
mov eax, dword [0xa15070]
cmp eax, 5
je 0x478241
mov eax, dword [0xa15070]
cmp eax, 0x21
jne 0x478248
mov eax, 0xfffffff9
jmp 0x4782c7
mov eax, 0xfffffff7
jmp 0x4782c7
mov eax, dword [0xa15068]
mov edx, dword [0xa1506c]
add dword [ebp + 0x14], eax
mov esi, dword [0xa15054]
mov eax, dword [0xa15054]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa15068]
mov edx, dword [0xa1506c]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa15060]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa15068]
mov edx, dword [0xa1506c]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x4782ad
mov eax, 0xffffffff
jmp 0x4782c7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x4781b3
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x48f17b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48f1c5
mov dword [esp], 7
call fcn.00442594
mov eax, dword [ebp - 0x14]
jmp 0x48f260
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov edx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp edx, eax
setne al
test al, al
je 0x48f221
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.00443cae
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.00442594
mov eax, dword [ebp - 0x14]
jmp 0x48f260
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00443cae
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x4977e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa377a0], eax
jmp fcn.00496fd0