joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40c281
pop dword [ebp - 0x44]
mov eax, 0x40c281
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x34d52
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x10ad79b4
sub ecx, 0x10ad4490
mov edx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x44]
mov esi, 0xcaffc9bc
xor dword [ebp - 0xc], 0x6ba95e16
mov ebx, dword [edi]
add dword [ebp - 0xc], esi
xor ebx, esi
xor dword [ebp - 0x28], 0xbcbaba9f
mov dword [edx], ebx
mov dword [ebp - 8], 0x4393ed14
add edx, 0x2cdec03
sub edx, 0x2cdebff
add edi, 4
loop 0x40c2ca
add eax, 0xc763
xor ebx, ebx
add ebx, eax
add eax, 0xd1b54ace
sub eax, 0xd1b54ac9
mov ecx, 0xe19a4d4f
sub ecx, 0xe15a4d4f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x8cb598
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.008cb02c
mov word [esp + 6], bx
call 0x8cb598
push ebp
pop word [esp + 3]
lea esp, [esp + 2]
mov dword [esp + 0x58], edi
lea esp, [esp + 0x58]
jmp 0x8cb5dd
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x8cb027
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x8cb5bf

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1e0a621e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x6055074e
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5dae765a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2fd12667
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x43dd37
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0043dee7
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x43de35
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x43ddd8
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x43de1b
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x43ddef
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x43de0a
test al, 0x40
je 0x43de01
mov ecx, dword [edi + 0x20]
jmp 0x43de08
test al, 0x80
je 0x43de1b
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x43de1b
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x43dda7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x441d20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x441d58
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x441d46
mov al, 1
jmp 0x441d99
cmp dword [ebx + 0x54], ecx
jne 0x441d4f
mov al, 2
jmp 0x441d99
cmp dword [ebx + 0x7c], ecx
jne 0x441d99
mov al, 3
jmp 0x441d99
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x441d6d
mov al, 4
jmp 0x441d99
cmp ecx, 5
jne 0x441d8d
cmp ebx, 0
jne 0x441d7b
mov al, 5
jmp 0x441d99
cmp ebx, 1
jne 0x441d84
mov al, 6
jmp 0x441d99
cmp ebx, 2
jne 0x441d8d
mov al, 7
jmp 0x441d99
cmp ecx, 6
jne 0x441d99
cmp ebx, 0
jne 0x441d99
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40626e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40627e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret

Function at 0x407a40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4344c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x435398]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4350e0]
cmp eax, dword [ecx + 4]
jg 0x407c07
cmp dword [0x434498], 0
jne 0x407bea
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00408820
test al, al
jne 0x407af9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.004012f0
mov esi, eax
add esp, 0xc
cmp esi, 0x434488
je 0x407be1
mov ecx, dword [0x43449c]
cmp ecx, 0x10
jb 0x407b9e
mov edx, dword [0x434488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c3d
jmp 0x407b94
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00411650
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407b67
cmp dword [ebp - 0x240], esi
je 0x407b5b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407b40
jmp 0x407b67
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.004012f0
add esp, 0x10
mov esi, eax
cmp esi, 0x434488
pop edi
jmp 0x407ab6
push ecx
push edx
call fcn.0040f763
add esp, 8
mov dword [0x434498], 0
mov dword [0x43449c], 0xf
mov byte [0x434488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x434488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x434498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00401440
pop esi
push 0x434488
mov ecx, ebx
call fcn.00403cf0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040f956
mov esp, ebp
pop ebp
ret
push 0x4350e0
call fcn.0040f880
add esp, 4
cmp dword [0x4350e0], 0xffffffff
jne 0x407a7d
push 0x428e10
call fcn.0040fbc3
push 0x4350e0
call fcn.0040f836
add esp, 8
jmp 0x407a7d
call fcn.0041303f
int3
Function at 0x407c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428046
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4344c0]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.00411650
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0041134b
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407cd0
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x407dc9
call fcn.00403360
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040cea0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00408260
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x407d7a
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407d70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e0e
push ecx
push edx
call fcn.0040f763
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x407df1
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407de7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e0e
jmp 0x407de7
call fcn.00403360
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040cea0
add esp, 8
jmp 0x407d95
push ecx
push edx
call fcn.0040f763
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.0040f956
mov esp, ebp
pop ebp
ret
call fcn.0041303f
int3
Function at 0x410111
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x410150
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410150
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410150
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410150
cmp dword [ecx + 0x74], 0xe
jbe 0x410150
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b7ab
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b72d

Function at 0x41dff1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x435a98]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e031
cmp byte [ebx], 0xa
jne 0x41e031
or byte [eax + edi + 0x28], 4
jmp 0x41e036
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e134
mov al, byte [edx]
cmp al, 0x1a
je 0x41e116
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e065
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e08a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e094
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e047
jmp 0x41e134
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e111
cmp dword [ebp - 0xc], 0
je 0x41e111
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x435a98]
test byte [eax + edi + 0x28], 0x48
je 0x41e0eb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e0d6
mov byte [esi], dl
jmp 0x41e0e7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e134
cmp byte [ebp - 1], 0xa
jne 0x41e0fa
cmp esi, ebx
jne 0x41e0fa
mov byte [esi], 0xa
jmp 0x41e133
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ea3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e134
mov byte [esi], 0xd
jmp 0x41e133
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x435a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e130
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e134
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e13d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x435a98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e180
cmp word [esi], dx
jne 0x41e180
or byte [edi + eax + 0x28], 4
jmp 0x41e185
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e2d8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e2b8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e1c7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e1fd
cmp eax, edx
jae 0x41e209
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e19f
jmp 0x41e2d8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e2b4
cmp dword [ebp - 0x14], 0
je 0x41e2b4
mov eax, dword [ebx*4 + 0x435a98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e28c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e255
mov word [esi], cx
jmp 0x41e288
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x435a98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x435a98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x435a98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e2d8
pop ebx
cmp word [ebp - 4], bx
jne 0x41e29d
cmp esi, dword [ebp + 0xc]
jne 0x41e29d
mov word [esi], bx
jmp 0x41e2d5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ea3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e2d8
push 0xd
jmp 0x41e2d1
mov ecx, dword [ebx*4 + 0x435a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e2cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e2d8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fdf0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d218
push 0x42d210
push str.FlsAlloc
push 0x1e
call fcn.0041fc8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fe24
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e0]
call esi
jmp 0x41fe2a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41fe6e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d228
push 0x42d220
push str.FlsGetValue
push 0x20
call fcn.0041fc8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fea5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4211a4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x421241
push ebx
push esi
call fcn.0042116d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041fa8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4211ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421240
push edi
push eax
call fcn.0041c05d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42120e
call fcn.0041c023
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42123f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041fa8a
add esp, 0x20
test eax, eax
jne 0x42122d
push edi
call fcn.0041c023
jmp 0x421235
push ebx
call fcn.0041c023
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x426045
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425fc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4261bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4261bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42616c
jg 0x42609e
test eax, eax
je 0x426162
push 1
push 0x1000
call fcn.004201a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4260c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x426159
push 0x8000
push ebx
call fcn.00419728
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4260f0
jg 0x4260eb
cmp ecx, 0x1000
jb 0x4260f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041f38a
add esp, 0x10
cmp eax, 0xffffffff
je 0x426135
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4260eb
jl 0x42611c
test ecx, ecx
jne 0x4260dd
push dword [ebp - 0xc]
push ebx
call fcn.00419728
push esi
call fcn.0041c023
add esp, 0xc
xor edi, edi
jmp 0x4261ce
cmp byte [edi + 0x24], 0
je 0x42614c
cmp dword [edi + 0x20], 5
jne 0x42614c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x426157
mov edi, dword [edi + 0x18]
jmp 0x426159
xor edi, edi
push esi
call fcn.0041c023
pop ecx
jmp 0x4261ce
test ecx, ecx
jg 0x42612e
jl 0x42616c
test eax, eax
jae 0x42612e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ea3f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42618f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42612e
jmp 0x4261c6
push ebx
call fcn.0042160e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42612e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4261ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4261cb
mov edi, dword [edi + 0x18]
jmp 0x4261ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ea3f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4275bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4275bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401bb0
Capabilities:
Enumerate files on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c0
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0x80
push eax
push ecx
call fcn.004038f0
mov edi, dword [esp + 0x1e4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [0x409054]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401d14
lea edx, [esp + 0xbc]
push 0x40a150
push edx
call fcn.00408010
mov ebp, dword [0x409088]
add esp, 8
test eax, eax
jne 0x401c6a
lea eax, [esp + 0x90]
push eax
push ebx
call ebp
test eax, eax
je 0x401d14
lea ecx, [esp + 0xbc]
push 0x40a150
push ecx
call fcn.00408010
add esp, 8
test eax, eax
je 0x401c3e
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x90]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1d8]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
test eax, eax
je 0x401d04
lea ecx, [esp + 0xbc]
push 0x40a150
push ecx
call fcn.00408010
add esp, 8
test eax, eax
je 0x401d04
push 0x104
push 0x40d120
push 0xc359
push 0
call dword [0x409174]
push 0x40d120
push 0x40a0e0
push 0x40d000
call fcn.0040352a
add esp, 0xc
push 0
push 0x40a0d4
push 0x40d000
push 0
call dword [0x409160]
push 1
call fcn.0040374c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c0
ret