joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba531
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2370
cmp edx, dword [eax]
je 0x4ba553
add eax, 8
inc ecx
cmp eax, 0x4c2400
jl 0x4ba544
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2370]
jne 0x4ba681
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba65b
test eax, eax
jne 0x4ba584
cmp dword [0x4c2298], 1
je 0x4ba65b
cmp edx, 0xfc
je 0x4ba681
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba5bb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004baf10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb3a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba5fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb3a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf994
push edi
call fcn.004bd270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004baf10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baf20
lea eax, [ebp - 0xa0]
push 0x4bf974
push eax
call fcn.004baf20
push dword [esi + 0x4c2374]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baf20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd1e4
add esp, 0x2c
pop edi
jmp 0x4ba681
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2374]
push 0
push eax
push dword [esi]
call fcn.004bb3a0
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]
pop esi
leave
ret
Function at 0x404690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x60
lea eax, [ebp - 0x18]
sub esp, 0x34
mov dword [esp + 8], eax
mov dword [esp + 4], global_dpi_key_name
mov dword [esp], 0x80000005
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x4046d0
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], global_dpi_value_name
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x404715
cmp dword [ebp - 0x14], 4
je 0x404730
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov ebx, dword [ebp - 0xc]
mov eax, 0x60
test ebx, ebx
cmove ebx, eax
jmp 0x404715
Function at 0x407020
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x4070e0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40714e
xor ecx, ecx
xor edx, edx
jmp 0x407126
cmp al, 0x5c
jne 0x4071a8
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x407143
cmp al, 9
je 0x40712e
cmp al, 0x20
jne 0x407110
test ecx, ecx
je 0x407143
xor edx, edx
jmp 0x40711b
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x407140
cmp al, 0x20
je 0x407140
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x407169
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x407132
and edx, 1
jne 0x407132
xor ecx, 1
jmp 0x40711b
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x4df7b41
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x28dc4674
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1c107446
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
mov ecx, 0x21394872
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x107d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0107d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x107d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107d06a
add dl, dl
jne 0x107d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107d0dc
xor eax, eax
add dl, dl
jne 0x107d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107d17d
add dl, dl
jne 0x107d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x107d075
mov eax, 1
add dl, dl
jne 0x107d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107d0e1
sub eax, ebx
mov ebx, 1
jne 0x107d128
mov ecx, 1
add dl, dl
jne 0x107d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107d136
cmp eax, 0x7d00
jae 0x107d16d
cmp eax, 0x500
jb 0x107d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107d075
cmp eax, 0x7f
ja 0x107d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x107d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x405700
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x408
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, dword [esp + 0x40c]
lea eax, [esp + 0x410]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
test eax, eax
jne 0x40575c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x421780
call fcn.00405700
add esp, 8
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00405690
add esp, 0x408
ret
mov byte [esp + eax], 0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
mov eax, 1
call fcn.00405690
add esp, 0x408
ret

Function at 0x405790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push esi
mov esi, dword [esp + 0x818]
lea eax, [esi - 1]
push edi
mov edi, 0x508
cmp eax, 1
ja 0x4058ef
mov edx, dword [esp + 0x820]
lea ecx, [esp + 0x824]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov ebx, eax
test ebx, ebx
jne 0x4057f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x4217ac
jmp 0x4058e7
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
mov eax, dword [esi + esi + 0x422068]
add esi, esi
test eax, eax
jne 0x405824
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405690
add esp, 0x80c
ret
cmp eax, 3
jne 0x405880
mov eax, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x405868
xor eax, eax
cmp dword [esp + 0xc], ebx
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405690
add esp, 0x80c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x4058ef
push edi
push 0x421804
jmp 0x4058e1
cmp dword [esi + 0x42206c], 2
jne 0x4058ef
mov eax, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x10]
push ecx
lea edi, [ebx + ebx]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4058cb
xor eax, eax
cmp dword [esp + 0xc], edi
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405690
add esp, 0x80c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x4058ef
push edi
push 0x4217d8
mov dword [esi + 0x422064], edi
call fcn.00405700
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405690
add esp, 0x80c
ret
Function at 0x405910
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi - 1]
push edi
mov edi, 0x508
cmp eax, 1
ja 0x405a79
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
mov eax, dword [esi + esi + 0x422068]
add esi, esi
test eax, eax
jne 0x405949
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
cmp eax, 3
jne 0x4059d4
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ebx, ebx
jns 0x405976
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405963
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
je 0x40593d
mov edx, dword [esi + 0x422058]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push edx
call ebp
test eax, eax
je 0x4059b5
mov eax, dword [esp + 0x1c]
sub ebx, eax
je 0x40593d
mov ecx, dword [esi + 0x422058]
push 0
lea edi, [edi + eax*2]
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push ecx
call ebp
test eax, eax
jne 0x405994
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x405a79
push edi
push 0x421804
jmp 0x405a6b
cmp dword [esi + 0x42206c], 2
jne 0x405a79
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test eax, eax
jns 0x405a03
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059f2
sub eax, edx
sar eax, 1
test eax, eax
je 0x40593d
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x20]
push edx
lea ebx, [eax + eax]
mov eax, dword [esi + 0x422058]
push ebx
push edi
push eax
call ebp
test eax, eax
je 0x405a55
jmp 0x405a30
mov eax, dword [esp + 0x1c]
sub ebx, eax
je 0x40593d
mov edx, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
lea edi, [edi + eax*2]
push edi
push edx
call ebp
test eax, eax
jne 0x405a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x405a79
push edi
push 0x4217d8
mov dword [esi + 0x422064], edi
call fcn.00405700
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x41dfde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dc80

Function at 0x41dfe9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041de0f

Function at 0x41e3e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c4f0
mov eax, dword [0x481600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b18c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e425
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e581
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040b850
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x483d80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041f182
mov ecx, dword [esi*4 + 0x483d80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41e57a
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e57a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e57a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f182
add esp, 0x14
test edx, edx
jl 0x41e57a
jg 0x41e4f0
test eax, eax
jb 0x41e57a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e57a
jl 0x41e50a
cmp dword [ebp - 0x1008], eax
ja 0x41e57a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e528
test ebx, ebx
je 0x41e561
cmp ecx, edi
jae 0x41e561
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e542
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e54e
cmp byte [ecx + 1], 0xa
jne 0x41e54e
inc ecx
jmp 0x41e54e
movzx eax, al
movsx eax, byte [eax + 0x4818d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e528
cmp edx, ebx
jne 0x41e528
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e57f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b778
leave
ret
Function at 0x41e620
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x483d80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e660
cmp byte [ebx], 0xa
jne 0x41e660
or byte [eax + edi + 0x28], 4
jmp 0x41e665
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e763
mov al, byte [edx]
cmp al, 0x1a
je 0x41e745
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e694
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e6b9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e6c3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e676
jmp 0x41e763
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e740
cmp dword [ebp - 0xc], 0
je 0x41e740
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483d80]
test byte [eax + edi + 0x28], 0x48
je 0x41e71a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e705
mov byte [esi], dl
jmp 0x41e716
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483d80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e763
cmp byte [ebp - 1], 0xa
jne 0x41e729
cmp esi, ebx
jne 0x41e729
mov byte [esi], 0xa
jmp 0x41e762
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f1a0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e763
mov byte [esi], 0xd
jmp 0x41e762
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483d80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e75f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e763
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e76c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x483d80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e7af
cmp word [esi], dx
jne 0x41e7af
or byte [edi + eax + 0x28], 4
jmp 0x41e7b4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e907
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e8e7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e7f6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e82c
cmp eax, edx
jae 0x41e838
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e7ce
jmp 0x41e907
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e8e3
cmp dword [ebp - 0x14], 0
je 0x41e8e3
mov eax, dword [ebx*4 + 0x483d80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e8bb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e884
mov word [esi], cx
jmp 0x41e8b7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483d80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483d80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483d80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e907
pop ebx
cmp word [ebp - 4], bx
jne 0x41e8cc
cmp esi, dword [ebp + 0xc]
jne 0x41e8cc
mov word [esi], bx
jmp 0x41e904
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f1a0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e907
push 0xd
jmp 0x41e900
mov ecx, dword [ebx*4 + 0x483d80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e8fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e907
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret