joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec130
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b41f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00408f40
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0x1c], 0xffffff9c
mov dword [edi + 0x20], 0x64
mov dword [edi + 0x24], 0xffffff9c
mov dword [edi + 0x28], 0x64
mov dword [edi + 0x2c], 0xffffff9c
mov dword [edi + 0x30], 0x64
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0x3c00
mov dword [edi + 0x44], 0x15e00
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xffffffc4
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0xfffffea2
mov dword [edi + 0x70], 0
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0x64
mov dword [edi + 0x54], 0x14
mov dword [edi + 0x58], 1
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0xa
call fcn.00503540
mulsd xmm0, qword [0x532ca8]
cvttsd2si esi, xmm0
xorps xmm0, xmm0
mov dword [edi + 0x90], esi
call fcn.00502e00
mulsd xmm0, qword [0x532ca8]
mov dword [edi + 0x98], esi
mov dword [edi + 0xa0], esi
mov dword [edi + 0x14], 0
cvttsd2si eax, xmm0
mov dword [edi + 0x94], eax
mov dword [edi + 0x9c], eax
mov dword [edi + 0xa4], eax
mov dword [ebp - 4], 0xffffffff
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

Function at 0x4edb50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, edx
push eax
push 0x20
xor esi, esi
call dword [0x50d334]
push eax
call dword [0x50d028]
test eax, eax
je 0x4edbde
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push esi
call dword [0x50d018]
test eax, eax
je 0x4edbd5
mov eax, dword [ebp - 0x20]
neg edi
push esi
push esi
mov dword [ebp - 0x10], eax
sbb edi, edi
mov eax, dword [ebp - 0x1c]
and edi, 2
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edi
call dword [0x50d014]
test eax, eax
je 0x4edbd3
call dword [0x50d2bc]
test eax, eax
jne 0x4edbd3
lea esi, [eax + 1]
jmp 0x4edbd5
xor esi, esi
push dword [ebp - 0x18]
call dword [0x50d2d8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4ee0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004c4820
mov ecx, dword [edi + 0x10]
call fcn.004eddc0
push dword [edi + 0x14]
call fcn.00424b6b
lea esi, [edi + 0x20]
mov dword [ebp - 8], eax
mov edi, dword [edi + 0x14]
xor ecx, ecx
add esp, 4
mov dword [ebp - 4], ecx
xor ebx, ebx
test edi, edi
je 0x4ee109
sub eax, esi
mov dword [ebp - 0xc], eax
nop
call fcn.004eddd0
mov cl, byte [esi]
lea esi, [esi + 1]
sub cl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + esi - 1], cl
movzx eax, byte [esi - 1]
mov ecx, dword [ebp - 4]
xor ebx, eax
add ecx, eax
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x4ee0e0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp word [edx + 0x1c], cx
jne 0x4ee118
cmp word [edx + 0x1e], bx
je 0x4ee131
push eax
call fcn.00424b28
add esp, 4
xor esi, esi
call fcn.004c4810
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
call fcn.004c4810
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ee150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call fcn.004c4820
lea eax, [ebp - 0x14]
push eax
call dword [0x50d300]
movzx ecx, word [ebp - 6]
call fcn.004eddc0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 0x14]
lea esi, [eax + 0x20]
test edi, edi
je 0x4ee1b8
call fcn.004eddd0
mov ecx, dword [ebp - 0x18]
lea esi, [esi + 1]
movzx eax, ax
add byte [esi - 1], al
mov al, byte [esi - 1]
movzx eax, al
xor ecx, eax
add ebx, eax
mov dword [ebp - 0x18], ecx
sub edi, 1
jne 0x4ee192
mov eax, dword [ebp - 0x1c]
movzx edx, word [ebp - 6]
mov dword [eax + 0x10], edx
mov word [eax + 0x1c], bx
mov word [eax + 0x1e], cx
call fcn.004c4810
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424b17
mov esp, ebp
pop ebp
ret

Function at 0x4f2840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1c
mov edi, edx
mov esi, ecx
call fcn.00424b2d
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f2690
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
call fcn.00435f2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f289a
push 2
push eax
mov dword [ebx], eax
call dword [0x50d2e4]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x1c
push ebx
call fcn.00424b5d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f3890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b7a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x78
call fcn.00424b2d
mov esi, eax
push 0x74
push 0
lea edx, [esi + 4]
push edx
call fcn.0042fd40
mov ecx, dword [0x5a9e28]
add esp, 0x10
inc ecx
mov dword [0x5a9e28], ecx
mov dword [esi], ecx
push 0
push 1
push 1
push 0
call dword [0x50d2d4]
push 0xfa0
lea edi, [esi + 8]
mov dword [esi + 4], eax
push edi
call dword [0x50d250]
lea eax, [ebp - 0x10]
mov dword [esi + 0x20], 0
push eax
push 0
push esi
push 0x4f3270
push 0
push 0
mov dword [esi + 0x24], 0
call fcn.00435fbd
add esp, 0x18
test eax, eax
je 0x4f398b
push 0x160
mov dword [esi + 0x6c], eax
call fcn.00424b2d
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov ecx, dword [0x55fe14]
call fcn.00497fc0
push eax
mov ecx, edx
call fcn.004af7c0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x70], eax
mov eax, dword [0x5a9e24]
mov dword [esi + 0x74], eax
mov dword [0x5a9e24], esi
mov eax, dword [esi]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x50d2e8]
push dword [esi + 4]
call dword [0x50d2d8]
push 0x78
push esi
call fcn.00424b5d
add esp, 8
mov eax, 0xd
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 0x4f6060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b981
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.00424b2d
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.004a5a90
mov dword [ebp - 4], 0xffffffff
mov dword [0x5a9eb4], eax
call fcn.00449b60
push 0xfa0
push 0x5a9e54
mov dword [0x5a9e94], 1
call dword [0x50d250]
push 0
push 0
push 0x4f5a20
mov dword [0x5a9e6c], 1
call fcn.00435f2f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f60f7
push 1
push eax
mov dword [0x5a9ee0], eax
call dword [0x50d2e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f6190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9a7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
push 0x34
call fcn.00424b2d
mov ebx, eax
add esp, 4
lea edi, [ebx + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x10], esi
mov esi, ecx
mov dword [ebx + 8], 0
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4f6200
sub esi, edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x1c], edx
cmp esi, edx
ja 0x4f623c
mov dword [ebp - 0x14], edi
mov eax, edi
cmp edx, 0x10
jb 0x4f6222
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
push esi
push ecx
push eax
mov dword [edi + 0x10], esi
call fcn.004306c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4f631f
cmp esi, 0x7fffffff
ja 0x4f637d
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4f625c
mov ecx, 0x7fffffff
jmp 0x4f6280
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4f6276
mov ecx, 0x7fffffff
jmp 0x4f6280
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x10], ecx
cmp edx, 0x1000
jb 0x4f62ba
lea eax, [edx + 0x23]
or ecx, 0xffffffff
cmp eax, edx
cmovbe eax, ecx
push eax
call fcn.00424b2d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f6382
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x10]
jmp 0x4f62ce
test edx, edx
je 0x4f62cc
push edx
call fcn.00424b2d
mov ecx, dword [ebp - 0x10]
add esp, 4
jmp 0x4f62ce
xor eax, eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call fcn.0042fea0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [eax + esi], 0
cmp ecx, 0x10
jb 0x4f631d
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4f6310
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f6382
mov eax, edx
push ecx
push eax
call fcn.00424b5d
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x4f5810
mov dword [ebx + 0x30], eax
call fcn.00435f2f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f635f
push 0
push eax
mov dword [ebx], eax
call dword [0x50d2e4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, ebx
call fcn.00404ac0
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404370
call fcn.00436cd9
int3
Function at 0x4f6490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.00424b2d
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f58b0
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00435f2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f64e4
push 2
push eax
mov dword [ebx], eax
call dword [0x50d2e4]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.00424b5d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f65a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.00424b2d
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f5980
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00435f2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f65f4
push 2
push eax
mov dword [ebx], eax
call dword [0x50d2e4]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.00424b5d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401350
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov ebx, ecx
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40152d
cmp dword [ebp - 0x1c], 0
jl 0x40152b
jg 0x40138f
cmp dword [ebp - 0x20], 0x40
jb 0x40152b
push 0x108
call fcn.00521140
mov edi, eax
add esp, 4
test edi, edi
je 0x40152b
push 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movlpd qword [ebp - 0x10], xmm0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x401519
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x401519
cmp dword [ebp - 4], 0x40
jne 0x401483
test esi, esi
je 0x401519
mov eax, 0x5a4d
xor esi, esi
cmp ax, word [edi]
jne 0x401519
mov eax, dword [edi + 0x3c]
mov dword [ebp - 8], eax
test eax, eax
jle 0x401519
cdq
mov ecx, edx
mov dword [ebp - 0xc], eax
mov edx, eax
mov dword [ebp - 0x24], ecx
add edx, 0x108
adc ecx, esi
cmp dword [ebp - 0x1c], ecx
jl 0x401519
jg 0x401441
cmp dword [ebp - 0x20], edx
jb 0x401519
push 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 4], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x401519
push 0
lea eax, [ebp - 4]
push eax
push 0x108
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x401519
cmp dword [ebp - 4], 0x108
je 0x401497
push edi
xor esi, esi
call fcn.00515acf
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401519
xor esi, esi
cmp dword [edi], 0x4550
jne 0x401519
movzx eax, word [edi + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x4014cf
mov ebx, dword [ebp - 0xc]
mov ecx, 0x98
mov esi, dword [edi + 0x9c]
add ebx, 0x58
mov edx, dword [edi + 0x98]
mov eax, dword [ebp - 8]
jmp 0x4014f0
mov ecx, 0x20b
cmp ax, cx
jne 0x401519
mov eax, dword [ebp - 8]
mov ecx, 0xa8
mov esi, dword [edi + 0xac]
mov edx, dword [edi + 0xa8]
lea ebx, [eax + 0x58]
add eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
cmp eax, dword [ebp - 0x1c]
jl 0x401514
jg 0x40150e
cmp edx, dword [ebp - 0x20]
jbe 0x401514
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, 1
push edi
call fcn.00515acf
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x20]
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x402f67
nop dword [eax]
and esi, 0x3f
jne 0x402f5c
mov ecx, edi
call fcn.00402160
mov byte [esi + edi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x402f50
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
shld ecx, edx, 3
mov eax, ecx
shl edx, 3
shr eax, 0x18
mov byte [edi + 0x60], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0x61], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0x62], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 0x64], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0x65], al
mov eax, edx
mov byte [edi + 0x63], cl
mov ecx, edi
shr eax, 8
mov byte [edi + 0x66], al
mov byte [edi + 0x67], dl
call fcn.00402160
mov esi, dword [ebp - 4]
xor ebx, ebx
add esi, 6
nop dword [eax]
mov ecx, dword [edi + ebx*4]
lea esi, [esi + 8]
mov edx, dword [edi + ebx*4 + 4]
mov eax, ecx
shr eax, 0x18
add ebx, 2
mov byte [esi - 0xe], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi - 0xc], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 0xa], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 9], al
mov eax, edx
shr eax, 8
mov byte [esi - 0xb], cl
mov byte [esi - 8], al
mov byte [esi - 7], dl
cmp ebx, 8
jb 0x402fc0
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4089b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539d95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00408d80
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4089e9
mov al, 1
jmp 0x408aca
push 0x53d548
lea ecx, [ebp - 0x30]
call fcn.00406cf0
mov dword [ebp - 4], 0
push 0x53d54c
lea ecx, [ebp - 0x48]
call fcn.00406cf0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
jmp 0x408a20
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
call fcn.00404da0
cmp dword [ebp - 0x18], eax
jae 0x408a7e
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408140
mov cx, word [eax]
mov word [ebp - 0x14], cx
movzx edx, word [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.004084b0
movzx eax, word [ebp - 0x14]
cmp eax, 0x5c
je 0x408a5f
movzx ecx, word [ebp - 0x14]
cmp ecx, 0x2f
jne 0x408a7c
push 0
lea ecx, [ebp - 0x30]
call fcn.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x48]
call fcn.00407e20
jmp 0x408a17
push 0
lea ecx, [ebp - 0x30]
call fcn.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x48]
push eax
call fcn.00408d80
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x408aa6
mov byte [ebp - 0xd], 1
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00407a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00407a00
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x408f50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00408d80
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x408f71
mov al, 1
jmp 0x408fd7
mov dword [ebp - 8], 1
mov edx, dword [ebp + 8]
push edx
call fcn.00408db0
add esp, 4
movzx eax, al
test eax, eax
je 0x408fb6
mov ecx, dword [ebp + 8]
call fcn.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408fa7
mov dword [ebp - 0xc], 1
jmp 0x408fae
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x408fca
mov ecx, dword [ebp + 8]
call fcn.0040b120
push eax
call fcn.00515b76
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408fd4
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4098c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4098dd
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4098e4
mov al, 1
jmp 0x4099bf
call fcn.00404ca0
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.00404ca0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040b750
add esp, 8
movzx eax, al
test eax, eax
je 0x409920
xor al, al
jmp 0x4099bf
mov dword [ebp - 0x20], 0x20
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x38]
call fcn.0040d510
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40995c
cmp dword [ebp - 8], 1
je 0x409963
cmp dword [ebp - 8], 3
je 0x4099b2
jmp 0x4099bd
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x44]
sub ecx, edx
mov dword [ebp - 0xc], ecx
je 0x409992
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x44]
push eax
call fcn.00516cbd
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x409992
xor al, al
jmp 0x4099bf
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4099a6
mov dword [ebp - 0x10], 1
jmp 0x4099ad
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x4099bf
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x4099bf
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40bff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 8], ecx
call fcn.00404ca0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040b750
add esp, 8
movzx edx, al
test edx, edx
je 0x40c02b
lea eax, [ebp + 8]
push eax
call fcn.0040beb0
add esp, 4
jmp 0x40c1a8
mov ecx, dword [ebp - 8]
call fcn.0040c360
test eax, eax
je 0x40c06d
mov ecx, dword [ebp - 8]
call fcn.0040c360
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.0040b700
cmp esi, eax
jae 0x40c06d
lea ecx, [ebp + 8]
push ecx
call fcn.0040d190
add esp, 4
mov bl, al
mov ecx, dword [ebp - 8]
call fcn.0040a690
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c1a8
mov edx, dword [ebp - 8]
cmp dword [edx + 0x4c], 0
jne 0x40c080
call fcn.00404ca0
jmp 0x40c1a8
mov ecx, dword [ebp - 8]
call fcn.0040a700
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x40c0cf
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040d190
add esp, 4
movzx ecx, al
push ecx
call fcn.00405660
add esp, 8
movzx edx, al
test edx, edx
je 0x40c0bf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x40c0c7
call fcn.00404ca0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x40c1a8
mov dword [ebp - 0x28], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0040d190
add esp, 4
mov byte [ebp - 2], al
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 2]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
call fcn.0040bfb0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c126
cmp dword [ebp - 0xc], 1
je 0x40c126
cmp dword [ebp - 0xc], 3
je 0x40c173
jmp 0x40c1a3
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x4c]
sub ecx, edx
mov dword [ebp - 0x10], ecx
je 0x40c158
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
call fcn.00516cbd
add esp, 0x10
cmp dword [ebp - 0x10], eax
je 0x40c158
call fcn.00404ca0
jmp 0x40c1a8
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 2]
cmp dword [ebp - 0x24], edx
je 0x40c16c
mov eax, dword [ebp + 8]
jmp 0x40c1a8
call fcn.00404ca0
jmp 0x40c1a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 2]
push edx
call fcn.00405660
add esp, 8
movzx eax, al
test eax, eax
je 0x40c196
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jmp 0x40c19e
call fcn.00404ca0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40c1a8
call fcn.00404ca0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4