joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465edb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x497e84]
mov eax, dword [0x4909d4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x4660c1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x497ea0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x4660c1
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x465f4c
xor eax, eax
jmp 0x4660d5
test al, 0x20
je 0x465f5f
push 2
push 0
push 0
push ecx
call fcn.00467aaf
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x46601f
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x46609b
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x465fce
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x465fbc
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x465f98
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46604d
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x466059
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x465f84
jmp 0x466059
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46604d
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x466059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x4660b9
cmp dword [ebp - 0x40c], eax
je 0x466095
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x466087
mov dword [0x4963d8], 9
mov dword [0x4963dc], eax
jmp 0x4660d2
push dword [ebp - 0x40c]
call fcn.004677c8
pop ecx
jmp 0x4660d2
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4660ad
cmp byte [edi], 0x1a
je 0x465f45
mov dword [0x4963d8], 0x1c
jmp 0x4660cb
sub eax, dword [ebp - 0x420]
jmp 0x4660d5
mov dword [0x4963d8], 9
and dword [0x4963dc], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0046817c
leave
ret
Function at 0x466b57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4968d4], ebx
push esi
push edi
jne 0x466bd9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x466c14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48bb24
push edi
call esi
test eax, eax
mov dword [0x4968d4], eax
je 0x466c14
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4968d8], eax
call esi
cmp dword [0x4963e4], 2
mov dword [0x4968dc], eax
jne 0x466bd9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4968e4], eax
je 0x466bd9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4968e0], eax
mov eax, dword [0x4968e0]
test eax, eax
je 0x466c1e
call eax
test eax, eax
je 0x466c05
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4968e4]
test eax, eax
je 0x466c05
test byte [ebp - 8], 1
jne 0x466c1e
cmp dword [0x4963f0], 4
jb 0x466c18
or byte [ebp + 0x12], 0x20
jmp 0x466c3d
xor eax, eax
jmp 0x466c4d
or byte [ebp + 0x12], 4
jmp 0x466c3d
mov eax, dword [0x4968d8]
test eax, eax
je 0x466c3d
call eax
mov ebx, eax
test ebx, ebx
je 0x466c3d
mov eax, dword [0x4968dc]
test eax, eax
je 0x466c3d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4968d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467417
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0045ef00
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x467513
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x4963e4], 2
jne 0x467498
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x467498
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x467498
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x467498
cmp dword [ebp - 4], esi
jbe 0x467498
mov esi, dword [ebp - 4]
mov edx, dword [0x4963e4]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x4674c1
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x4674cd
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x4674df
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x467513
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x467513
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x467513
xor eax, eax
inc eax
jmp 0x467515
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46817c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4909d4]
jne 0x46818d
test ecx, 0xffff0000
jne 0x46818d
ret
jmp fcn.00468192
Function at 0x402a8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404184
test esi, esi
jne 0x402ac2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404274
jmp 0x402ae0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a0
mov edi, eax
test esi, esi
je 0x402ae0
cmp dword [ebx], 0
je 0x402ae0
dec esi
jmp 0x402ac9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x48c008], 0x8088405
inc edx
mov dword [ebx + 0x48c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403298
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403278
xor eax, eax
push ebp
push 0x403271
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 0x4032b4
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 0x403278
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48c024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49604c], 0
je 0x403fc5
cmp word [0x496220], 0xd7b2
jne 0x403f8d
cmp dword [0x496228], 0
jbe 0x403f8d
mov eax, 0x49621c
call dword [0x496238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c070
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 0x403fec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c034], 0
jne 0x403fe1
push 0
push 0x48c068
push 0x48c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404138
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.00402764
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404100
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405714
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405944
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405797
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405944
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405797
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405960
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405820
xor eax, eax
push ebp
push 0x405819
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040555c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405980
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057fe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405820
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40593a
cmp byte [ebp - 0xd], 0
jne 0x405867
cmp byte [ebp - 0x12], 0
je 0x40593a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405880
dec ebx
cmp byte [ebx], 0x2e
je 0x40588f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40587f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40593a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058cc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40593a
cmp byte [ebp - 0xd], 0
je 0x40593a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40593a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406078
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 0x4060de
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.004043f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060e5
lea eax, [ebp - 0x10]
call fcn.00404184
ret

Function at 0x40b38c
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 0x40b3c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404274
jmp 0x40b3ce
mov eax, ebx
mov edx, esi
call fcn.004041d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b3d8
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 0x40b3f9
mov al, byte [esp]
jmp 0x40b3fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8f8
mov eax, dword [0x495c04]
cmp byte [eax], 0
je 0x40bafc
mov eax, dword [0x495920]
call fcn.00402be4
call fcn.004028cc
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.00408bb8
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 0x40bb44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4958b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x496668]
call fcn.00405520
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
Function at 0x40c3ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c4c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040421c
lea eax, [ebp - 8]
call fcn.00404694
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404644
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4ac
mov eax, ebx
call fcn.00402764
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404644
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c48f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c48f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4ac
mov eax, dword [ebp - 0x10]
call fcn.00402784
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4c9
lea eax, [ebp - 8]
call fcn.00404184
ret

Function at 0x40ca54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cab8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004043f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408634
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cabf
lea eax, [ebp - 0xc]
call fcn.00404184
ret

Function at 0x41e998
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041e7f0
dec esi
jne 0x41e9ba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41fafc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49688c
cmp dword [edi], 0
jne 0x41fb78
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x496888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48c400
mov ecx, 2
call fcn.00402960
mov edx, 0x41fad4
lea eax, [esi + 5]
call fcn.0041faf4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041faf4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fb4d
mov dword [0x496888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42119c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4211a2
ret

Function at 0x423670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4236c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4236a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423698
jmp 0x4236c1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4236a9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309f8
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x430944
call sub.user32.dll_EnumWindows
ret

Function at 0x430b18
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x430b95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430578
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x430b3d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430178
cmp dword [ebp - 4], 0
je 0x430b7f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404644
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430b9c
lea eax, [ebp - 4]
call fcn.00404184
ret

Function at 0x433a1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x496b5c], 0
je 0x433b6b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x495b7c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x433b6b
mov eax, dword [0x496b60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x496b5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433b3a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x496b5c]
call fcn.00418180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x433b32
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x433b32
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x433b32
mov eax, dword [ebp - 0x14]
call fcn.0043c664
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433b32
push ebp
call fcn.004339d8
pop ecx
test al, al
jne 0x433b32
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x433aee
mov eax, dword [ebp - 0x14]
call fcn.0043b15c
dec eax
jle 0x433b32
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040358c
cmp byte [ebp - 1], 0
je 0x433b32
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x433b32
mov edx, dword [ebp - 0x14]
mov eax, dword [0x496b60]
call fcn.004331a4
inc edi
dec ebx
jne 0x433a81
mov eax, dword [0x496b60]
cmp dword [eax + 8], 0
jle 0x433b52
mov eax, dword [0x496b60]
call fcn.00433234
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433b6b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00433840
pop ecx
test al, al
jne 0x433b6b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437130
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43717c
mov eax, esi
call fcn.0044cdc0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43717c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43717c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4372bb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4371bc
cmp eax, 0x108
ja 0x4371bc
mov eax, esi
call fcn.0044cdc0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4372b2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4372bb
jmp 0x4372b2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43729b
cmp eax, 0x20a
ja 0x43729b
test byte [esi + 0x50], 0x80
jne 0x4371ee
sub eax, 0x203
je 0x4371eb
sub eax, 3
je 0x4371eb
sub eax, 3
jne 0x4371ee
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x437202
dec eax
je 0x437217
dec eax
je 0x437234
dec eax
je 0x437217
jmp 0x43723b
mov ecx, ebx
mov eax, dword [0x495b7c]
mov eax, dword [eax]
mov edx, esi
call fcn.004565c4
jmp 0x4372b2
cmp byte [esi + 0x5d], 1
jne 0x43722d
mov eax, esi
mov si, 0xffed
call fcn.0040358c
jmp 0x4372bb
or word [esi + 0x54], 1
jmp 0x4372b2
and word [esi + 0x54], 0xfffe
jmp 0x4372b2
mov eax, dword [0x496b18]
cmp byte [eax + 0x20], 0
je 0x4372b2
mov eax, dword [0x496b18]
cmp dword [eax + 0x1c], 0
je 0x4372b2
mov eax, dword [ebx]
mov edx, dword [0x496b18]
cmp eax, dword [edx + 0x1c]
jne 0x4372b2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044cd04
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040358c
jmp 0x4372bb
cmp eax, 0xb00b
jne 0x4372b2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00435a6c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret