joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x10007b15
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x10007b2d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x10007b5c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x10007b9e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x10007c72
sub edx, 0x10000
js 0x10007c72
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x10007b84
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x10007b84
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x10007bf5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x10007bf2
add edx, 8
jne 0x10007bd9
jmp 0x10007c63
add edx, 4
test eax, 0xffff
jne 0x10007c02
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x10007c63
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x10007c36
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10007b84
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x10007c72
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10007b84
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x10007c83
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100099d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024faa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10038070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.1000cd7b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10009a90
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1000ef5d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10036e80
push eax
call fcn.10010757
push edi
push esi
call fcn.1000d0c3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10038070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000b57b
cmp byte [ebx + 0x3d], 0
je 0x1000b57b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000b469
xor al, al
jmp 0x1000b57d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000b150
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000b4d3
sub eax, 1
je 0x1000b4d7
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x1000b52d
xor bl, bl
jmp 0x1000b52f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x1000b50f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.1001460e
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x1000b4cf
cmp byte [ebx + 0x3d], 0
je 0x1000b52d
test esi, esi
jne 0x1000b494
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000b220
jmp 0x1000b48e
mov bl, 1
cmp edx, 0x10
jb 0x1000b577
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x1000b56e
test byte [ebp - 0x28], 0x1f
je 0x1000b54a
call fcn.10013701
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x1000b556
call fcn.10013701
sub eax, ecx
cmp eax, 4
jae 0x1000b562
call fcn.10013701
cmp eax, 0x23
jbe 0x1000b56c
call fcn.10013701
mov eax, ecx
push eax
call fcn.1000e38f
add esp, 4
mov al, bl
jmp 0x1000b57d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret
Function at 0x1000b760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025176
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10038070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000e02c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000cfc0
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.1000b5a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000bc20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push edi
mov esi, ecx
xor edi, edi
push 2
lea eax, [edi + 1]
push eax
push ecx
mov ecx, esi
call fcn.1000c980
mov edi, eax
cmp edi, 0xffffffff
je 0x1000bc9d
lea ecx, [edi + 1]
push ecx
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000a130
cmp dword [eax + 0x14], 0x10
jb 0x1000bc60
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
cmp ecx, 0x10
jb 0x1000bc33
mov eax, dword [ebp - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x1000bc92
test al, 0x1f
jne 0x1000bcd5
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x1000bcd5
sub eax, ecx
cmp eax, 4
jb 0x1000bcd5
cmp eax, 0x23
ja 0x1000bcd5
mov eax, ecx
push eax
call fcn.1000e38f
add esp, 4
jmp 0x1000bc33
mov eax, dword [esi + 0x10]
push 2
dec eax
push eax
push ecx
mov ecx, esi
call fcn.1000c980
cmp eax, 0xffffffff
jne 0x1000bcbf
push 1
push 0x10034da0
mov ecx, esi
call fcn.100091a0
cmp dword [esi + 0x14], 0x10
jb 0x1000bcc7
mov esi, dword [esi]
push 0
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013701
int3
Function at 0x1000c1c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10038070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push 0x1c
push eax
push 0x1000c180
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x20]
jne 0x1000c204
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret
push edi
push 0x10034e80
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1000c225
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000c237
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1000c2ab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1000c2ab
push 0
push 0x22
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x1000c2ab
cmp edi, 0xffffffff
je 0x1000c2ab
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test esi, esi
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1000ddda
mov esp, ebp
pop ebp
ret
Function at 0x1000c3e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025310
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10038070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x10039ce4], 0
jne 0x1000c4c1
push 0xa
push str.kpinfo.zip
lea ecx, [ebp - 0x28]
mov byte [0x10039ce4], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10008f70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.1000c2c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000c1c0
add esp, 8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1000bce0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
push str.Start
push 0x10034e90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c49f
call eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x40]
call fcn.100089a0
lea ecx, [ebp - 0x28]
call fcn.100089a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret

Function at 0x1001b2f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001b170
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x320b3310
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5b062e5f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4039bd
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4e3cc8], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x4039f7
push 0x402df0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4336d8]
mov edi, dword [0x4336dc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.004039b6
mov eax, dword [0x4336e0]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x4336e4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4e3cc8], 0xc
mov dword [ebp - 4], ecx
jne 0x403a9b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402e04
push 0x402e1c
push 0x402e50
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4e3cc8]
cmp ecx, 0xfa9
jne 0x403ab9
mov dword [0x4e3264], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403ac7
mov dword [0x4e2c14], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4e3260], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4e3cc8], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403b02
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4e3cc8], 0xc
jne 0x403b3f
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402e60
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402eb8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x403a33
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403b8d
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e3cc8]
mov ecx, dword [0x4e2c18]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403c84
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4e3cc8], 0x959
jne 0x403c72
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402f00
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402f4c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402f64
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push 0x402fa8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call fcn.004039bd
add ebx, 8
dec dword [ebp - 4]
jne 0x403bb6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x403248
call dword [sym.imp.KERNEL32.dll__lopen]
cmp ebx, edi
jle 0x403fe3
cmp dword [esp + 0x10], 0x785074d5
jne 0x403fec
inc ebx
cmp ebx, 0x1c1b
jl 0x403fc3
mov ebx, 0x5d744c
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec ebx
jne 0x403ff1
cmp dword [0x4e3cc8], 0x400
jne 0x40405f
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push esi
push esi
call fcn.00405131
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403951
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403974
fstp st(0)
push esi
call fcn.00405733
pop ecx
push esi
call fcn.00405583
pop ecx
push esi
push esi
call fcn.00405025
pop ecx
pop ecx
mov eax, dword [0x433aac]
mov dword [0x4e3cc8], eax
mov eax, dword [0x433a80]
mov dword [0x4e3ccc], eax
call fcn.00403d58
xor ebx, ebx
push 0x4032a0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404093
cmp dword [esp + 0x10], 0x785074d5
jne 0x40409c
inc ebx
cmp ebx, 0x11915
jl 0x40407a
mov edi, 0x3078f
cmp dword [0x4e3cc8], 0x51f
jne 0x4040cd
push 0x4032a8
push esi
lea eax, [esp + 0x20]
push eax
push 0x4032f8
push 0x4032d4
push 0x4033d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec edi
jne 0x4040a1
mov eax, dword [0x4e2c18]
mov dword [0x4e325c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405e3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4327fc]
jne 0x405e45
repz ret
jmp fcn.0040b0dc
Function at 0x40f512
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.00408bcc
and dword [ebp - 4], 0
cmp dword [0x43483c], 0
mov ebx, eax
jne 0x40f5c3
push 0x402d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f674
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d50
push edi
call esi
test eax, eax
je 0x40f674
push eax
call fcn.00408b5a
mov dword [esp], 0x402d40
push edi
mov dword [0x43483c], eax
call esi
push eax
call fcn.00408b5a
mov dword [esp], 0x402d2c
push edi
mov dword [0x434840], eax
call esi
push eax
call fcn.00408b5a
mov dword [esp], 0x402d10
push edi
mov dword [0x434844], eax
call esi
push eax
call fcn.00408b5a
pop ecx
mov dword [0x43484c], eax
test eax, eax
je 0x40f5c3
push 0x402cf8
push edi
call esi
push eax
call fcn.00408b5a
pop ecx
mov dword [0x434848], eax
mov eax, dword [0x434848]
cmp eax, ebx
je 0x40f61b
cmp dword [0x43484c], ebx
je 0x40f61b
push eax
call fcn.00408bd5
push dword [0x43484c]
mov esi, eax
call fcn.00408bd5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f61b
test edi, edi
je 0x40f61b
call esi
test eax, eax
je 0x40f612
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f612
test byte [ebp - 0xc], 1
jne 0x40f61b
or dword [ebp + 0x10], 0x200000
jmp 0x40f654
mov eax, dword [0x434840]
cmp eax, ebx
je 0x40f654
push eax
call fcn.00408bd5
pop ecx
test eax, eax
je 0x40f654
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f654
mov eax, dword [0x434844]
cmp eax, ebx
je 0x40f654
push eax
call fcn.00408bd5
pop ecx
test eax, eax
je 0x40f654
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43483c]
call fcn.00408bd5
pop ecx
test eax, eax
je 0x40f674
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f676
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40134f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
nop
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, 0
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x402200]
push eax
call sub.kernel32.dll_WriteFile
leave
ret