joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd26250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd3a808
push 0xd2a288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd26329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd26329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d291d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd26329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd26329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd2632c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d26351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd26d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd26d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd26d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd26d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd26d94
push eax
push esi
call fcn.00d2920b
add esp, 8
pop esi
ret 0x10

Function at 0xd26da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd26e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd26e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd3f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d28dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd26dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd26e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd26ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd26eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd3f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d28dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd26eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd26e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd27000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd27131
push esi
call fcn.00d2a145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d19080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd27131
push 0
push ebp
call fcn.00d193a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d19260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd2708b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d192f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd27121
push 0xd3f918
push edi
call fcn.00d283f0
push eax
push ebx
push esi
call fcn.00d26f60
push 0xd3f8f8
push edi
call fcn.00d283f0
push eax
push ebx
push esi
call fcn.00d26f60
push 0xd3f8d8
push edi
call fcn.00d283f0
push eax
push ebx
push esi
call fcn.00d26f60
push 0xd3f8c0
push edi
call fcn.00d283f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d26f60
push 0xd3f8a0
push edi
call fcn.00d283f0
push eax
push ebx
push esi
call fcn.00d26f60
push 0xd3f888
push edi
call fcn.00d283f0
push eax
push ebx
push esi
call fcn.00d26f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd281b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d28140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d28140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d28140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d28140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd28230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd282d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0xd282ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00d28230
mov esi, eax
add esp, 8
test esi, esi
jne 0xd282ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0xd2827e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0xd282ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0xd28bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd28c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd3a87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd28c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd28c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402846
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402893
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x422370
push 0x42cff0
mov byte [edi + esi], al
call fcn.0040115a
push eax
call fcn.004017de
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402854
pop edi
pop esi
ret

Function at 0x402d1c
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422398
lea ecx, [ebp - 0x1c]
call fcn.004018d8
push 0xc
call fcn.00404f9f
xor esi, esi
pop ecx
test eax, eax
je 0x402d55
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401931
jmp 0x402d57
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x462040
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push esi
push esi
push 0x402834
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.0040281a
mov edx, 0x462040
add edx, 0x188
mov esi, 0x42e040
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.004026e0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00404fdd
leave
ret

Function at 0x405797
Capabilities:
Parse pe header

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

Function at 0x412277
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425ed0
push 0x425ec8
push 0x423c84
push 0x1e
call fcn.004120e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4122ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x42213c]
call esi
jmp 0x4122b1
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414922
Capabilities:
Read file on windows

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

Function at 0x41492d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414753
Function at 0x4017c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x98]
test ebx, ebx
push esi
je 0x4018bb
mov esi, dword [esp + 0x98]
test esi, esi
je 0x4018bb
mov eax, dword [esi]
push ebp
push edi
push esi
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x401807
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0xb0]
test ebx, ebx
jne 0x40182c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xb4]
test ebp, ebp
jne 0x40183b
mov ebp, dword [esp + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 0x6c
mov dword [esp + 0x3c], 6
call dword [edx + 0x58]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push esi
call dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4018a5
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x38]
push 0xcc0020
push ebp
push ebx
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x68]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x8c
ret
Function at 0x4018d0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
sub esp, 0x43c
push ebx
push esi
push edi
xor esi, esi
lea edi, [esp + 0x49]
mov eax, esi
add edi, 4
sar eax, 5
and eax, 7
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
sar eax, 2
and eax, 7
mov byte [edi - 5], dl
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov eax, esi
sar edx, 2
mov ecx, edx
and eax, 3
shr ecx, 0x1f
add edx, ecx
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x55555556
mov byte [edi - 4], dl
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
inc esi
mov byte [edi - 3], dl
mov byte [edi - 2], 0
cmp esi, 0x100
jl 0x4018df
mov esi, dword [esp + 0x450]
test esi, esi
je 0x401a92
push 2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401a12
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401999
push str.lock_resource_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
test esi, esi
lea edx, [eax + esi]
je 0x4019c5
cmp eax, 0x28
jb 0x4019c5
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x4019c5
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4019c1
mov ebx, 1
shl ebx, cl
jmp 0x4019c7
mov ebx, esi
jmp 0x4019c7
xor ebx, ebx
test ebx, ebx
jle 0x401a92
push ebp
lea esi, [esp + 0x4c]
lea edi, [esp + 0x4d]
lea ebp, [esp + 0x4e]
sub esi, edx
sub edi, edx
lea eax, [edx + 1]
sub ebp, edx
lea ecx, [esp + 0x4c]
mov edx, ebx
mov bl, byte [eax + 1]
add eax, 4
mov byte [ecx], bl
mov bl, byte [eax - 4]
mov byte [esi + eax - 4], bl
mov bl, byte [eax - 5]
mov byte [edi + eax - 4], bl
mov byte [eax + ebp - 4], 0
add ecx, 4
dec edx
jne 0x4019eb
pop ebp
jmp 0x401a92
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a92
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x38]
push 0xe
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 0x28
push edx
push esi
call edi
lea eax, [esp + 0x48]
push 0x400
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [esp + 0x10], 0x28
je 0x401a5b
xor edx, edx
jmp 0x401a78
mov ecx, dword [esp + 0x1e]
cmp cx, 8
jbe 0x401a69
xor edx, edx
jmp 0x401a78
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x401a7a
mov edx, 1
shl edx, cl
test edx, edx
jle 0x401a92
lea eax, [esp + 0x4a]
mov esi, edx
mov dl, byte [eax]
mov cl, byte [eax - 2]
mov byte [eax - 2], dl
mov byte [eax], cl
add eax, 4
dec esi
jne 0x401a82
mov eax, dword [esp + 0x44c]
lea edx, [esp + 0xc]
push 0
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 4
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x43c
ret
Function at 0x403453
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x40cc40], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x4034ab
cmp dword [0x40cc44], esi
jne 0x4034ab
cmp ebx, 0x10
je 0x4035bc
cmp ebx, 0x8000
je 0x403599
cmp dword [0x40cc48], esi
jne 0x4034ab
cmp ebx, 0x1c
ja 0x4034e9
je 0x4034e4
cmp ebx, 0x18
jne 0x4034ab
cmp dword [ebp + 0x10], esi
je 0x4034ab
push esi
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, dword [0x40cc58]
jne 0x4034cd
cmp ebx, esi
je 0x4034cd
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x40cc50], esi
setne al
jmp 0x4034dd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], esi
jmp 0x40352c
cmp ebx, 0x48
ja 0x403507
je 0x403501
cmp ebx, 0x20
jne 0x4034ab
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x4034dd
cmp dword [ebp + 0x10], 3
jmp 0x40352c
mov eax, ebx
sub eax, 0x100
je 0x40358b
sub eax, 4
je 0x40358b
sub eax, 0xfc
je 0x403533
dec eax
je 0x40358b
sub eax, 3
je 0x40358b
sub eax, 3
je 0x40358b
sub eax, 0x11
je 0x40358b
jmp 0x4034ab
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x40ce90]
je 0x40354e
cmp ecx, esi
jge 0x40354e
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x40ce94]
je 0x40355f
cmp eax, esi
jge 0x40355f
neg eax
add ecx, eax
cmp ecx, dword [0x40c35c]
jbe 0x4034ab
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x40ce90], eax
mov eax, dword [ebp - 4]
mov dword [0x40ce94], eax
jmp 0x4034ab
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x4034ab
cmp dword [0x40cc68], esi
je 0x4034ab
mov eax, dword [0x40cc50]
cmp eax, esi
je 0x4034fc
push dword [ebp + 8]
call eax
jmp 0x4034dd
cmp dword [0x40cc68], esi
je 0x4034ab
push dword [ebp + 8]
call fcn.00403a38
test eax, eax
jne 0x4034ab
push 0x40ce90
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x4034dd
Function at 0x403a38
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [0x40cc48], ebp
push edi
jne 0x403b14
cmp dword [0x40cc44], ebp
jne 0x403b14
cmp dword [0x40cc50], ebp
je 0x403b03
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x40cc6c], ebp
mov esi, eax
je 0x403a89
push esi
push dword [0x40cc70]
call fcn.00403b20
cmp eax, dword [0x40cc6c]
jb 0x403b03
mov eax, dword [0x40c360]
cmp eax, 0xffffffff
je 0x403aa1
push esi
push eax
call fcn.00403b20
cmp eax, 0xc8
jb 0x403b0d
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [0x40cc48], 1
call edi
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x40cc44], eax
mov dword [0x40cc48], ebp
jne 0x403af6
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x40c360], eax
jmp 0x403b0d
mov dword [0x40cc44], 1
mov eax, dword [0x40cc44]
jmp 0x403b16
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x403b2b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403b5e
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x403b56
cmp al, 0x22
jne 0x403b47
cmp byte [esi], 0x22
jne 0x403b6c
inc esi
jmp 0x403b6c
cmp al, 0x20
jbe 0x403b6c
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
ja 0x403b62
mov al, byte [esi]
test al, al
je 0x403b7d
cmp al, 0x20
ja 0x403b7d
push esi
call edi
mov esi, eax
jmp 0x403b6c
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x403b97
movzx eax, word [ebp - 0x14]
jmp 0x403b9a
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00403266
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405e1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c458
cmp edx, dword [eax]
je 0x405e3d
add eax, 8
inc ecx
cmp eax, 0x40c4e8
jl 0x405e2e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c458]
jne 0x405f6b
mov eax, dword [0x40cc84]
cmp eax, 1
je 0x405f45
test eax, eax
jne 0x405e6e
cmp dword [0x40c394], 1
je 0x405f45
cmp edx, 0xfc
je 0x405f6b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405ea5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405ee8
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a64c
push edi
call fcn.00408150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407940
lea eax, [ebp - 0xa0]
push 0x40a62c
push eax
call fcn.00407940
push dword [esi + 0x40c45c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004080c6
add esp, 0x2c
pop edi
jmp 0x405f6b
lea eax, [ebp + 8]
lea esi, [esi + 0x40c45c]
push 0
push eax
push dword [esi]
call fcn.00407c20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x70d039ac
Capabilities:
Create thread

Disassembly:
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
cmp edi, ebx
je 0x70d6d994
push esi
mov esi, 0x70e6dc8c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x70e6c01c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x70e6c018
push ebx
push ebx
push 0x70d31c22
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x70e6dd38], eax
pop esi
je 0x70d6d994
xor eax, eax
mov dword [0x70e6cbec], 1
inc eax
pop edi
pop ebx
ret
call fcn.70d31cae
xor eax, eax
jmp 0x70d03a0e

Function at 0x70d1db39
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.70d1d7bb
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x70d7ed48
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 8]
call fcn.70d1d6a6
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x70d7ed52
call fcn.70d1db1a
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8007000e
jmp 0x70d1db7f
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x70d1db7a
cmp dword [ebp - 4], ebx
jne 0x70d1db7a
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x70d1db7a
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x70d1db7a
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 4
xor eax, eax
jmp 0x70d1db7f