joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7205
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 0x4b731d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b731d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005010d2
mov esi, eax
test esi, esi
je 0x4b731d
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 0x4b731d
mov ecx, esi
call fcn.004b7190
cmp edi, eax
jge 0x4b731d
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 0x4b72a3
mov dword [esp + 0x34], 1
jmp 0x4b72fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b731d
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.004b6750
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 0x4c8460
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c84a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4c8920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c84d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c8550
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c8550
lea ecx, [esi + 0xc]
call fcn.004ff630
lea ecx, [esi + 0x10]
call fcn.004ff630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c9ae0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c9ae0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c9ae0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ff6a5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ff6a5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4c9cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c9d36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c9d36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c9d17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ce7e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa34494]
xor edx, edx
cmp eax, edx
jne 0x4ce806
xor eax, eax
mov byte [eax + 0xa34394], al
inc eax
cmp eax, 0x100
jl 0x4ce7ee
mov dword [0xa34494], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa34394
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ce897
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 0x4ce86a
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 0x4ce838
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ce8a0
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 0x4ce8f3
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 0x4ce8da
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 0x4d5270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50fbce
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.004d5b90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8ffb64
call fcn.004ff3e6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d5303
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ff3e6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d52fc
push 0
mov ecx, eax
call fcn.004cc410
mov dword [esi + 0xc], eax
jmp 0x4d5305
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d5305
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 0x501a76
Capabilities:
Get graphical window text

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

Function at 0x503164
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 0x5031a6
call fcn.00508cdd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5031a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50319d
xor eax, eax
jmp 0x5031ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005031b4
pop edi
pop esi
pop ebx
ret 4

Function at 0x50920d
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 0x50923b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x509259
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00509173
jmp 0x509259
mov eax, dword [esi + 0x14]
test eax, eax
je 0x509259
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00509173
test edi, edi
mov eax, edi
jne 0x509243
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x402230
push 0x402234
push 0x403018
push 2
push 0x403004
push 5
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x45
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xea
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x98
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x15
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe1
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x13
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x10
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x66
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x61
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x7b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x15
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401440
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x130
mov edi, dword [ebp + 0xc]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp eax, 0xffffffff
je 0x4014bd
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4014b7
cmp dword [ebp - 0x124], edi
jne 0x4014a8
push dword [ebp - 0x134]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov ebx, eax
test eax, eax
je 0x4014a8
push 0xffffffffffffffff
push eax
call sub.KERNEL32.dll_TerminateProcess
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x401476
push esi
call sub.KERNEL32.dll_CloseHandle
push 0xffffffffffffffff
push dword [ebp + 8]
call sub.KERNEL32.dll_TerminateProcess
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401592
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x78
lea eax, [ebp - 0x6c]
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
push 0
push ebx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
push eax
call sub.KERNEL32.dll_CreatePipe
xor edx, edx
test eax, eax
je 0x401700
lea eax, [ebp - 0x74]
push 0
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
call sub.KERNEL32.dll_CreatePipe
test eax, eax
jne 0x4015f0
push dword [ebp - 0x70]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x6c]
jmp 0x4016c5
lea eax, [ebp - 0x7c]
push 0
push ebx
push eax
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_CreatePipe
test eax, eax
jne 0x401624
push dword [ebp - 0x70]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x74]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x78]
jmp 0x4016c5
lea eax, [ebp - 0x68]
push 0x44
push section..data
push eax
call fcn.0048e820
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x100
mov word [ebp - 0x38], 0
mov dword [ebp - 0x28], eax
mov esi, 0x200
test byte [ebp + 0x18], 1
je 0x40166a
mov dword [ebp - 0x3c], 0x101
jmp 0x40166f
mov esi, 0x208
push 0x10
push 1
call sub.msvcrt.dll_calloc
mov ebx, eax
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push esi
push 0xffffffffffffffff
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
pop edx
test eax, eax
pop ecx
jne 0x4016ce
push dword [ebp - 0x70]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x74]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x80]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x78]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
jmp 0x401700
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x74]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x80]
mov dword [eax], edx
push dword [ebp - 0x78]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_CloseHandle
mov edx, ebx
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret

Function at 0x4055d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x10
call sub.USER32.dll_GetKeyState
xor ebx, ebx
test ax, ax
jns 0x4055e8
mov bl, 1
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x4055f7
or ebx, 2
push 0x12
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x405606
or ebx, 4
push 0x5b
call sub.USER32.dll_GetKeyState
test ax, ax
js 0x40561e
push 0x5c
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x405621
or ebx, 8
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4057c4
Capabilities:
Inspect load icon resource
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp dword [0x5882b0], 0
jne 0x4058b2
push 0x65
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.USER32.dll_LoadIconA
mov ebx, eax
test eax, eax
jne 0x4057f8
push 0x7f00
push 0
call sub.USER32.dll_LoadIconA
mov ebx, eax
cmp dword [0x5882c4], 0
jne 0x40586a
mov dword [0x5882c0], 0x23
mov dword [0x5882c4], 0x4059f2
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x5882d4], ebx
mov dword [0x5882d0], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [0x5882dc], 0x10
mov dword [0x5882d8], eax
mov eax, dword [str.BLITZMAX_WINDOW_CLASS]
mov dword [0x5882e0], 0
mov dword [0x5882e4], eax
mov dword [0x5882cc], 0x1e
push 0x5882c0
call sub.USER32.dll_RegisterClassA
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
push 0x40594a
push 3
call sub.USER32.dll_SetWindowsHookExA
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
push 0x405628
push 2
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x5882b0], 1
push 0x4057a8
call fcn.004012d0
mov eax, dword [str.BLITZMAX_WINDOW_CLASS]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40b064
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.print
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], 0
push eax
call sub.SHELL32.DLL_ShellExecuteExA
leave
ret

Function at 0x426916
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x4269c4
mov eax, dword [esi]
xor ecx, ecx
xor ebx, ebx
mov byte [eax + 0x16], 0
mov eax, dword [esi]
mov byte [eax + 0x17], 0
mov eax, dword [esi]
mov byte [eax + 0x18], 0
mov eax, dword [esi]
mov byte [eax + 0x19], 0
mov edi, dword [esi + 4]
cmp ecx, edi
jge 0x426975
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov edx, ecx
shl edx, 8
shr ecx, 0x18
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebx + edx]
xor eax, ecx
inc ebx
mov ecx, dword [ebp - 0x18]
xor ecx, dword [eax*4 + 0x56b380]
cmp ebx, edi
jl 0x426952
xor ebx, ebx
mov edi, dword [esi + 0xc]
cmp ebx, edi
jge 0x4269a7
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov edx, ecx
shl edx, 8
shr ecx, 0x18
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
movzx eax, byte [ebx + edx]
xor eax, ecx
inc ebx
mov ecx, dword [ebp - 0x18]
xor ecx, dword [eax*4 + 0x56b380]
cmp ebx, edi
jl 0x426984
mov eax, dword [esi]
mov byte [eax + 0x16], cl
shr ecx, 8
mov eax, dword [esi]
mov byte [eax + 0x17], cl
shr ecx, 8
mov eax, dword [esi]
mov byte [eax + 0x18], cl
shr ecx, 8
mov eax, dword [esi]
mov byte [eax + 0x19], cl
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4368be
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xca
jne 0x4368f3
push ebx
call fcn.0043a7bf
pop eax
cmp dword [ebx + 0x40], 0
je 0x4368ec
mov eax, 1
mov dword [ebx + 0x14], 0xcf
jmp 0x43698e
mov dword [ebx + 0x14], 0xcb
mov eax, dword [ebx + 0x14]
cmp eax, 0xcb
jne 0x436965
mov eax, dword [ebx + 0x1ec]
cmp dword [eax + 0x10], 0
je 0x436957
mov eax, dword [ebx + 8]
test eax, eax
je 0x436914
push ebx
call dword [eax]
pop ecx
mov eax, dword [ebx + 0x1ec]
push ebx
call dword [eax]
pop edx
test eax, eax
je 0x43698c
cmp eax, 2
je 0x436957
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x436909
cmp eax, 3
sete dl
dec eax
sete al
or eax, edx
test al, 1
je 0x436909
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc eax
mov dword [ecx + 4], eax
cmp eax, edx
jl 0x436909
add edx, dword [ebx + 0x178]
mov dword [ecx + 8], edx
jmp 0x436909
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
jmp 0x436981
cmp eax, 0xcc
je 0x436981
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebx]
push ebx
call dword [eax]
pop eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.004367f0
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x437f5b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push ecx
push ecx
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0
push esi
call fcn.0043ab78
push 0x54
push esi
mov dword [ebp - 0x10], eax
call fcn.0043ab20
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x437fa3
push esi
call fcn.0043ab7f
mov eax, dword [esi]
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x36
mov eax, dword [esi]
push esi
call dword [eax]
pop eax
pop edx
mov eax, dword [ebp - 0x10]
mov dword [ebx], fcn.00437546
mov dword [ebx + 4], fcn.00437662
mov dword [ebx + 8], fcn.004376fe
mov dword [ebx + 0xc], fcn.00437793
mov dword [ebx + 0x10], 0x437839
mov dword [ebx + 0x14], 0x4378a1
mov dword [ebx + 0x18], 0x437909
mov dword [ebx + 0x1c], 0x437bcf
mov dword [ebx + 0x20], 0x437cfe
mov dword [ebx + 0x24], fcn.00437e2b
mov dword [ebx + 0x28], 0x437f1f
mov dword [ebx + 0x30], 0x3b9aca00
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
push str.JPEGMEM
call sub.msvcrt.dll_getenv
pop ecx
mov edx, eax
test eax, eax
je 0x438086
lea eax, [ebp - 9]
mov byte [ebp - 9], 0x78
push eax
lea eax, [ebp - 0x10]
push eax
push str._ld_c
push edx
call sub.msvcrt.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x438086
mov al, byte [ebp - 9]
cmp al, 0x6d
sete dl
cmp al, 0x4d
sete al
or eax, edx
test al, 1
je 0x43807c
imul eax, dword [ebp - 0x10], 0x3e8
mov dword [ebp - 0x10], eax
imul eax, dword [ebp - 0x10], 0x3e8
mov dword [ebx + 0x2c], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret