joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b18be
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4d0bb8
call fcn.004b879b
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4b19d0
cmp byte [esi + 0x42], bl
je 0x4b19d0
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4b18fa
xor al, al
jmp 0x4b19d2
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00444ba1
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444bc7
mov ecx, eax
call fcn.004450c2
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444bc7
mov ecx, eax
call fcn.004450c2
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4b196a
dec eax
je 0x4b196e
dec eax
dec eax
je 0x4b19cc
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404f03
mov al, bl
jmp 0x4b19d2
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444bc7
mov ecx, eax
call fcn.004450c2
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x4b19ae
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444bc7
mov ecx, eax
call fcn.004450c2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bafa2
add esp, 0x10
cmp edi, eax
jne 0x4b1958
cmp byte [esi + 0x42], 0
je 0x4b19cc
test edi, edi
jne 0x4b1908
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00444c1c
jmp 0x4b1908
mov bl, 1
jmp 0x4b195a
mov al, 1
call fcn.004b881e
ret

Function at 0x4b1fae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52472c]
jne 0x4b1fb8
repz ret
jmp fcn.004bb1e6
Function at 0x4c73c0
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.004b5c0c
and dword [ebp - 4], 0
cmp dword [0x527fa4], 0
mov ebx, eax
jne 0x4c7471
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c7522
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c7522
push eax
call fcn.004b5b9a
mov dword [esp], 0x4ed058
push edi
mov dword [0x527fa4], eax
call esi
push eax
call fcn.004b5b9a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x527fa8], eax
call esi
push eax
call fcn.004b5b9a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x527fac], eax
call esi
push eax
call fcn.004b5b9a
pop ecx
mov dword [0x527fb4], eax
test eax, eax
je 0x4c7471
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b5b9a
pop ecx
mov dword [0x527fb0], eax
mov eax, dword [0x527fb0]
cmp eax, ebx
je 0x4c74c9
cmp dword [0x527fb4], ebx
je 0x4c74c9
push eax
call fcn.004b5c15
push dword [0x527fb4]
mov esi, eax
call fcn.004b5c15
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c74c9
test edi, edi
je 0x4c74c9
call esi
test eax, eax
je 0x4c74c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c74c0
test byte [ebp - 0xc], 1
jne 0x4c74c9
or dword [ebp + 0x10], 0x200000
jmp 0x4c7502
mov eax, dword [0x527fa8]
cmp eax, ebx
je 0x4c7502
push eax
call fcn.004b5c15
pop ecx
test eax, eax
je 0x4c7502
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c7502
mov eax, dword [0x527fac]
cmp eax, ebx
je 0x4c7502
push eax
call fcn.004b5c15
pop ecx
test eax, eax
je 0x4c7502
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x527fa4]
call fcn.004b5c15
pop ecx
test eax, eax
je 0x4c7522
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c7524
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdaaf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movsx ecx, ax
shr eax, 0x10
cwde
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [eax], 0
push edi
mov edi, dword [esi + 0x30]
mov dword [ebp - 0xc], ecx
jmp 0x4cdb17
mov ebx, dword [edi]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x38]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cdb14
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x74]
test al, al
je 0x4cdb14
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
test al, al
jne 0x4cdb32
mov edi, dword [edi + 8]
test edi, edi
jne 0x4cdacf
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4cdb2a
mov eax, dword [ecx]
call dword [eax + 0x54]
and dword [esi + 0x34], edi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov ecx, dword [esi + 0x34]
cmp ebx, ecx
je 0x4cdb45
test ecx, ecx
je 0x4cdb42
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [esi + 0x34], ebx
push 1
xor edi, edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x4cdb5a
inc edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x50]
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x34], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x4cdb2a
Function at 0x404fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4050c6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4050b5
jg 0x405020
test edx, edx
je 0x4050b5
nop dword [eax]
call fcn.00406880
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x405074
jg 0x405037
test esi, esi
je 0x405074
cmp ebx, eax
jg 0x405047
jl 0x405041
cmp edi, esi
jae 0x405047
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00411c90
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x405099
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4050af
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x405020
jl 0x4050af
test edi, edi
jne 0x405020
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4050e8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4050ea
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x405168
jg 0x4050fd
test esi, esi
je 0x405168
test eax, eax
jl 0x40514c
jg 0x405107
test ebx, ebx
je 0x40514c
cmp edi, eax
jg 0x405117
jl 0x405111
cmp esi, ebx
jae 0x405117
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00411c90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x405168
jg 0x40514f
test esi, esi
je 0x405168
jmp 0x40514f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x405168
push eax
push esi
push 1
push edx
call fcn.0041875f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4056c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4056f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40572c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40572c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x405814
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405754
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405787
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00414a89
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4057e7
sub eax, 1
je 0x4057e7
sub eax, 2
jne 0x405814
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00414a89
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405804
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041875f
add esp, 0x10
cmp edi, eax
jne 0x405814
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x405717
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004102c8
mov esp, ebp
pop ebp
ret 4
Function at 0x4065d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40668a
cmp byte [esi + 0x3d], 0
je 0x40668a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406678
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406640
sub eax, 1
je 0x406644
sub eax, 2
jne 0x406678
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406661
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041875f
add esp, 0x10
cmp edi, eax
jne 0x406678
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004102c8
mov esp, ebp
pop ebp
ret

Function at 0x406d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431490
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x443054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004104e4
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040f7a7
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b2f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b439
cmp eax, 1
jne 0x40b322
cmp dword [ebx], 0xffffffff
je 0x40b439
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push 0x400
push eax
call fcn.0040adf0
add esp, 0x14
lea eax, [ebp - 0x408]
push eax
push 0x43eadc
call fcn.0040adc0
mov eax, dword [ebx + 4]
add esp, 8
sub eax, 1
je 0x40b3c8
sub eax, 1
jne 0x40b439
push 0x400
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x808]
push str._asus___s
push eax
call fcn.0040b5a0
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102c8
mov esp, ebp
pop ebp
ret
push 0x43eaec
lea eax, [ebp - 0x408]
push 0x400
push eax
call fcn.0041a55d
lea esi, [ebp - 0x408]
add esp, 0xc
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40b3f0
sub esi, ecx
mov dword [ebp - 0x80c], 0
lea edi, [ebp - 0x408]
nop dword [eax]
push 0
lea eax, [ebp - 0x80c]
push eax
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x80c]
sub esi, dword [ebp - 0x80c]
jne 0x40b410
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004102c8
mov esp, ebp
pop ebp
ret

Function at 0x40db80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40dba3
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0041875f
add esp, 0x10
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0xec]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
lea eax, [ecx + ebx]
cmp eax, dword [esi + 0xe8]
jle 0x40dc0b
add eax, eax
push eax
mov dword [ebp + 0xc], eax
call fcn.00410796
push dword [esi + 0xec]
mov edi, eax
push dword [esi + 0xd0]
push edi
call fcn.00411c90
mov ecx, dword [esi + 0xd0]
lea eax, [esi + 0xd4]
add esp, 0x10
cmp ecx, eax
je 0x40dbf4
push ecx
call fcn.004102d6
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0xec]
mov dword [esi + 0xd0], edi
mov dword [esi + 0xe8], eax
jmp 0x40dc11
mov edi, dword [esi + 0xd0]
lea eax, [ecx + ebx]
mov dword [esi + 0xec], eax
lea esi, [edi - 1]
push ebx
push dword [ebp + 8]
add esi, ecx
push esi
call fcn.00411c90
add esp, 0xc
mov byte [esi + ebx], 0
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x40f3c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea esi, [eax + 1]
push esi
call fcn.00410796
add esp, 4
mov dword [ebx], eax
test esi, esi
je 0x40f41d
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x40f410
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423bb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423a26

Function at 0x429972
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004295ef
Function at 0x656745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x65690a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x656908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x6567b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0064ef12
add esp, 0xc
test ebx, ebx
je 0x6568b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x656899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x6567f5
movzx ebx, ax
jmp 0x6567fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x656871
cmp dword [0x65d5f0], 1
jne 0x656871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0064ef12
lea eax, [esp + 0x34]
push eax
call fcn.006569ee
lea eax, [esp + 0x38]
push 0x64dfa4
push eax
call fcn.0064ef40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0064ef40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0064ef67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x65d590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x6567ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x656777
jmp 0x656906
lea eax, [esp + 0x28]
push eax
call fcn.006569ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x64df88
push eax
call fcn.0064ef40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.0064ef40
add esp, 0x10
cmp dword [0x65d5f0], 1
jne 0x656906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0064ef67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x65d590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x656940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.006569bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x65d460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x65d460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x65d464], eax
push 0
push 0
push 0
push 4
push dword [0x65d464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x65d5f8]
leave
ret
Function at 0x656a44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x656a57
xor eax, eax
jmp 0x656bdb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x656a95
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x656aae
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x656aae
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x656abb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x656af4
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x656ab4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x656b94
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x656b24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x656b83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x656b3c
jmp 0x656b1d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x656b74
jmp 0x656b81
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x656b1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x656af4
and dword [ebp - 0x14], 0
jmp 0x656ba1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x656bd9
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x656b9a
xor eax, eax
leave
ret