joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b940
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 8]
test eax, eax
je 0x45b986
lea eax, [ebp + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x1529
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
push eax
push 0x62e0
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0045ba89
add esp, 0x18
jmp 0x45ba85
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x45ba31
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x45ba0f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x45ba0d
push 0x1a63
push 0x38bf
push 1
push 0
push 0x846
push 0x4385
push 0
push 0xf34
call fcn.0043d4fd
add esp, 0x20
jmp 0x45ba2f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x45ba2f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x45ba85
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
push 0x35bc
push dword [ebp - 0x44]
push 1
push 0x2dd0
push 1
push 0x2fe0
push 0x64b5
push 0x7903
push 0x16
push 0x4a40
push 0x316e
push 1
push 0x1bb7
push 0x1fcd
push dword [ebp - 0x48]
push 0x38ad
call fcn.0043fc49
add esp, 0x40
mov esp, ebp
pop ebp
ret
Function at 0x48da50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x49bb2f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ae484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048b8f4
mov dword [ebp - 0x14], eax
cmp dword [0xaa7e90], esi
jne 0x49bc22
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x49bbaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49bd02
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49bd02
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49bd02
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xaa7e90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xaa7e94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xaa7e98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa7ea0], eax
test eax, eax
je 0x49bc1f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa7e9c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x49bc47
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49bc3a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49bc5c
push 4
pop eax
jmp 0x49bd04
cmp dword [ebp - 0x14], esi
je 0x49bc5c
push dword [0xaa7e90]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49bc41
mov eax, dword [0xaa7e9c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x49bcba
cmp dword [0xaa7ea0], edi
je 0x49bcba
push eax
call ebx
push dword [0xaa7ea0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x49bcba
test eax, eax
je 0x49bcba
call ecx
test eax, eax
je 0x49bcaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x49bcaf
test byte [ebp - 8], 1
jne 0x49bcba
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49bcea
mov eax, dword [0xaa7e94]
cmp eax, edi
je 0x49bce7
push eax
call ebx
test eax, eax
je 0x49bce7
call eax
mov esi, eax
test esi, esi
je 0x49bce7
mov eax, dword [0xaa7e98]
cmp eax, edi
je 0x49bce7
push eax
call ebx
test eax, eax
je 0x49bce7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xaa7e90]
call ebx
test eax, eax
je 0x49bd02
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49bd04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ad9b
mov esp, ebp
pop ebp
ret
Function at 0x10626058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1062607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062606a
add dl, dl
jne 0x10626089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106260dc
xor eax, eax
add dl, dl
jne 0x10626096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062617d
add dl, dl
jne 0x106260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10626075
mov eax, 1
add dl, dl
jne 0x106260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106260e1
sub eax, ebx
mov ebx, 1
jne 0x10626128
mov ecx, 1
add dl, dl
jne 0x1062610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10626119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10626105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10626075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1062613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1062614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10626136
cmp eax, 0x7d00
jae 0x1062616d
cmp eax, 0x500
jb 0x10626168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10626075
cmp eax, 0x7f
ja 0x10626170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10626075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1062619e
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 0x10626075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401060
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x88]
sub esp, 0x9c
mov dword [esp + 4], eax
mov dword [esp], str.browseui.dll
call sym._GetFileVersionInfoSizeW_8
sub esp, 8
test eax, eax
jne 0x4010a8
mov dword [esp], str.Native_IE_detected__not_doing_registration_n
call sym._wine_dbg_printf.constprop.0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov edi, dword fs:[0x18]
mov dword [ebp - 0x8c], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x8c]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], str.browseui.dll
call sym._GetFileVersionInfoW_16
lea eax, [ebp - 0x80]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp], esi
call sym._VerQueryValueW_16
sub esp, 0x10
test eax, eax
jne 0x401150
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40108b
mov eax, dword [ebp - 0x7c]
movzx edx, word [eax + 2]
mov dword [esp + 0xc], edx
movzx eax, word [eax]
lea edx, [ebp - 0x78]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.StringFileInfo_04x_04xFileDescription
call sym._wsprintfW
lea eax, [ebp - 0x80]
lea edx, [ebp - 0x78]
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x84]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sym._VerQueryValueW_16
sub esp, 0x10
test eax, eax
je 0x40111f
mov dword [esp + 4], 0x4040e6
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [ebp - 0x8c], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x8c]
sub esp, 0xc
test edx, edx
je 0x40108b
test ebx, ebx
mov edx, str.RegisterIE
mov eax, str.UnregisterIE
mov dword [esp + 8], 0
cmovne eax, edx
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._RegInstallA_12
sub esp, 0xc
lea esp, [ebp - 0xc]
shr eax, 0x1f
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4013d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40142b
cmp byte [esi + ebx - 1], 0xa
je 0x4013ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401ef0
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_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x401f43
mov edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x401f70
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

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 dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401fd7
xor ecx, ecx
xor edx, edx
jmp 0x401fb9
cmp ax, 0x5c
jne 0x402048
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401fd7
cmp ax, 9
je 0x401fc5
cmp ax, 0x20
jne 0x401fa0
test ecx, ecx
je 0x402030
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x401fb9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402068
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x402030
cmp ax, 0x20
je 0x402030
jmp 0x401fd7
cmp ax, 0x22
jne 0x401fc9
and edx, 1
jne 0x401fc9
xor ecx, 1
jmp 0x401fad
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401ff0
Function at 0x405300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x4649c0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
call fcn.0040f9c5
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x405360
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4053a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x405380
mov ebp, dword [esp + 0x240]
xor edx, edx
xor edi, edi
xor esi, esi
test ebp, ebp
jle 0x4054b0
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x4053e1
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x34]
movzx eax, cl
add edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
and edi, 0x800000ff
jns 0x405402
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
push 0x431630
mov byte [esp + edx + 0x38], al
push 0x466908
mov dword [esp + 0x30], edi
mov byte [esp + edi + 0x3c], cl
call fcn.004018a0
mov ebx, eax
add esp, 8
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x30], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x2c]
push eax
call fcn.00402960
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x405475
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x405471
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0040aef0
mov ecx, ebx
call fcn.00409560
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, byte [esp + edx + 0x34]
add eax, dword [esp + 0x20]
movzx eax, al
mov al, byte [esp + eax + 0x34]
xor byte [esi + ecx], al
inc esi
cmp esi, ebp
jl 0x4053d0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401e50
push 0x2c
push dword [esp + 0x18]
call fcn.0040f9f5
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fd0e
add esp, 0x228
ret
Function at 0x422cf4
Capabilities:
Read file on windows

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

Function at 0x422cff
Capabilities:
Read file on windows

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

Function at 0x4230f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004106d0
mov eax, dword [0x4649c0]
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.004219f9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42313b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x423297
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00430040
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 + 0x467278]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004242c9
mov ecx, dword [esi*4 + 0x467278]
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 0x423290
cmp eax, dword [edi + ecx + 0x24]
jne 0x423290
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 0x423290
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004242c9
add esp, 0x14
test edx, edx
jl 0x423290
jg 0x423206
test eax, eax
jb 0x423290
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x423290
jl 0x423220
cmp dword [ebp - 0x1008], eax
ja 0x423290
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42323e
test ebx, ebx
je 0x423277
cmp ecx, edi
jae 0x423277
mov al, byte [ecx]
cmp al, 0xd
jne 0x423258
lea eax, [edi - 1]
cmp ecx, eax
jae 0x423264
cmp byte [ecx + 1], 0xa
jne 0x423264
inc ecx
jmp 0x423264
movzx eax, al
movsx eax, byte [eax + 0x464c90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42323e
cmp edx, ebx
jne 0x42323e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x423295
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040fd0e
leave
ret
Function at 0x423767
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 + 0x467278]
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 0x4237a7
cmp byte [ebx], 0xa
jne 0x4237a7
or byte [eax + edi + 0x28], 4
jmp 0x4237ac
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4238aa
mov al, byte [edx]
cmp al, 0x1a
je 0x42388c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4237db
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423800
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42380a
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 0x4237bd
jmp 0x4238aa
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 0x423887
cmp dword [ebp - 0xc], 0
je 0x423887
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x467278]
test byte [eax + edi + 0x28], 0x48
je 0x423861
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42384c
mov byte [esi], dl
jmp 0x42385d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x467278]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4238aa
cmp byte [ebp - 1], 0xa
jne 0x423870
cmp esi, ebx
jne 0x423870
mov byte [esi], 0xa
jmp 0x4238a9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004242e7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4238aa
mov byte [esi], 0xd
jmp 0x4238a9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x467278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4238a6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4238aa
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4238b3
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 + 0x467278]
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 0x4238f6
cmp word [esi], dx
jne 0x4238f6
or byte [edi + eax + 0x28], 4
jmp 0x4238fb
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 0x423a4e
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 0x423a2e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42393d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423973
cmp eax, edx
jae 0x42397f
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 0x423915
jmp 0x423a4e
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 0x423a2a
cmp dword [ebp - 0x14], 0
je 0x423a2a
mov eax, dword [ebx*4 + 0x467278]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423a02
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4239cb
mov word [esi], cx
jmp 0x4239fe
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x467278]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x467278]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x467278]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423a4e
pop ebx
cmp word [ebp - 4], bx
jne 0x423a13
cmp esi, dword [ebp + 0xc]
jne 0x423a13
mov word [esi], bx
jmp 0x423a4b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004242e7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423a4e
push 0xd
jmp 0x423a47
mov ecx, dword [ebx*4 + 0x467278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423a45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423a4e
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