joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cb33
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4de6d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x207
lea eax, [ebp - 0x77]
push 0
push eax
mov byte [ebp - 0x78], 0
call fcn.0043ef30
push edi
call fcn.00444370
mov dword [ebp - 0x7c], eax
xor eax, eax
inc eax
add esp, 0x10
cmp dword [ebp - 0x7c], eax
jge 0x47cb7a
xor eax, eax
jmp 0x47cbd2
cmp dword [ebp - 0x7c], eax
mov cl, byte [edi]
push ebx
push esi
mov byte [ebp - 0x78], cl
mov dword [ebp - 0x80], eax
jle 0x47cbce
lea ebx, [ebp - 0x78]
lea esi, [edi + 1]
sub ebx, edi
cmp byte [esi], 0x5c
jne 0x47cbbc
cmp byte [edi + eax - 1], 0x3a
je 0x47cbbc
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47cbbc
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x47cbe7
mov al, byte [esi]
mov byte [ebx + esi], al
mov eax, dword [ebp - 0x80]
inc eax
inc esi
cmp eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
jl 0x47cb91
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0043ba5f
add ebp, 0x194
leave
ret
or eax, 0xffffffff
jmp 0x47cbd0

Function at 0x47ecd3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004824b5
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push esi
call fcn.0043ef30
mov eax, dword [ebp + 0x10]
add esi, 7
and esi, 0xfffffff8
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x47ec89
push edi
push edi
call fcn.0043c9fe
add esp, 0x24
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x47ed40
push str.E2008073001:Failed_to_create_thread.
push edi
call fcn.0047d183
push esi
call fcn.0047ec58
add esp, 0xc
xor eax, eax
jmp 0x47ed47
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 8], edi
je 0x47ed38
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x482970
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4829a4
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
push edi
movzx edi, byte [edx]
movzx esi, ax
shr esi, 8
shl eax, 8
xor esi, edi
xor ax, word [esi*2 + 0x4ae8e0]
dec ecx
inc edx
movzx eax, ax
test ecx, ecx
jne 0x482982
pop edi
pop esi
ret
mov ax, word [esp + 4]
ret

Function at 0x483bb0
Capabilities:
Resume thread

Disassembly:
sub esp, 8
mov ecx, dword [0x5012c8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
test ecx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esp + 0x14], eax
lea ebp, [eax + 1]
je 0x483c6e
mov dword [esp + 0x10], eax
jmp 0x483bf0
mov dword [0x5012ac], ebp
mov edx, dword [0x5012c8]
push 2
push edx
call esi
mov eax, dword [0x5012c8]
push eax
call edi
mov ecx, dword [0x5012c8]
push 0x3e8
push ecx
call ebx
cmp eax, 0x102
jne 0x483c2d
mov eax, dword [esp + 0x10]
add eax, ebp
cmp eax, 0x1e
mov dword [esp + 0x10], eax
jl 0x483bf0
cmp dword [esp + 0x10], 0x1e
jne 0x483c49
push str.02100901:_Timeout_Error:_adxm_destroy_thrd__vsync_
call fcn.00488640
add esp, 4
mov dword [esp + 0x14], 0xffffffff
xor eax, eax
mov dword [0x5012b0], eax
mov dword [0x5012ac], eax
mov edx, dword [0x5012c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x5012c4], eax
mov dword [0x5012c8], eax
mov ecx, dword [0x5012d0]
test ecx, ecx
je 0x483cfa
mov dword [esp + 0x10], eax
mov dword [0x5012b4], ebp
mov edx, dword [0x5012d0]
push 2
push edx
call esi
mov eax, dword [0x5012d0]
push eax
call edi
mov ecx, dword [0x5012d0]
push 0x3e8
push ecx
call ebx
cmp eax, 0x102
jne 0x483cbd
mov eax, dword [esp + 0x10]
add eax, ebp
cmp eax, 0x1e
mov dword [esp + 0x10], eax
jl 0x483c80
cmp dword [esp + 0x10], 0x1e
jne 0x483cd5
push str.02100902:_Timeout_Error:_ADXWIN_DisableFsThrd
call fcn.00488640
add esp, 4
sub dword [esp + 0x14], ebp
xor eax, eax
mov dword [0x5012b8], eax
mov dword [0x5012b4], eax
mov edx, dword [0x5012d0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x5012cc], eax
mov dword [0x5012d0], eax
mov ecx, dword [0x5012d8]
test ecx, ecx
je 0x483d8c
mov dword [esp + 0x10], eax
lea esp, [esp]
mov dword [0x5012bc], ebp
mov edx, dword [0x5012d8]
push 2
push edx
call esi
mov eax, dword [0x5012d8]
push eax
call edi
mov ecx, dword [0x5012d8]
push 0x3e8
push ecx
call ebx
cmp eax, 0x102
jne 0x483d4d
mov eax, dword [esp + 0x10]
add eax, ebp
cmp eax, 0x1e
mov dword [esp + 0x10], eax
jl 0x483d10
cmp dword [esp + 0x10], 0x1e
jne 0x483d65
push str.02100903:_Timeout_Error:_adxm_destroy_thrd__mwidle_
call fcn.00488640
add esp, 4
sub dword [esp + 0x14], ebp
xor esi, esi
mov dword [0x5012c0], esi
mov dword [0x5012bc], esi
mov edx, dword [0x5012d8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5012d4], esi
mov dword [0x5012d8], esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x483f70
Capabilities:
Create thread

Disassembly:
push 0x5012c4
push 4
push 0
push 0x483ed0
push 0x100000
push 0
call fcn.0043c9fe
mov dword [0x5012c8], eax
mov eax, dword [0x5012c8]
add esp, 0x18
test eax, eax
jne 0x483fac
push str.E02100911_:_The_error_occurred_within_the_CreateThread_function.
call fcn.00488640
add esp, 4
or eax, 0xffffffff
ret
push 0x5012cc
push 4
push 0
push 0x483f30
push 0x100000
push 0
call fcn.0043c9fe
mov dword [0x5012d0], eax
mov ecx, dword [0x5012d0]
add esp, 0x18
test ecx, ecx
jne 0x483fe9
push str.E02100912_:_The_error_occurred_within_the_CreateThread_function.
call fcn.00488640
add esp, 4
or eax, 0xffffffff
ret
push 0x5012d4
push 4
push 0
push 0x483aa0
push 0x100000
push 0
call fcn.0043c9fe
mov dword [0x5012d8], eax
mov edx, dword [0x5012d8]
add esp, 0x18
test edx, edx
jne 0x484026
push str.E02100913_:_The_error_occurred_within_the_CreateThread_function.
call fcn.00488640
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x484030
Capabilities:
Resume thread

Disassembly:
push esi
push 0x501284
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x48412e
push edi
xor edi, edi
mov dword [0x5012ac], edi
mov dword [0x5012b0], edi
mov dword [0x5012bc], edi
mov dword [0x5012c0], edi
mov dword [0x501298], edi
call fcn.00488890
push edi
push edi
call fcn.004887a0
push edi
push edi
call fcn.004887c0
push 0x483a00
call fcn.00488930
add esp, 0x14
cmp esi, edi
jne 0x4840ac
mov dword [0x501288], 2
mov dword [0x50128c], 1
mov dword [0x501290], 0xfffffff1
jmp 0x4840c5
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [0x501288], eax
mov dword [0x50128c], ecx
mov dword [0x501290], edx
call fcn.00483f70
test eax, eax
jge 0x4840da
call fcn.00483bb0
pop edi
pop esi
jmp fcn.004888f0
call fcn.00483da0
test eax, eax
jge 0x4840ef
call fcn.00483bb0
pop edi
pop esi
jmp fcn.004888f0
mov eax, dword [0x50128c]
push eax
call fcn.004894c0
mov ecx, dword [0x5012c8]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
add esp, 4
push ecx
call esi
mov edx, dword [0x5012d0]
push edx
call esi
mov eax, dword [0x5012d8]
push eax
call esi
push edi
push 0x483a20
push 6
call fcn.00488bb0
add esp, 0xc
pop edi
pop esi
ret
Function at 0x485d40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004999ad
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call esi
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
lea edx, [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x14]
push 0
push 0xf4240
push ecx
push eax
call fcn.00440360
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.004403a0
push 0xa
mov edi, eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call esi
xor ebp, ebp
push ebp
push 0xa
push ebx
push edi
call fcn.004403a0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
call fcn.004999bf
lea eax, [esp + 0x18]
push eax
call esi
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
sub ecx, dword [esp + 0x10]
push 0
mov edx, ebx
sbb edx, dword [esp + 0x18]
push 0xf4240
push edx
push ecx
call fcn.00440360
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.004403a0
cmp edx, dword [esp + 0x2c]
jl 0x485e7a
jg 0x485e63
cmp eax, dword [esp + 0x28]
jb 0x485e7a
add ebp, 1
cmp ebp, 0x80
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
jl 0x485df3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret

Function at 0x4903a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push edi
je 0x4903e5
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4903e5
push esi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4903d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4903d4
pop esi
xor eax, eax
pop edi
ret
mov edx, dword [esp + 0xc]
mov dword [edi], esi
pop esi
mov dword [edi + 4], edx
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x494980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
movsx eax, word [ecx + 2]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
push edi
movsx edi, word [ecx]
mov dword [esp + 0x1c], esi
jle 0x494afc
mov ebx, dword [esp + 0x2c]
jmp 0x4949b6
mov edx, dword [esp + 0x10]
movzx eax, word [edx]
mov ebp, dword [esp + 0x3c]
movzx cx, ah
mov ch, al
movzx eax, cx
test eax, 0x8000
jne 0x494b10
movzx ecx, word [ebp]
mov esi, ecx
imul ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x44]
xor esi, eax
movsx eax, word [esp + 0x34]
and esi, 0x1fff
add esi, 1
and ecx, 0x7fff
movzx esi, si
mov word [ebp], cx
movsx ebp, word [esp + 0x38]
movsx ecx, si
add edx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x10
jmp 0x494a1a
mov edx, dword [esp + 0x10]
movsx esi, byte [edx]
add edx, 1
mov dword [esp + 0x10], edx
mov edx, eax
imul edx, edi
mov eax, ebp
imul eax, dword [esp + 0x24]
mov ecx, esi
sar ecx, 4
imul ecx, dword [esp + 0x14]
add edx, eax
sar edx, 0xc
add edx, ecx
cmp edx, 0x7fff
jg 0x494a58
cmp edx, 0xffff8000
jge 0x494a6c
mov edx, 0xffff8000
jmp 0x494a6c
cmp edx, 0xffff8000
jge 0x494a67
mov edx, 0xffff8000
jmp 0x494a6c
mov edx, 0x7fff
movsx eax, word [esp + 0x34]
mov word [ebx], dx
mov dword [esp + 0x24], edx
mov ecx, eax
imul ecx, edx
mov edx, ebp
imul edx, edi
add ecx, edx
and esi, 0xf
mov edx, dword [esi*4 + 0x4b31d8]
imul edx, dword [esp + 0x14]
sar ecx, 0xc
add ecx, edx
add ebx, 2
cmp ecx, 0x7fff
jg 0x494ab2
cmp ecx, 0xffff8000
jge 0x494ac6
mov ecx, 0xffff8000
jmp 0x494ac6
cmp ecx, 0xffff8000
jge 0x494ac1
mov ecx, 0xffff8000
jmp 0x494ac6
mov ecx, 0x7fff
mov edx, dword [esp + 0x24]
mov word [ebx], cx
add ebx, 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x24], edx
mov edi, ecx
jne 0x494a16
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x4949b2
mov ecx, dword [esp + 0x30]
mov dx, word [esp + 0x24]
mov word [ecx], di
pop edi
pop esi
pop ebp
mov word [ecx + 2], dx
pop ebx
add esp, 0x10
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100045e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100316e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.100128d3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10011dc8
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.10004aa0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [edx + 0x4c], 0
mov eax, dword [0x10046144]
mov ecx, dword [0x10046148]
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10004b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100316e0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.100128d3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10011dc8
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10004aa0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011a3d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10011a64
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10011a67
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10011a19
pop esi
leave
ret 8

Function at 0x1001eb27
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10013920
mov eax, dword [0x10044080]
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.10021c6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10022f10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002306c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10030ea0
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 + 0x10045d00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10022a57
mov ecx, dword [esi*4 + 0x10045d00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10023065
cmp eax, dword [ecx + edi + 0x24]
jne 0x10023065
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10023065
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10022a57
add esp, 0x14
test edx, edx
jl 0x10023065
jg 0x10022fdb
test eax, eax
jb 0x10023065
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10023065
jl 0x10022ff5
cmp dword [ebp - 0x1008], eax
ja 0x10023065
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10023013
test ebx, ebx
je 0x1002304c
cmp ecx, edi
jae 0x1002304c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002302d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10023039
cmp byte [ecx + 1], 0xa
jne 0x10023039
inc ecx
jmp 0x10023039
movzx eax, al
movsx eax, byte [eax + 0x10044358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10023013
cmp edx, ebx
jne 0x10023013
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002306a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100130c2
leave
ret
Function at 0x1002367c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10045d00]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100236bc
cmp byte [ebx], 0xa
jne 0x100236bc
or byte [edi + eax + 0x28], 4
jmp 0x100236c1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100237c0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100237a3
inc eax
cmp dl, 0xd
je 0x100236ed
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10023713
cmp eax, ecx
jae 0x10023721
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100236d5
jmp 0x100237c0
push 0
lea eax, [ebp - 0x10]
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 0x1002379e
cmp dword [ebp - 0x10], 0
je 0x1002379e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10045d00]
test byte [eax + edi + 0x28], 0x48
je 0x10023778
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10023763
mov byte [esi], dl
jmp 0x10023774
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10045d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100237c0
cmp byte [ebp - 1], 0xa
jne 0x10023787
cmp esi, ebx
jne 0x10023787
mov byte [esi], 0xa
jmp 0x100237bf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10022a75
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100237c0
mov byte [esi], 0xd
jmp 0x100237bf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10045d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100237bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100237c0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100237c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10045d00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002380f
cmp word [ebx], dx
jne 0x1002380f
or byte [eax + edi + 0x28], 4
jmp 0x10023814
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10023977
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10023957
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10023855
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002388b
cmp eax, edx
jae 0x10023899
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10023830
jmp 0x10023977
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10023952
cmp dword [ebp - 0x18], 0
je 0x10023952
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10045d00]
test byte [eax + edi + 0x28], 0x48
je 0x10023928
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100238ec
mov word [esi], cx
jmp 0x10023923
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10045d00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10045d00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10045d00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10023977
pop eax
cmp word [ebp - 4], ax
jne 0x10023938
cmp esi, ebx
jne 0x10023938
mov word [esi], ax
jmp 0x10023974
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10022a75
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10023977
push 0xd
pop eax
jmp 0x10023933
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10045d00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10023971
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10023977
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret