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

Disassembly:
push 0xffffffffffffffff
push 0x4a9e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a2f89
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00455da0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a2eb7
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049f7ac
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049f7ac
push 1
push 0
push 0
mov ecx, esi
call fcn.0049f754
push 1
push 0
push 1
mov ecx, esi
call fcn.0049f754
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a2ffb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4565e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a2f89
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00455da0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a2eb7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4566a4
cmp dword [esp + 0x40], 1
jne 0x4566a2
cmp ecx, eax
jge 0x4566a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4566b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00456460
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a2ffb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x456ea0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9f23
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.0049dbe4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004a3231
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a474d
test eax, eax
je 0x456fbc
mov ecx, dword [esp + 0x3c]
call fcn.004a325e
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 0x456f80
push edi
mov ecx, esi
call fcn.004a08c6
mov ecx, esi
call fcn.00457160
cmp dword [esp + 0x38], 1
jne 0x456fb5
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.004a0a01
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 0x4591b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4591e3
push esi
call fcn.00467590
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4591dc
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 0x459269
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x459252
mov eax, dword [esi + 8]
test eax, eax
je 0x459207
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 0x45924e
cmp eax, 2
je 0x459252
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4591fa
cmp eax, 3
je 0x45922d
cmp eax, 1
jne 0x4591fa
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 0x4591fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4591fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00459290
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x459278
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00459290
add esp, 4
pop esi
ret

Function at 0x459b10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x459b31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x459b31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x459b31
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x476e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x53bed8]
xor edx, edx
cmp eax, edx
jne 0x476e36
xor eax, eax
mov byte [eax + 0x53bdd8], al
inc eax
cmp eax, 0x100
jl 0x476e1e
mov dword [0x53bed8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x53bdd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x476ec7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x476e9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x476e68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x476f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x476f93
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x476f7a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47d910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aa40e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047e230
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x50baac
call fcn.0049c376
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47d9a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049c376
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47d99c
push 0
mov ecx, eax
call fcn.00474a40
mov dword [esi + 0xc], eax
jmp 0x47d9a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47d9a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49e9bf
Capabilities:
Get graphical window text

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

Function at 0x4a00b4
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 0x4a00f6
call fcn.004a5a37
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a00f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a00ed
xor eax, eax
jmp 0x4a00fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a0104
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a5f67
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 0x4a5f95
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a5fb3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a5ecd
jmp 0x4a5fb3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a5fb3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a5ecd
test edi, edi
mov eax, edi
jne 0x4a5f9d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409c1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409c1c
lcall 0x5de5, 0x8b10c483
jmp loc.009b286c
Function at 0x407890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x407610
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00414013
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x755c1d54
jmp 0x407910
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0x467c3f41
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
cmp eax, 0xc8eb8779
jg 0x407930
cmp eax, 0xaea97634
jne 0x407910
jmp 0x4078e4
cmp eax, 0x2d658766
jg 0x407960
cmp eax, 0xc8eb877a
jne 0x407910
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0x5deb9aab
jmp 0x407910
cmp eax, 0x467c3f40
jg 0x407977
cmp eax, 0x2d658767
jne 0x407910
mov dword [ebp - 0x10], 0x467c3f41
jmp 0x407910
cmp eax, 0x467c3f41
je 0x4079a4
cmp eax, 0x5deb9aab
je 0x4079bc
cmp eax, 0x755c1d54
jne 0x407910
mov eax, 0x2d658767
cmp dword [ebp - 4], 0
je 0x40799c
mov eax, 0xaea97634
mov dword [ebp - 0x10], eax
jmp 0x407910
mov eax, 0xc8eb877a
cmp dword [ebp - 0xc], 0
jne 0x4079b4
mov eax, 0x5deb9aab
mov dword [ebp - 0x10], eax
jmp 0x407910
add esp, 0x28
pop ebp
ret
Function at 0x40b980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x20], 0x67b30405
jmp 0x40b9a0
mov dword [ebp - 0x20], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x20]
cmp eax, 0xd25c22df
jg 0x40ba40
cmp eax, 0xa6d7f40a
jne 0x40b9a0
sub esp, 4
mov dword [esp], 0
call fcn.0040bc10
add esp, 4
mov esi, eax
call fcn.00402580
imul eax, esi
sub esp, 4
mov dword [esp], eax
call fcn.00413aa2
add esp, 4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
movzx esi, word [eax]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.00403a10
add esp, 4
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
movzx edi, word [ecx + eax*2 - 2]
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add eax, edi
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, 0x225d8101
cmp ecx, dword [edx]
je 0x40b991
mov eax, 0xfae5f425
jmp 0x40b991
cmp eax, 0xf608bc4e
jg 0x40ba60
cmp eax, 0xd25c22e0
jne 0x40b9a0
jmp 0x40ba9a
cmp eax, 0x67b30404
jg 0x40baaf
cmp eax, 0x4f2a3616
jg 0x40bac6
cmp eax, 0x4a3a6908
jg 0x40bb42
cmp eax, 0x3b51553a
jg 0x40bb66
cmp eax, 0xf608bc4f
je 0x40bb76
cmp eax, 0xfae5f425
jne 0x40bbca
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov dword [ebp - 0x20], 0x3b51553b
jmp 0x40b9a0
cmp eax, 0x67b30405
jne 0x40b9a0
mov dword [ebp - 0x20], 0x4f2a3617
jmp 0x40b9a0
cmp eax, 0x4f2a3617
jne 0x40b9a0
mov eax, 4
call fcn.00413130
mov dword [ebp - 0x1c], esp
mov eax, 4
call fcn.00413130
mov dword [ebp - 0x18], esp
mov eax, 4
call fcn.00413130
mov dword [ebp - 0x14], esp
mov eax, 4
call fcn.00413130
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, dword [0x40c6d8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
sete byte [ebp - 9]
mov dword [ebp - 0x20], 0x4a3a6909
jmp 0x40b9a0
cmp eax, 0x4a3a6909
jne 0x40b9a0
mov al, byte [ebp - 9]
test al, al
mov eax, 0xd25c22e0
jne 0x40bb5e
mov eax, 0xa6d7f40a
mov dword [ebp - 0x20], eax
jmp 0x40b9a0
cmp eax, 0x3b51553b
jne 0x40b9a0
jmp 0x40bbf6
mov eax, 4
call fcn.00413130
mov eax, 4
call fcn.00413130
mov esi, esp
mov eax, 4
call fcn.00413130
mov ecx, esp
mov eax, 4
call fcn.00413130
mov dword [esi], 0
mov dword [ecx], 0
mov eax, dword [0x40c6d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esi], eax
mov dword [ebp - 0x20], 0x4f2a3617
jmp 0x40b9a0
cmp eax, 0x225d8101
jne 0x40b9a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41e11c], eax
call fcn.00413a7f
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x3b51553b
jmp 0x40b9a0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x41baca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418923
mov dword [ebp - 0x14], eax
cmp dword [0x46b644], edi
jne 0x41bbbb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41bb48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41bc9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41bc9b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41bc9b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46b644], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46b648], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46b64c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46b654], eax
test eax, eax
je 0x41bbb8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46b650], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41bbe0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bbd3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41bbf5
push 4
pop eax
jmp 0x41bc9d
cmp dword [ebp - 0x14], edi
je 0x41bbf5
push dword [0x46b644]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41bbda
mov eax, dword [0x46b650]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41bc53
cmp dword [0x46b654], esi
je 0x41bc53
push eax
call ebx
push dword [0x46b654]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41bc53
test eax, eax
je 0x41bc53
call ecx
test eax, eax
je 0x41bc48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41bc48
test byte [ebp - 8], 1
jne 0x41bc53
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41bc83
mov eax, dword [0x46b648]
cmp eax, esi
je 0x41bc80
push eax
call ebx
test eax, eax
je 0x41bc80
call eax
mov edi, eax
test edi, edi
je 0x41bc80
mov eax, dword [0x46b64c]
cmp eax, esi
je 0x41bc80
push eax
call ebx
test eax, eax
je 0x41bc80
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46b644]
call ebx
test eax, eax
je 0x41bc9b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41bc9d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415a29
leave
ret
Function at 0x40380c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x485700]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403875
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402655
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00406309
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40388d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004053a0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40383d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409f50
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004053a0
jmp 0x403877

Function at 0x4067de
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x487048], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x27
push 0x485020
push 0x547
mov esi, 0x485048
push esi
call fcn.004038ab
push 1
push 0x427554
call fcn.00406896
add esp, 0x18
mov ecx, 0x487350
push 0
call fcn.004031a4
push eax
call fcn.00402227
push 0x8aafdc01
push dword [0x487048]
call fcn.0040380c
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x406892
lea eax, [ebp - 0xc]
push 0x40663b
push eax
call fcn.004020fb
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040671a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406892
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406892
call fcn.0040407b
xor eax, eax
leave
ret