joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab1d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 4
push 0x1000
mov dword [ebp - 0x1d4], eax
lea eax, [edi + 0x1b8]
mov dword [ebp - 0x1c8], edx
push eax
push 0
push esi
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1d0], edi
call dword [0x425160]
mov ebx, eax
test ebx, ebx
je 0x40ad69
and dword [ebp - 0x1c4], 0
lea eax, [ebp - 0xc8]
push 0x40
push 0
push eax
call fcn.0040c710
add esp, 0xc
mov eax, 0x5a4d
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0x1c4]
push 0x40
pop ecx
push eax
push ecx
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x8c], ecx
push eax
push ebx
push esi
call dword [0x425158]
test eax, eax
je 0x40ad69
cmp dword [ebp - 0x1c4], 0x40
jne 0x40ad69
push 0xf8
lea eax, [ebp - 0x1c0]
add ebx, 0x40
push 0
push eax
call fcn.0040c710
xor eax, eax
mov dword [ebp - 0x1c0], 0x4550
inc eax
mov dword [ebp - 0x1ac], 0x200000e0
add esp, 0xc
mov word [ebp - 0x1ba], ax
mov eax, 0x10b
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1c4]
push eax
push 0xf8
lea eax, [ebp - 0x1c0]
push eax
push ebx
push esi
call dword [0x425158]
test eax, eax
je 0x40ad69
mov eax, 0xf8
cmp dword [ebp - 0x1c4], eax
jne 0x40ad69
add ebx, eax
mov dword [ebp - 0x2c], 0x7465642e
xor eax, eax
mov dword [ebp - 0x28], 0x72756f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [edi + 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x160
push eax
push ebx
push esi
call dword [0x425158]
test eax, eax
je 0x40ad69
cmp dword [ebp - 0x1c4], 0x28
jne 0x40ad69
push 0x40
lea eax, [ebp - 0x88]
add ebx, 0x28
push 0
push eax
call fcn.0040c710
add esp, 0xc
mov dword [ebp - 0x84], 0x727444
lea eax, [edi + 0x58]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x1c4]
push 0x40
pop ecx
push eax
push ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
push eax
push ebx
push esi
mov dword [ebp - 0x80], ecx
call dword [0x425158]
test eax, eax
je 0x40ad69
cmp dword [ebp - 0x1c4], 0x40
jne 0x40ad69
and dword [ebp - 0x40], 0
lea eax, [edi + 0x18]
mov esi, dword [ebp - 0x1c8]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
add ebx, 0x40
lea eax, [ebp - 0x1c4]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push 0x18
push eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1cc]
push esi
call dword [0x425158]
test eax, eax
je 0x40ad69
cmp dword [ebp - 0x1c4], 0x18
jne 0x40ad69
mov edi, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1c4]
push eax
push edi
push dword [ebp - 0x1d4]
lea ecx, [ebx + 0x18]
push ecx
push esi
call dword [0x425158]
adc eax, 0x425158
Function at 0x41ffba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x406c94
push esi
push eax
call fcn.00420a61
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x42006b
push 2
push 0
push dword [ebp - 4]
call fcn.00420fde
add esp, 0xc
test eax, eax
jne 0x420063
push dword [ebp - 4]
call fcn.00421550
mov edi, eax
pop ecx
test edi, edi
js 0x420063
lea ecx, [edi + 8]
push ecx
call fcn.00411aee
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x420025
push esi
push 0x7db
call fcn.004085b0
jmp 0x420076
push 0
push 0
push dword [ebp - 4]
call fcn.00420fde
add esp, 0xc
test eax, eax
jne 0x420063
push dword [ebp - 4]
push edi
push 1
push dword [ebx]
call fcn.00420c74
mov ecx, dword [ebx]
mov esi, eax
mov byte [edi + ecx], 0
mov ecx, dword [ebx]
mov byte [ecx + edi + 1], 0
push dword [ebp - 4]
call fcn.0041b35a
add esp, 0x14
mov eax, esi
jmp 0x42007b
push esi
push 0x7dc
jmp 0x42001e
push esi
push 0x7da
call fcn.004085cc
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422453
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004222d2

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

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403130
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c865
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x441018]
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
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x4032ff
cmp word [eax], 0
je 0x4032ff
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x30], 1
jl 0x4032ff
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031a2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e90
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4032f7
mov edx, 0x43b068
lea ecx, [ebp - 0x2c]
call fcn.00404080
test al, al
jne 0x4031ef
mov edx, 0x43b070
lea ecx, [ebp - 0x2c]
call fcn.00404080
test al, al
je 0x4031f3
mov byte [ebx + 0x7c], 1
mov edx, 0x43b078
lea ecx, [ebp - 0x2c]
xor edi, edi
call fcn.00404080
test al, al
je 0x403210
mov edi, 0x50c8
jmp 0x4032db
mov edx, str.zhTW
lea ecx, [ebp - 0x2c]
call fcn.00404080
test al, al
je 0x40322b
mov edi, 0x2828
jmp 0x4032db
mov edx, str.zhCN
lea ecx, [ebp - 0x2c]
call fcn.00404080
test al, al
je 0x403246
mov edi, 0x5028
jmp 0x4032db
mov edx, 0x43b098
lea ecx, [ebp - 0x2c]
call fcn.00404080
test al, al
je 0x40325e
mov edi, 0x5104
jmp 0x4032db
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push eax
push 0x43b0c4
push 0x17
push 0
push 0x42f7d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4032b7
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x38]
mov ecx, dword [eax]
mov esi, dword [ecx + 0x38]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, esi
call dword [0x42f1a4]
call esi
test eax, eax
cmove edi, dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4032db
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42f1a4]
call esi
mov eax, 0xcccccccd
xor ecx, ecx
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp edi, eax
cmove ecx, edi
mov dword [ebx + 0x8c], ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d90
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.00413d18
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403af1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403af1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0xa
lea edx, [esi + eax]
cmp esi, edx
jae 0x403af1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403ad0
cmp esi, edx
jae 0x403af1
cmp word [esi], cx
je 0x403af1
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40be30
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d24b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x23c], edi
push 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bec0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00401e90
mov dword [ebp - 4], 0
mov eax, 0x7ffffffe
mov ecx, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 1
jb 0x40c034
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 1
cmovae eax, dword [ebp - 0x238]
push 0x43bb1c
push ecx
push eax
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x254]
call fcn.0040c0d0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x40bf3d
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x254]
call fcn.00406b50
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x40bfbb
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c039
push edx
push ecx
call fcn.00413d29
add esp, 8
mov edx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp edx, 8
jb 0x40c014
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c00a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c039
push edx
push ecx
call fcn.00413d29
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413d18
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402170
call fcn.0041822f
int3
Function at 0x40dde0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d4f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x441018]
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], 0x43afa0
call fcn.00413d37
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004131f4
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 0x414ddf
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xor al, byte [ebx + 0x41]
inc edx
xor al, 0x83
add esp, 4
add ecx, 0x64ff
xor ecx, 0x13a8
sub ecx, 0xa448
pop ecx
invalid
invalid

Function at 0x415425
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
pop di
add byte [eax], al
add ecx, 0x12781
and ecx, 0x1274a
pop ecx
push esi
add esi, 0x14dac
pop esi
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x5fc], ecx
mov edx, dword [ebp - 0x5fc]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x634]
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 0
jne 0x41547b
mov dword [ebp - 0x80], 0
jmp 0x4155c4
mov edx, dword [ebp - 0x438]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
invalid
Function at 0x41824c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x9c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x18], 0
jmp 0x41826d
mov edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x18]
movsx eax, byte [edx]
test eax, eax
je 0x4182cd
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x18]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ebp + ecx - 0x218]
cmp eax, edx
jne 0x4182f4
mov dword [ebp - 0x328], 0
jmp 0x41832b
mov eax, dword [ebp - 0x154]
add eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x18]
movsx eax, byte [ebp + edx - 0x218]
or eax, 0x20
cmp ecx, eax
jge 0x418321
mov dword [ebp - 0x328], 0xffffffff
mov dword [ebp - 0x328], 1
cmp dword [ebp - 0x328], 0
jne 0x418342
mov ecx, dword [ebp - 0x60c]
mov dword [ebp - 0xbc], ecx
jmp 0x418353
jmp 0x4181f7

Function at 0x418280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movsx edx, byte [ebp + ecx - 0x218]
test edx, edx
je 0x4182cd
mov eax, dword [ebp - 0x154]
add eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x18]

Function at 0x41829b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
movsx eax, byte [ebp + edx - 0x218]
cmp ecx, eax
je 0x4182c5
mov ecx, dword [ebp - 0x154]
add ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ebp + eax - 0x218]
cmp edx, ecx
jne 0x4182c9
jmp 0x418264
jmp 0x4182cd

Function at 0x418362
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ebp - 0x610], eax
mov ecx, dword [ebp - 0x610]
mov dword [ebp - 0x614], ecx
lea edx, [ebp - 0x484]
push edx
call dword [ebp - 0x614]
test eax, eax
jne 0x418394
mov eax, dword fs:[0x18]
mov dword [ebp - 0x618], eax
mov ecx, dword [ebp - 0x618]
mov edx, dword [ecx + 0x30]
invalid
xchg ebp, eax
Function at 0x406670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41e8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4043f4
call fcn.004091e4
push 4
mov dword [esp + 0x18], 0
call fcn.0040aa33
mov edi, eax
add esp, 4
test edi, edi
je 0x4066e4
push ebx
call fcn.00408fdf
mov dword [edi], eax
call fcn.00408d9e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004091a5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4066d8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004091cd
pop ebx
jmp 0x4066e6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b52b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223ec]
jne 0x40b535
repz ret
jmp fcn.004127ac
Function at 0x417f3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e995
and dword [ebp - 0x14], 0
cmp dword [0x439e54], 0
mov dword [ebp - 0x18], eax
jne 0x417fef
push 0x403fd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418097
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fc4
push ebx
call edi
test eax, eax
je 0x418097
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fb4
push ebx
mov dword [0x439e54], eax
call edi
push eax
call esi
push 0x403fa0
push ebx
mov dword [0x439e58], eax
call edi
push eax
call esi
push 0x403f84
push ebx
mov dword [0x439e5c], eax
call edi
push eax
call esi
mov dword [0x439e64], eax
test eax, eax
je 0x417fef
push 0x403f6c
push ebx
call edi
push eax
call esi
mov dword [0x439e60], eax
mov eax, dword [0x439e60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418048
cmp dword [0x439e64], ecx
je 0x418048
push eax
call esi
push dword [0x439e64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418048
test ebx, ebx
je 0x418048
call edi
test eax, eax
je 0x41803f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41803f
test byte [ebp - 8], 1
jne 0x418048
or dword [ebp + 0x10], 0x200000
jmp 0x41807b
mov eax, dword [0x439e58]
cmp eax, dword [ebp - 0x18]
je 0x41807b
push eax
call esi
test eax, eax
je 0x41807b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41807b
mov eax, dword [0x439e5c]
cmp eax, dword [ebp - 0x18]
je 0x41807b
push eax
call esi
test eax, eax
je 0x41807b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439e54]
call esi
test eax, eax
je 0x418097
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418099
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b52b
leave
ret
Function at 0x41d1c0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1690
call fcn.00418800
cmp dword [0x8e42ac], 0x37
jne 0x41d2ea
push esi
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea ecx, [esp + 0x698]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 8]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x298]
push ecx
push 0x4041c0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0xe98]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x178]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call esi
push 0
push 0x4041e0
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x404200
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0040a850
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
pop esi
mov edx, dword [0x8e6a10]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + edi]
mov edx, dword [0x8e2aa4]
mov byte [edx + edi], cl
add esp, 0x1690
ret
Function at 0x1005ad60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101258d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005ad90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1005adc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1005adc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1005aebe
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005ade9
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 0x1005ae1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
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.100e5f10
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1005ae7c
sub eax, 1
je 0x1005ae7c
sub eax, 2
jne 0x1005aebe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100bc4c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005ae9d
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005aebe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1005aebe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4