joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b3f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000b4df
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x10051670], 0
mov dword [0x10051680], eax
jne 0x1000b44f
cmp al, 3
jne 0x1000b426
test eax, 0x80000000
je 0x1000b426
push 2
call fcn.1000c420
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000b44f
push str.IsTNT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b44f
push 1
call fcn.1000c420
add esp, 4
call fcn.1000b780
test eax, eax
jne 0x1000b45d
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x10051680]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x1005168c], edx
mov dword [0x10051688], eax
shl eax, 8
mov dword [0x10051680], ecx
add eax, edx
mov dword [0x10051684], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10053b34], eax
call 0x1005ccbd
cmp dword [0x10053b34], 0
mov dword [0x10051660], eax
je 0x1000b4d5
test eax, eax
je 0x1000b4d5
call 0x1005ccbd
call fcn.1000c050
call 0x1005ccbd
call fcn.1000ba10
call fcn.1000b620
inc dword [0x1005165c]
mov eax, 1
ret 0xc
call fcn.1000b7c0
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000b4cd
mov eax, dword [0x1005165c]
test eax, eax
jle 0x1000b512
dec eax
cmp dword [0x100516b8], 0
mov dword [0x1005165c], eax
jne 0x1000b500
call fcn.1000b690
call fcn.1000b9e0
call fcn.1000b7c0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x1000b6b0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x100516bc], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x1000b6ce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100516b8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x100516b4], bl
jne 0x1000b728
cmp dword [0x10053b2c], 0
je 0x1000b716
mov edi, dword [0x10053b1c]
sub edi, 4
cmp edi, dword [0x10053b2c]
jb 0x1000b716
mov eax, dword [edi]
test eax, eax
je 0x1000b70b
call eax
sub edi, 4
cmp edi, dword [0x10053b2c]
jae 0x1000b703
push 0x1004f514
push 0x1004f410
call fcn.1000b760
add esp, 8
push 0x1004f71c
push 0x1004f618
call fcn.1000b760
add esp, 8
test ebx, ebx
jne 0x1000b74f
mov dword [0x100516bc], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x406560
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x433500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434340]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434150]
cmp eax, dword [ecx + 4]
jg 0x406727
cmp dword [0x433498], 0
jne 0x40670a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407340
test al, al
jne 0x406619
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401230
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x406701
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x4066be
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40675d
jmp 0x4066b4
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.0040fc80
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 0x406687
cmp dword [ebp - 0x240], esi
je 0x40667b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406660
jmp 0x406687
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.00401230
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4065d6
push ecx
push edx
call fcn.0040e10c
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00401490
pop esi
push 0x433488
mov ecx, ebx
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e11a
mov esp, ebp
pop ebp
ret
push 0x434150
call fcn.0040e3ed
add esp, 4
cmp dword [0x434150], 0xffffffff
jne 0x40659d
push 0x427420
call fcn.0040e387
push 0x434150
call fcn.0040e39c
add esp, 8
jmp 0x40659d
call fcn.0041166f
int3
Function at 0x406770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426666
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x433500]
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]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fc80
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.0040f980
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067f5
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 0x4068ee
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b950
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406d80
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40689f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406895
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406933
push ecx
push edx
call fcn.0040e10c
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, 7
jbe 0x406916
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40690c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406933
jmp 0x40690c
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b950
add esp, 8
jmp 0x4068ba
push ecx
push edx
call fcn.0040e10c
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.0040e11a
mov esp, ebp
pop ebp
ret
call fcn.0041166f
int3
Function at 0x40ecbb
Capabilities:
Parse pe header

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

Function at 0x419d3b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419cbd

Function at 0x41c581
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 + 0x4348c8]
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 0x41c5c1
cmp byte [ebx], 0xa
jne 0x41c5c1
or byte [eax + edi + 0x28], 4
jmp 0x41c5c6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c6c4
mov al, byte [edx]
cmp al, 0x1a
je 0x41c6a6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c5f5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c61a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c624
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 0x41c5d7
jmp 0x41c6c4
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 0x41c6a1
cmp dword [ebp - 0xc], 0
je 0x41c6a1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4348c8]
test byte [eax + edi + 0x28], 0x48
je 0x41c67b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c666
mov byte [esi], dl
jmp 0x41c677
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4348c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c6c4
cmp byte [ebp - 1], 0xa
jne 0x41c68a
cmp esi, ebx
jne 0x41c68a
mov byte [esi], 0xa
jmp 0x41c6c3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cfb5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c6c4
mov byte [esi], 0xd
jmp 0x41c6c3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4348c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c6c0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c6c4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c6cd
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 + 0x4348c8]
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 0x41c710
cmp word [esi], dx
jne 0x41c710
or byte [edi + eax + 0x28], 4
jmp 0x41c715
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 0x41c84e
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 0x41c82e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c757
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c78d
cmp eax, edx
jae 0x41c799
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 0x41c72f
jmp 0x41c84e
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 0x41c82a
cmp dword [ebp - 0x14], 0
je 0x41c82a
mov eax, dword [ebx*4 + 0x4348c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c802
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41c848
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4348c8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4348c8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4348c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41c84b
pop ebx
cmp word [ebp - 4], bx
jne 0x41c813
cmp esi, dword [ebp + 0xc]
jne 0x41c813
mov word [esi], bx
jmp 0x41c84b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cfb5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c84e
push 0xd
jmp 0x41c847
mov ecx, dword [ebx*4 + 0x4348c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c845
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c84e
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 0x41e366
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c218
push 0x42c210
push str.FlsAlloc
push 0x1e
call fcn.0041e204
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e39a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
jmp 0x41e3a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e3e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c228
push 0x42c220
push str.FlsGetValue
push 0x20
call fcn.0041e204
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e41b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f71a
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 0x41f7b7
push ebx
push esi
call fcn.0041f6e3
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.0041e000
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f764
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f7b6
push edi
push eax
call fcn.0041a5ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f784
call fcn.0041a5b3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f7b5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e000
add esp, 0x20
test eax, eax
jne 0x41f7a3
push edi
call fcn.0041a5b3
jmp 0x41f7ab
push ebx
call fcn.0041a5b3
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 0x424665
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.004245e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4247dd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4247dd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42478c
jg 0x4246be
test eax, eax
je 0x424782
push 1
push 0x1000
call fcn.0041e71d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4246e4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424779
push 0x8000
push ebx
call fcn.00417cb4
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 0x424710
jg 0x42470b
cmp ecx, 0x1000
jb 0x424710
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d900
add esp, 0x10
cmp eax, 0xffffffff
je 0x424755
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 0x42470b
jl 0x42473c
test ecx, ecx
jne 0x4246fd
push dword [ebp - 0xc]
push ebx
call fcn.00417cb4
push esi
call fcn.0041a5b3
add esp, 0xc
xor edi, edi
jmp 0x4247ee
cmp byte [edi + 0x24], 0
je 0x42476c
cmp dword [edi + 0x20], 5
jne 0x42476c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424777
mov edi, dword [edi + 0x18]
jmp 0x424779
xor edi, edi
push esi
call fcn.0041a5b3
pop ecx
jmp 0x4247ee
test ecx, ecx
jg 0x42474e
jl 0x42478c
test eax, eax
jae 0x42474e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cfb5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4247af
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42474e
jmp 0x4247e6
push ebx
call fcn.0041fc24
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42474e
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 0x4247ee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4247eb
mov edi, dword [edi + 0x18]
jmp 0x4247ee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041cfb5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425bdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40187c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
push edi
mov edi, ecx
jne 0x40189c
push esi
push esi
push 2
xor ecx, ecx
pop eax
call fcn.004037f2
xor al, al
jmp 0x40191f
push ebp
call fcn.00401203
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push esi
push ebx
call fcn.0048b065
push ebx
call fcn.0048b282
push esi
push esi
push ebx
mov ebp, eax
call fcn.0048b065
add esp, 0x1c
cmp ebp, esi
jne 0x4018d0
push esi
push esi
push 0xd
jmp 0x4018fd
lea eax, [ebp + 1]
push eax
call fcn.00488265
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call fcn.0048b61a
add esp, 0x14
cmp eax, 1
je 0x401909
push esi
call fcn.0048b635
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.004037f2
xor al, al
jmp 0x40191e
push edi
mov ecx, ebp
mov edx, esi
call fcn.00401923
push esi
mov bl, al
call fcn.0048b635
pop ecx
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f47
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f7c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f78
cmp edi, eax
jae 0x405f7c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f6a
cmp edi, eax
jb 0x405f80
xor eax, eax
jmp 0x405f8a
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x406181
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40620f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4061b8
cmp dword [ebp - 8], 2
jne 0x40620e
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405dfa
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405cfb
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4061f6
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406206
push eax
call fcn.0048bee5
pop ecx
mov edx, esi
call fcn.00405cc2
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x408707
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4aaf9e
call fcn.004a81a8
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048b640
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x408752
xor eax, eax
jmp 0x408816
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048b640
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408e02
test edi, edi
jle 0x408813
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40880b
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405e3a
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00408da7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bca
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405e3a
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00408da7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bca
add ebx, 8
dec dword [ebp - 0x10]
jne 0x408798
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x40884d
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x4088ce
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4088ce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x4088c9
cmp dword [esi + 4], ebx
je 0x4088c9
cmp dword [esi + 8], ebx
je 0x4088c9
cmp dword [esi + 0xc], ebx
je 0x4088c9
cmp eax, ebx
je 0x4088c9
xor eax, eax
inc eax
jmp 0x4088cb
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret