joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3ac0
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x700
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 4
mov dword [esp + 0xcc], edx
mov dword [esp + 0x13c], 0
mov dword [esp + 0xc8], ecx
call fcn.004a3b03

Function at 0x4a9be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov dword [esp + 0x68], ecx
mov ecx, dword [edx + 8]
call fcn.004a9bfb
Function at 0x4bccf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov eax, 0
mov edi, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
cmp bl, 1
setne dl
sbb eax, eax
or al, dl
call 0x4bcd1d
pop edx
mov dword [ebp - 0x14], edx
cmp al, 0xff
movzx edx, al
je 0x4bcd2c
test edx, edx
jne 0x4bcd56
mov byte [ebp - 0x10], bl
movzx ebx, byte [edi + 0x1e]
cmp al, 0xff
je 0x4bcd3b
test edx, edx
jne 0x4bcd48
mov ecx, edi
call fcn.004bcc00
movzx eax, al
mov dword [ebp - 0x1c], eax
mov edx, ebx
movzx ebx, byte [ebp - 0x10]
xor esi, esi
test bl, bl
jne 0x4bcdbd
jmp 0x4bcd5e
xor edx, edx
xor esi, esi
test bl, bl
jne 0x4bcdbd
xor esi, esi
cmp byte [edi + 8], 6
lea eax, [edi + 8]
cmove eax, esi
je 0x4bcdbd
movzx ecx, byte [eax]
mov ebx, dword [ebp - 0x14]
mov esi, 6
add ebx, dword [ecx*4 + 0x4bcec8]
jmp ebx
mov eax, dword [ebp - 0x1c]
movzx ecx, dl
mov dword [ebp - 0x20], ecx
lea ebx, [eax + ecx]
mov eax, dword [edi + 4]
add ebx, esi
cmp eax, ebx
jb 0x4bceaf
mov edx, dword [edi]
mov ecx, edx
lea ecx, [edx + ebx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edi + 8]
xor edi, edi
cmp eax, ebx
jne 0x4bcdf5
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
jmp 0x4bce62
cmp cl, 3
jae 0x4bce1b
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esi, dword [ebp - 0x20]
lea edx, [eax + edx - 1]
sub esi, eax
nop dword [eax]
cmp byte [edx], 0x5c
je 0x4bce4b
dec edx
inc esi
jne 0x4bce10
jmp 0x4bcded
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esi, dword [ebp - 0x20]
lea edx, [eax + edx - 1]
sub esi, eax
nop word [eax + eax]
movzx edi, byte [edx]
cmp edi, 0x2f
je 0x4bce4b
cmp edi, 0x5c
je 0x4bce4b
dec edx
inc esi
jne 0x4bce30
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
xor edi, edi
jmp 0x4bce62
not esi
lea ebx, [ebx + esi + 1]
cmp eax, ebx
jb 0x4bceb6
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov edi, 1
add esi, ebx
sub eax, ebx
je 0x4bce87
mov ebx, ecx
mov cl, 9
cmp eax, 2
je 0x4bce8b
cmp eax, 1
jne 0x4bce9a
cmp byte [esi], 0x2e
jne 0x4bce9a
xor ecx, ecx
cmp bl, 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x4bce9a
mov cl, 0xa
jmp 0x4bce9a
cmp byte [esi], 0x2e
jne 0x4bce9a
cmp byte [esi + 1], 0x2e
sete cl
xor cl, 9
add edi, eax
mov dword [edx], edi
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xa4cdf8
jmp 0x4bcebb
push 0xa4ce08
push eax
push ebx
call fcn.005182a0
add esp, 0xc
ud2
Function at 0x51ba80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x51bad8
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x51bad0
cmp eax, ebx
jb 0x51bb52
cmp eax, dword [ebp + 0x10]
ja 0x51bb63
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x51bad2
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x51bac0
jmp 0x51bb2f
ja 0x51bad8
cmp edx, edi
mov ebx, eax
jne 0x51ba92
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x51bb33
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x51bb10
mov esi, edi
sub ecx, ebx
jns 0x51bb27
jmp 0x51bb35
cmp edi, edx
je 0x51bb3c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x51bb35
xor al, 1
cmp esi, edx
jne 0x51baf0
jmp 0x51bb35
xor eax, eax
jmp 0x51bb35
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xa5f910
push 0x2b
push 0xa5e0dd
call fcn.00512480
add esp, 0xc
ud2
push 0xa5f900
push eax
push ebx
call fcn.005183a0
add esp, 0xc
ud2
push 0xa5f900
push dword [ebp + 0x10]
push eax
call fcn.00518320
add esp, 0xc
ud2
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401bad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401bce
cmp esi, eax
jae 0x401ba7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bc0
cmp esi, eax
jae 0x401ba7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407100
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
push str.temp.dat
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [esi + 0x66c]
cmp ebx, dword [esi + 0x670]
je 0x407169
lea ebp, [ebx + 4]
mov edi, dword [ebx]
test edi, edi
je 0x407138
mov ecx, edi
call fcn.00406ea0
push edi
call fcn.00429b30
add esp, 4
mov ecx, dword [esi + 0x670]
cmp ebp, ecx
mov eax, ebp
je 0x407154
mov edx, ebx
sub edx, ebp
mov edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
cmp eax, ecx
jne 0x407148
mov ecx, dword [esi + 0x670]
add ecx, 0xfffffffc
mov eax, ecx
cmp ebx, eax
mov dword [esi + 0x670], ecx
jne 0x407122
mov ecx, dword [esi + 0x24c]
test ecx, ecx
je 0x407193
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x24c]
test ecx, ecx
je 0x407189
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24c], 0
mov ecx, dword [esi + 0x248]
test ecx, ecx
je 0x4071bd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x248]
test ecx, ecx
je 0x4071b3
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x248], 0
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
jmp 0x42c594
push esi
mov esi, ecx
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x42c5a5
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 0x28]
and dword [esi + 0x48], 0
test eax, eax
je 0x42c5ba
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42c5c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, esi
pop esi
jmp fcn.0042c3e7
Function at 0x40aa20
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4377db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x449704]
xor eax, dword [esp + 0x13c]
push ebx
push esi
mov esi, dword [esp + 0x148]
lea ecx, [esp + 8]
mov dword [esp + 0x134], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x140], ebx
call dword [edx + 0x4c]
push ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0041d204
mov esi, dword [esp + 0x150]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x38]
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push edx
push eax
mov byte [esp + 0x34], bl
mov dword [esp + 0x20], ecx
call fcn.0042f9b8
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebx
jg 0x40ab06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
xor ecx, dword [esp + 0x13c]
call fcn.0041b931
add esp, 0x13c
ret 8
Function at 0x40b7c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x437963
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00431006
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x40b8d7
mov eax, dword [esp + 0x30]
cmp eax, ecx
lea edi, [esi + 0x20]
je 0x40b837
push eax
push edi
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x40b83f
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0043141e
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.00431705
test ebp, ebp
je 0x40b87b
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.0043178e
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00431156
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40b8e9
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi]
mov ebp, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, ebx
test ebp, ebp
je 0x40b8bf
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40b8e9
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x40d5f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40d5ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x447250]
test eax, eax
je 0x40d60d
call fcn.0040d590
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40d70f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x44a6a4]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x44a6a4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x44a6a4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x44a6a4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x44a6a4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x44a6a4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x44a6a4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x44a6a4]
xor eax, ecx
inc esi
dec edi
jne 0x40d627
pop edi
test edx, edx
je 0x40d731
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x44a6a4]
xor eax, ecx
inc esi
dec edx
jne 0x40d713
pop ebx
pop esi
not eax
ret 0xc
Function at 0x412fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x413013
call fcn.00434636
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x413013
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x413009
xor eax, eax
jmp 0x413128
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x413042
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x413042
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x413125
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x413071
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x413125
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4130af
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4130af
test edi, edi
mov dword [ebp - 8], edi
je 0x4130a9
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x413115
and dword [ebp + 0x10], 0
jmp 0x413115
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x413115
push 0xc
call fcn.00429b05
mov esi, eax
test esi, esi
pop ecx
je 0x4130f4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x4130f6
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x413110
push dword [ebp - 8]
call fcn.004297bf
jmp 0x413115
call fcn.00429796
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x41307d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41d5cf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43e8f8
call fcn.0041de8c
mov edi, 0x94
mov eax, edi
call fcn.0041c790
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44ca1c], ecx
mov eax, dword [esi + 4]
mov dword [0x44ca28], eax
mov edx, dword [esi + 8]
mov dword [0x44ca2c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44ca20], esi
cmp ecx, 2
je 0x41d62f
or esi, 0x8000
mov dword [0x44ca20], esi
shl eax, 8
add eax, edx
mov dword [0x44ca24], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41d66a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d66a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41d682
cmp eax, 0x20b
je 0x41d66f
mov dword [ebp - 0x1c], esi
jmp 0x41d696
cmp dword [ecx + 0x84], 0xe
jbe 0x41d66a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41d690
cmp dword [ecx + 0x74], 0xe
jbe 0x41d66a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00423612
pop ecx
test eax, eax
jne 0x41d6aa
push 0x1c
call fcn.0041d5ab
pop ecx
call fcn.0042110c
test eax, eax
jne 0x41d6bb
push 0x10
call fcn.0041d5ab
pop ecx
call fcn.00424b13
mov dword [ebp - 4], esi
call fcn.00424915
test eax, eax
jge 0x41d6d4
push 0x1b
call fcn.0041d586
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44e270], eax
call fcn.004247f3
mov dword [0x44ca0c], eax
call fcn.00424751
test eax, eax
jge 0x41d6fa
push 8
call fcn.0041d586
pop ecx
call fcn.0042451e
test eax, eax
jge 0x41d70b
push 9
call fcn.0041d586
pop ecx
call fcn.0041e0da
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x41d71e
push eax
call fcn.0041d586
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004244b5
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41d73f
movzx eax, word [ebp - 0x34]
jmp 0x41d742
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00428d0e
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41d760
push edi
call fcn.0041e212
call fcn.0041e234
jmp 0x41d792
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041dec7
ret
Function at 0x425518
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4256de
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44df00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4256de
test cl, 0x48
je 0x42557e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42557e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4255d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4255b8
call fcn.0041e9c3
mov dword [eax], 9
call fcn.0041e9cc
mov dword [eax], esi
jmp 0x4255c8
cmp eax, 0x6d
je 0x4256de
push eax
call fcn.0041e9d5
pop ecx
or eax, 0xffffffff
jmp 0x4256e0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4256d9
test edx, edx
je 0x4255f3
cmp byte [ebx], 0xa
jne 0x4255f3
or al, 4
jmp 0x4255f5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4256d3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4256c3
cmp al, 0xd
je 0x425629
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4256b5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x425643
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42563e
add dword [ebp + 0x10], 2
jmp 0x425697
mov dword [ebp + 0x10], eax
jmp 0x4256b1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42566b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4256b1
cmp dword [ebp - 0xc], 0
je 0x4256b1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42568c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x425697
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4256b4
cmp ebx, dword [ebp + 0xc]
jne 0x42569c
cmp byte [ebp - 1], 0xa
jne 0x42569c
mov byte [ebx], 0xa
jmp 0x4256b4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425a92
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4256b5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42560d
jmp 0x4256d3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4256d3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4256e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x449704]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4257b9
xor eax, eax
jmp 0x425927
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44df00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4257ec
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004278f8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4258be
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4258f9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x425847
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x425838
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x42581b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425887
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x425890
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x42580c
jmp 0x425892
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x425922
cmp dword [ebp - 8], edi
je 0x4258f9
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4258eb
call fcn.0041e9c3
mov dword [eax], 9
call fcn.0041e9cc
mov dword [eax], esi
jmp 0x4258f4
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4258e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x425892
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x425892
push dword [ebp - 8]
call fcn.0041e9d5
pop ecx
or eax, 0xffffffff
jmp 0x425925
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42590e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42590e
xor eax, eax
jmp 0x425925
call fcn.0041e9c3
mov dword [eax], 0x1c
call fcn.0041e9cc
mov dword [eax], edi
jmp 0x4258f4
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0041b931
leave
ret