joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f6a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], eax
push esi
push edi
movzx eax, word [ebp + eax*2 + 0x150]
cmp eax, ecx
jbe 0x44f714
mov edi, dword [ebp + 0x10]
mov dl, byte [edi + eax*8 + 4]
lea ebx, [edi + eax*8]
movzx eax, word [ebx]
and dl, 0x1f
cmp eax, ecx
je 0x44f741
test dl, dl
jne 0x44f70c
cmp word [esp + 0x1c], 0x42
movzx edx, word [edi + eax*8 + 2]
movzx esi, word [edi + ecx*8 + 2]
je 0x44f6f8
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x44f70c
cmp edx, esi
je 0x44f739
cmp edx, 0x8000
jae 0x44f739
cmp esi, 0x8000
jae 0x44f739
movzx eax, word [ebx + 6]
cmp eax, ecx
ja 0x44f6c5
mov eax, dword [esp + 0x10]
movzx eax, word [ebp + eax*2 + 0x142]
cmp eax, ecx
jbe 0x44f739
mov esi, dword [ebp + 0x10]
lea edx, [esi + eax*8]
movzx eax, word [edx]
cmp eax, ecx
je 0x44f74e
movzx eax, word [edx + 6]
cmp eax, ecx
ja 0x44f727
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [edx + 4], 0x1f
mov eax, 0
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x47eb07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e7b8

Function at 0x47eb12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e942

Function at 0x4883ec
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00487f3f
Function at 0x6cda80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d0000]
push edi
or ebp, 0xffffffff
jmp 0x6cdaa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6cdaa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6cda98
mov eax, 1
add ebx, ebx
jne 0x6cdabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6cdacc
jne 0x6cdaeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6cdaeb
dec eax
add ebx, ebx
jne 0x6cdad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6cdab0
add ebx, ebx
jne 0x6cdae7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6cdb3d
xor ecx, ecx
sub eax, 3
jb 0x6cdb03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6cdb72
sar eax, 1
mov ebp, eax
jmp 0x6cdb0e
add ebx, ebx
jne 0x6cdb0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6cdadc
inc ecx
add ebx, ebx
jne 0x6cdb1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6cdadc
add ebx, ebx
jne 0x6cdb29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6cdb1e
jne 0x6cdb3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6cdb1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6cdb5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6cdb4e
jmp 0x6cda9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6cdb5c
add edi, ecx
jmp 0x6cda9e
pop esi
mov edi, esi
mov ecx, 0x6653
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6cdb7a
cmp byte [edi], 0xe
jne 0x6cdb7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x6cdb7f
lea edi, [esi + 0x2c4000]
mov eax, dword [edi]
or eax, eax
je 0x6cdbf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d1b64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d1ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6cdbac
mov ecx, edi
jns 0x6cdbdb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d1ca8]
or eax, eax
je 0x6cdbf1
mov dword [ebx], eax
add ebx, 4
jmp 0x6cdbc9
call dword [esi + 0x2d1cb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6cdc28
cmp al, 0xef
ja 0x6cdc1b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6cdbfd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6cdc0a
mov ebp, dword [esi + 0x2d1cac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6cdc5c
sub esp, 0xffffff80
jmp 0x4ab7f3
Function at 0x401d3e
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d5f
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d79
inc edi
cmp edi, 0x3330601
jl 0x401d4a
cmp dword [0x20c3894], 0x400
jne 0x401dad
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call fcn.004044b1
push esi
push esi
call fcn.00404711
push esi
call fcn.00404783
add esp, 0x10
xor edi, edi
cmp edi, 0x16c76
jge 0x401dbf
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401de5
inc edi
cmp edi, 0x3003f
jl 0x401daf
mov eax, dword [0x4768a4]
mov dword [0x20c3894], eax
call fcn.00401a7b
mov edi, 0x3078f
cmp dword [0x20c3894], 0x51f
jne 0x401e11
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401df9
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40297f
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x46fc7d
call fcn.0046fb00
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040373c
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404792
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029c7
call fcn.004034f0
mov dword [ebx], eax
call fcn.004032af
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029c9
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4052dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x475354]
jne 0x4052e7
repz ret
jmp fcn.00409b2c
Function at 0x40e0b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x475354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408076
and dword [ebp - 0x14], 0
cmp dword [0x481a8c], 0
mov dword [ebp - 0x18], eax
jne 0x40e165
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e20d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e20d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x481a8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x481a90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x481a94], eax
call edi
push eax
call esi
mov dword [0x481a9c], eax
test eax, eax
je 0x40e165
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x481a98], eax
mov eax, dword [0x481a98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e1be
cmp dword [0x481a9c], ecx
je 0x40e1be
push eax
call esi
push dword [0x481a9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e1be
test ebx, ebx
je 0x40e1be
call edi
test eax, eax
je 0x40e1b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e1b5
test byte [ebp - 8], 1
jne 0x40e1be
or dword [ebp + 0x10], 0x200000
jmp 0x40e1f1
mov eax, dword [0x481a90]
cmp eax, dword [ebp - 0x18]
je 0x40e1f1
push eax
call esi
test eax, eax
je 0x40e1f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e1f1
mov eax, dword [0x481a94]
cmp eax, dword [ebp - 0x18]
je 0x40e1f1
push eax
call esi
test eax, eax
je 0x40e1f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x481a8c]
call esi
test eax, eax
je 0x40e20d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e20f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052dd
leave
ret
Function at 0x40227a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x88
mov eax, 0x441c6f
call fcn.0041dc7e
mov esi, ecx
mov edi, 0x453af0
lea eax, [ebp - 0x40]
push eax
call fcn.00402107
and dword [ebp - 4], 0
lea edx, [ebp - 0x40]
push 0x454be4
lea ecx, [ebp - 0x28]
call fcn.00404e6b
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040424f
mov edx, str.Looking_for_port_file
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.00404eb8
push eax
call fcn.00405050
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
pop ecx
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40237a
mov edx, str.Port_file_found
mov ecx, edi
call fcn.00404eb8
push eax
call fcn.00405050
pop ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00401fee
cmp eax, dword [esi + 4]
je 0x402332
push eax
mov edx, str.New_port_value_is
mov dword [esi + 4], eax
mov ecx, edi
call fcn.00404eb8
mov ecx, eax
call fcn.004023a8
push eax
call fcn.00405050
pop ecx
push dword [esi + 4]
call fcn.0040219c
lea ecx, [ebp - 0x90]
call fcn.00403142
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00403fe4
lea ecx, [ebp - 0x40]
call fcn.004042a4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00403120
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi]
cmp dword [esi], 0x2d0
jne 0x402397
push dword [esi + 4]
call fcn.0040219c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040424f
jmp 0x402290
Function at 0x40276b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x40278f
jl 0x402786
test ebx, ebx
jne 0x40278f
xor eax, eax
xor edx, edx
jmp 0x40284c
cmp dword [esi + 0x38], 0
je 0x4027a4
push eax
push ebx
push dword [ebp + 8]
call fcn.00402d18
jmp 0x40284c
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4027e7
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4027e7
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.0041eac0
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4027ed
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x402841
mov ecx, esi
call fcn.00403d09
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40282c
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00428ab2
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x402841
jmp 0x4027ff
test edx, edx
je 0x402841
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00428ab2
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4080fa
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4423ce
call fcn.0041dc4b
mov esi, ecx
push 4
xor ebx, ebx
call fcn.0041d551
mov dword [ebp - 0x10], eax
mov dword [eax], 0x407fd1
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x40815d
push ebx
push ebx
call fcn.004292a8
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x408142
mov eax, esi
call fcn.0041dc28
ret 4
push 6
mov dword [edi], ebx
call fcn.00409b96
int3

Function at 0x40f0ad
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x40f0d0
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x40f0be
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41ce69
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00429b02
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x41cea8
sub eax, 1
je 0x41cea3
sub eax, 1
je 0x41ce9f
xor eax, eax
leave
ret
push 3
jmp 0x41ceaa
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x41e0f8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e137
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e137
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e137
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e137
cmp dword [ecx + 0x74], 0xe
jbe 0x41e137
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4325e4
Capabilities:
Read file on windows

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

Function at 0x4334af
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x448d5c
push 0x448d54
push str.FlsAlloc
push 0x1e
call fcn.004332dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4334e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x44418c]
call esi
jmp 0x4334e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43352d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x448d6c
push 0x448d64
push str.FlsGetValue
push 0x20
call fcn.004332dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433564
push dword [ebp + 8]
mov ecx, esi
call dword [0x44418c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x434026
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041e360
mov eax, dword [0x452080]
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.0042f802
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x434068
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4341c4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00441520
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 + 0x454798]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004357eb
mov ecx, dword [esi*4 + 0x454798]
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 0x4341bd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4341bd
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 0x4341bd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004357eb
add esp, 0x14
test edx, edx
jl 0x4341bd
jg 0x434133
test eax, eax
jb 0x4341bd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4341bd
jl 0x43414d
cmp dword [ebp - 0x1008], eax
ja 0x4341bd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43416b
test ebx, ebx
je 0x4341a4
cmp ecx, edi
jae 0x4341a4
mov al, byte [ecx]
cmp al, 0xd
jne 0x434185
lea eax, [edi - 1]
cmp ecx, eax
jae 0x434191
cmp byte [ecx + 1], 0xa
jne 0x434191
inc ecx
jmp 0x434191
movzx eax, al
movsx eax, byte [eax + 0x452330]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43416b
cmp edx, ebx
jne 0x43416b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4341c2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041d53e
leave
ret
Function at 0x434ca3
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 + 0x454798]
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 0x434ce3
cmp byte [ebx], 0xa
jne 0x434ce3
or byte [eax + edi + 0x28], 4
jmp 0x434ce8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x434de6
mov al, byte [edx]
cmp al, 0x1a
je 0x434dc8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x434d17
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x434d3c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x434d46
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 0x434cf9
jmp 0x434de6
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 0x434dc3
cmp dword [ebp - 0xc], 0
je 0x434dc3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x454798]
test byte [eax + edi + 0x28], 0x48
je 0x434d9d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x434d88
mov byte [esi], dl
jmp 0x434d99
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x454798]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x434de6
cmp byte [ebp - 1], 0xa
jne 0x434dac
cmp esi, ebx
jne 0x434dac
mov byte [esi], 0xa
jmp 0x434de5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435809
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x434de6
mov byte [esi], 0xd
jmp 0x434de5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x454798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434de2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x434de6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434def
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 + 0x454798]
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 0x434e32
cmp word [esi], dx
jne 0x434e32
or byte [edi + eax + 0x28], 4
jmp 0x434e37
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 0x434f70
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 0x434f50
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x434e79
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x434eaf
cmp eax, edx
jae 0x434ebb
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 0x434e51
jmp 0x434f70
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 0x434f4c
cmp dword [ebp - 0x14], 0
je 0x434f4c
mov eax, dword [ebx*4 + 0x454798]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x434f24
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x434f6a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x454798]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x454798]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x454798]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x434f6d
pop ebx
cmp word [ebp - 4], bx
jne 0x434f35
cmp esi, dword [ebp + 0xc]
jne 0x434f35
mov word [esi], bx
jmp 0x434f6d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00435809
add esp, 0x10
cmp word [ebp - 4], bx
je 0x434f70
push 0xd
jmp 0x434f69
mov ecx, dword [ebx*4 + 0x454798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434f67
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x434f70
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