joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f330
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x42f346
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.00433e40
add esp, 4
test eax, eax
jne 0x42f35d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x42f40d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x42f475
cmp edi, ebx
jae 0x42f475
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x42f475
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42f475
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x42f475
mov al, byte [esp + 0x24]
test al, al
je 0x42f46d
cmp al, 0x1a
jne 0x42f475
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x42f475
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.00433dc0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x42f475
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x42f475
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42f475
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x42f475
mov al, byte [esp + 0x24]
test al, al
je 0x42f46d
cmp al, 0x1a
jne 0x42f475
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x42f490
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x42f4a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.00433e40
add esp, 4
test eax, eax
jne 0x42f4be
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x42f5fe
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x42f4fc
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.0043b822
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f5de
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x42f544
mov al, byte [esi]
cmp al, 0xd
je 0x42f586
cmp al, 0xa
je 0x42f586
inc ecx
inc esi
cmp ecx, edx
jb 0x42f534
add ebp, edx
cmp edx, 0x1000
jb 0x42f588
push 0x1000
push ebx
call fcn.0043b4f3
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x42f588
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f5de
jmp 0x42f52a
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.0042c2a0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x42f5a6
cmp al, 0xa
jne 0x42f5af
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x42f5af
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.0043af70
push ebx
mov byte [edi + ebp], 0
call fcn.0043b40a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0043b40a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x42f68c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x42f647
mov cl, byte [ebp]
cmp cl, 0xd
je 0x42f647
cmp cl, 0xa
je 0x42f647
inc ebx
inc ebp
cmp ebx, eax
jb 0x42f634
lea eax, [ebx + 1]
push eax
call fcn.0042c2a0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x42f666
cmp al, 0xa
jne 0x42f66f
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x42f66f
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.0043af70
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x42fb10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x42fb29
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00433e40
add esp, 4
test eax, eax
jne 0x42fb3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x42fb58
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x42fb58
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x42fc40
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x42fb90
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x42fba7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x42fbab
mov esi, dword [esp + 0x2c]
push esi
call fcn.0043af5d
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42fbe4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.0043adf1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x42fc00
mov al, byte [ecx]
test al, al
je 0x42fc00
cmp al, 0x1a
je 0x42fc00
inc edi
inc ecx
cmp edi, edx
jb 0x42fbf0
lea ecx, [edi + 1]
push ecx
call fcn.0042c2a0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.0043af70
push ebx
mov byte [edi + esi], 0
call fcn.0043adf1
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x42fcbb
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x42fc5a
or eax, 0xffffffff
jmp 0x42fc5e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x42fc8d
mov cl, byte [edx]
test cl, cl
je 0x42fc8d
cmp cl, 0x1a
je 0x42fc8d
inc edi
inc edx
cmp edi, eax
jb 0x42fc7c
lea edx, [edi + 1]
push edx
call fcn.0042c2a0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.0043af70
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x42fcd0
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call sub.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x42fcf7
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x42fcf7
mov eax, dword [eax + 0xc]
pop edi
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x42fd00
Capabilities:
Initialize winsock library
Send icmp echo request

Disassembly:
sub esp, 0x2a8
lea eax, [esp + 0x118]
push ebp
push eax
push 0x202
or ebp, 0xffffffff
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x42fd97
mov ecx, dword [esp + 0x2b4]
push ebx
push esi
push edi
push ecx
call fcn.0042fcd0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x42fd85
mov eax, dword [esp + 0x2d4]
mov edi, 0x2710
test eax, eax
je 0x42fd51
mov edi, dword [esp + 0x2cc]
call sub.icmp.dll_IcmpCreateFile
mov esi, eax
test esi, esi
je 0x42fd85
push edi
lea edx, [esp + 0x14]
push 0x116
push edx
push 0
push 0xd
push str.BlackMoonPing
push ebx
push esi
call sub.icmp.dll_IcmpSendEcho
test eax, eax
je 0x42fd7f
mov ebp, dword [esp + 0x18]
push esi
call sub.icmp.dll_IcmpCloseHandle
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x2a8
ret
mov eax, ebp
pop ebp
add esp, 0x2a8
ret
Function at 0x430530
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push Ordinal_2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x430599
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0042c2a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x430c60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x430c73
xor eax, eax
pop esi
add esp, 0x14
ret
push esi
call fcn.00433e40
add esp, 4
test eax, eax
jne 0x430c85
pop esi
add esp, 0x14
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x430d86
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
jle 0x430e19
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
cmp eax, reloc.EGfxLib.dll_Ordinal_4
jne 0x430cda
mov esi, dword [edi]
jmp 0x430d03
push edi
call fcn.00433f00
mov esi, eax
add esp, 4
test esi, esi
jne 0x430cfb
push eax
lea eax, [esp + 0x18]
push eax
push 2
push 0x44c64c
push ebx
call ebp
jmp 0x430d5e
mov dword [esp + 0x18], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x430d3d
lea edx, [esp + 0x14]
push eax
push edx
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x430d35
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x44c64c
push ebx
call ebp
jmp 0x430d3d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x430d4e
push esi
call fcn.0043b40a
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430e19
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x430cc4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
cmp eax, 2
jne 0x430e19
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x430e19
lea edi, [esp + 0x38]
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebp, ebp
cmp eax, reloc.EGfxLib.dll_Ordinal_4
jne 0x430dbb
mov esi, dword [edi]
jmp 0x430dcf
push edi
call fcn.00433f00
mov esi, eax
add esp, 4
test esi, esi
je 0x430e07
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x430de8
mov edx, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [edx + 0x24]
mov eax, dword [ebx]
push 2
push 0x44c64c
mov ecx, ebx
call dword [eax + 0x24]
test ebp, ebp
je 0x430e03
push esi
call fcn.0043b40a
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
jne 0x430dab
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x434430
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x43443c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x4344cf
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x434499
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.004344e0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x43446e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x434500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x4345fd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x434552
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x43457e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004344e0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x4345bf
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x434541
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4369c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x44c854]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4369d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x436a14
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x44c8fc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x436a46
mov bl, byte [esp + ecx + 0x4c]
jmp 0x436a4a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x436a3b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x436a68
mov bl, byte [esp + ecx + 0x4c]
jmp 0x436a6c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x436a5d
xor ecx, ecx
mov eax, 0x44c864
xor ebx, ebx
mov bl, byte [ecx + 0x44c90c]
cmp byte [esp + ebx + 0x14], 0
je 0x436a97
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x44c924]
cmp byte [esp + ebx + 0x14], 0
je 0x436aae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x436a7e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x436a07
lea edx, [esp + 0x84]
push edx
call fcn.00436af0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x404b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404c66
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404c55
jg 0x404bc0
test edx, edx
je 0x404c55
nop dword [eax]
call fcn.004064e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404c14
jg 0x404bd7
test esi, esi
je 0x404c14
cmp ebx, eax
jg 0x404be7
jl 0x404be1
cmp edi, esi
jae 0x404be7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040c7d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x404c39
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x404c4f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404bc0
jl 0x404c4f
test edi, edi
jne 0x404bc0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x404c88
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x404c8a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404d08
jg 0x404c9d
test esi, esi
je 0x404d08
test eax, eax
jl 0x404cec
jg 0x404ca7
test ebx, ebx
je 0x404cec
cmp edi, eax
jg 0x404cb7
jl 0x404cb1
cmp esi, ebx
jae 0x404cb7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040c7d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404d08
jg 0x404cef
test esi, esi
je 0x404d08
jmp 0x404cef
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404d08
push eax
push esi
push 1
push edx
call fcn.00412866
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404d52
jl 0x404d45
test ecx, ecx
jne 0x404d52
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404e12
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00406500
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404dbe
jg 0x404d7d
test esi, esi
je 0x404dbe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404d95
mov eax, dword [esp + 0x10]
jl 0x404d8f
cmp eax, esi
jae 0x404d95
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040c7d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x404ddf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x404dfb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404d64
jl 0x404dfb
test ecx, ecx
jne 0x404d64
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404e51
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404e51
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040c7d0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x404ec0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404e77
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x404ea9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00412ebd
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404ed4
cmp edi, eax
ja 0x404e85
test ecx, ecx
je 0x404ec0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00412ebd
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc