joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aa40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472a23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004662bd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b956
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046ce72
test eax, eax
je 0x43ab5c
mov ecx, dword [esp + 0x3c]
call fcn.0046b983
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ab20
push edi
mov ecx, esi
call fcn.00468feb
mov ecx, esi
call fcn.0043acc0
cmp dword [esp + 0x38], 1
jne 0x43ab55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00469126
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d580
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d5b3
push esi
call fcn.00440670
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d5ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d639
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d622
mov eax, dword [esi + 8]
test eax, eax
je 0x43d5d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d61e
cmp eax, 2
je 0x43d622
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d5ca
cmp eax, 3
je 0x43d5fd
cmp eax, 1
jne 0x43d5ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d5ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d5ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d660
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d648
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d660
add esp, 4
pop esi
ret
Function at 0x44f550
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44f59c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44f59c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44f586
push eax
call ebp
test ax, ax
jl 0x44f594
inc esi
add edi, 4
cmp esi, 6
jb 0x44f578
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044f250
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x453260
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4532c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4532c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4532c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4532c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4532d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4670b3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4670eb
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.0046516a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465142
jmp 0x4670f7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4687a8
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 0x4687ea
call fcn.0046e3ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4687ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4687e1
xor eax, eax
jmp 0x4687f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004687f8
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e91d
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 0x46e94b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e969
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e883
jmp 0x46e969
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e969
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e883
test edi, edi
mov eax, edi
jne 0x46e953
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1003c34
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movsx eax, byte [ebp + 0x10]
dec eax
dec eax
je 0x1003d4d
sub eax, 4
je 0x1003d3d
sub eax, 0xa
je 0x1003cf3
sub eax, 6
je 0x1003ca1
dec eax
je 0x1003c6d
dec eax
je 0x1003d4d
xor eax, eax
leave
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x58]
cmp eax, 0x800700aa
jne 0x1003c8b
push 0x100130c
call fcn.01003aec
jmp 0x1003c9b
test eax, eax
je 0x1003c9c
push eax
push 0x10012e0
call fcn.01003aec
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1003c69
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [ebp + 0x10]
push ecx
push dword [0x10092c0]
push esi
call dword [eax + 0x94]
xor dword [ebp + 0x10], 8
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x10092c0]
push esi
call dword [eax + 0x98]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test byte [ebp + 0x10], 8
pop esi
mov eax, 0x10012dc
jne 0x1003ceb
mov eax, 0x10012d8
push eax
push 0x10012c4
jmp 0x1003c95
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20]
push 0x10012b8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
push 0
push 0x10012ac
lea eax, [ebp - 0x20]
push eax
push 0x10012a8
push 0x10012a0
push 0x1001298
push 0x1001294
push 0x100128c
push 1
call dword [sym.imp.msvcrt.dll__spawnlp]
add esp, 0x30
jmp 0x1003c9c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10]
jmp 0x1003c9c
cmp dword [0x10093b0], 0
jne 0x1003d65
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003d65
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x68]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1003d6e
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100939c]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1003db6
push eax
push dword [0x1008088]
push 0x1001348
call fcn.01003aec
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push dword [0x100939c]
push edi
call dword [sym.imp.msvcrt.dll_strncpy]
mov byte [edi + esi - 1], bl
add esp, 0x18
mov dword [0x100939c], ebx
jmp 0x1003f64
mov eax, dword [0x1009370]
mov edi, dword [ebp + 8]
jmp 0x1003e09
cmp eax, dword [sym.imp.msvcrt.dll__iob]
je 0x1003e33
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x1003e0f
push dword [0x1009370]
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [0x10092e8]
cmp eax, ebx
pop ecx
jbe 0x1003dff
dec eax
mov dword [0x10092e8], eax
mov eax, dword [eax*4 + 0x10092f0]
jmp 0x1003e04
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x1009370], eax
cmp eax, ebx
jne 0x1003dc0
jmp 0x1003e37
push edi
push 0x1001270
call fcn.01003aec
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e21
sub eax, edx
mov byte [eax + edi - 1], bl
jmp 0x1003f64
cmp eax, ebx
jne 0x1003e41
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x1009370], eax
mov eax, dword [0x1009384]
sub eax, ebx
je 0x1003e7f
dec eax
je 0x1003e5b
dec eax
jne 0x1003f64
xor eax, eax
jmp 0x1003f67
cmp dword [ebp + 0x10], ebx
je 0x1003e54
mov eax, 0x200
cmp dword [ebp + 0xc], eax
jae 0x1003e6d
mov eax, dword [ebp + 0xc]
push eax
push edi
push 0x1001346
call dword [0x10092a0]
jmp 0x1003f64
mov eax, dword [0x1009290]
cmp eax, dword [0x1009298]
jne 0x1003f14
cmp dword [ebp + 0x10], ebx
je 0x1003e54
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
jmp 0x1003ec4
cmp dword [ebp + 8], 2
jae 0x1003edf
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push edi
push dword [0x1009290]
call esi
test eax, eax
jne 0x1003ea7
push 0x1001274
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x80004005
jmp 0x1003f7a
sub dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
mov esi, ebx
je 0x1003f64
xor eax, eax
mov al, byte [esi + edi]
push eax
push dword [0x10092b8]
push dword [0x10092c0]
call fcn.01003c34
test eax, eax
je 0x1003f0c
mov byte [esi + edi], 0x20
inc esi
cmp esi, dword [ebp + 8]
jb 0x1003eed
jmp 0x1003f64
cmp dword [0x1008284], ebx
jne 0x1003f5b
push dword [0x100928c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1003f53
cmp dword [ebp + 0x10], ebx
je 0x1003e54
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x70]
mov esi, eax
cmp esi, ebx
jne 0x1003f6e
cmp dword [0x10092ac], 6
jne 0x1003e54
cmp dword [0x1008284], ebx
je 0x1003f2a
push dword [ebp + 0xc]
push edi
call fcn.01003bbc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x1001328
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.01003b35
int3
Function at 0x1003f80
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, 0x1000
mov esi, 0x1008288
je 0x1003fe4
cmp dword [0x10093b4], ebx
jne 0x1003fad
cmp dword [0x1009288], ebx
jne 0x1003fad
call fcn.010039be
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.msvcrt.dll__vsnprintf]
mov dword [ebp - 4], eax
mov eax, dword [0x1009294]
add esp, 0x10
cmp eax, ebx
je 0x1003fdd
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1003fe4
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x10093b4], ebx
jne 0x1004013
push dword [0x1008088]
push 0x100136c
call fcn.01003aec
pop ecx
pop ecx
push 1
push edi
push esi
mov dword [0x100939c], ebx
mov dword [0x1009370], ebx
call fcn.01003d6e
push 0x80004005
call fcn.01003b35
int3

Function at 0x1004253
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
xor esi, esi
cmp dword [0x1008280], esi
jne 0x1004386
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x100928c], eax
jne 0x100428f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10014e0
jmp 0x1004362
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10014d0
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
push esi
push 0xffffffffffffffff
mov eax, 0x7d0
push eax
push eax
push 2
push esi
push 0x40000003
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [0x1008280], eax
jne 0x10042e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10014ac
jmp 0x1004362
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1009290], eax
jne 0x100431c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100148c
jmp 0x1004362
push edi
lea eax, [ebp - 4]
push eax
push 0x20
push esi
push 0x100401e
push 0x3e80
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x1004349
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001468
jmp 0x1004362
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1004367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001438
call fcn.01003f80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x100437e
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x32
push eax
call dword [ecx + 0x70]
cmp dword [0x1008248], esi
je 0x1004371
pop esi
leave
ret
Function at 0x1004606
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xc]
push 0x10092b8
mov dword [0x10092c4], eax
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x10011dc
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jne 0x1004733
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x10092b4
push 0x100119c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jne 0x1004733
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x10092b0
push 0x10011ac
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jne 0x1004733
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x10092bc
push 0x10011ec
push eax
call dword [ecx]
mov esi, eax
test esi, esi
je 0x10046b3
cmp esi, 0x80004002
je 0x10046b3
cmp esi, 0x80010110
jne 0x1004733
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push section..data
push eax
call dword [ecx + 0x80]
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x1008004
push eax
call dword [ecx + 0x88]
mov eax, dword [0x10092c0]
mov ecx, dword [eax]
push 0x1008010
push eax
call dword [ecx + 0xb8]
cmp dword [0x10093b0], 0
jne 0x1004728
mov esi, dword [sym.imp.msvcrt.dll_getenv]
push edi
push 0x1001618
call esi
xor edi, edi
test eax, eax
pop ecx
je 0x100470d
inc edi
jmp 0x1004715
push 0x1001600
call esi
pop ecx
test eax, eax
je 0x1004727
mov ecx, dword [0x10092b8]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x20]
pop edi
call fcn.01004566
pop esi
add ebp, 0x78
leave
ret
push 0
push esi
call fcn.01006cbb
push eax
push esi
call fcn.01006c58
push eax
push 0x10015d0
call fcn.01003f80
int3

Function at 0x1004a10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov eax, esi
or eax, edi
test eax, 0xbfffffff
je 0x1004a3b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1004ae6
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x1004a48
mov ebx, 0x1000
mov eax, dword [0x10092cc]
inc dword [0x10092cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push 0x10017b8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push dword [ebp + 0x10]
or esi, 1
push 0x1d4c0
push ebx
push ebx
push 1
xor ebx, ebx
push ebx
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004a9b
xor eax, eax
jmp 0x1004ae5
push ebx
or edi, 0x80
push edi
push 3
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1004ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1004a97
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 0x18
Function at 0x10068ed
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 0x1003850
call fcn.01006dcc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.01005eb8
push dword [0x100808c]
call fcn.01004409
xor esi, esi
cmp dword [0x10093a4], esi
jne 0x1006933
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [0x10093b4]
mov dword [0x1009384], eax
sub eax, esi
je 0x1006973
dec eax
jne 0x1006978
mov eax, dword [0x10092bc]
cmp eax, esi
je 0x1006962
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
test eax, eax
je 0x1006962
call fcn.0100587d
push esi
jmp 0x10069c9
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x1006978
call fcn.010039be
cmp dword [0x10092c4], 2
jne 0x10069bc
cmp dword [0x1009384], 2
je 0x1006997
cmp dword [0x1009390], esi
je 0x1006997
call fcn.01004253
cmp dword [0x10093b0], esi
jne 0x10069ce
mov eax, dword [0x1009390]
cmp eax, esi
je 0x10069b5
push eax
push 0x1003834
call fcn.01003aec
pop ecx
pop ecx
call fcn.010047f7
jmp 0x10069f6
cmp dword [0x1009390], esi
je 0x1006997
push 0x1003804
call fcn.01003f80
push dword [0x1009390]
push 0x10037e4
call fcn.01003aec
mov edx, dword [0x1008084]
mov eax, dword [0x10092c0]
imul edx, edx, 0x2d
pop ecx
pop ecx
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x54]
call fcn.010050e2
test eax, eax
je 0x1006a05
mov esi, dword [0x10092a8]
push esi
call fcn.01003b35
int3
Function at 0x1006a0c
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1003860
call fcn.01006b8c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006a47
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006a47
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006a5f
cmp eax, 0x20b
je 0x1006a4c
mov dword [ebp - 0x1c], edi
jmp 0x1006a73
cmp dword [ecx + 0x84], 0xe
jbe 0x1006a47
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006a6d
cmp dword [ecx + 0x74], 0xe
jbe 0x1006a47
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100988c], 0xffffffff
or dword [0x1009890], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10093cc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10093c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009894], eax
call fcn.01006c3c
cmp dword [0x1008120], edi
jne 0x1006ace
push fcn.01006c3c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006c2a
push 0x1001174
push 0x1001170
call sub.msvcrt.dll__initterm
mov eax, dword [0x10093c4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10093c0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100116c
push 0x1001168
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010068ed
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006b45
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006b7a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006bc5
ret

Function at 0x1006f34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10038f0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006f8c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x100392c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006f7f
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1006f8e
xor eax, eax
pop esi
leave
ret 4
Function at 0x403cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x570374]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00403e50
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x403d1a
xor eax, eax
jmp 0x403dbd
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004a8eb0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.004a8eb0
add esp, 0xc
mov dword [ebp - 0x214], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.00404020
mov dword [ebp - 0x21c], eax
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004b47e0
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c5a8
mov esp, ebp
pop ebp
ret

Function at 0x403e50
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x570374]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax], 0
je 0x403e79
jmp 0x403f40
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004a8eb0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403eaa
jmp 0x403f40
push 0x104
push 0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call fcn.004a8eb0
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
push 0
push 0x52d9a8
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x52d9ac
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov edx, dword [ebp - 0x10c]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c5a8
mov esp, ebp
pop ebp
ret