joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460ef8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4610c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4610a9
mov dl, 1
mov eax, dword [0x41a890]
call fcn.004037a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404560
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x461098
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0044e924
test al, al
jne 0x460f95
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46108b
xor edx, edx
push ebp
push 0x461084
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460fb5
mov ebx, dword [ebp - 0x10]
jmp 0x460fb7
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x4610d8
lea eax, [ebp - 0x258]
call fcn.00409dfc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46106d
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x461110
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46106d
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004047d0
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46106d
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004047d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46108b
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x460f76
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ee28
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4610cf
lea eax, [ebp - 0x264]
call fcn.00404560
ret
Function at 0x461a10
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4adb74]
cmp byte [eax + 0xa5], 0
jne 0x461a81
cmp dword [0x4adb8c], 0
jne 0x461a42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4619cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4adb8c], eax
cmp dword [0x4adb88], 0
jne 0x461a5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4adb88], eax
cmp dword [0x4adb90], 0
jne 0x461a81
push esp
push 0
push 0
push 0x461970
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4adb90], eax
pop edx
ret

Function at 0x462114
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4adb74]
cmp dword [eax + 0x30], 0
je 0x4621be
cmp dword [ebx + 0x94], 0
jne 0x4621b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4620a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4621b8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46217e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4621b8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c7f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46218d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462d1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x462d51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404650
jmp 0x462d5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463f18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463f59
mov eax, esi
call fcn.00449e78
test al, al
je 0x463f59
mov eax, dword [ebx + 0x84]
call fcn.00449b74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463f59
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449b74
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46909c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4692fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4690ff
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00468b64
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d894
cmp al, 1
jne 0x4690ff
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00468e7c
test al, al
je 0x46928b
cmp dword [ebp - 8], 0
jge 0x46911d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00468b64
mov eax, dword [ebp - 0x210]
call fcn.00404820
cmp ebx, eax
jge 0x469167
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00468b64
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ac7dc]
and eax, 0xff
bt dword [edx], eax
jae 0x469167
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46917b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00469078
cmp ebx, dword [ebp - 8]
je 0x46927d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4691a7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab0e0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46926a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab0e0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00449b74
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab0e0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00449b74
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469271
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4692de
cmp dword [ebp - 8], 0
jge 0x469296
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00468b64
mov eax, dword [ebp - 0x218]
call fcn.00404820
cmp eax, dword [ebp - 8]
jg 0x4692d0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00468b64
mov eax, dword [ebp - 0x21c]
call fcn.00404820
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00469078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469303
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404584
ret
Function at 0x48db27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4abf5a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48db7f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4abf7b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48db75
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48db83
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x401520
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x50
call dbg.__main
mov dword [esp + 0x16], 0x505c3a43
mov dword [esp + 0x1a], 0x72676f72
mov dword [esp + 0x1e], 0x46206d61
mov dword [esp + 0x22], 0x73656c69
mov dword [esp + 0x26], 0x6e69575c
mov dword [esp + 0x2a], 0x73776f64
mov dword [esp + 0x2e], 0x66654420
mov dword [esp + 0x32], 0x65646e65
mov dword [esp + 0x36], 0x635c7272
mov dword [esp + 0x3a], 0x6d782e63
mov word [esp + 0x3e], 0x6c
mov dword [esp + 4], 0x404000
lea eax, [esp + 0x16]
mov dword [esp], eax
call sym._fopen
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x4c], 0
jne 0x4015ba
mov dword [esp], str.Error_opening_file_
call sym._printf
mov eax, 1
jmp 0x401677
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._fseek
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._ftell
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._rewind
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym._malloc
mov dword [esp + 0x44], eax
cmp dword [esp + 0x44], 0
jne 0x401628
mov dword [esp], str.Memory_allocation_failed_
call sym._printf
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._fclose
mov eax, 1
jmp 0x401677
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._fread
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._fclose
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
call eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
mov eax, 0
leave
ret

Function at 0x401a90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym.___write_memory.part.0
Function at 0x402490
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4024c8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4024be
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4024ca
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4024b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009061a8
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 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
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 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40647b
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x480c38
mov esi, eax
push edi
call fcn.00404d0d
push ebx
push edi
push esi
call fcn.0040b620
add esp, 0x14
call fcn.00404cf3
push ebp
push ebp
push 0x436038
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f9b5
Capabilities:
Read file on windows

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

Function at 0x41f9c0
Capabilities:
Read file on windows

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

Function at 0x41fdba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b5d0
mov eax, dword [0x481100]
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.0041cfc4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fdfc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ff58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429c70
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 + 0x482d60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420f8a
mov ecx, dword [esi*4 + 0x482d60]
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 0x41ff51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ff51
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 0x41ff51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420f8a
add esp, 0x14
test edx, edx
jl 0x41ff51
jg 0x41fec7
test eax, eax
jb 0x41ff51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ff51
jl 0x41fee1
cmp dword [ebp - 0x1008], eax
ja 0x41ff51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41feff
test ebx, ebx
je 0x41ff38
cmp ecx, edi
jae 0x41ff38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ff19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ff25
cmp byte [ecx + 1], 0xa
jne 0x41ff25
inc ecx
jmp 0x41ff25
movzx eax, al
movsx eax, byte [eax + 0x4813c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41feff
cmp edx, ebx
jne 0x41feff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ff56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a7e8
leave
ret
Function at 0x420428
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 + 0x482d60]
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 0x420468
cmp byte [ebx], 0xa
jne 0x420468
or byte [eax + edi + 0x28], 4
jmp 0x42046d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42056b
mov al, byte [edx]
cmp al, 0x1a
je 0x42054d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42049c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4204c1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4204cb
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 0x42047e
jmp 0x42056b
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 0x420548
cmp dword [ebp - 0xc], 0
je 0x420548
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482d60]
test byte [eax + edi + 0x28], 0x48
je 0x420522
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42050d
mov byte [esi], dl
jmp 0x42051e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482d60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42056b
cmp byte [ebp - 1], 0xa
jne 0x420531
cmp esi, ebx
jne 0x420531
mov byte [esi], 0xa
jmp 0x42056a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42056b
mov byte [esi], 0xd
jmp 0x42056a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482d60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420567
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42056b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420574
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 + 0x482d60]
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 0x4205b7
cmp word [esi], dx
jne 0x4205b7
or byte [edi + eax + 0x28], 4
jmp 0x4205bc
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 0x42070f
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 0x4206ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4205fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420634
cmp eax, edx
jae 0x420640
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 0x4205d6
jmp 0x42070f
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 0x4206eb
cmp dword [ebp - 0x14], 0
je 0x4206eb
mov eax, dword [ebx*4 + 0x482d60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4206c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42068c
mov word [esi], cx
jmp 0x4206bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482d60]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482d60]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482d60]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42070f
pop ebx
cmp word [ebp - 4], bx
jne 0x4206d4
cmp esi, dword [ebp + 0xc]
jne 0x4206d4
mov word [esi], bx
jmp 0x42070c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42070f
push 0xd
jmp 0x420708
mov ecx, dword [ebx*4 + 0x482d60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420706
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42070f
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