joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cf40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a0b85
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a6221
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a773d
test eax, eax
je 0x47d05c
mov ecx, dword [esp + 0x3c]
call fcn.004a624e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x47d020
push edi
mov ecx, esi
call fcn.004a38b0
mov ecx, esi
call fcn.0047d1c0
cmp dword [esp + 0x38], 1
jne 0x47d055
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a39eb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x47fa80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47fab3
push esi
call fcn.00482b80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47faac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47fb39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47fb22
mov eax, dword [esi + 8]
test eax, eax
je 0x47fad7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47fb1e
cmp eax, 2
je 0x47fb22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47faca
cmp eax, 3
je 0x47fafd
cmp eax, 1
jne 0x47faca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47faca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47faca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047fb60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47fb48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047fb60
add esp, 4
pop esi
ret

Function at 0x48af60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48afc6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48afc6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48afa7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48b350
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48b388
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48c070
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48c0b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48c530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048c0e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048c160
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048c160
lea ecx, [esi + 0xc]
call fcn.0049f535
lea ecx, [esi + 0x10]
call fcn.0049f535
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048d6f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048d6f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048d6f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049f5aa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049f5aa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a197b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a19b3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049fa05
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049f9dd
jmp 0x4a19bf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a306d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a30af
call fcn.004a8de3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a30af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a30a6
xor eax, eax
jmp 0x4a30b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a30bd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a9313
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a9341
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a935f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a9279
jmp 0x4a935f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a935f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a9279
test edi, edi
mov eax, edi
jne 0x4a9349
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401370
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4013ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.00401860
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
push 0x5c
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.SHELL32.dll_StrRChrA]
test eax, eax
je 0x4013cc
push eax
push str.after_StrRChr__then_lp___s_n
call fcn.00401860
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4013fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00401860
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.SvcName
push str.SvcName
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x401453
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.00401860
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x104
ret
push str.Service_installed_successfully_n
call fcn.00401860
add esp, 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4014e0
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebp
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401514
push str.StartNode_GetModuleFileName_failed
call fcn.004017e0
add esp, 4
pop esi
pop ebp
add esp, 0x360
ret
push 0x5c
lea ecx, [esp + 0x60]
push 0
push ecx
call dword [sym.imp.SHELL32.dll_StrRChrA]
mov ebp, eax
test ebp, ebp
jne 0x40153f
push str.StartNode_StrRChr_failed
call fcn.004017e0
add esp, 4
pop esi
pop ebp
add esp, 0x360
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.x_y_node.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x60]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.__s_
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x270]
push ecx
call fcn.004018c2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x171]
mov byte [esp + 0x170], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str._run.bat
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x164]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408418
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push ecx
push edx
push eax
push eax
push 0x10
push eax
push eax
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x184]
mov dword [esp + 0x3c], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401687
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401000
push str.StartNode_CreateProcess_failed
call fcn.004017e0
add esp, 8
pop esi
pop ebp
add esp, 0x360
ret
mov ecx, dword [0x40ad64]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [esp + 8]
push 0xc350
push edx
call esi
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
pop ebp
add esp, 0x360
ret
Function at 0x4017e0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x58
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.SvcName
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40184c
mov eax, dword [esp + 0x64]
push edi
push eax
lea ecx, [esp + 0x18]
push str._s_failed_with__d
push ecx
call fcn.004018c2
add esp, 0x10
lea eax, [esp + 8]
lea edx, [esp + 0x10]
mov dword [esp + 8], str.SvcName
push 0
push eax
push 0
push 2
push 0
push 0xc0020100
push 1
push 1
push esi
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
add esp, 0x58
ret
Function at 0x4050a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4050c1
jl 0x4050b8
test edi, edi
jne 0x4050c1
xor eax, eax
xor edx, edx
jmp 0x405182
cmp dword [ebx + 0x38], 0
je 0x4050d6
push eax
push edi
push dword [ebp + 8]
call fcn.00405188
jmp 0x405182
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40511d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40511d
cmp eax, edi
jb 0x4050f7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004287f0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405123
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405177
mov ecx, ebx
call fcn.0040474b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405162
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00438a33
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405177
jmp 0x405135
test edx, edx
je 0x405177
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00438a33
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41636c
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 0x41638f
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41637d
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42642e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0043b083
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 0x42646d
sub eax, 1
je 0x426468
sub eax, 1
je 0x426464
xor eax, eax
leave
ret
push 3
jmp 0x42646f
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x427f12
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427f51
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427f51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427f51
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427f51
cmp dword [ecx + 0x74], 0xe
jbe 0x427f51
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4641a2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x487cf4
push 0x487cec
push str.FlsAlloc
push 0x1e
call fcn.00463e6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4641d6
push dword [ebp + 8]
mov ecx, esi
call dword [0x482174]
call esi
jmp 0x4641dc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x464220
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x487d04
push 0x487cfc
push str.FlsGetValue
push 0x20
call fcn.00463e6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x464257
push dword [ebp + 8]
mov ecx, esi
call dword [0x482174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x466310
Capabilities:
Read file on windows

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

Function at 0x46683e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428090
mov eax, dword [0x493040]
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.00464c5f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x466880
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4669dc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047c790
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 + 0x50d5f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00467dd1
mov ecx, dword [esi*4 + 0x50d5f8]
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 0x4669d5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4669d5
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 0x4669d5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00467dd1
add esp, 0x14
test edx, edx
jl 0x4669d5
jg 0x46694b
test eax, eax
jb 0x4669d5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4669d5
jl 0x466965
cmp dword [ebp - 0x1008], eax
ja 0x4669d5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x466983
test ebx, ebx
je 0x4669bc
cmp ecx, edi
jae 0x4669bc
mov al, byte [ecx]
cmp al, 0xd
jne 0x46699d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4669a9
cmp byte [ecx + 1], 0xa
jne 0x4669a9
inc ecx
jmp 0x4669a9
movzx eax, al
movsx eax, byte [eax + 0x493308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x466983
cmp edx, ebx
jne 0x466983
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4669da
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00426cbf
leave
ret
Function at 0x466f5a
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 + 0x50d5f8]
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 0x466f9a
cmp byte [ebx], 0xa
jne 0x466f9a
or byte [eax + edi + 0x28], 4
jmp 0x466f9f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46709d
mov al, byte [edx]
cmp al, 0x1a
je 0x46707f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x466fce
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x466ff3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x466ffd
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 0x466fb0
jmp 0x46709d
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 0x46707a
cmp dword [ebp - 0xc], 0
je 0x46707a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x50d5f8]
test byte [eax + edi + 0x28], 0x48
je 0x467054
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46703f
mov byte [esi], dl
jmp 0x467050
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50d5f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46709d
cmp byte [ebp - 1], 0xa
jne 0x467063
cmp esi, ebx
jne 0x467063
mov byte [esi], 0xa
jmp 0x46709c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00467def
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46709d
mov byte [esi], 0xd
jmp 0x46709c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x50d5f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x467099
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46709d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4670a6
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 + 0x50d5f8]
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 0x4670e9
cmp word [esi], dx
jne 0x4670e9
or byte [edi + eax + 0x28], 4
jmp 0x4670ee
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 0x467241
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 0x467221
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x467130
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x467166
cmp eax, edx
jae 0x467172
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 0x467108
jmp 0x467241
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 0x46721d
cmp dword [ebp - 0x14], 0
je 0x46721d
mov eax, dword [ebx*4 + 0x50d5f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4671f5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4671be
mov word [esi], cx
jmp 0x4671f1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x50d5f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x50d5f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x50d5f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x467241
pop ebx
cmp word [ebp - 4], bx
jne 0x467206
cmp esi, dword [ebp + 0xc]
jne 0x467206
mov word [esi], bx
jmp 0x46723e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00467def
add esp, 0x10
cmp word [ebp - 4], bx
je 0x467241
push 0xd
jmp 0x46723a
mov ecx, dword [ebx*4 + 0x50d5f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x467238
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x467241
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
Function at 0x46cb89
Capabilities:
Print debug messages

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