joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00414050
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x40270a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4271a4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004126d9
push 0x42719c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004121c2
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x40270a
push eax
push 1
push 0x200
push esi
call fcn.00412998
mov eax, dword [ebp - 0x210]
push eax
call fcn.00412447
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00412027
mov esp, ebp
pop ebp
ret

Function at 0x4028e0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x3e8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42719c
lea eax, [ebp - 4]
push 0x42dea8
push eax
call fcn.004121c2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x402a08
push 2
push 0
push eax
call fcn.00412e0c
mov ecx, dword [ebp - 4]
add esp, 0xc
push ecx
call fcn.0041301c
mov esi, eax
add esp, 4
push esi
call fcn.00413081
mov edx, dword [ebp - 4]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00412e0c
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00412998
add esp, 0x10
cmp esi, eax
jne 0x4029eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00412d4f
add esp, 4
call fcn.00412d61
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fmul qword [0x429378]
fmul qword [0x429370]
fadd qword [0x429368]
call fcn.00414890
cmp esi, eax
jl 0x4029eb
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00402890
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412447
add esp, 4
push 0x42dea8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x426eac
lea edx, [ebp - 4]
push 0x42dea8
push edx
call fcn.004121c2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x402a08
push eax
push esi
push 1
push edi
call fcn.00412360
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
je 0x4029fb
push eax
call fcn.00412447
add esp, 4
test edi, edi
je 0x402a08
push edi
call fcn.0041201c
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42b0a4]
xor eax, esp
mov dword [esp + 0x270], eax
push edi
xor eax, eax
push 0x62
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00414050
add esp, 0xc
push 0x200
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00414050
add esp, 0xc
lea edi, [esp + 8]
call fcn.00402720
test eax, eax
je 0x402b5f
xor eax, eax
nop
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x44e0b8], cx
add eax, 2
test cx, cx
jne 0x402a70
movzx eax, word [esp + 0x8c]
mov dword [0x44e0e0], eax
xor eax, eax
jmp 0x402aa0
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x44e0e4], cx
add eax, 2
test cx, cx
jne 0x402aa0
cmp dword [0x44e1b0], 3
jne 0x402ae9
push 0x104
push 0x42dea8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4271c0
push 0x104
push 0x42dea8
call fcn.004126d9
add esp, 0xc
jmp 0x402af9
push 0x42dea8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x1b0]
push ecx
push 0x104
push 0x42dea8
call fcn.004126d9
add esp, 0xc
push 0x4271c4
push 0x104
push 0x42dea8
call fcn.004126d9
add esp, 0xc
call fcn.004028e0
push 0
push 0
push 0
push 0x4027c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x208]
call fcn.004027f0
mov edx, edi
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x274]
pop edi
xor ecx, esp
call fcn.00412027
mov esp, ebp
pop ebp
ret

Function at 0x402b80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00414050
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402c4b
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402c1c
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402bfc
cmp word [ebp - 0xc], 4
jb 0x402c4b
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 2
jae 0x402c06
cmp eax, 1
jne 0x402c4b
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402c4b
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402c41
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402c4b
mov esi, 5
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412027
mov esp, ebp
pop ebp
ret
Function at 0x402c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x427138
mov esi, eax
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402cf9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov ecx, edi
neg esi
shr ecx, 9
add esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.00413081
push esi
mov ebx, eax
push 0
push ebx
call fcn.00414050
mov edx, dword [ebp - 4]
push edi
push edx
push ebx
call fcn.00413b90
mov eax, dword [ebp - 8]
add esp, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42ceec
call fcn.00411f7f
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x403514
test esi, esi
jne 0x403514
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4034f8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4034f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4034f2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x4034e1
cmp esi, eax
jae 0x4034e5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4034d3
cmp esi, eax
jb 0x4034e9
xor eax, eax
jmp 0x4034f2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40351d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42ceec
call fcn.00411f7f
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x403485
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403548
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40357a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403576
cmp esi, eax
jae 0x40357a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403568
cmp esi, eax
jb 0x403580
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403dc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
cmp dword [edi + 0x16], 3
jl 0x403fa0
lea eax, [edi + 0x20022]
lea esi, [ebp - 0x804]
mov dword [edi + 0x1001e], 0x10000
lea ecx, [edi + 0x10022]
mov dword [ebp - 0x810], esi
test eax, eax
je 0x403e0d
mov dword [ebp - 0x810], eax
mov esi, eax
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x814], eax
mov eax, dword [edi + 0x12]
test eax, eax
je 0x403f77
test ecx, ecx
je 0x403f77
push 0
push 4
lea ecx, [ebp - 0x808]
push ecx
push eax
mov dword [ebp - 0x808], 0
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x403e78
mov eax, 0x427288
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403e55
push 0x1e
mov dword [edi + 0x16], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403dd5
test eax, eax
je 0x403f8b
movzx ebx, byte [ebp - 0x808]
movzx edx, byte [ebp - 0x807]
movzx eax, byte [ebp - 0x806]
movzx ecx, byte [ebp - 0x805]
shl ebx, 8
add ebx, edx
mov edx, dword [edi + 0x1001e]
shl ebx, 8
add ebx, eax
shl ebx, 8
push edx
add ebx, ecx
xor esi, esi
call fcn.00413081
add esp, 4
mov dword [ebp - 0x80c], eax
cmp dword [edi + 0x1001e], esi
jle 0x403f06
lea ebx, [ebx]
cmp esi, ebx
jae 0x403f06
mov ecx, dword [edi + 0x1001e]
push 0
sub ecx, esi
push ecx
lea edx, [esi + eax]
mov eax, dword [edi + 0x12]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403f26
test eax, eax
je 0x403f26
add esi, eax
mov eax, dword [ebp - 0x80c]
cmp dword [edi + 0x1001e], esi
jg 0x403ed0
mov ecx, dword [edi + 0x1001e]
cmp ecx, esi
jl 0x403f4a
push esi
push eax
lea eax, [edi + 0x10022]
push eax
call fcn.00413b90
mov dword [edi + 0x1001e], esi
jmp 0x403f58
mov edx, dword [ebp - 0x810]
mov eax, 0x427288
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403f33
mov esi, dword [ebp - 0x814]
jmp 0x403f60
push ecx
push eax
lea eax, [edi + 0x10022]
push eax
call fcn.00413b90
add esp, 0xc
mov esi, 1
mov eax, dword [ebp - 0x80c]
test eax, eax
je 0x403f73
push eax
call fcn.0041201c
add esp, 4
test esi, esi
jne 0x403f8b
push 0x1e
mov dword [edi + 0x16], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403dd5
cmp dword [edi + 0x1001e], 4
jle 0x403fa0
mov eax, dword [edi + 0x20822]
test eax, eax
je 0x403fa0
call eax
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403dd5
Function at 0x403fb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
jmp 0x403fd0
mov eax, dword [esi + 0x16]
cmp eax, 3
jl 0x4040d7
cmp eax, 0xb
jne 0x4040d7
mov ebx, dword [esi + 0x1a]
lea eax, [esi + 0x20022]
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], ecx
test eax, eax
je 0x404004
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x80c]
xor edx, edx
mov word [eax], dx
xor edi, edi
cmp dword [esi + 0x12], edx
je 0x4040af
push ebx
call fcn.00413081
push ebx
lea ecx, [esi + 0x1e]
push ecx
push eax
mov dword [ebp - 0x810], eax
call fcn.00413b90
add esp, 0x10
mov edx, ebx
shr edx, 0x18
push edi
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x808], dl
push 4
lea edx, [ebp - 0x808]
mov byte [ebp - 0x807], al
mov eax, dword [esi + 0x12]
mov ecx, ebx
push edx
sar ecx, 8
push eax
mov byte [ebp - 0x806], cl
mov byte [ebp - 0x805], bl
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x810]
mov edx, dword [esi + 0x12]
push edi
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404092
cmp eax, ebx
jne 0x404092
mov edi, 1
jmp 0x4040af
mov edx, dword [ebp - 0x80c]
mov eax, 0x427268
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4040a0
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x4040cc
push eax
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x810], 0
neg edi
sbb edi, edi
and edi, 9
inc edi
mov dword [esi + 0x16], edi
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403fd0

Function at 0x404250
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x404343
cmp edi, 0xa
jb 0x404343
lea eax, [edi*4]
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.00412036
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.004040f0
add esp, 8
test eax, eax
je 0x40433a
mov eax, dword [ebp + 8]
push 0x426eac
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004121c2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x4042c4
lea edi, [eax - 2]
jmp 0x4042f2
mov edi, dword [ebp - 0xc]
push eax
push edi
push 1
push esi
call fcn.00412360
add esp, 0x10
cmp eax, edi
je 0x404308
mov dword [ebp - 8], 0xfffffffe
mov eax, dword [ebp - 4]
test eax, eax
je 0x4042ef
push eax
call fcn.00412447
add esp, 4
mov edi, dword [ebp - 8]
test esi, esi
je 0x4042ff
push esi
call fcn.004120ca
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [ebp - 4]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00412360
add esp, 0x10
jmp 0x4042df
mov dword [ebp - 8], 0xfffffffd
jmp 0x4042df
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4060b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40618d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428ce8]
add ecx, 8
sub edx, 8
dec esi
jne 0x4060d0
pop edi
test edx, edx
je 0x4061aa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x428ce8]
inc ecx
dec edx
jne 0x406191
not eax
pop esi
ret

Function at 0x4061b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x428ce8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x428ce8]
mov dword [edx + 8], ecx
ret

Function at 0x406200
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x428ce8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x428ce8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x406920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x406956
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 2]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40694c
mov byte [edi + 6], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x406967
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00413b90
add dword [edi + 0x14], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x406990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4069c3
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4069be
mov byte [esi + 6], 1
mov edi, dword [ebp - 8]
jmp 0x4069ee
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4069d5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00413b90
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406a03
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4069fd
cmp byte [esi + 6], 0
je 0x4069fd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x406ae7
cmp byte [esi + 1], 0
je 0x406aef
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x406b02
cmp byte [esi + 1], 0
je 0x406af6
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 7]
mov dword [ebp - 4], ebx
jmp 0x406b0a
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x406ac1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x406b0a
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x406b1c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00412036
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x406b39
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x406c4d
jmp 0x406b59
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x406b68
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x406b7f
mov ebx, 0x404
cmp byte [esi], 0
je 0x406ba4
cmp byte [esi + 1], 0
je 0x406c4d
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406ba7
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebx
je 0x406bd0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406bcb
mov byte [esi + 6], 1
mov eax, dword [ebp - 0x18]
jmp 0x406bf9
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x406be1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00413b90
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x406c4d
lea eax, [ebx - 3]
test eax, eax
js 0x406c3b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x406c2f
cmp byte [eax + ecx + 1], 0x4b
jne 0x406c2f
cmp byte [eax + ecx + 2], 5
jne 0x406c2f
cmp byte [eax + ecx + 3], 6
je 0x406c35
test eax, eax
jns 0x406c10
jmp 0x406c3b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406c4d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x406b50
mov eax, dword [ebp - 0x10]
push eax
call fcn.004120ca
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x407bcf
cmp dword [esi + 4], 0xffffffff
jne 0x407bcf
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b50
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x407b87
cmp eax, 0x2f
je 0x407b87
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407b74
mov eax, dword [0x4271c0]
mov dword [edi], eax
push 0x18
call fcn.0041323f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00406c70
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x408510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [ebp - 0x234], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
je 0x4085d8
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.00414050
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push ebx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
je 0x408584
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4085d1
xor edi, edi
cmp dword [esi], edi
jle 0x4085b2
lea ebx, [esi + 4]
lea ecx, [ecx]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.00413449
add esp, 8
test eax, eax
je 0x4085eb
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x408590
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x408584
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x234]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412027
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [ebp - 0x234], 1
mov dword [esi + 0xa0c], edi
call fcn.004125f5
mov ecx, dword [esi + 0xa0c]
mov eax, dword [ebp - 0x228]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.004125f5
mov ebx, dword [ebp - 0x238]
add esp, 0x18
jmp 0x4085cb