joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e013
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44f22c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040741e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040741e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40e08a
cmp word [ecx], dx
je 0x40e08a
mov eax, dword [0x445fac]
push edi
dec eax
push eax
push 0x445e98
call fcn.0040dfb2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40e0fd
cmp word [eax], dx
je 0x40e0fd
mov eax, dword [edi]
test eax, eax
je 0x40e0ae
cmp word [eax], dx
je 0x40e0ae
lea eax, [ebp - 0x10]
push eax
call fcn.0040d995
jmp 0x40e0b7
lea eax, [ebp - 0x10]
push eax
call fcn.0040da30
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40e127
mov eax, dword [0x445e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x445b88
call fcn.0040dfb2
add esp, 0xc
test al, al
je 0x40e127
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40e0f2
cmp word [eax], di
je 0x40e0f2
lea eax, [ebp - 0x10]
push eax
call fcn.0040d995
pop ecx
jmp 0x40e129
lea eax, [ebp - 0x10]
push eax
call fcn.0040da30
jmp 0x40e0ef
mov eax, dword [edi]
test eax, eax
je 0x40e114
cmp word [eax], dx
je 0x40e114
lea eax, [ebp - 0x10]
push eax
call fcn.0040d92c
pop ecx
jmp 0x40e127
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40e1f2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040de37
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e1f2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40e1f2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40e1f2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e17f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00408d6d
test ebx, ebx
je 0x40e1ed
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00408d6d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e1f2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e1f2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00414a9a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40e1f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b6f
leave
ret
Function at 0x40ee7f
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 0x40ef1c
push ebx
push esi
call fcn.0040ee3b
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.0040f0b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40eec9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ef1b
push edi
push eax
call fcn.00407c2e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40eee9
call fcn.00406c63
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ef1a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040f0b1
add esp, 0x20
test eax, eax
jne 0x40ef08
push edi
call fcn.00406c63
jmp 0x40ef10
push ebx
call fcn.00406c63
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 0x40ef1f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40ef30
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ee3b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407c2e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40ef58
push ebx
push esi
push edi
call fcn.0041b820
add esp, 0xc
push 0
call fcn.00406c63
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40f886
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f37d
Function at 0x41693f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x451778]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41697f
cmp byte [ebx], 0xa
jne 0x41697f
or byte [edi + eax + 0x28], 4
jmp 0x416984
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x416a83
mov dl, byte [eax]
cmp dl, 0x1a
je 0x416a66
inc eax
cmp dl, 0xd
je 0x4169b0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4169d6
cmp eax, ecx
jae 0x4169e4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x416998
jmp 0x416a83
push 0
lea eax, [ebp - 0x10]
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 0x416a61
cmp dword [ebp - 0x10], 0
je 0x416a61
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x451778]
test byte [eax + edi + 0x28], 0x48
je 0x416a3b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416a26
mov byte [esi], dl
jmp 0x416a37
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451778]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416a83
cmp byte [ebp - 1], 0xa
jne 0x416a4a
cmp esi, ebx
jne 0x416a4a
mov byte [esi], 0xa
jmp 0x416a82
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004179ab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416a83
mov byte [esi], 0xd
jmp 0x416a82
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x451778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416a80
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416a83
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416a8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x451778]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416ad2
cmp word [ebx], dx
jne 0x416ad2
or byte [eax + edi + 0x28], 4
jmp 0x416ad7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x416c3a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x416c1a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x416b18
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416b4e
cmp eax, edx
jae 0x416b5c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x416af3
jmp 0x416c3a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416c15
cmp dword [ebp - 0x18], 0
je 0x416c15
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x451778]
test byte [eax + edi + 0x28], 0x48
je 0x416beb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x416baf
mov word [esi], cx
jmp 0x416be6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x451778]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x451778]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x451778]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x416c3a
pop eax
cmp word [ebp - 4], ax
jne 0x416bfb
cmp esi, ebx
jne 0x416bfb
mov word [esi], ax
jmp 0x416c37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004179ab
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x416c3a
push 0xd
pop eax
jmp 0x416bf6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x451778]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x416c34
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x416c3a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424db9
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x424e0e
push dword [esp + 0x10]
push 0x424d38
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x451cf0]
test edi, edi
je 0x424e67
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x424e06
cmp byte [edi + 0x10], 0
je 0x424e06
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x424de2
jmp 0x424e67
mov edi, dword [0x451cf0]
test edi, edi
je 0x424e67
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x424e60
cmp byte [edi + 0x11], 0
je 0x424e39
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x424e50
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x451cf0
call fcn.00425b2b
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x424e1b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x424eed
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x425035
xor ecx, ecx
cmp word [eax], cx
je 0x425035
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0043bba4
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0040d492
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x424f46
cmp eax, 3
jne 0x424f80
cmp word [esp + 0xa], 0x3a
jne 0x424f80
cmp eax, 2
jne 0x424f64
lea eax, [esp + 8]
push 0x444398
push eax
call fcn.0043bb73
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425035
push 0xfffffffffffffffe
pop edi
jmp 0x425035
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x424f95
cmp ax, bx
jne 0x424f9f
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x424f88
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x424fde
test byte [esp + 0x21c], 0x10
je 0x424fc5
push 0xfffffffffffffffe
pop edi
jmp 0x424fd5
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x425033
cmp word [esp + 0x10], bp
jne 0x424fec
cmp word [esp + 0x12], bp
je 0x42500b
cmp word [esp + 0x10], bx
jne 0x424ffa
cmp word [esp + 0x12], bx
je 0x42500b
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x425033
cmp word [esp + 0x12], ax
jne 0x425033
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x425020
test al, 0x10
je 0x425033
jmp 0x425030
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425033
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x425250
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x425269
push dword [0x451d34]
call fcn.00425953
pop edi
ret 4
push esi
push edi
push dword [0x451d34]
call fcn.004259bb
mov esi, eax
test esi, esi
je 0x4252d3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4252bf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4252ae
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x450824]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x451d34]
call fcn.00425981
pop esi
pop edi
ret 4

Function at 0x4252e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x42531c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x425640
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x451d34]
call fcn.004259bb
test eax, eax
je 0x42568b
cmp dword [eax + 4], 0
je 0x425675
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.004256f0
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x4256f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x425713
push ebx
call fcn.004252e0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x425797
mov ecx, ebp
sub ecx, 1
je 0x425782
sub ecx, 1
je 0x42576b
sub ecx, 2
je 0x425756
push ebp
push eax
push dword [esp + 0x24]
call fcn.0041b820
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0041b820
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x4257e0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.0041b820
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x425830
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x425947
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x42587d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x425906
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x4258ef
sub eax, 1
je 0x4258d6
sub eax, 2
je 0x4258bf
push esi
push dword [esp + 0x24]
push ecx
call fcn.0041b820
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.004252e0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x425935
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4258a7
xor eax, eax
pop edi
add esp, 8
ret 0xc

Function at 0x426200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42622d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42622d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002a5cf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x1002a5cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1002a5de
pop dword [ebp - 0x50]
mov eax, 0x48c32c9c
add eax, 0xc73f7942
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3b29d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4f275f65
sub ecx, 0x4f272ba1
mov edi, eax
mov ebx, 0x1004bc00
add ebx, dword [ebp - 0x50]
mov esi, 0x530e071e
sub dword [ebp - 0x18], 0xc5f5af47
mov edx, dword [ebx]
add dword [ebp - 0x4c], 0x1164ff6a
xor edx, esi
mov dword [ebp - 0x3c], 0x666bd293
mov dword [edi], edx
add dword [ebp - 0x10], 0x7d1d6b6a
add edi, 4
add ebx, 0xaf35f2c0
add ebx, 0x50ca0d44
loop 0x1002a62c
add eax, 0xc3cd9157
add eax, 0x3c33308c
xor ebx, ebx
add ebx, eax
add eax, 0x77d192d6
sub eax, 0x77d192d1
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret