joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10264ed0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102a05e4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1058ac14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov esi, dword [ecx + 0xcc]
mov ecx, dword [ecx + 0xd0]
sub ecx, esi
sar ecx, 2
div ecx
mov ebx, dword [esi + edx*4]
lea eax, [esi + edx*4]
mov dword [ebp + 0x10], ebx
lea ecx, [ebx + 0x5c]
call fcn.10227140
mov ecx, dword [ebp + 0x20]
lea eax, [ebx + 0x20]
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x30], edi
push eax
lea eax, [ebx + 0x10]
mov dword [ebx + 0x34], esi
push eax
push ecx
push edx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0xc], 0
push edi
push dword [edi + 0x10c]
call fcn.10264ff0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
push 0x10
call fcn.10269f9d
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x10264fb8
push dword [ebp + 8]
mov ecx, esi
call fcn.10226790
mov dword [esi], vtable.TileBufferTask.1.0
mov eax, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 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
xor esi, esi
mov eax, esi
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 0x10268b90
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, 0x40
push esi
mov esi, dword [esp + 0x14]
sub ecx, ebx
push edi
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.1026afa0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
or dword [ecx], eax
or dword [ecx + 4], edx
mov eax, dword [edi]
cmp eax, ebx
jge 0x10268cf2
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
push ebp
cmp dword [ebx], 0x40
jl 0x10268c72
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp]
movzx eax, byte [ecx]
cdq
mov edi, eax
mov ebx, edx
movzx eax, byte [ecx + 1]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 2]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 3]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 4]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 5]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 6]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 7]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov edi, dword [esp + 0x20]
mov dword [edi], 0x40
add dword [ebp], 8
add dword [eax], 0xffffffc0
jmp 0x10268cd3
mov dword [esi], 0
mov ebp, 0x38
mov dword [esi + 4], 0
mov dword [edi], 0x40
mov eax, dword [ebx]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x10268ccb
mov edi, dword [esp + 0x24]
nop dword [eax]
mov eax, dword [edi]
mov ecx, ebp
movzx eax, byte [eax]
cdq
call fcn.1026af80
or dword [esi], eax
or dword [esi + 4], edx
inc dword [edi]
add ebp, 0xfffffff8
mov eax, dword [ebx]
adc dword [esp + 0x28], 0xffffffff
add eax, 0xfffffff8
mov dword [ebx], eax
test eax, eax
jg 0x10268ca0
mov edi, dword [esp + 0x20]
jns 0x10268cd3
mov dword [ebx], 0
mov ebx, dword [esp + 0x18]
mov ecx, 0x40
mov eax, dword [esi]
sub ecx, ebx
mov edx, dword [esi + 4]
call fcn.1026afa0
mov ecx, dword [esp + 0x14]
pop ebp
or dword [ecx], eax
or dword [ecx + 4], edx
mov eax, dword [esi]
mov ecx, ebx
mov edx, dword [esi + 4]
call fcn.1026af80
mov dword [esi], eax
mov dword [esi + 4], edx
sub dword [edi], ebx
jne 0x10268d14
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret 0x18
Function at 0x10276aca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1026ac60
mov eax, dword [0x1058ac14]
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.10287645
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10276b0c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10276c68
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1026ae90
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 + 0x105953e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10287b81
mov ecx, dword [esi*4 + 0x105953e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10276c61
cmp eax, dword [edi + ecx + 0x24]
jne 0x10276c61
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10276c61
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10287b81
add esp, 0x14
test edx, edx
jl 0x10276c61
jg 0x10276bd7
test eax, eax
jb 0x10276c61
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10276c61
jl 0x10276bf1
cmp dword [ebp - 0x1008], eax
ja 0x10276c61
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10276c0f
test ebx, ebx
je 0x10276c48
cmp ecx, edi
jae 0x10276c48
mov al, byte [ecx]
cmp al, 0xd
jne 0x10276c29
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10276c35
cmp byte [ecx + 1], 0xa
jne 0x10276c35
inc ecx
jmp 0x10276c35
movzx eax, al
movsx eax, byte [eax + 0x1058ae88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10276c0f
cmp edx, ebx
jne 0x10276c0f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10276c66
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1026b168
leave
ret
Function at 0x10287bfd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x105953e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10287c3d
cmp byte [ebx], 0xa
jne 0x10287c3d
or byte [eax + edi + 0x28], 4
jmp 0x10287c42
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10287d40
mov al, byte [edx]
cmp al, 0x1a
je 0x10287d22
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10287c71
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10287c96
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10287ca0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10287c53
jmp 0x10287d40
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10287d1d
cmp dword [ebp - 0xc], 0
je 0x10287d1d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x105953e8]
test byte [eax + edi + 0x28], 0x48
je 0x10287cf7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10287ce2
mov byte [esi], dl
jmp 0x10287cf3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x105953e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10287d40
cmp byte [ebp - 1], 0xa
jne 0x10287d06
cmp esi, ebx
jne 0x10287d06
mov byte [esi], 0xa
jmp 0x10287d3f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10287b9f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10287d40
mov byte [esi], 0xd
jmp 0x10287d3f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x105953e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10287d3c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10287d40
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10287d49
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x105953e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10287d8c
cmp word [esi], dx
jne 0x10287d8c
or byte [edi + eax + 0x28], 4
jmp 0x10287d91
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10287ee4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10287ec4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10287dd3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10287e09
cmp eax, edx
jae 0x10287e15
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10287dab
jmp 0x10287ee4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10287ec0
cmp dword [ebp - 0x14], 0
je 0x10287ec0
mov eax, dword [ebx*4 + 0x105953e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10287e98
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10287e61
mov word [esi], cx
jmp 0x10287e94
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x105953e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x105953e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x105953e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10287ee4
pop ebx
cmp word [ebp - 4], bx
jne 0x10287ea9
cmp esi, dword [ebp + 0xc]
jne 0x10287ea9
mov word [esi], bx
jmp 0x10287ee1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10287b9f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10287ee4
push 0xd
jmp 0x10287edd
mov ecx, dword [ebx*4 + 0x105953e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10287edb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10287ee4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102894b3
Capabilities:
Read file on windows

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

Function at 0x1028a61c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x103db898
push 0x103db890
push str.FlsAlloc
push 0x1e
call fcn.1028a489
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1028a650
push dword [ebp + 8]
mov ecx, esi
call dword [0x102a218c]
call esi
jmp 0x1028a656
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1028a69a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x103db8a8
push 0x103db8a0
push str.FlsGetValue
push 0x20
call fcn.1028a489
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1028a6d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x102a218c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10290218
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x102902b5
push ebx
push esi
call fcn.102901e1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1028a112
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10290262
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102902b4
push edi
push eax
call fcn.102863b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10290282
call fcn.1028465b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102902b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1028a112
add esp, 0x20
test eax, eax
jne 0x102902a1
push edi
call fcn.1028465b
jmp 0x102902a9
push ebx
call fcn.1028465b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x102902b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x102902c9
pop esi
ret
push ebx
push edi
push esi
call fcn.102901e1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.102863b1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x102902f1
push ebx
push esi
push edi
call fcn.1026c360
add esp, 0xc
push 0
call fcn.1028465b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10290a3d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10290564
Function at 0x1029757a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.102974f6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x102976f2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x102976f2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x102976a1
jg 0x102975d3
test eax, eax
je 0x10297697
push 1
push 0x1000
call fcn.1028aee7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x102975f9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1029768e
push 0x8000
push ebx
call fcn.10297427
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10297625
jg 0x10297620
cmp ecx, 0x1000
jb 0x10297625
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10288ecc
add esp, 0x10
cmp eax, 0xffffffff
je 0x1029766a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10297620
jl 0x10297651
test ecx, ecx
jne 0x10297612
push dword [ebp - 0xc]
push ebx
call fcn.10297427
push esi
call fcn.1028465b
add esp, 0xc
xor edi, edi
jmp 0x10297703
cmp byte [edi + 0x24], 0
je 0x10297681
cmp dword [edi + 0x20], 5
jne 0x10297681
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1029768c
mov edi, dword [edi + 0x18]
jmp 0x1029768e
xor edi, edi
push esi
call fcn.1028465b
pop ecx
jmp 0x10297703
test ecx, ecx
jg 0x10297663
jl 0x102976a1
test eax, eax
jae 0x10297663
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10287b9f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x102976c4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10297663
jmp 0x102976fb
push ebx
call fcn.1028c6da
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10297663
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10297703
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10297700
mov edi, dword [edi + 0x18]
jmp 0x10297703
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10287b9f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10297e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10297e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10297e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x424940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x424948], eax
call edi
push eax
call esi
mov dword [0x424950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42494c], eax
mov eax, dword [0x42494c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x424950], ecx
je 0x404367
push eax
call esi
push dword [0x424950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x424944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x424948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41dd60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef6de4]
mov eax, dword [0x1ef6b08]
xor ecx, ecx
mov word [0x1ef6e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef6dec], 0x6e0072
mov dword [0x1ef6df0], 0x6c0065
mov dword [0x1ef6df4], 0x320033
mov dword [0x1ef6df8], 0x64002e
mov dword [0x1ef6dfc], 0x6c006c
mov dword [0x1ef6de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41df90
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str._bSWN]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef6b08]
push edi
mov edi, dword [0x1ef6de4]
push eax
call fcn.0041deb0
add esp, 4
cmp dword [0x1ef6de4], 0x2f
jne 0x41dfed
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041df00
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001fb1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
Function at 0x10026d1
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010026e0
jmp fcn.01002638
Function at 0x45dc95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x45dca4
pop dword [ebp - 0x34]
mov eax, 0x4212dfef
sub eax, 0x41cd034b
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x47976
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xa6662200
add ecx, 0x599a2463
xor esi, esi
add esi, eax
mov edi, 0x4ae800
add edi, dword [ebp - 0x34]
mov ebx, 0x89306fed
sub dword [ebp - 0x1c], 0x5818ee5e
mov edx, dword [edi]
xor dword [ebp - 0x10], 0x78d8968
add edx, ebx
add dword [ebp - 0x20], ebx
mov dword [esi], edx
mov dword [ebp - 0x2c], 0x905bafe
add esi, 4
add edi, 0x4c8dab4f
sub edi, 0x4c8dab4b
loop 0x45dcf4
add eax, 0x87498069
add eax, 0x78b78bf6
mov ebx, eax
add eax, 0x7a2f44fe
sub eax, 0x7a2f44f9
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10010095
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10010120
call fcn.1000ff6a
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100272c5
test eax, eax
je 0x10030f3f
cmp eax, 2
jne 0x10010347
push dword [0x100c87c0]
call sym.MSVCR110.dll___crtFlsGetValue
pop ecx
test eax, eax
jne 0x10010112
push 0x3bc
push 1
call sym.MSVCR110.dll__calloc_crt
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10030f8e
push esi
push dword [0x100c87c0]
call sym.MSVCR110.dll___crtFlsSetValue
pop ecx
pop ecx
test eax, eax
je 0x100502cf
push 0
push esi
call sym.MSVCR110.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10010090
xor eax, eax
inc eax
call fcn.1000ffaf
ret
cmp eax, 3
jne 0x10010112
push 0
call fcn.10010311
pop ecx
jmp 0x10010112
call fcn.10026ea2
test eax, eax
je 0x10030f8e
call fcn.1002724e
test eax, eax
je 0x1005025b
call fcn.10027b6a
jmp 0x10050265
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCR110.dll__acmdln], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [sym.MSVCR110.dll__wcmdln], eax
call fcn.10026f3a
jmp 0x1005027e
push 0
call fcn.100278aa
pop ecx
test eax, eax
jne 0x1005028b
inc dword [0x100c9c5c]
jmp 0x10010112
sldt word [eax]
call fcn.1009b805
jmp 0x10030f8e
mov dword [0x100c9df8], eax
call fcn.10027789
test eax, eax
jns 0x100272e9
call fcn.100777fa
jmp 0x1005025b
call fcn.10027bf1
test eax, eax
jns 0x10027309
call fcn.1009be52
jmp 0x10050277
push esi
call sym.MSVCR110.dll_free
pop ecx
jmp 0x10030f8e