joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63a3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x9364f0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x63a5dc
sub esp, 0x68
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
xor ecx, ecx
mov ebx, 1
jmp 0x63a42d
mov ebp, dword [esp + 0x5c]
lea ecx, [ebp + 1]
cmp dl, 0x2d
sete bl
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
cmp eax, ecx
jle 0x63a5d0
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x18], bl
movzx ebp, byte [edx + ecx]
xchg ebp, eax
mov byte [esp + 0x19], al
xchg ebp, eax
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 1
shl edx, cl
neg ecx
mov byte [esp + 0x1b], cl
mov eax, 1
shr eax, cl
lea edi, [ebp - 0x60]
mov ecx, edi
mov ebx, 1
shl ebx, cl
mov dword [esp + 0x64], ebx
neg ecx
mov byte [esp + 0x1a], cl
mov ebx, 1
shr ebx, cl
mov dword [esp + 0x60], ebx
add ebp, 0xffffffc0
mov ecx, ebp
mov ebx, 1
shl ebx, cl
xchg esi, eax
cmp al, 0x20
xchg esi, eax
sbb esi, esi
and edx, esi
movzx esi, byte [esp + 0x1b]
xchg esi, eax
cmp al, 0x20
xchg esi, eax
sbb esi, esi
and eax, esi
or eax, edx
and eax, 0x3ff6cfa
cmp cl, 0x20
sbb edx, edx
and edx, ebx
xchg edi, eax
cmp al, 0x20
xchg edi, eax
sbb ebx, ebx
mov ebp, dword [esp + 0x64]
and ebp, ebx
movzx ebx, byte [esp + 0x1a]
cmp bl, 0x20
sbb ebx, ebx
mov esi, dword [esp + 0x60]
and esi, ebx
or ebp, esi
and ebp, 0x57ffffff
or ebp, eax
test ebp, ebp
setne al
test edx, 0xc7fffffe
setne dl
or eax, edx
test al, al
je 0x63a5bc
movzx eax, byte [esp + 0x18]
test al, al
je 0x63a511
movzx edx, byte [esp + 0x19]
lea ebx, [edx - 0x61]
cmp bl, 0x19
jbe 0x63a524
test al, al
jne 0x63a418
jmp 0x63a516
movzx edx, byte [esp + 0x19]
lea eax, [edx - 0x41]
cmp al, 0x19
ja 0x63a418
jmp 0x63a570
lea eax, [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.net_textproto.canonicalMIMEHeaderKey
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
lea eax, [esp + 0x1c]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.net_textproto.canonicalMIMEHeaderKey
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
add esp, 0x68
ret
call sym.runtime.morestack_noctxt
jmp sym.net_textproto.CanonicalMIMEHeaderKey
Function at 0x643040
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [0x9364f0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6430bd
sub esp, 8
lea eax, [0x6c1c60]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
xor ecx, ecx
jmp 0x64306f
mov dword [eax + edx*4], ecx
lea ecx, [edx + 1]
cmp ecx, 0x100
jge 0x64307d
mov edx, ecx
xor ebx, ebx
jmp 0x6430a2
mov ecx, dword [0x9367c0]
test ecx, ecx
je 0x643097
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [0x9162ec]
mov dword [edi + 4], ecx
mov dword [0x9162ec], eax
add esp, 8
ret
inc ebx
cmp ebx, 8
jge 0x643069
test ecx, 1
je 0x6430b9
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x6430a1
shr ecx, 1
jmp 0x6430a1
call sym.runtime.morestack_noctxt
jmp sym.hash_crc32.init
Function at 0x401540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea eax, [ebx*4]
mov esi, ecx
push eax
mov dword [esi + 4], ebx
call fcn.004492c0
mov ecx, dword [esi + 4]
mov dword [esi], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x401581
jmp 0x401570
mov ecx, dword [esi]
mov dword [ecx + eax*4], 0
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x401570
test ebx, ebx
jle 0x4015d2
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ebx
lea ecx, [ecx]
mov edx, dword [edi]
xor ecx, ecx
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x4015b8
lea esp, [esp]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x4015a0
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [eax + edx*4]
mov dword [edi + 8], ecx
mov eax, dword [esi]
mov dword [eax + edx*4], edi
add edi, 0xc
dec ebp
jne 0x401590
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x403f90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor eax, eax
jmp 0x403fa0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x403fa0
xor dl, dl
xor edi, edi
lea ecx, [esi + 1]
mov dword [esp + 0x10], 0x40
lea ebx, [ebx]
movzx eax, dl
mov dl, byte [ecx - 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x403fe7
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx - 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x404025
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x404063
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x4040a2
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 2], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x403fc0
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x42c8f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov ecx, dword [edi + 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jl 0x42c9bd
mov ebp, dword [edi]
lea eax, [esi + esi + 1]
mov dword [edi + 4], eax
shl eax, 3
push eax
mov dword [esp + 0x14], ebp
call fcn.004492c0
mov ecx, dword [edi + 4]
mov dword [edi], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x42c941
mov ecx, dword [edi]
mov dword [ecx + eax*8], 0
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x42c930
test esi, esi
jle 0x42c9b4
mov edx, dword [ebp]
test edx, edx
je 0x42c9aa
xor ecx, ecx
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x42c978
jmp 0x42c960
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42c960
mov ecx, dword [edi + 4]
xor edx, edx
div ecx
mov eax, dword [edi]
cmp dword [eax + edx*8], 0
je 0x42c99d
mov ebx, eax
lea esp, [esp]
inc edx
cmp edx, ecx
jne 0x42c997
xor edx, edx
cmp dword [ebx + edx*8], 0
jne 0x42c990
mov ecx, dword [ebp]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp + 4]
mov dword [eax + edx*8 + 4], ecx
add ebp, 8
dec esi
jne 0x42c945
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00449350
add esp, 4
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [esi]
xor eax, eax
test cl, cl
mov edx, esi
je 0x42c9e8
lea ecx, [ecx]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42c9d0
mov ecx, dword [edi + 4]
xor edx, edx
div ecx
mov ebp, edx
mov edx, dword [edi]
cmp dword [edx + ebp*8], 0
je 0x42ca4c
jmp 0x42ca00
mov esi, dword [esp + 0x18]
nop
mov eax, dword [edx + ebp*8]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x42ca27
test cl, cl
je 0x42ca23
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x42ca27
add eax, 2
add esi, 2
test cl, cl
jne 0x42ca03
xor eax, eax
jmp 0x42ca2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ca42
mov eax, dword [edi + 4]
inc ebp
cmp ebp, eax
jne 0x42ca3a
xor ebp, ebp
mov eax, dword [edi]
cmp dword [eax + ebp*8], 0
jne 0x42c9fb
cmp dword [edx + ebp*8], 0
mov esi, dword [esp + 0x18]
jne 0x42ca5a
push esi
call fcn.00449370
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + ebp*8], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [edx + ebp*8 + 4], eax
inc dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4492c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4492c9
ret
push eax
call fcn.0044c0c0
add esp, 4
test eax, eax
jne 0x4492c8
push str.Out_of_memory_n
push 0x485a50
call fcn.0044aab4
add esp, 8
push 1
call fcn.0044bd53
int3

Function at 0x4492f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x44930c
mov eax, dword [esp + 4]
test eax, eax
je 0x449309
push eax
call fcn.0044c234
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 4]
test ecx, ecx
push eax
je 0x449320
push ecx
call fcn.0044c0d2
add esp, 8
jmp 0x449328
call fcn.0044c0c0
add esp, 4
test eax, eax
jne 0x44930b
push str.Out_of_memory_n
push 0x485a50
call fcn.0044aab4
add esp, 8
push 1
call fcn.0044bd53
int3

Function at 0x449370
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449380
sub eax, edx
inc eax
jne 0x4493a2
xor eax, eax
push esi
mov esi, eax
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x449395
pop esi
pop edi
ret
push eax
call fcn.0044c0c0
add esp, 4
test eax, eax
jne 0x44938e
push str.Out_of_memory_n
push 0x485a50
call fcn.0044aab4
add esp, 8
push 1
call fcn.0044bd53
int3

Function at 0x449c20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 4]
mov esi, dword [esi]
xor eax, eax
test esi, esi
push edi
mov edi, ecx
jle 0x449c4e
push ebx
xor ecx, ecx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
add ebx, eax
and ecx, 0xff
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x449c34
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x449c60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x449c89
push edi
mov edi, eax
shl edi, 4
and edx, 0xff
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x449c70
pop edi
xor edx, edx
div dword [ecx + 4]
pop esi
mov eax, edx
ret 4
Function at 0x449d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov ebp, dword [edi + 0xc]
lea eax, [esi + esi + 1]
mov dword [edi + 4], eax
shl eax, 2
push eax
mov dword [esp + 0x18], ebp
call fcn.004492c0
mov ecx, dword [edi + 4]
mov dword [edi + 0xc], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x449d63
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*4], 0
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x449d51
test esi, esi
jle 0x449dde
mov dword [esp + 0x10], esi
push ebx
lea esp, [esp]
cmp dword [ebp], 0
je 0x449dcb
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov dword [ebp], edx
mov edx, dword [ecx]
mov esi, dword [edx + 4]
mov edx, dword [edx]
xor eax, eax
test edx, edx
jle 0x449db1
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [esi]
mov ebx, eax
shl ebx, 4
add ebx, eax
and edx, 0xff
add edx, ebx
mov eax, edx
mov edx, dword [esp + 0x10]
inc esi
dec edx
mov dword [esp + 0x10], edx
jne 0x449d90
xor edx, edx
div dword [edi + 4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [eax + edx*4], ecx
cmp dword [ebp], 0
jne 0x449d76
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x449d70
mov ebp, dword [esp + 0x18]
pop ebx
push ebp
call fcn.00449350
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x44bc92
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x486c00], esi
push edi
jne 0x44bcb2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x486bfc], esi
mov byte [0x486bf8], al
jne 0x44bd18
mov ecx, dword [0x4871ac]
test ecx, ecx
je 0x44bcf9
mov eax, dword [0x4871a8]
sub eax, 4
cmp eax, ecx
jmp 0x44bcf2
mov eax, dword [eax]
test eax, eax
je 0x44bce4
call eax
mov eax, dword [0x4871a8]
sub eax, 4
cmp eax, dword [0x4871ac]
mov dword [0x4871a8], eax
jae 0x44bcdc
mov eax, 0x46d028
mov esi, 0x46d034
cmp eax, esi
mov edi, eax
jae 0x44bd18
mov eax, dword [edi]
test eax, eax
je 0x44bd11
call eax
add edi, 4
cmp edi, esi
jb 0x44bd09
mov eax, 0x46d038
mov esi, 0x46d03c
cmp eax, esi
mov edi, eax
jae 0x44bd37
mov eax, dword [edi]
test eax, eax
je 0x44bd30
call eax
add edi, 4
cmp edi, esi
jb 0x44bd28
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x44bd51
push dword [ebp + 8]
mov dword [0x486c00], 1
call fcn.0044bbf8
pop ebp
ret
Function at 0x44bdb8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x467e70
call fcn.004517b8
mov edi, 0x94
mov eax, edi
call fcn.0044ae10
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 [0x486bc0], ecx
mov eax, dword [esi + 4]
mov dword [0x486bcc], eax
mov edx, dword [esi + 8]
mov dword [0x486bd0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x486bc4], esi
cmp ecx, 2
je 0x44be18
or esi, 0x8000
mov dword [0x486bc4], esi
shl eax, 8
add eax, edx
mov dword [0x486bc8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x44be51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44be51
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44be69
cmp eax, 0x20b
je 0x44be56
mov dword [ebp - 0x1c], edi
jmp 0x44be7d
cmp dword [ecx + 0x84], 0xe
jbe 0x44be51
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x44be77
cmp dword [ecx + 0x74], 0xe
jbe 0x44be51
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00451765
pop ecx
test eax, eax
jne 0x44bea9
cmp dword [0x486c0c], 2
je 0x44be96
call fcn.004511aa
push 0x1c
call fcn.00451033
push 0xff
call fcn.0044bbf8
pop ecx
pop ecx
call fcn.00450fab
mov dword [ebp - 4], edi
call fcn.0044ecd7
test eax, eax
jge 0x44bec2
push 0x1b
call fcn.0044bd93
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4871a0], eax
call fcn.00451629
mov dword [0x486c04], eax
call fcn.00451587
test eax, eax
jge 0x44bee8
push 8
call fcn.0044bd93
pop ecx
call fcn.00451354
test eax, eax
jge 0x44bef9
push 9
call fcn.0044bd93
pop ecx
push 1
call fcn.0044bc28
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x44bf0f
push eax
call fcn.0044bd93
pop ecx
mov eax, dword [0x486be0]
mov dword [0x486be4], eax
push eax
push dword [0x486bd8]
push dword [0x486bd4]
call fcn.0043fd40
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x44bf3e
push esi
call fcn.0044bd53
call fcn.0044bd75
jmp 0x44bf70
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004517f3
ret
Function at 0x44e144
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x48708c]
mov eax, dword [0x485cf0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x44e30a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4870a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x44e30a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x44e1ae
xor eax, eax
jmp 0x44e31e
test al, 0x20
je 0x44e1bf
push 2
push edi
push edi
push ecx
call fcn.00453f6b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44e294
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x44e2db
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x44e221
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44e212
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x44e1f4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e261
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44e26d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x44e1e8
jmp 0x44e26f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x44e305
cmp dword [ebp + 0x3a4], edi
je 0x44e2db
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x44e2cd
mov dword [0x486bb8], eax
jmp 0x44e311
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e2bf
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x44e26f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x44e26f
push dword [ebp + 0x3a4]
call fcn.004534dc
pop ecx
jmp 0x44e31b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44e2f3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x44e1a7
mov dword [0x486bb4], 0x1c
mov dword [0x486bb8], edi
jmp 0x44e31b
sub eax, dword [ebp - 0x7c]
jmp 0x44e31e
and dword [0x486bb8], 0
mov dword [0x486bb4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0044e064
add ebp, 0x39c
leave
ret
Function at 0x450813
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x48708c]
push edi
jae 0x4509e8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4870a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4509e8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4508be
test dl, 2
jne 0x4508be
test dl, 0x48
je 0x450888
cmp byte [eax + 5], 0xa
je 0x450888
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4508d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4508b9
mov dword [0x486bb8], ecx
jmp 0x4509ef
cmp eax, 0x6d
jne 0x4508c5
xor eax, eax
jmp 0x4509fc
push eax
call fcn.004534dc
pop ecx
jmp 0x4509f9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4509e3
test eax, eax
je 0x4508f8
cmp byte [ebx], 0xa
jne 0x4508f8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x450901
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4509dd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4509cd
cmp al, 0xd
je 0x450933
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4509bf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x45094d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x450948
add dword [ebp - 8], 2
jmp 0x4509a1
mov dword [ebp - 8], eax
jmp 0x4509bb
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x450975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4509bb
cmp dword [ebp - 0x10], 0
je 0x4509bb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x450996
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4509a1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4509be
cmp ebx, dword [ebp + 0xc]
jne 0x4509a6
cmp byte [ebp - 1], 0xa
jne 0x4509a6
mov byte [ebx], 0xa
jmp 0x4509be
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00450d4d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4509bf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x450917
jmp 0x4509dd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4509dd
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4509fc
and dword [0x486bb8], 0
mov dword [0x486bb4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451033
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x485cf0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x485dd0]
je 0x451068
inc eax
cmp eax, 0x13
jb 0x451059
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x485dd0]
jne 0x45118e
mov eax, dword [0x486c0c]
cmp eax, 1
je 0x451166
cmp eax, edx
jne 0x451098
cmp dword [0x485cb4], 1
je 0x451166
cmp ecx, 0xfc
je 0x45118e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4510ce
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00452920
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0044dcf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x451102
mov eax, edi
push eax
call fcn.0044dcf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46c2a8
push edi
call fcn.0044a680
add esp, 0x10
push edi
call fcn.0044dcf0
push dword [esi + 0x485dd4]
mov ebx, eax
call fcn.0044dcf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044ae10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00452920
push edi
push ebx
call fcn.00452930
push 0x46c288
push ebx
call fcn.00452930
push dword [esi + 0x485dd4]
push ebx
call fcn.00452930
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00455dce
add esp, 0x2c
jmp 0x45118e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x485dd4]
push dword [esi]
call fcn.0044dcf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0044e064
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret