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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7200
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x479797
mov ecx, dword [0x673870]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4796ec
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00478310
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00497016
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00496f29
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x671f9c
call fcn.00496f97
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004786d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00497016
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00496f29
lea ecx, [esp + 0xc]
call fcn.004973f1
mov ecx, dword [esp + 0xc]
push 0x6729dc
push ecx
call fcn.00486674
add esp, 8
test eax, eax
je 0x479714
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x47964d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00496f29
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00496f29
jmp 0x47979b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00479390
test eax, eax
push 0
je 0x47977f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00477a30
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x479765
cmp eax, 0x64
jg 0x479753
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4796f0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4796f0
cmp eax, 0x64
jge 0x4796ec
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4796f0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00477a30
mov esi, eax
jmp 0x4796f0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4797a5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4844b0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x4844f8
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push 0x484450
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x48451c
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push 1
mov esi, eax
call edi
push eax
push esi
add eax, 0xffffffec
add esi, 0xffffffd8
push eax
lea edx, [esp + 0x14]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, eax
pop edi
pop esi
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
add esp, 0x10
ret 4

Function at 0x499334
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49936c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00497384
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049735c
jmp 0x499378
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49aa25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49aa67
call fcn.004a091a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49aa67
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49aa5e
xor eax, eax
jmp 0x49aa6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049aa75
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0e4a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0e78
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0e96
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a0db0
jmp 0x4a0e96
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0e96
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a0db0
test edi, edi
mov eax, edi
jne 0x4a0e80
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40654e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40655e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret

Function at 0x407e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4344c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x435398]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4350e0]
cmp eax, dword [ecx + 4]
jg 0x408027
cmp dword [0x434498], 0
jne 0x40800a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00408c40
test al, al
jne 0x407f19
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.004012f0
mov esi, eax
add esp, 0xc
cmp esi, 0x434488
je 0x408001
mov ecx, dword [0x43449c]
cmp ecx, 0x10
jb 0x407fbe
mov edx, dword [0x434488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407fb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40805d
jmp 0x407fb4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.004116d0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407f87
cmp dword [ebp - 0x240], esi
je 0x407f7b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407f60
jmp 0x407f87
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.004012f0
add esp, 0x10
mov esi, eax
cmp esi, 0x434488
pop edi
jmp 0x407ed6
push ecx
push edx
call fcn.0040fb83
add esp, 8
mov dword [0x434498], 0
mov dword [0x43449c], 0xf
mov byte [0x434488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x434488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x434498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00401440
pop esi
push 0x434488
mov ecx, ebx
call fcn.00403fd0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040fd76
mov esp, ebp
pop ebp
ret
push 0x4350e0
call fcn.0040fca0
add esp, 4
cmp dword [0x4350e0], 0xffffffff
jne 0x407e9d
push 0x428ed0
call fcn.0040ffe3
push 0x4350e0
call fcn.0040fc56
add esp, 8
jmp 0x407e9d
call fcn.004130bf
int3
Function at 0x408070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428106
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4344c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.004116d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.00411480
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4080f0
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4081e9
call fcn.00403640
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040d2c0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00408680
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x40819a
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40822e
push ecx
push edx
call fcn.0040fb83
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x408211
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408207
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40822e
jmp 0x408207
call fcn.00403640
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040d2c0
add esp, 8
jmp 0x4081b5
push ecx
push edx
call fcn.0040fb83
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd76
mov esp, ebp
pop ebp
ret
call fcn.004130bf
int3
Function at 0x410531
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x410570
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410570
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410570
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410570
cmp dword [ecx + 0x74], 0xe
jbe 0x410570
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b82b
Capabilities:
Print debug messages

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

Function at 0x41e073
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 + 0x435a98]
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 0x41e0b3
cmp byte [ebx], 0xa
jne 0x41e0b3
or byte [eax + edi + 0x28], 4
jmp 0x41e0b8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e1b6
mov al, byte [edx]
cmp al, 0x1a
je 0x41e198
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e0e7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e10c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e116
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 0x41e0c9
jmp 0x41e1b6
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 0x41e193
cmp dword [ebp - 0xc], 0
je 0x41e193
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x435a98]
test byte [eax + edi + 0x28], 0x48
je 0x41e16d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e158
mov byte [esi], dl
jmp 0x41e169
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e1b6
cmp byte [ebp - 1], 0xa
jne 0x41e17c
cmp esi, ebx
jne 0x41e17c
mov byte [esi], 0xa
jmp 0x41e1b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041eac1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e1b6
mov byte [esi], 0xd
jmp 0x41e1b5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x435a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e1b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e1b6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e1bf
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 + 0x435a98]
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 0x41e202
cmp word [esi], dx
jne 0x41e202
or byte [edi + eax + 0x28], 4
jmp 0x41e207
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 0x41e35a
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 0x41e33a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e249
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e27f
cmp eax, edx
jae 0x41e28b
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 0x41e221
jmp 0x41e35a
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 0x41e336
cmp dword [ebp - 0x14], 0
je 0x41e336
mov eax, dword [ebx*4 + 0x435a98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e30e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e2d7
mov word [esi], cx
jmp 0x41e30a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x435a98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x435a98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x435a98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e35a
pop ebx
cmp word [ebp - 4], bx
jne 0x41e31f
cmp esi, dword [ebp + 0xc]
jne 0x41e31f
mov word [esi], bx
jmp 0x41e357
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041eac1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e35a
push 0xd
jmp 0x41e353
mov ecx, dword [ebx*4 + 0x435a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e351
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e35a
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 0x41fe72
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d218
push 0x42d210
push str.FlsAlloc
push 0x1e
call fcn.0041fd10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fea6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e0]
call esi
jmp 0x41feac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41fef0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d228
push 0x42d220
push str.FlsGetValue
push 0x20
call fcn.0041fd10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ff27
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x421226
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 0x4212c3
push ebx
push esi
call fcn.004211ef
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.0041fb0c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421270
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4212c2
push edi
push eax
call fcn.0041c0df
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421290
call fcn.0041c0a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4212c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041fb0c
add esp, 0x20
test eax, eax
jne 0x4212af
push edi
call fcn.0041c0a5
jmp 0x4212b7
push ebx
call fcn.0041c0a5
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 0x4260c5
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.00426041
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42623d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42623d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4261ec
jg 0x42611e
test eax, eax
je 0x4261e2
push 1
push 0x1000
call fcn.00420229
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x426144
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4261d9
push 0x8000
push ebx
call fcn.004197a8
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 0x426170
jg 0x42616b
cmp ecx, 0x1000
jb 0x426170
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041f40c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4261b5
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 0x42616b
jl 0x42619c
test ecx, ecx
jne 0x42615d
push dword [ebp - 0xc]
push ebx
call fcn.004197a8
push esi
call fcn.0041c0a5
add esp, 0xc
xor edi, edi
jmp 0x42624e
cmp byte [edi + 0x24], 0
je 0x4261cc
cmp dword [edi + 0x20], 5
jne 0x4261cc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4261d7
mov edi, dword [edi + 0x18]
jmp 0x4261d9
xor edi, edi
push esi
call fcn.0041c0a5
pop ecx
jmp 0x42624e
test ecx, ecx
jg 0x4261ae
jl 0x4261ec
test eax, eax
jae 0x4261ae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041eac1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42620f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4261ae
jmp 0x426246
push ebx
call fcn.00421690
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4261ae
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 0x42624e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42624b
mov edi, dword [edi + 0x18]
jmp 0x42624e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041eac1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42763d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42763d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419720
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48a34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047e44a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4197a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047ba0d
mov eax, dword [eax]
push 0x4dd1f0
push eax
call fcn.0046de04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047e6d5
test bl, bl
je 0x4197a2
push 0x4dd1f0
lea ecx, [esp + 0xc]
call fcn.0047ea65
push 0x4e0d9c
lea ecx, [esp + 0xc]
call fcn.0047ea65
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4197de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047e6d5
jmp 0x4198a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x419862
lea edx, [esp + 0x7c]
push 0x4e0d98
push edx
call fcn.0046de04
add esp, 8
test eax, eax
je 0x419862
lea eax, [esp + 0x7c]
push 0x4e0d94
push eax
call fcn.0046de04
add esp, 8
test eax, eax
je 0x419862
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4197f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047e6d5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41a0c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41a122
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc