joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d480
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000d4e1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000d4c4
cmp edi, 2
jb 0x1000d4c4
cmp byte [esi], cl
jne 0x1000d4c4
cmp byte [esi + 1], cl
jne 0x1000d4c4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100b4ed0]
jmp 0x1000d495
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100b4ed0]
test edi, edi
jne 0x1000d495
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000d510
cmp cl, 0x23
jne 0x1000d4f7
cmp byte [esi], cl
jne 0x1000d4f7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100b4ed0]
test cl, cl
jne 0x1000d4e8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1000d5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1000d5d3
mov dword [ebx], 0
mov edx, 0x100b4aac
call fcn.1000d520
mov esi, eax
test esi, esi
je 0x1000d6eb
push esi
call fcn.1008528b
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000d6e2
push 2
push 0
push esi
call fcn.10085c2f
add esp, 0xc
test eax, eax
jne 0x1000d6e2
push esi
call fcn.1008528b
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1000d6e2
push 0
push dword [ebp + 8]
push esi
call fcn.10085c2f
add esp, 0xc
test eax, eax
jne 0x1000d6e2
mov ecx, edi
call fcn.100104b0
mov dword [ebp + 8], eax
test eax, eax
je 0x1000d6e2
push esi
push edi
push 1
push eax
call fcn.100895e9
add esp, 0x10
push esi
cmp eax, edi
je 0x1000d6cc
call fcn.100858d4
mov ecx, dword [0x10106690]
add esp, 4
test ecx, ecx
je 0x1000d6ba
movsx edx, word [ecx + 0x5ea4]
lea eax, [ecx + 0x5ea8]
mov esi, dword [ecx + 0x3f10]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x1000d6b0
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5ea4], ax
cwde
add eax, 0xbd5
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ea0]
push dword [ebp + 8]
call fcn.10089410
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100858d4
add esp, 4
test ebx, ebx
je 0x1000d6da
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100858d4
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000fcd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100b4ed0]
sub esi, 1
jne 0x1000fd10
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fcc], ebx
jne 0x1000fd47
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10023770
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret 4

Function at 0x1000fd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100b4ed0]
sub edi, 1
jne 0x1000fde0
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret 4
Function at 0x10012170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10106690]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x4a28]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x26c]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x100121af
push ecx
add ecx, 0x78
call fcn.1002f680
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x26c]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x10012222
cmp eax, 1
jne 0x100121d3
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x100121d3
cmp dword [eax + 0x20], 0
je 0x10012222
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10012209
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x100121f4
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x100121f9
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.100240b0
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x190]
mov eax, dword [eax + 0x188]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10012262
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x1001225b
cmp byte [ecx + 0xb5], 0
jne 0x1001225b
mov edx, ebx
call fcn.10012170
add esi, 4
cmp esi, edi
jne 0x10012240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100134a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x10106690]
mov ebx, edx
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov edx, ecx
mov edi, dword [esi + 0x3f94]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0xc]
and eax, 4
or eax, 0x1000103
or ecx, eax
xor eax, eax
test edx, 0x40000000
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x4944]
setne al
or ecx, 0x100
mov dword [esi + 0x4944], ecx
mov dword [ebp - 0x14], ecx
lea eax, [eax*2 + 1]
mov dword [esi + 0x497c], eax
cmp dword [edi + 0x198], 0
jne 0x10013523
cmp dword [esi + 0x4cbc], 0
mov eax, 0x230
je 0x10013528
mov eax, 0x200
movss xmm1, dword [edi + eax]
lea ecx, [ebp - 0x24]
movss xmm2, dword [edi + eax + 4]
mov eax, dword [ebp + 8]
subss xmm2, dword [edi + 0xfc]
subss xmm1, dword [edi + 0xf8]
push dword [eax + 4]
push dword [eax]
call fcn.1001c000
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x20]
or eax, 2
mov dword [esi + 0x4944], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x4968], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x4964], eax
mov dword [esi + 0x494c], 1
mov eax, dword [edi + 4]
push ebx
test ecx, ecx
je 0x100135a0
push ecx
push eax
push str._s__s__08X
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000d350
add esp, 0x18
jmp 0x100135b4
push eax
push str._s__08X
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000d350
add esp, 0x14
movss xmm0, dword [esi + 0x38e0]
xor edx, edx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
movss dword [ebp - 0x10], xmm0
call fcn.10016300
mov edi, dword [esi + 0x3f94]
add esp, 4
movss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x38e0], xmm0
mov byte [ebp - 9], al
cmp word [edi + 0xbc], 1
mov dword [ebp - 0x10], edi
mov dword [edi + 0x78], ebx
jne 0x1001360c
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [eax + 0xf8], ecx
mov dword [eax + 0xfc], edx
mov edi, ebx
mov edx, 0x100b3ff1
not edi
mov al, 0x23
mov ebx, edi
nop dword [eax]
cmp al, 0x23
jne 0x1001362e
cmp byte [edx], al
jne 0x1001362e
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x100b4ed0]
test al, al
jne 0x10013620
mov edi, dword [ebp - 0x10]
not ebx
cmp dword [esi + 0x3fe4], ebx
jne 0x1001365d
xor edx, edx
xor ecx, ecx
call fcn.1000fe10
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x4a38], eax
jne 0x100136ab
test dword [ebp + 0x10], 0x800000
jne 0x100136ab
cmp word [edi + 0x154], 0
jne 0x10013684
cmp byte [edi + 0x15a], 0
je 0x100136ab
xor edx, edx
mov ecx, edi
call fcn.10018df0
xor dl, dl
mov ecx, edi
call fcn.1001e940
mov edx, edi
mov ecx, ebx
call fcn.1000fe10
mov eax, dword [esi + 0x4a5c]
mov dword [esi + 0x4004], eax
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret
Function at 0x100138d0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1001390d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100138f3
cmp byte [esi], bl
jne 0x100138f3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x100b4ed0]
test bl, bl
jne 0x100138e4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10013870
Function at 0x10022610
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x10106690]
test bl, bl
je 0x10022656
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10022637
cmp byte [esi], bl
jne 0x10022637
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100b4ed0]
test bl, bl
jne 0x10022628
mov edi, dword [0x10106690]
mov ecx, dword [edi + 0x5d98]
not eax
mov edx, dword [edi + 0x5da0]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1002267d
cmp dword [edx + 4], eax
je 0x10022680
add edx, 0x24
cmp edx, ecx
jne 0x10022671
xor eax, eax
ret
mov eax, edx
ret
Function at 0x1004a0a0
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x1004a112
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x1004a0e8
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x1004a0cf
cmp byte [esi], cl
jne 0x1004a0cf
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100b4ed0]
test cl, cl
jne 0x1004a0c0
mov ecx, dword [0x10106690]
not eax
cmp dword [ecx + 0x3fe4], eax
jne 0x1004a0fe
mov dword [ecx + 0x3fe8], eax
cmp dword [ecx + 0x400c], eax
jne 0x1004a158
mov byte [ecx + 0x4010], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x10106690]
xor edx, edx
mov esi, dword [eax + 0x3f94]
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.1000d480
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3fcc], ebx
jne 0x1004a156
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.10023770
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10050e30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10050fb8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10050f47
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x10050f0a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10050f0a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10050f0a
mov edx, dword [esi]
test edx, edx
jne 0x10050ed6
push 0x200
push edx
push dword [0x1010669c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10050f2f
jmp 0x10050efe
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10050efe
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1010669c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10050f2f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10050e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10050f47
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10050f47
push eax
push ebx
push dword [0x1010669c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10050fb8
cmp dword [esi], 0
je 0x10050fa5
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10050fa5
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10050f96
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.10050cc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x10050f63
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret
Function at 0x10050fd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10051034
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x10051023
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10051013
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x10050ff0
pop esi
push dword [edi]
push 0
push dword [0x1010669c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10051040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x1010ae50]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005109c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100510b7
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret
Function at 0x100518a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1008ef3e
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [eax + 0x128000]
cmp eax, ecx
jae 0x1005191c
mov esi, 0x6c7
mov edx, 0x8689
inc eax
cmp word [eax], si
jne 0x10051912
cmp word [eax + 6], dx
jne 0x10051912
cmp word [eax + 0xc], dx
je 0x10051936
lea ecx, [eax + 0x128000]
cmp eax, ecx
jb 0x10051900
mov ecx, dword [eax + 1]
mov eax, dword [ebp + 8]
pop esi
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 2]
jmp 0x1005191f

Function at 0x10051ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10051d2e
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x10051b90
push 0
push 0
mov dword [0x101066a0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10051190
cmp dword [0x1010669c], 0
jne 0x10051d25
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x1010669c], eax
xor eax, eax
mov ecx, 0x10106698
xchg dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
Function at 0x10054290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100542c2
jl 0x100542b5
test ecx, ecx
jne 0x100542c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1005439f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100542f2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100542f4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x10054348
jg 0x10054305
test esi, esi
je 0x10054348
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x10054319
jl 0x10054313
cmp ecx, esi
jae 0x10054319
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.10081a20
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x1005436c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x10054388
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x100542d7
jl 0x10054388
test ecx, ecx
jne 0x100542d7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100543dd
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100543dd
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10081a20
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10054447
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10054403
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10054432
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100895e9
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10054447
cmp edi, eax
ja 0x10054410
test edi, edi
je 0x10054447
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100895e9
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10056bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8b40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10104040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], 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.1007e8bb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1007fa15
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.10056da0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], esi
mov esi, eax
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
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 dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x10106a38]
mov edx, dword [0x10106a3c]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10057120
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8c20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10104040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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.1007e8bb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1007fa15
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10056da0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret