joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fd71
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 + 0x10039998]
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 0x1001fdb7
cmp word [ebx], dx
jne 0x1001fdb7
or byte [eax + edi + 0x28], 4
jmp 0x1001fdbc
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 0x1001ff1f
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 0x1001feff
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001fdfd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001fe33
cmp eax, edx
jae 0x1001fe41
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 0x1001fdd8
jmp 0x1001ff1f
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 0x1001fefa
cmp dword [ebp - 0x18], 0
je 0x1001fefa
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10039998]
test byte [eax + edi + 0x28], 0x48
je 0x1001fed0
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 0x1001fe94
mov word [esi], cx
jmp 0x1001fecb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10039998]
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 + 0x10039998]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10039998]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001ff1f
pop eax
cmp word [ebp - 4], ax
jne 0x1001fee0
cmp esi, ebx
jne 0x1001fee0
mov word [esi], ax
jmp 0x1001ff1c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001f58e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001ff1f
push 0xd
pop eax
jmp 0x1001fedb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10039998]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001ff19
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001ff1f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100220e0
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 0x1002217d
push ebx
push esi
call fcn.100220a9
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.1001d4de
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002212a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002217c
push edi
push eax
call fcn.1001940c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002214a
call fcn.100193d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002217b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d4de
add esp, 0x20
test eax, eax
jne 0x10022169
push edi
call fcn.100193d2
jmp 0x10022171
push ebx
call fcn.100193d2
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 0x10025c2d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001a7d9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025c9c
cmp esi, dword [ebp - 4]
je 0x10025c97
cmp dword [ebp + 0xc], 0
je 0x10025c97
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10025c74
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002577f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10025c9e
xor eax, eax
inc eax
jmp 0x10025c9e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10025d03
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001a7d9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001a7d9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10025d7a
cmp word [ecx], dx
je 0x10025d7a
mov eax, dword [0x1002f764]
push edi
dec eax
push eax
push 0x1002f650
call fcn.10025ca2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10025ded
cmp word [eax], dx
je 0x10025ded
mov eax, dword [edi]
test eax, eax
je 0x10025d9e
cmp word [eax], dx
je 0x10025d9e
lea eax, [ebp - 0x10]
push eax
call fcn.10025685
jmp 0x10025da7
lea eax, [ebp - 0x10]
push eax
call fcn.10025720
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10025e17
mov eax, dword [0x1002f64c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002f340
call fcn.10025ca2
add esp, 0xc
test al, al
je 0x10025e17
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10025de2
cmp word [eax], di
je 0x10025de2
lea eax, [ebp - 0x10]
push eax
call fcn.10025685
pop ecx
jmp 0x10025e19
lea eax, [ebp - 0x10]
push eax
call fcn.10025720
jmp 0x10025ddf
mov eax, dword [edi]
test eax, eax
je 0x10025e04
cmp word [eax], dx
je 0x10025e04
lea eax, [ebp - 0x10]
push eax
call fcn.1002563a
pop ecx
jmp 0x10025e17
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10025ee2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10025b27
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10025ee2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10025ee2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10025ee2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10025e6f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001e5e2
test ebx, ebx
je 0x10025edd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001e5e2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025ee2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025ee2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100284f1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10025ee4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cf0a
leave
ret
Function at 0x10028711
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002868d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10028880
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10028880
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10028835
jg 0x1002876d
test eax, eax
je 0x1002882b
push 1
push 0x1000
call fcn.1001cfa3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10028790
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10028822
push 0x8000
push ebx
call fcn.100285be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100287b9
jg 0x100287b4
cmp ecx, 0x1000
jb 0x100287b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001f04d
add esp, 0x10
cmp eax, 0xffffffff
je 0x100287fe
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 0x100287b4
jl 0x100287e5
test ecx, ecx
jne 0x100287a6
push dword [ebp - 0xc]
push ebx
call fcn.100285be
push esi
call fcn.100193d2
add esp, 0xc
xor ebx, ebx
jmp 0x1002888e
cmp byte [edi + 0x24], 0
je 0x10028815
cmp dword [edi + 0x20], 5
jne 0x10028815
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10028820
mov ebx, dword [edi + 0x18]
jmp 0x10028822
xor ebx, ebx
push esi
call fcn.100193d2
pop ecx
jmp 0x1002888e
test ecx, ecx
jg 0x100287f7
jl 0x10028835
test eax, eax
jae 0x100287f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f58e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10028855
cmp byte [edi + 0x1c], 0
je 0x100287f7
jmp 0x10028886
push ebx
call fcn.100262bd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100287f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002888e
cmp byte [edi + 0x1c], 0
je 0x1002888b
mov ebx, dword [edi + 0x18]
jmp 0x1002888e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001f58e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10029ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408cf0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c118
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x16
call fcn.0042eabd
mov ebx, eax
xor eax, eax
mov ecx, ebx
mov esi, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
push 0x16
push ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [0x451934]
add ecx, 0x16
mov dword [0x451934], ecx
mov eax, dword [ebx + 6]
test eax, eax
jbe 0x408ee9
mov eax, dword [ebx]
inc eax
push eax
call fcn.0042eabd
mov edx, dword [esi]
add esp, 4
mov ebp, eax
mov eax, dword [ebx]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebx]
mov eax, dword [0x451934]
add eax, ecx
mov dword [0x451934], eax
mov edx, dword [ebx]
mov byte [edx + ebp], 0
mov eax, dword [ebx + 6]
add eax, 2
push eax
call fcn.0042eabd
mov ecx, dword [ebx + 0xa]
mov dword [esp + 0x14], eax
inc ecx
push ecx
call fcn.0042eabd
mov edx, dword [esi]
add esp, 8
mov edi, eax
mov eax, dword [ebx + 0xa]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x20], edi
call dword [edx + 0x34]
mov ecx, dword [ebx + 0xa]
mov eax, dword [0x451934]
add eax, ecx
lea ecx, [esp + 0x2c]
mov dword [0x451934], eax
mov edx, dword [ebx + 6]
mov eax, dword [ebx + 0xa]
add edx, 2
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
push eax
push edi
push ecx
push edx
call fcn.00413960
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408e6d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408dfd
push eax
call fcn.0042eae6
add esp, 4
test edi, edi
je 0x408e0a
push edi
call fcn.0042eae6
add esp, 4
mov eax, dword [0x44dc48]
mov dword [esp + 0x14], eax
push esi
push ebp
lea ecx, [esp + 0x1c]
push 0x44b9f0
push ecx
mov dword [esp + 0x34], 0
call fcn.0042d7b7
add esp, 0x10
test ebp, ebp
je 0x408e3c
push ebp
call fcn.0042eae6
add esp, 4
test ebx, ebx
je 0x408e49
push ebx
call fcn.0042eae6
add esp, 4
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
call fcn.00437051
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00432a26
jmp 0x408f04
mov eax, dword [esp + 0x2c]
inc eax
push eax
call fcn.0042eabd
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [0x451938], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x451938]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408eb7
push eax
call fcn.0042eae6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408ec8
push eax
call fcn.0042eae6
add esp, 4
test ebp, ebp
je 0x408ed5
push ebp
call fcn.0042eae6
add esp, 4
test ebx, ebx
je 0x408ee2
push ebx
call fcn.0042eae6
add esp, 4
mov eax, 1
jmp 0x408f06
test ebx, ebx
je 0x408ef6
push ebx
call fcn.0042eae6
add esp, 4
push 0
push 0
push 0x44ba04
call fcn.00437051
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x412e50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43cdc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004353c2
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x43e748
mov ebx, dword [esp + 0x2c]
mov dword [esi], method.o_v.virtual_0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x412f21
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
test ebx, ebx
jne 0x412ec3
xor eax, eax
jmp 0x412ec6
mov eax, dword [ebx + 4]
push eax
call dword [0x43e0f8]
push eax
mov ecx, esi
call fcn.00435479
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [0x43e104]
push eax
mov ecx, ebp
call fcn.00435d80
test ebp, ebp
je 0x412eff
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.004355ba
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00435849
jmp 0x412f33
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x1000dd3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000dd4e
pop dword [ebp - 0xc]
mov eax, 0x1000dd4e
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x90f12cc9
sub dword [ebp - 0x1c], 0x429ee77e
mov dword [ebp - 0x18], 0xffe9ab60
sub dword [ebp - 0x18], 0xcdb65f1b
mov dword [ebp - 0x14], 0xaa619c5e
sub dword [ebp - 0x14], 0x5e155830
mov dword [ebp - 0x10], 0xd75c544b
sub dword [ebp - 0x10], 0xd75c544b
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xfee2932c
add dword [ebp - 0x1c], 0x758fd62a
mov dword [ebp - 0x18], 0xc9318735
add dword [ebp - 0x18], 0x783ada40
mov dword [ebp - 0x14], 0x77fe3527
add dword [ebp - 0x14], 0xeb713745
mov dword [ebp - 0x10], 0x8fab845d
add dword [ebp - 0x10], 0x70547ba3
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0ad
push 0
call eax
mov ecx, 0x393e
xor esi, esi
add esi, eax
mov edx, 0x771b37b4
sub edx, 0x6717ddb4
add edx, dword [ebp - 0xc]
mov ebx, 0xdab71cbe
sub ebx, 0x665e78af
add dword [ebp - 8], edi
mov edi, dword [edx]
sub dword [ebp - 4], edx
xor edi, ebx
sub dword [ebp - 8], 0x7368ad83
mov dword [esi], edi
sub dword [ebp - 4], edx
add esi, 0xdfb606d2
sub esi, 0xdfb606ce
add edx, 0xcaf68260
add edx, 0x35097da4
loop 0x1000de5d
add eax, 0xd7cb
xor ebx, ebx
add ebx, eax
add eax, 0x33a945e0
add eax, 0xcc56ba25
mov ecx, 0x53c7e9d2
sub ecx, 0x43c7e9d2
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401ab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x406658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0xcc]
test eax, eax
jne 0x401b6b
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004061c8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401b59
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401b52
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0xcc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00406144
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402510
Capabilities:
Capture screenshot

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
xor edx, edx
mov ebx, dword [edi + 0x58]
sub esi, ecx
mov eax, esi
div ebx
xor edx, edx
mov ecx, eax
mov eax, esi
div ebx
mov dword [esp + 0x10], ecx
test edx, edx
je 0x40253f
inc ecx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [edi + 0x5c]
sub esi, edx
mov eax, esi
xor edx, edx
div ebx
xor edx, edx
mov ebp, eax
mov eax, esi
div ebx
test edx, edx
je 0x40255f
inc ebp
xor ebx, ebx
test ecx, ecx
jle 0x4025a2
xor esi, esi
test ebp, ebp
jle 0x40259d
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
push 0xcc0020
push 0
push 0
push edx
push eax
imul eax, esi
push ecx
imul ecx, ebx
push eax
mov eax, dword [esp + 0x34]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
cmp esi, ebp
jl 0x40256b
mov ecx, dword [esp + 0x10]
inc ebx
cmp ebx, ecx
jl 0x402565
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x403760
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x406a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
push 0x40b308
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push 0x40b308
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [str.CF_A10.exe]
mov ecx, dword [0x40b124]
mov dx, word [0x40b128]
mov dword [esp + 0x18], eax
mov al, byte [0x40b12a]
push ebx
push 2
mov byte [esp + 0x15c], 1
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
mov byte [esp + 0x2a], al
mov dword [0x40b360], ebx
mov dword [0x40b35c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x24]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x4038a6
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push 0x40b0b4
push eax
call sub.MFC42.DLL_CString::Format
lea ecx, [esp + 0x54]
lea edx, [esp + 0x1c]
push ecx
push 0x40b108
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x20
test eax, eax
jne 0x403850
inc dword [0x40b360]
lea esi, [esp + 0x48]
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40387c
cmp cl, bl
je 0x403878
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40387c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403858
xor eax, eax
jmp 0x403881
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403893
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 1
call ebp
cmp eax, ebx
je 0x4038a6
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x40380b
mov eax, dword [0x40b360]
cmp eax, 6
ja case.default.0x4038b0
jmp dword [eax*4 + 0x403944]
mov dword [0x40b35c], ebx
jmp case.default.0x4038b0
mov dword [0x40b35c], 1
jmp case.default.0x4038b0
mov dword [0x40b35c], 3
jmp case.default.0x4038b0
mov dword [0x40b35c], 6
jmp case.default.0x4038b0
mov dword [0x40b35c], 0xa
jmp case.default.0x4038b0
mov dword [0x40b35c], 0xf
jmp case.default.0x4038b0
mov dword [0x40b35c], 0x15
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], bl
call fcn.00406144
lea ecx, [esp + 0x14]
mov dword [esp + 0x154], 0xffffffff
call fcn.00406144
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret 4