joyce8/EMBER2024-capa huggingface dataset:
Function at 0x595f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5aa9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x596002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00599dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x596002
lea edx, [esp + 0x14]
push edx
push 0x5b0140
call fcn.005916e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0059a20b
push 0x10
call fcn.0059a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x595fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005861c0
jmp 0x595fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00595b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x595ff0
mov ecx, edi
call fcn.005862c0
push edi
call fcn.0059a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x596021
inc ebx
cmp ebx, 0x20
jb 0x595f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x597250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab808
push 0x59b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x597329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x597329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0059a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x597329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x597329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x59732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00597351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x597d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x597d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x597d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x597d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x597d94
push eax
push esi
call fcn.0059a20b
add esp, 8
pop esi
ret 0x10

Function at 0x597da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x597e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x597e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5b0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00599dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x597dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x597e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x597ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x597eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5b0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00599dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x597eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x597e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x598000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x598131
push esi
call fcn.0059b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0058a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x598131
push 0
push ebp
call fcn.0058a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0058a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x59808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0058a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x598121
push 0x5b0918
push edi
call fcn.005993f0
push eax
push ebx
push esi
call fcn.00597f60
push 0x5b08f8
push edi
call fcn.005993f0
push eax
push ebx
push esi
call fcn.00597f60
push 0x5b08d8
push edi
call fcn.005993f0
push eax
push ebx
push esi
call fcn.00597f60
push 0x5b08c0
push edi
call fcn.005993f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00597f60
push 0x5b08a0
push edi
call fcn.005993f0
push eax
push ebx
push esi
call fcn.00597f60
push 0x5b0888
push edi
call fcn.005993f0
push eax
push ebx
push esi
call fcn.00597f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5991b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00599140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00599140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00599140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00599140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x599230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5992d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x5992ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00599230
mov esi, eax
add esp, 8
test esi, esi
jne 0x5992ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x59927e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x5992ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x599bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x599c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5ab87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x599c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x599c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x100033a5
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x1003f144]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x1000342c
push dword [ebp + 0x20]
mov word [esp + 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0x14]
mov word [esp + 0x12], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000342e
xor bl, bl
lea ecx, [ebp + 8]
call fcn.1000aac0
mov ecx, dword [esp + 0x1b4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011d08
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x1000344f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
test edi, edi
je 0x10003478
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10003482
add ebx, eax
sub edi, eax
jne 0x10003460
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
ret 8
or eax, 0xffffffff
jmp 0x1000347c
Function at 0x10003487
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x201c
call fcn.10012da0
mov eax, dword [0x1003f144]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2030]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
call fcn.10016b88
mov esi, dword [edi + 4]
push 0
cdq
pop ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
sub esi, dword [edi]
je 0x10003579
mov eax, 0x1ff0
mov ecx, dword [esp + 0x10]
cmp esi, eax
mov ebx, esi
cmovg ebx, eax
mov ecx, dword [ecx + 0xc]
call fcn.10001876
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
lea eax, [ecx + ebp]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10013440
lea eax, [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edi, eax
lea ebp, [esp + 0x28]
test eax, eax
je 0x10003548
mov eax, dword [esp + 0x10]
push 0
push edi
push ebp
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003596
add ebp, eax
sub edi, eax
jne 0x1000352c
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
call fcn.100113e4
pop ecx
cmp edi, 0xffffffff
je 0x1000359b
mov ebp, dword [esp + 0x14]
mov eax, 0x1ff0
mov edi, dword [esp + 0x24]
add ebp, ebx
mov dword [esp + 0x14], ebp
sub esi, ebx
jne 0x100034d7
mov al, 1
mov ecx, dword [esp + 0x2028]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10011d08
add esp, 0x201c
ret 4
or edi, 0xffffffff
jmp 0x1000354c
xor al, al
jmp 0x1000357b
Function at 0x100053d9
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x1003f144]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1000541d
push 0x100
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
jmp 0x10005422
push 0x10038f6c
mov ecx, esi
call fcn.10009d9c
mov ecx, dword [ebp + 0x188]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10011d08
add ebp, 0x18c
leave
ret
Function at 0x1000b1ef
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1002ffd3
call fcn.10012521
mov ebx, ecx
mov esi, dword [ebp + 0x10]
push 0x24
call fcn.10011dd0
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 4]
and dword [ebp - 4], 0
push esi
mov eax, dword [eax]
mov dword [edi], eax
call fcn.1000a03f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [ebp - 4], 1
lea esi, [ebx + 4]
push esi
push eax
push edi
push 0x1000eb85
push eax
push eax
call fcn.100171f6
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x1000b25a
mov eax, ebx
call fcn.100124d0
ret 0x10
and dword [esi], 0
push 6
call fcn.1001085b
int3

Function at 0x1001c851
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035174
push 0x1003516c
push str.FlsAlloc
push 0x1f
call fcn.10020ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100210aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311ac]
call esi
jmp 0x100210b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100210f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035184
push 0x1003517c
push str.FlsGetValue
push 0x21
call fcn.10020ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002112b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10021133
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003518c
push 0x10035184
push str.FlsSetValue
push 0x22
call fcn.10020ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002116d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100311ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100231e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10012da0
mov eax, dword [0x1003f144]
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.1001da0b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10023226
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10023382
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002ef10
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 + 0x100424e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100249e2
mov ecx, dword [esi*4 + 0x100424e0]
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 0x1002337b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002337b
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 0x1002337b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100249e2
add esp, 0x14
test edx, edx
jl 0x1002337b
jg 0x100232f1
test eax, eax
jb 0x1002337b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002337b
jl 0x1002330b
cmp dword [ebp - 0x1008], eax
ja 0x1002337b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10023329
test ebx, ebx
je 0x10023362
cmp ecx, edi
jae 0x10023362
mov al, byte [ecx]
cmp al, 0xd
jne 0x10023343
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002334f
cmp byte [ecx + 1], 0xa
jne 0x1002334f
inc ecx
jmp 0x1002334f
movzx eax, al
movsx eax, byte [eax + 0x1003f3c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10023329
cmp edx, ebx
jne 0x10023329
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10023380
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10011d08
leave
ret
Function at 0x10023e7a
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 + 0x100424e0]
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 0x10023eba
cmp byte [ebx], 0xa
jne 0x10023eba
or byte [edi + eax + 0x28], 4
jmp 0x10023ebf
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 0x10023fbe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10023fa1
inc eax
cmp dl, 0xd
je 0x10023eeb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10023f11
cmp eax, ecx
jae 0x10023f1f
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 0x10023ed3
jmp 0x10023fbe
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 0x10023f9c
cmp dword [ebp - 0x10], 0
je 0x10023f9c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100424e0]
test byte [eax + edi + 0x28], 0x48
je 0x10023f76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10023f61
mov byte [esi], dl
jmp 0x10023f72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100424e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10023fbe
cmp byte [ebp - 1], 0xa
jne 0x10023f85
cmp esi, ebx
jne 0x10023f85
mov byte [esi], 0xa
jmp 0x10023fbd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10024a00
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10023fbe
mov byte [esi], 0xd
jmp 0x10023fbd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100424e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10023fbb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10023fbe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10023fc7
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 + 0x100424e0]
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 0x1002400d
cmp word [ebx], dx
jne 0x1002400d
or byte [eax + edi + 0x28], 4
jmp 0x10024012
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 0x10024175
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 0x10024155
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10024053
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10024089
cmp eax, edx
jae 0x10024097
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 0x1002402e
jmp 0x10024175
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 0x10024150
cmp dword [ebp - 0x18], 0
je 0x10024150
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100424e0]
test byte [eax + edi + 0x28], 0x48
je 0x10024126
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 0x100240ea
mov word [esi], cx
jmp 0x10024121
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100424e0]
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 + 0x100424e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100424e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10024175
pop eax
cmp word [ebp - 4], ax
jne 0x10024136
cmp esi, ebx
jne 0x10024136
mov word [esi], ax
jmp 0x10024172
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10024a00
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10024175
push 0xd
pop eax
jmp 0x10024131
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100424e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002416f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10024175
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret