joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fc90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov dword [ecx], 0x5287ec
add ecx, 4
call fcn.00485710
lea ecx, [esi + 8]
call fcn.00485710
xor ebx, ebx
mov byte [esi + 0xc], bl
lea ecx, [esi + 0x24]
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], ebx
call fcn.00485710
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], eax
xorps xmm0, xmm0
movups xmmword [esi + 0x44], xmm0
movups xmmword [esi + 0x54], xmm0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov edi, 0x3f800000
mov dword [esi + 0x6c], edi
movups xmmword [esi + 0x70], xmm0
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edi
movups xmmword [esi + 0x88], xmm0
mov dword [esi + 0x98], edi
movups xmmword [esi + 0x9c], xmm0
mov dword [esi + 0xac], edi
movups xmmword [esi + 0xb0], xmm0
mov dword [esi + 0xc0], edi
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xd8], ebx
movups xmmword [esi + 0xc8], xmm0
mov eax, dword [0x537770]
mov dword [esi + 0xe8], eax
lea ecx, [esi + 0xec]
call fcn.004b2330
xorps xmm0, xmm0
movups xmmword [esi + 0x188], xmm0
mov dword [esi + 0x198], edi
movups xmmword [esi + 0x19c], xmm0
movups xmmword [esi + 0x1a5], xmm0
mov eax, dword [ebp + 8]
mov dword [esi + 0x1b8], eax
mov byte [esi + 0x1bc], bl
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
call fcn.004117a0
call fcn.004861a0
mov ecx, eax
mov dword [esi + 0xd8], eax
xor ecx, 0x84222325
mov edx, 0x1b3
mov eax, ecx
mul edx
shl ecx, 8
add ecx, edx
add ecx, 0x8d40976c
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ecx
mov edx, dword [esi + 0xe8]
mov ecx, dword [esi + 0xf0]
mov eax, ecx
shr eax, 6
test dword [0x537774], edx
je 0x47fe3f
cmp ecx, 0x40
mov ecx, 0x3e8
cmovb eax, ecx
push eax
call fcn.004b0f10
add esp, 4
mov edi, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test edi, edi
je 0x47fe1c
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
call fcn.004b05b0
mov ecx, eax
push 0
push str.TraceLog
push esi
call fcn.004b0700
mov dword [0x55ac34], esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
test dword [0x537778], edx
je 0x47fe51
cmp ecx, 0x40
mov ecx, 0x100
jmp 0x47fdf4
test dword [0x53777c], edx
je 0x47fe6c
cmp ecx, 0x40
mov ecx, 0x7a1200
cmovb eax, ecx
push eax
call fcn.004b0fa0
jmp 0x47fdfd
cmp ecx, 0x40
mov ecx, 0xfa0
jmp 0x47fe61
Function at 0x4834f0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
test bl, bl
js 0x48350c
and ebx, 0x7f
jmp 0x483511
mov ebx, dword [esi + 4]
mov esi, dword [esi]
mov eax, ebx
mov ecx, esi
mov edx, ebx
mov dword [ebp - 0x18], ebx
cmp ebx, 4
jb 0x48354c
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, esi
imul ebx, dword [ecx], 0x5bd1e995
mov edi, ebx
shr edi, 0x18
xor edi, ebx
imul edi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x483526
mov edi, dword [ebp + 8]
cmp edx, 1
je 0x483570
cmp edx, 2
je 0x483567
cmp edx, 3
jne 0x48357b
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x483688
mov dword [ebp - 0x24], esi
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, 0x33333333
mov ecx, ebx
mov ebx, eax
and ebx, edx
shr eax, 2
and eax, edx
add eax, ebx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
mov dword [ebp - 0x1c], esi
jbe 0x4835f4
mov edx, esi
cmp esi, ecx
jb 0x4835f9
mov eax, esi
xor edx, edx
div ecx
mov esi, dword [ebp - 0x1c]
jmp 0x4835f9
lea edx, [ecx - 1]
and edx, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x483622
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax]
test ebx, ebx
mov ecx, 0
je 0x483688
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x20], eax
jmp 0x48364c
xor ecx, ecx
jmp 0x483688
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x48363e
xor edx, edx
div ecx
mov eax, edx
jmp 0x48363e
cmp dword [ebp - 0x28], 1
ja 0x483626
and eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jne 0x483696
mov ebx, dword [ebx]
test ebx, ebx
mov esi, dword [ebp - 0x1c]
je 0x483696
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x483635
movzx ecx, byte [ebx + 0x13]
mov edx, ecx
and edx, 0x7f
test cl, cl
mov esi, dword [ebx + 0xc]
mov eax, edx
cmovs eax, esi
cmp eax, dword [ebp - 0x18]
jne 0x483643
test cl, cl
js 0x48369a
test dl, dl
je 0x483683
xor ecx, ecx
mov al, byte [ebx + ecx + 8]
cmp al, byte [edi + ecx]
jne 0x483643
inc ecx
cmp edx, ecx
jne 0x483675
mov ecx, ebx
mov edi, dword [ebp + 8]
mov dword [edi], ecx
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ecx, ecx
jmp 0x483685
push esi
push edi
push dword [ebx + 8]
call fcn.004ea61d
add esp, 0xc
test eax, eax
jne 0x483643
jmp 0x483683
Function at 0x483c80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x55ac3c]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x483ccd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, 0x55ac38
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x55ac3c
call fcn.004e8347
add esp, 4
cmp dword [0x55ac3c], 0xffffffff
jne 0x483cb3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004ec220
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004e82a5
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x55ac6c]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x483d76
mov ecx, esi
push ebx
push 0x55ac48
push edi
call fcn.00483e80
mov dword [0x55ac38], esi
push 0x55ac3c
call fcn.004e83bd
add esp, 4
jmp 0x483cb3
push 0x55ac6c
call fcn.004e8347
add esp, 4
cmp dword [0x55ac6c], 0xffffffff
jne 0x483d50
xorps xmm0, xmm0
movups xmmword [0x55ac58], xmm0
movups xmmword [0x55ac48], xmm0
mov dword [0x55ac68], 0
push 0x55ac48
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x55ac6c
call fcn.004e83bd
add esp, 4
jmp 0x483d50

Function at 0x483de0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55ac6c]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x483e11
movzx eax, word [0x55ac48]
cmp eax, 9
jne 0x483e5c
xor eax, eax
inc eax
pop ebp
ret
push 0x55ac6c
call fcn.004e8347
add esp, 4
cmp dword [0x55ac6c], 0xffffffff
jne 0x483e00
xorps xmm0, xmm0
movups xmmword [0x55ac58], xmm0
movups xmmword [0x55ac48], xmm0
mov dword [0x55ac68], 0
push 0x55ac48
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x55ac6c
call fcn.004e83bd
add esp, 4
jmp 0x483e00
test eax, eax
je 0x483e0f
cmp eax, 6
jne 0x483e6c
mov eax, 2
jmp 0x483e0f
cmp eax, 0xc
jne 0x483e78
mov eax, 3
jmp 0x483e0f
mov eax, 4
jmp 0x483e0f

Function at 0x484730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x484760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x4847b5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x48479f
cmp dword [ebp - 0x18], 4
jne 0x48479f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
jmp 0x48479f
Function at 0x4847e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.004e9760
mov esi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0xff
push ebx
call fcn.004ec220
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], edi
push ecx
push ebx
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x484859
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x4848c6
mov edi, 0x3f4
cmp eax, 1
jne 0x484840
push ebx
call fcn.005043ab
add esp, 4
mov cl, byte [esi + 0xb]
test cl, cl
js 0x4848ab
cmp eax, 4
jbe 0x484954
mov edx, esi
movzx esi, cl
mov ecx, edx
mov edx, 4
mov edi, eax
sub edi, edx
push ebx
push eax
push esi
push 0
push esi
push edi
push edx
call fcn.0047d310
xor edi, edi
jmp 0x484840
mov ecx, dword [esi + 8]
mov edx, ecx
and edx, 0x7fffffff
dec edx
cmp edx, eax
jae 0x48494d
mov ecx, esi
mov esi, dword [esi + 4]
jmp 0x484896
lea esi, [ebp - 0x1010]
push 0x800
push 0xff
push esi
call fcn.004ec220
add esp, 0xc
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x484840
push esi
call fcn.005043ab
add esp, 4
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0xb]
test al, al
js 0x484938
cmp ebx, 4
jbe 0x48499b
movzx eax, al
mov edx, 4
mov edi, ebx
sub edi, edx
push esi
push ebx
push eax
push 0
push eax
jmp 0x4848a0
mov eax, dword [ecx + 8]
mov edx, eax
and edx, 0x7fffffff
dec edx
cmp edx, ebx
jae 0x484990
mov eax, dword [ecx + 4]
jmp 0x484929
shr ecx, 0x18
mov edi, dword [esi]
jmp 0x484956
mov edi, esi
test eax, eax
je 0x484974
mov ecx, eax
add ecx, eax
push ecx
push ebx
push edi
mov ebx, esi
mov esi, eax
call fcn.004ebca0
mov eax, esi
mov esi, ebx
add esp, 0xc
mov cl, byte [ebx + 0xb]
test cl, cl
js 0x48498b
mov ecx, eax
and cl, 0x7f
mov byte [esi + 0xb], cl
mov word [edi + eax*2], 0
jmp 0x4848a7
mov dword [esi + 4], eax
jmp 0x484980
mov edx, esi
shr eax, 0x18
mov edi, dword [ecx]
mov esi, ecx
jmp 0x4849a2
mov edx, esi
mov esi, dword [ebp + 0xc]
mov edi, esi
test ebx, ebx
je 0x4849b8
mov eax, ebx
add eax, ebx
push eax
push edx
push edi
call fcn.004ebca0
add esp, 0xc
mov al, byte [esi + 0xb]
test al, al
js 0x4849ce
mov eax, ebx
and al, 0x7f
mov byte [esi + 0xb], al
mov word [edi + ebx*2], 0
jmp 0x4848a7
mov dword [esi + 4], ebx
jmp 0x4849c3
Function at 0x4849e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x547008]
xor edx, ebp
mov dword [ebp - 8], edx
mov edx, 4
lea esi, [ebp + 0xc]
push edx
push esi
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8
Function at 0x484d20
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm0, qword [0x55ac80]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x484d4b
jnp 0x484d70
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.004e8be6
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x55ac90]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x484ea5
mov eax, dword [0x55aca0]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x484ede
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub ebx, dword [0x55ac98]
sbb edi, dword [0x55ac9c]
movd xmm0, edi
movd xmm1, ebx
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm1, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm1, qword [esp + 0x30]
pxor xmm0, xmm0
movsd xmm2, qword [0x533258]
ucomisd xmm2, xmm1
ja 0x484d4b
mov eax, dword [esp + 8]
sub eax, dword [0x55ac88]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x55ac8c]
movd xmm2, ecx
movd xmm0, eax
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x533230]
subpd xmm0, xmmword [0x533240]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x55ac80], xmm0
jmp 0x484d4b
push 0x55ac90
call fcn.004e8347
add esp, 4
cmp dword [0x55ac90], 0xffffffff
jne 0x484daf
rdtsc
mov dword [0x55ac88], eax
mov dword [0x55ac8c], edx
push 0x55ac90
call fcn.004e83bd
add esp, 4
jmp 0x484daf
push 0x55aca0
call fcn.004e8347
add esp, 4
cmp dword [0x55aca0], 0xffffffff
jne 0x484dd0
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x55ac9c], ecx
mov dword [0x55ac98], eax
push 0x55aca0
call fcn.004e83bd
add esp, 4
jmp 0x484dd0
Function at 0x485400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x48544a
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x485434
call fcn.0049a530
push dword [esi]
call fcn.004844e0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x485443
mov dword [esi], ebx
call fcn.0049a530
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x485460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x4854dc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4854b1
call fcn.0049a530
push dword [esi]
call fcn.004844e0
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4854c0
mov dword [esi], edi
call fcn.0049a530
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x4854e0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 0
int3

Function at 0x485cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x485d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x485cfa
call fcn.0049a530
push dword [esi]
call fcn.004844e0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x485d09
mov dword [esi], ebx
call fcn.0049a530
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x485d27
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x485dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x485e3e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x485e4a
cmp byte [ebp + 0xc], 0
je 0x485e1e
cmp byte [esi + 4], 0
je 0x485e42
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
push edi
call fcn.00485ea0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x485df4
mov eax, dword [esi]
jmp 0x485e12
mov eax, dword [esi]
jmp 0x485e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x485e46
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x485e74
xor ebx, ebx
jmp 0x485e28
mov eax, dword [esi]
jmp 0x485e87
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x485e70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x485e1e
mov edi, dword [ebp - 0x14]
jmp 0x485e1e

Function at 0x4861e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [ebp + 8]
mov ecx, dword [0x547008]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov esi, 0
test eax, eax
je 0x486226
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov esi, eax
test eax, eax
jne 0x486226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0
cmp eax, 6
je 0x4862da
lea edi, [ebp - 0x238]
push 0x228
push 0xff
push edi
call fcn.004ec220
add esp, 0xc
mov dword [edi - 4], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test eax, eax
je 0x486272
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x4862a6
mov ebx, eax
call fcn.0049a530
mov eax, ebx
mov ebx, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [ebx + 1]
cmp edi, 2
jae 0x4862aa
xor esi, esi
cmp edi, 2
jb 0x48628f
call fcn.0049a530
push ebx
call fcn.004844e0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x48626b
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48627a
cmp dword [ebp - 0x234], esi
je 0x4862d2
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
jmp 0x4862b7
mov esi, dword [ebp - 0x224]
jmp 0x48627c
int3
Function at 0x487040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x42
push str.file_win.cc
push str.Read
push esi
call fcn.0049a500
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00490060
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x487127
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x487127
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004e60f0
test al, al
je 0x4870d9
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.004b9470
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x487147
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x487159
lea ecx, [esp + 0x28]
call fcn.004b9400
lea ecx, [esp + 0x30]
call fcn.004900e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x48711e
int3

Function at 0x487160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x97
push str.file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0049a500
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.00490060
test ebx, ebx
js 0x487232
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004e60f0
test al, al
je 0x4871e7
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::WriteAtCurrentPos
call fcn.004b9470
lea edi, [esp + 0xc]
mov dword [edi], 0xffffffff
push 0
push edi
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [edi]
lea ecx, [esp + 0x10]
call fcn.004b9400
lea ecx, [esp + 0x20]
call fcn.004900e0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x487212
Function at 0x487240
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xac
push str.file_win.cc
push str.GetLength
push edi
call fcn.0049a500
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.00490060
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
mov edi, dword [esp + 4]
call fcn.004e60f0
test al, al
je 0x4872bf
lea ecx, [esp + 0x10]
push esi
push esi
push edi
push str.File::GetLength
call fcn.004b9470
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004b9400
lea ecx, [esp + 0x20]
call fcn.004900e0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret