joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d140
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d173
push esi
call fcn.0045b500
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d16c
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 0x44d1f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d1e2
mov eax, dword [esi + 8]
test eax, eax
je 0x44d197
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 0x44d1de
cmp eax, 2
je 0x44d1e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d18a
cmp eax, 3
je 0x44d1bd
cmp eax, 1
jne 0x44d18a
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 0x44d18a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d18a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d220
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d208
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d220
add esp, 4
pop esi
ret

Function at 0x44daa0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44dac1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44dac1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44dac1
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 0x468800
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4688a3
test eax, eax
jbe 0x4688a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4688a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46884e
xor esi, esi
jmp 0x468854
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46887f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040c3e0
add esi, eax
push esi
mov ebx, esi
call fcn.0040c3e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x468860
pop ebp
test edi, edi
pop edi
jne 0x4688a3
test ebx, ebx
je 0x4688a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00479420
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4689c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x468add
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468add
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048ae5b
mov esi, eax
test esi, esi
je 0x468add
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x468add
mov ecx, esi
call fcn.00468950
cmp edi, eax
jge 0x468add
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x468a63
mov dword [esp + 0x34], 1
jmp 0x468abe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x468add
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00467f40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x474ff0
Capabilities:
Suspend thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.004751e0
mov eax, dword [edi]
add esp, 4
cmp eax, ebx
je 0x475059
cmp dword [edi + 8], ebx
jbe 0x475059
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.00474da0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47504f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x18]
push ebp
push edx
push esi
call fcn.00475060
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jb 0x47501a
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4751e0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
test esi, esi
push edi
je 0x4752dd
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x4752dd
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4752d6
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp dword [esp + 0xc], 0x10
jb 0x4752b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
jne 0x4752b2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x14], eax
je 0x4752b2
mov eax, dword [esi]
test eax, eax
jne 0x475274
mov dword [esi + 4], 0x80
mov ecx, dword [0x4df96c]
push 0x200
push eax
push ecx
call edi
test eax, eax
mov dword [esi], eax
je 0x4752d1
jmp 0x47529f
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp edx, ecx
jb 0x47529f
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x4df96c]
push 0
push eax
call ebx
test eax, eax
je 0x4752d1
mov ecx, dword [esi + 4]
mov dword [esi], eax
shl ecx, 1
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x475231
mov edi, dword [esp + 0x2c]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4752f0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x47534a
mov eax, dword [ebx + 8]
push edi
xor edi, edi
test eax, eax
jbe 0x475338
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.00474da0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47532e
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jb 0x47530c
pop esi
pop ebp
mov edx, dword [ebx]
mov eax, dword [0x4df96c]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
ret
Function at 0x475350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
lea ecx, [eax + eax*4]
mov ebp, 5
lea edx, [eax + ecx*2]
mov eax, dword [0x4e1d90]
mov edi, dword [eax + edx*4]
lea esi, [eax + edx*4]
mov al, byte [eax + edx*4 + 0x14]
test al, 1
je 0x47537c
sub edi, ebp
mov ebp, 7
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x475398
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4753c1
mov byte [edi], 0xe9
mov edx, dword [esi + 4]
sub edx, edi
sub edx, 5
mov dword [edi + 1], edx
mov al, byte [esi + 0x14]
test al, 1
je 0x4753ef
mov eax, dword [esi]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
jmp 0x4753ef
test byte [esi + 0x14], 1
je 0x4753e0
lea eax, [esi + 0xc]
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x4753ef
lea ecx, [esi + 0xc]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, bl
mov dl, byte [esi + 0x14]
and al, 1
and dl, 0xf9
mov cl, al
pop ebx
and cl, 0xfd
pop edi
shl al, 1
or cl, al
xor eax, eax
shl cl, 1
or cl, dl
mov byte [esi + 0x14], cl
pop esi
pop ebp
ret
Function at 0x4758d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax + 0x7c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x475985
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
test ebp, ebp
je 0x47595c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x47591c
mov ecx, 2
test bh, 0x80
je 0x475924
or ecx, 1
test ah, 0x80
je 0x47592c
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
shr ecx, 0x10
movsx edx, cx
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x24]
movsx ecx, si
push ecx
mov ecx, dword [edx + 4]
push ecx
push eax
call ebp
test eax, eax
jne 0x475962
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
jmp 0x475966
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x4759aa
mov ecx, 2
test bh, 0x80
je 0x4759b2
or ecx, 1
test ah, 0x80
je 0x4759ba
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov edi, dword [esp + 0x1c]
shr ecx, 0x10
movsx edx, cx
movsx eax, si
push edx
push eax
push 3
push ebp
push edi
call fcn.004757f0
add esp, 0x18
test eax, eax
je 0x475954
cmp ebp, 0x18
je 0x4759ed
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x476200
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4e1d8c]
test eax, eax
je 0x476216
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x476263
mov eax, dword [eax]
test eax, eax
jne 0x476209
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x476263
lea ecx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov dword [eax + 4], ecx
add ecx, 0x20
mov edx, ecx
sub edx, eax
cmp edx, 0xfe0
jbe 0x47623f
mov ecx, dword [0x4e1d8c]
mov dword [eax], ecx
mov dword [0x4e1d8c], eax
ret

Function at 0x4766a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x4766b9
cmp cl, 0x90
je 0x4766b9
cmp cl, 0xcc
je 0x4766b9
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x4766d0
cmp byte [eax + esi], cl
jne 0x4766b5
inc eax
cmp eax, edx
jb 0x4766c6
pop esi
mov eax, 1
ret
Function at 0x48b7ff
Capabilities:
Get graphical window text

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

Function at 0x48ceed
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 0x48cf2f
call fcn.004929a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cf2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cf26
xor eax, eax
jmp 0x48cf37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cf3d
pop edi
pop esi
pop ebx
ret 4

Function at 0x492ed4
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 0x492f02
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492f20
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492e3a
jmp 0x492f20
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492f20
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492e3a
test edi, edi
mov eax, edi
jne 0x492f0a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [0xc4f1a4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
cmp ecx, 0x44a
jne 0x401216
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [0xc4f1a4]
mov dword [ebp - 0xc], 0xc6ef3720
cmp ecx, 0x114e
jne 0x401235
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov ecx, dword [0xc4f1a4]
mov edx, dword [0x4253f0]
mov eax, dword [0x4253f4]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x4253f8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4253fc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x20
mov edi, edi
mov ebx, edi
shl ebx, 4
cmp ecx, 0x4c3
jne 0x40127b
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0xc4f1a4]
add ebx, dword [ebp - 0x14]
cmp ecx, 0xfa9
jne 0x401290
mov dword [0xc4f1a0], 0xedeb2e40
mov esi, edi
shr esi, 5
add esi, dword [ebp - 0x18]
mov dword [0xc4f19c], 0x9150ce2e
cmp ecx, 0x912
jne 0x4012cc
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ecx, dword [0xc4f1a4]
mov dword [0xc4e2e8], 0
mov edx, dword [ebp - 0xc]
lea eax, [edx + edi]
xor esi, eax
xor esi, ebx
sub dword [ebp - 4], esi
cmp ecx, 0x5b6
jne 0x4012e9
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
mov dword [ebp - 8], ecx
and eax, 0x4dd0071b
sub dword [ebp - 8], 0x2273eb88
mov ebx, 0x3a7cd587
add dword [ebp - 8], 0x2273eb8c
mov eax, dword [ebp - 4]
mov dword [0x4386a0], ecx
mov ecx, dword [ebp - 8]
mov edx, eax
shl edx, cl
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp - 0x20]
add edx, dword [ebp - 0x1c]
xor edx, ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
xor edx, ecx
mov ecx, dword [0xc4f1a4]
sub edi, edx
cmp ecx, 0x1d5
jne 0x401346
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov ecx, dword [0xc4f1a4]
lea eax, [ebp - 0xc]
call fcn.004011d0
sub dword [ebp - 0x10], 1
jne 0x401260
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404afd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424450]
jne 0x404b07
repz ret
jmp fcn.00409dec

Function at 0x40d91d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040589c
and dword [ebp - 4], 0
cmp dword [0x429b20], 0
mov ebx, eax
jne 0x40d9ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40da7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40da7f
push eax
call fcn.0040582a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429b20], eax
call esi
push eax
call fcn.0040582a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429b24], eax
call esi
push eax
call fcn.0040582a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429b28], eax
call esi
push eax
call fcn.0040582a
pop ecx
mov dword [0x429b30], eax
test eax, eax
je 0x40d9ce
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040582a
pop ecx
mov dword [0x429b2c], eax
mov eax, dword [0x429b2c]
cmp eax, ebx
je 0x40da26
cmp dword [0x429b30], ebx
je 0x40da26
push eax
call fcn.004058a5
push dword [0x429b30]
mov esi, eax
call fcn.004058a5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40da26
test edi, edi
je 0x40da26
call esi
test eax, eax
je 0x40da1d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40da1d
test byte [ebp - 0xc], 1
jne 0x40da26
or dword [ebp + 0x10], 0x200000
jmp 0x40da5f
mov eax, dword [0x429b24]
cmp eax, ebx
je 0x40da5f
push eax
call fcn.004058a5
pop ecx
test eax, eax
je 0x40da5f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40da5f
mov eax, dword [0x429b28]
cmp eax, ebx
je 0x40da5f
push eax
call fcn.004058a5
pop ecx
test eax, eax
je 0x40da5f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429b20]
call fcn.004058a5
pop ecx
test eax, eax
je 0x40da7f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40da81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ee8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404734
test esi, esi
jne 0x402f1f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404824
jmp 0x402f40
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d84
mov dword [esp], eax
test esi, esi
je 0x402f40
cmp dword [ebx], 0
je 0x402f40
dec esi
jmp 0x402f27
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40368c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x51e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403724
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403704
xor eax, eax
push ebp
push 0x4036fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403740
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403704
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x51e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x51e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40452c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52504c], 0
je 0x40458d
cmp word [0x525220], 0xd7b2
jne 0x404555
cmp dword [0x525228], 0
jbe 0x404555
mov eax, 0x52521c
call dword [0x525238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x51e06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51e030], 0
jne 0x4045a9
push 0
push 0x51e064
push 0x51e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b24
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406a70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406ad6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004049a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403244
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ac0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406add
lea eax, [ebp - 0x10]
call fcn.00404734
ret

Function at 0x40cbf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cc29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404824
jmp 0x40cc32
mov eax, ebx
mov edx, esi
call fcn.00404788
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cc3c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cc5d
mov al, byte [esp]
jmp 0x40cc5f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d2f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d15c
mov eax, dword [0x5248f8]
cmp byte [eax], 0
je 0x40d370
mov eax, dword [0x5243dc]
call fcn.00403008
call fcn.00402cb0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409c74
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d3b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x524330]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x525668]
call fcn.00405ec0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret