joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f157
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 + 0x41efa0]
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 0x40f19d
cmp word [ebx], dx
jne 0x40f19d
or byte [eax + edi + 0x28], 4
jmp 0x40f1a2
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 0x40f305
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 0x40f2e5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f1e3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f219
cmp eax, edx
jae 0x40f227
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 0x40f1be
jmp 0x40f305
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 0x40f2e0
cmp dword [ebp - 0x18], 0
je 0x40f2e0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41efa0]
test byte [eax + edi + 0x28], 0x48
je 0x40f2b6
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 0x40f27a
mov word [esi], cx
jmp 0x40f2b1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41efa0]
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 + 0x41efa0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41efa0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f305
pop eax
cmp word [ebp - 4], ax
jne 0x40f2c6
cmp esi, ebx
jne 0x40f2c6
mov word [esi], ax
jmp 0x40f302
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040ee03
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f305
push 0xd
pop eax
jmp 0x40f2c1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41efa0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f2ff
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f305
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 0x413175
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004130f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4132e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4132e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x413299
jg 0x4131d1
test eax, eax
je 0x41328f
push 1
push 0x1000
call fcn.00408002
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4131f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x413286
push 0x8000
push ebx
call fcn.00407712
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41321d
jg 0x413218
cmp ecx, 0x1000
jb 0x41321d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00409f61
add esp, 0x10
cmp eax, 0xffffffff
je 0x413262
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x413218
jl 0x413249
test ecx, ecx
jne 0x41320a
push dword [ebp - 0xc]
push ebx
call fcn.00407712
push esi
call fcn.00408378
add esp, 0xc
xor ebx, ebx
jmp 0x4132f2
cmp byte [edi + 0x24], 0
je 0x413279
cmp dword [edi + 0x20], 5
jne 0x413279
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413284
mov ebx, dword [edi + 0x18]
jmp 0x413286
xor ebx, ebx
push esi
call fcn.00408378
pop ecx
jmp 0x4132f2
test ecx, ecx
jg 0x41325b
jl 0x413299
test eax, eax
jae 0x41325b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040ee03
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4132b9
cmp byte [edi + 0x1c], 0
je 0x41325b
jmp 0x4132ea
push ebx
call fcn.0040d9be
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41325b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4132f2
cmp byte [edi + 0x1c], 0
je 0x4132ef
mov ebx, dword [edi + 0x18]
jmp 0x4132f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040ee03
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4157a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4157cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4157cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45cc10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x435015
lea edi, [esi - 0x34015]
push edi
or ebp, 0xffffffff
jmp 0x45cc32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45cc39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45cc28
mov eax, 1
add ebx, ebx
jne 0x45cc4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45cc40
jne 0x45cc5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cc40
xor ecx, ecx
sub eax, 3
jb 0x45cc70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45cce2
mov ebp, eax
add ebx, ebx
jne 0x45cc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45cc88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ccac
inc ecx
add ebx, ebx
jne 0x45cc98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45cc8d
jne 0x45cca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cc8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cccc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45ccbd
jmp 0x45cc2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cccc
add edi, ecx
jmp 0x45cc2e
pop esi
mov edi, esi
mov ecx, 0x6f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45ccea
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45ccef
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cd57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c25c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c2c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cd15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2d0]
or eax, eax
je 0x45cd51
mov dword [ebx], eax
add ebx, 4
jmp 0x45cd32
call dword [esi + 0x5c2cc]
mov ebp, dword [esi + 0x5c2d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45cd8b
sub esp, 0xffffff80
jmp 0x42d0b0

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6c053209
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x50a712e9
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1004070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add byte [ecx - 0x72f77500], ch
js 0x1004033
cmp ecx, 0x800
cmp eax, 0x8d10244c
sub al, 0xd
jl 0x100402f
mov byte [esp + 0x10], 0xdd
or byte [eax], al
add byte [esp + eax*2 + 0xd8b1024], dh
add byte [eax + eax + 0x7dc80d01], ch
imul edi, dword [esi + 0x100ab04], 0x10068
add al, ch
xor al, 0xf4
push esp
inc dword [ebx + 0x47850411]
je 0x1004031
mov ah, 0x44
and al, 0x10
mov ecx, dword [0x100ac00]
or eax, 0xbe697dc8
add al, 0xab
add byte [ecx], al
push 0x100
call 0x553480
adc dword [ecx], 4
test dword [edi + 0x74], eax
fimul word [ebx + 0xac000d]
add dword [ecx + 0x20c18306], ecx
mov ecx, dword [0x100ac00]
mov dword [esi], eax
add ecx, 0x20
mov dword [0xeb00ac1b], ecx
lea eax, [eax]
add byte [ecx], al
add byte [eax], al
cmp eax, ecx
jae 0x100408a
mov byte [eax + 4], 0
mov dword [eax], 0xffffffff
jl 0x10040c7
mov esp, 0x283868b
or byte [ecx + 0x14dc2], al
add ah, ch
ret 0xe472
mov eax, dword [0x10fac00]
cmp dword [eax], edx
and al, 0x10
add esi, 0x77
cmp eax, ecx
jl 0x10040b4
jmp 0x10040d4
stc
add dh, byte [esp + esi - 0x76]
pop es
test al, 0x19
je 0x10040ec
test al, 8
jne 0x10040cd
push ecx
call dword [0x1ad1090]
test eax, eax
je 0x10040ec
lodsd eax, dword [esi]
add dword [ebp - 0x59e08b40], eax
cmpsb byte [esi], byte es:[edi]
in al, 0x8b
outsd dx, dword [esi]
pop ds
mov ecx, dword [edx*4 + 0x100ab00]
mov edx, dword [ebp]
rcl dword [ecx + eax*8], 0x8d
add cl, 0x56
js 0x328b44fa
mov esi, dword [ecx]
and al, 0xc3
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2a84567d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4c067fe7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x49ad73f9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5b897a07
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401f49
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f5f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f56
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401f92
nop
cmp esi, ecx
jae 0x401f56
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401f80
cmp esi, ecx
jae 0x401f56
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push dword [ebx]
push 1
push dword [ebx + 8]
push edi
call fcn.00435271
mov esi, dword [ebx + 8]
mov ecx, eax
add esp, 0x10
cmp ecx, 1
sete al
mov byte [ebp - 1], al
mov eax, esi
cdq
idiv dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
cmp ecx, 1
jne 0x4054f7
add dword [ebx + 0x14], esi
mov edx, 0x18
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [ebx + 0x20]
mov dword [eax], str.read
call fcn.004035d0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov dword [ebp - 8], 0
mov esi, edi
mov dword [ebp - 0x10], edx
test eax, eax
je 0x4054ad
mov edi, edx
jmp 0x40540b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
cmp edx, 1
jne 0x40541a
xor edx, edx
cmp byte [esi], dl
jmp 0x40541f
xor edx, edx
cmp word [esi], dx
sete dl
mov eax, edi
test edx, edx
je 0x405454
test ecx, ecx
je 0x405448
cmp esi, ecx
je 0x405448
imul edi, dword [ebp - 8]
mov eax, esi
sub eax, ecx
push eax
push ecx
sub ecx, edi
push ecx
call fcn.0042e570
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov edx, dword [ebp - 8]
lea ecx, [eax + esi]
inc edx
mov dword [ebp - 8], edx
jmp 0x405457
mov edx, dword [ebp - 8]
add esi, eax
mov edi, eax
cmp dword [ebp - 0xc], 0
jne 0x405405
test ecx, ecx
je 0x40547b
cmp esi, ecx
je 0x40547b
sub esi, ecx
imul eax, edx
push esi
push ecx
sub ecx, eax
push ecx
call fcn.0042e570
add esp, 0xc
mov esi, dword [ebp - 8]
test esi, esi
je 0x4054aa
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [ebx + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.004035d0
add esp, 0x10
sub dword [ebx + 0x1c], esi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x18], 1
jle 0x4054f7
test byte [ebx + 4], 0x80
je 0x4054f7
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x4054d2
movzx eax, word [edi + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edi + ecx*2], ax
test ecx, ecx
jne 0x4054c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [ebx + 0x20]
mov ecx, eax
call fcn.004035d0
add esp, 0x10
mov al, byte [ebp - 1]
test al, al
jne 0x405508
mov ecx, ebx
call fcn.00405090
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4059a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
imul eax, edx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp + 0xc], 0
cmovne edi, eax
test byte [esi + 4], 0x80
je 0x405a49
test ecx, ecx
jne 0x405a04
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414c09
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push edi
push ebx
call fcn.0042dff0
mov edx, dword [esi + 0x1c]
add esp, 0x10
mov ecx, ebx
mov edi, ebx
test edx, edx
je 0x405a22
nop dword [eax + eax]
movzx eax, word [ecx + edx*2 - 2]
dec edx
rol ax, 8
mov word [ecx + edx*2], ax
test edx, edx
jne 0x405a10
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
lea ebx, [esi + 0x20]
push ecx
xor edx, edx
mov ecx, ebx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.004035d0
add esp, 0x10
jmp 0x405a4c
lea ebx, [esi + 0x20]
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.004355bb
mov ecx, dword [ebp + 0xc]
add esp, 0x10
cmp eax, 1
sete al
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x405a78
push ecx
call fcn.00414c04
mov al, byte [ebp + 0xb]
add esp, 4
test al, al
je 0x405ab1
mov eax, dword [esi + 8]
mov edx, 0x18
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
mov esi, dword [esi + 0x24]
push ecx
mov edi, esp
push ecx
mov ecx, ebx
mov dword [edi], esi
mov esi, esp
mov dword [esi], str.write
call fcn.004035d0
mov al, byte [ebp + 0xb]
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00405090
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40fa30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445848
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x460554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
push 0x400
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea ecx, [ebp - 0x10]
call fcn.00402640
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call esi
push eax
lea eax, [ebp - 0x10]
push str.error__d_n_s
push eax
call fcn.00401ea0
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.00401db0
mov ecx, edi
call fcn.00411360
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4129d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445c90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x460554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00402550
mov dword [ebp - 4], 0
push dword [ebx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
or edi, 0xffffffff
cmp dword [ebx + 0x24], 0
je 0x412af8
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
test al, 1
jne 0x412ada
push 0
push 0
push 0
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.00414c09
push esi
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.0042eaf0
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call edi
mov edi, dword [ebp - 0x10]
mov byte [edi + esi - 1], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov dword [ebp - 0x10], eax
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412aa0
push 0
lea eax, [ebp - 0x18]
sub ecx, edx
push eax
push ecx
push edi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
push dword [ebp - 0x10]
call esi
push edi
call fcn.00414c04
add esp, 4
or edi, 0xffffffff
jmp 0x412b6a
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
call esi
jmp 0x412b6a
mov esi, dword [ebp + 8]
call fcn.004153de
mov ecx, eax
test ecx, ecx
je 0x412b9d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040eb20
test al, al
jne 0x412b2f
push esi
lea ecx, [ebp - 0x10]
call fcn.0040ebe0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412b6a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x412b89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004025f0
int3