joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10009970
jl 0x10009967
cmp dword [ebp + 0xc], 0
ja 0x10009970
xor eax, eax
xor edx, edx
jmp 0x10009aa7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10009992
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.1000a300
jmp 0x10009aa7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.1000b020
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10009a01
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10008060
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.1000b1c0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10005af0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.1000b140
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10009a98
mov ecx, dword [ebp - 8]
call fcn.1000ac40
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10009a71
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10052fd8
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10009a6f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10009aa7
jmp 0x10009a1d
cmp dword [ebp - 4], 0
jbe 0x10009a98
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.10052fd8
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d600
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100a9080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 2
push 0
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x1000d650
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000d6d0
push 0x22c
push 0
lea ecx, [ebp - 0x230]
push ecx
call fcn.1004c860
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000d6b1
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000dad0
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000d688
jmp 0x1000d6bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a9fe
mov esp, ebp
pop ebp
ret
Function at 0x10013220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100a9080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x244], SysFreeString
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jge 0x1001326b
mov eax, dword [ebp - 0x244]
jmp 0x100133c6
mov ecx, 0x47
lea esi, [ebp - 0x120]
lea edi, [ebp - 0x23c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x248], edx
cmp dword [ebp - 0x240], 5
jne 0x100132a8
cmp dword [ebp - 0x248], 1
jb 0x100132b1
cmp dword [ebp - 0x240], 5
jae 0x100132c0
mov dword [ebp - 0x244], 0
jmp 0x100133c0
cmp dword [ebp - 0x240], 5
jne 0x100132e1
cmp dword [ebp - 0x248], 1
jne 0x100132e1
mov dword [ebp - 0x244], 0x33
jmp 0x100133c0
cmp dword [ebp - 0x240], 5
jne 0x10013302
cmp dword [ebp - 0x248], 2
jne 0x10013302
mov dword [ebp - 0x244], 0x34
jmp 0x100133c0
cmp dword [ebp - 0x240], 6
jne 0x10013323
cmp dword [ebp - 0x248], 0
jne 0x10013323
mov dword [ebp - 0x244], 0x3c
jmp 0x100133c0
cmp dword [ebp - 0x240], 6
jne 0x10013341
cmp dword [ebp - 0x248], 1
jne 0x10013341
mov dword [ebp - 0x244], 0x3d
jmp 0x100133c0
cmp dword [ebp - 0x240], 6
jne 0x1001335f
cmp dword [ebp - 0x248], 2
jne 0x1001335f
mov dword [ebp - 0x244], 0x3e
jmp 0x100133c0
cmp dword [ebp - 0x240], 6
jne 0x1001337d
cmp dword [ebp - 0x248], 3
jne 0x1001337d
mov dword [ebp - 0x244], 0x3f
jmp 0x100133c0
cmp dword [ebp - 0x240], 0xa
jne 0x1001339b
cmp dword [ebp - 0x248], 0
jne 0x1001339b
mov dword [ebp - 0x244], 0x64
jmp 0x100133c0
cmp dword [ebp - 0x240], 0xa
jne 0x100133ad
cmp dword [ebp - 0x248], 0
ja 0x100133b6
cmp dword [ebp - 0x240], 0xa
jbe 0x100133c0
mov dword [ebp - 0x244], SysFreeString
mov eax, dword [ebp - 0x244]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a9fe
mov esp, ebp
pop ebp
ret
Function at 0x10018b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100a9080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004b60
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10004b60
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.10018e40
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.10017e90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10018de0
mov dword [ebp - 0x20], 0x10018ed0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.10001a20
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call fcn.10053aa0
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x10018c2c
lea ecx, [ebp - 0x14]
call fcn.100076f0
jmp 0x10018c3d
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10037c1a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10018de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x100199a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.1001c640
call fcn.10023d00
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xa
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.10019400
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b290
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071149
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100a9080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [0x100ab760]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x100ac1e4]
cmp eax, dword [edx + 4]
jle 0x1001b324
push 0x100ac1e4
call fcn.1004af9a
add esp, 4
cmp dword [0x100ac1e4], 0xffffffff
jne 0x1001b324
mov dword [ebp - 4], 0
push 0x1009d58c
mov ecx, 0x100ac1e8
call fcn.10005e30
push 0x10074150
call fcn.1004ad77
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100ac1e4
call fcn.1004af49
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.100035e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x1001b3a7
push 0xffffffffffffffff
push 0x100ac1e8
mov ecx, dword [ebp + 8]
call fcn.1001c600
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x1001b391
mov ecx, dword [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.10014640
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.1001b290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003620
push 0
mov ecx, dword [ebp + 8]
call fcn.100035e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x48], eax
jmp 0x1001b3cf
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x1001b3c2
mov eax, dword [ebp - 0x30]
and eax, 0x400
jne 0x1001b3c2
mov dword [ebp - 0x38], 0
jmp 0x1001b3c9
mov dword [ebp - 0x38], 1
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x29], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004a9fe
mov esp, ebp
pop ebp
ret 4
Function at 0x10023a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf003f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10023990
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10023a92
mov ecx, dword [ebp + 0x14]
call fcn.100045d0
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
call fcn.100035e0
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
call fcn.100035e0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10023a86
push 0x10006450
push 0x1009d880
push 0x100aafa0
call fcn.10006170
add esp, 8
mov ecx, eax
call fcn.10003530
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10023ab0
push 0x10006450
push 0x1009d8e0
push 0x100aafa0
call fcn.10006170
add esp, 8
mov ecx, eax
call fcn.10003530
push 0xf013f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10023990
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10023b27
mov ecx, dword [ebp + 0x14]
call fcn.100045d0
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
call fcn.100035e0
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
call fcn.100035e0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10023b1b
push 0x10006450
push 0x1009d940
push 0x100aafa0
call fcn.10006170
add esp, 8
mov ecx, eax
call fcn.10003530
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10023b45
push 0x10006450
push str.APPMOND_:_setting_registry_whitelist_failed
push 0x100aafa0
call fcn.10006170
add esp, 8
mov ecx, eax
call fcn.10003530
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10027e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x10027f50
push 0
push 0
call fcn.10053aa0
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x10028b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
add edx, 0x28
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x10028ba0
push 0
push 0
call fcn.10053aa0
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
je 0x10028b8e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
je 0x10028b8e
mov dword [ebp - 0xc], 0
jmp 0x10028b69
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xa
jae 0x10028b8e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.10028930
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10028b8c
jmp 0x10028b8e
jmp 0x10028b60
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x1004a4eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1005a102
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 0x1004a52a
sub eax, 1
je 0x1004a525
sub eax, 1
je 0x1004a521
xor eax, eax
leave
ret
push 3
jmp 0x1004a52c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1005b3d7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100993bc
push 0x100993b4
push str.FlsAlloc
push 0x1f
call fcn.10061cc2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10061ecb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10094374]
call esi
jmp 0x10061ed1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10061f15
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100993cc
push 0x100993c4
push str.FlsGetValue
push 0x21
call fcn.10061cc2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10061f4c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10094374]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10061f54
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100993d4
push 0x100993cc
push str.FlsSetValue
push 0x22
call fcn.10061cc2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10061f8e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10094374]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10062798
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004bc30
mov eax, dword [0x100a9080]
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.1005d7ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100627da
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10062936
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006f4c0
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 + 0x100abae8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10063599
mov ecx, dword [esi*4 + 0x100abae8]
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 0x1006292f
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006292f
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 0x1006292f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10063599
add esp, 0x14
test edx, edx
jl 0x1006292f
jg 0x100628a5
test eax, eax
jb 0x1006292f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006292f
jl 0x100628bf
cmp dword [ebp - 0x1008], eax
ja 0x1006292f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100628dd
test ebx, ebx
je 0x10062916
cmp ecx, edi
jae 0x10062916
mov al, byte [ecx]
cmp al, 0xd
jne 0x100628f7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10062903
cmp byte [ecx + 1], 0xa
jne 0x10062903
inc ecx
jmp 0x10062903
movzx eax, al
movsx eax, byte [eax + 0x100a9340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100628dd
cmp edx, ebx
jne 0x100628dd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10062934
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004a9fe
leave
ret
Function at 0x10062a31
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 + 0x100abae8]
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 0x10062a71
cmp byte [ebx], 0xa
jne 0x10062a71
or byte [edi + eax + 0x28], 4
jmp 0x10062a76
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 0x10062b75
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10062b58
inc eax
cmp dl, 0xd
je 0x10062aa2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10062ac8
cmp eax, ecx
jae 0x10062ad6
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 0x10062a8a
jmp 0x10062b75
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 0x10062b53
cmp dword [ebp - 0x10], 0
je 0x10062b53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100abae8]
test byte [eax + edi + 0x28], 0x48
je 0x10062b2d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10062b18
mov byte [esi], dl
jmp 0x10062b29
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100abae8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10062b75
cmp byte [ebp - 1], 0xa
jne 0x10062b3c
cmp esi, ebx
jne 0x10062b3c
mov byte [esi], 0xa
jmp 0x10062b74
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100635b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10062b75
mov byte [esi], 0xd
jmp 0x10062b74
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100abae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10062b72
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10062b75
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10062b7e
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 + 0x100abae8]
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 0x10062bc4
cmp word [ebx], dx
jne 0x10062bc4
or byte [eax + edi + 0x28], 4
jmp 0x10062bc9
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 0x10062d2c
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 0x10062d0c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10062c0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10062c40
cmp eax, edx
jae 0x10062c4e
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 0x10062be5
jmp 0x10062d2c
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 0x10062d07
cmp dword [ebp - 0x18], 0
je 0x10062d07
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100abae8]
test byte [eax + edi + 0x28], 0x48
je 0x10062cdd
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 0x10062ca1
mov word [esi], cx
jmp 0x10062cd8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100abae8]
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 + 0x100abae8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100abae8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10062d2c
pop eax
cmp word [ebp - 4], ax
jne 0x10062ced
cmp esi, ebx
jne 0x10062ced
mov word [esi], ax
jmp 0x10062d29
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100635b7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10062d2c
push 0xd
pop eax
jmp 0x10062ce8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100abae8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10062d26
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10062d2c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret