joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adb82
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x168
mov eax, dword [0x37908]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x74]
push ebx
mov ebx, dword [ebp + 0x70]
cmp ebx, 0x40
push esi
mov esi, dword [ebp + 0x6c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x7c]
push edi
mov dword [ebp - 0x100], eax
jle 0x4adbe5
lea eax, [ebp - 0xfc]
push eax
call fcn.004a1e44
push ebx
push esi
lea eax, [ebp - 0xfc]
push eax
call fcn.004a3cf6
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004a3db0
push 0x14
lea esi, [ebp + 0x4c]
pop ebx
test ebx, ebx
push 0x10
pop ecx
mov eax, 0x36363636
lea edi, [ebp + 8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x10
pop ecx
mov eax, 0x5c5c5c5c
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jle 0x4adc1d
lea edx, [ebp + 8]
lea edi, [ebp - 0x3c]
sub edx, esi
mov eax, esi
sub edi, esi
mov cl, byte [eax]
xor byte [edx + eax], cl
xor byte [edi + eax], cl
inc eax
dec ebx
jne 0x4adc11
lea eax, [ebp - 0x9c]
push eax
call fcn.004a1e44
push 0x40
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004a3cf6
push dword [ebp + 0x78]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x104]
push eax
call fcn.004a3cf6
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x100]
call fcn.004a3db0
lea eax, [ebp - 0x9c]
push eax
call fcn.004a1e44
push 0x40
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004a3cf6
push 0x14
push dword [ebp - 0x100]
lea eax, [ebp - 0x9c]
push eax
call fcn.004a3cf6
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x100]
call fcn.004a3db0
mov ecx, dword [ebp + 0x60]
pop edi
pop esi
pop ebx
call fcn.004af89a
add ebp, 0x64
leave
ret 0x14

Function at 0x4adcb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xb4
mov eax, dword [0x37908]
mov edx, dword [ebp + 0x70]
push ebx
push esi
mov esi, dword [ebp + 0x6c]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x64]
push edi
mov dword [ebp - 0x58], eax
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
mov al, byte [ebp + 0x7c]
mov byte [ebp - 0x51], al
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov ebx, dword [ebp + 0x78]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + edx - 0x50], eax
lea eax, [ebp + 0x44]
push eax
add edx, 4
push edx
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x68]
push dword [ebp - 0x58]
call fcn.004adb82
mov eax, dword [ebp + 0x74]
cmp eax, 1
push 5
pop ecx
lea esi, [ebp + 0x44]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jle 0x4add63
lea ecx, [ebp + 0x30]
sub ebx, ecx
lea esi, [eax - 1]
lea eax, [ebp + 0x30]
push eax
push 0x14
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x68]
push dword [ebp - 0x58]
call fcn.004adb82
xor edx, edx
lea eax, [ebp + edx + 0x30]
lea ecx, [ebx + eax]
mov al, byte [eax]
xor byte [ecx], al
mov byte [ebp + edx + 0x44], al
inc edx
cmp edx, 0x14
jl 0x4add4b
dec esi
jne 0x4add34
mov ecx, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
call fcn.004af89a
add ebp, 0x5c
leave
ret 0x1c
Function at 0x4ade38
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x37908]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 0x40
mov dword [ebp - 0x304], eax
mov eax, dword [ebp + 0x18]
pop ebx
cmp esi, ebx
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x308], eax
jle 0x4adeb1
lea eax, [ebp - 0x2fc]
push eax
call fcn.004a8de6
lea eax, [ebp - 0x2fc]
push eax
mov eax, esi
shl eax, 3
push eax
push edi
call fcn.004a8e14
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.004a8f9a
lea eax, [ebp - 0x84]
mov dword [ebp - 0x300], eax
mov esi, ebx
lea eax, [ebp - 0x1ac]
push eax
call fcn.004a8de6
xor ecx, ecx
test esi, esi
jle 0x4adedf
mov edi, dword [ebp - 0x300]
lea eax, [ebp - 0x44]
sub edi, eax
lea eax, [ebp + ecx - 0x44]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
cmp ecx, esi
mov byte [eax], dl
jl 0x4adece
cmp esi, ebx
jge 0x4adefe
mov ecx, ebx
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea edi, [ebp + esi - 0x44]
mov eax, 0x36363636
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x1ac]
push eax
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.004a8e14
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp + 0x14]
shl eax, 3
push eax
push dword [ebp - 0x304]
call fcn.004a8e14
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004a8f9a
lea eax, [ebp - 0x254]
push eax
call fcn.004a8de6
xor edi, edi
test esi, esi
jle 0x4adf6e
mov ecx, dword [ebp - 0x300]
lea eax, [ebp - 0x44]
sub ecx, eax
lea eax, [ebp + edi - 0x44]
mov dl, byte [ecx + eax]
xor dl, 0x5c
inc edi
cmp edi, esi
mov byte [eax], dl
jl 0x4adf5d
push 0x40
pop ecx
cmp esi, ecx
jge 0x4adf8e
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea edi, [ebp + esi - 0x44]
mov eax, 0x5c5c5c5c
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x254]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.004a8e14
lea eax, [ebp - 0x254]
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
call fcn.004a8e14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004a8f9a
push 0x40
pop eax
cmp dword [ebp + 0x1c], eax
pop edi
pop esi
pop ebx
jle 0x4adfd4
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp - 0x308]
push eax
call fcn.004ad858
mov ecx, dword [ebp - 4]
call fcn.004af89a
leave
ret 0x18
Function at 0x4adff6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x37908]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
xor eax, eax
lea edi, [ebp - 0x108]
stosd dword es:[edi], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 0x105], al
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x108]
and ecx, 3
push 0x40
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + edx - 0x104], eax
lea eax, [ebp - 0x44]
push eax
add edx, 4
push edx
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call fcn.004ade38
mov eax, dword [ebp + 0x18]
cmp eax, 1
push 0x10
pop ecx
lea esi, [ebp - 0x44]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jle 0x4ae0c7
lea ecx, [ebp - 0x84]
sub ebx, ecx
lea esi, [eax - 1]
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call fcn.004ade38
xor edx, edx
lea eax, [ebp + edx - 0x84]
lea ecx, [ebx + eax]
mov al, byte [eax]
xor byte [ecx], al
mov byte [ebp + edx - 0x44], al
inc edx
cmp edx, 0x40
jl 0x4ae0ac
dec esi
jne 0x4ae08d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004af89a
leave
ret 0x1c
Function at 0x409fd6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x58
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401768
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [0x4230d4]
push dword [0x4230f4]
call fcn.0040729e
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 4
mov word [ebp - 0x4c], 0x19
mov word [ebp - 0x48], 1
and word [ebp - 0x24], 0
jmp 0x40a09e

Function at 0x40152a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x401586
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040152a
test eax, eax
jne 0x401620
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020b6
sub eax, 0x401654
mov dword [esp], 0x401654
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401620
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401420
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014a3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401db9
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402cc0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402cfd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004045cc
add esp, 0x210
pop esi
pop ebx
ret

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

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

Function at 0x40343c
Capabilities:
Query or enumerate registry value

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

Function at 0x4041d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b904c], 0
je 0x404239
cmp word [0x4b9220], 0xd7b2
jne 0x404201
cmp dword [0x4b9228], 0
jbe 0x404201
mov eax, 0x4b921c
call dword [0x4b9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b6070
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 0x404260
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b6034], 0
jne 0x404255
push 0
push 0x4b6068
push 0x4b6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406244
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 0x4062aa
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.004045cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403000
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406294
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062b1
lea eax, [ebp - 0x10]
call fcn.0040435c
ret

Function at 0x40b734
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 0x40b76d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040444c
jmp 0x40b776
mov eax, ebx
mov edx, esi
call fcn.004043b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bca0
mov eax, dword [0x4b897c]
cmp byte [eax], 0
je 0x40beb4
mov eax, dword [0x4b8764]
call fcn.00402e50
call fcn.00402c4c
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.00408de8
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 0x40befc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40beea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b8708]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b9668]
call fcn.00405694
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 0x40c7ac
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 0x40c882
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043f4
lea eax, [ebp - 8]
call fcn.0040486c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040481c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c86c
mov eax, ebx
call fcn.00402ac0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c865
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.0040481c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c84f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c894
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c84f
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 0x40c86c
mov eax, dword [ebp - 0x10]
call fcn.00402af0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c889
lea eax, [ebp - 8]
call fcn.0040435c
ret

Function at 0x40cde8
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 0x40ce4c
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.004045cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408844
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce53
lea eax, [ebp - 0xc]
call fcn.0040435c
ret

Function at 0x41e7b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b9888
cmp dword [edi], 0
jne 0x41e834
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b9884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b6480
mov ecx, 2
call fcn.00402d58
mov edx, 0x41e790
lea eax, [esi + 5]
call fcn.0041e7b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e7b0
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 0x41e809
mov dword [0x4b9884], 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 0x41fe58
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 0x41fe5e
ret
Function at 0x4224fc
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 0x42254d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422534
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422524
jmp 0x42254d
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 0x422535
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4304ac
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 0x4303f8
call sub.user32.dll_EnumWindows
ret

Function at 0x4305cc
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 0x430649
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043002c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4305f1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042fc2c
cmp dword [ebp - 4], 0
je 0x430633
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040481c
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 0x430650
lea eax, [ebp - 4]
call fcn.0040435c
ret

Function at 0x433758
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 [0x4b9b58], 0
je 0x4338a7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4b8914]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4338a7
mov eax, dword [0x4b9b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4b9b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433876
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4b9b58]
call fcn.00417b54
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43386e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43386e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43386e
mov eax, dword [ebp - 0x14]
call fcn.0043c340
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43386e
push ebp
call fcn.00433714
pop ecx
test al, al
jne 0x43386e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43382a
mov eax, dword [ebp - 0x14]
call fcn.0043ae38
dec eax
jle 0x43386e
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.004037d8
cmp byte [ebp - 1], 0
je 0x43386e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43386e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4b9b5c]
call fcn.00432ee0
inc edi
dec ebx
jne 0x4337bd
mov eax, dword [0x4b9b5c]
cmp dword [eax + 8], 0
jle 0x43388e
mov eax, dword [0x4b9b5c]
call fcn.00432f70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4338a7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043357c
pop ecx
test al, al
jne 0x4338a7
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 0x436e6c
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 0x436eb8
mov eax, esi
call fcn.0044c9c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x436eb8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x436eb8
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 0x436ff7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x436ef8
cmp eax, 0x108
ja 0x436ef8
mov eax, esi
call fcn.0044c9c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x436fee
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x436ff7
jmp 0x436fee
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x436fd7
cmp eax, 0x20a
ja 0x436fd7
test byte [esi + 0x50], 0x80
jne 0x436f2a
sub eax, 0x203
je 0x436f27
sub eax, 3
je 0x436f27
sub eax, 3
jne 0x436f2a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x436f3e
dec eax
je 0x436f53
dec eax
je 0x436f70
dec eax
je 0x436f53
jmp 0x436f77
mov ecx, ebx
mov eax, dword [0x4b8914]
mov eax, dword [eax]
mov edx, esi
call fcn.00456330
jmp 0x436fee
cmp byte [esi + 0x5d], 1
jne 0x436f69
mov eax, esi
mov si, 0xffed
call fcn.004037d8
jmp 0x436ff7
or word [esi + 0x54], 1
jmp 0x436fee
and word [esi + 0x54], 0xfffe
jmp 0x436fee
mov eax, dword [0x4b9b14]
cmp byte [eax + 0x20], 0
je 0x436fee
mov eax, dword [0x4b9b14]
cmp dword [eax + 0x1c], 0
je 0x436fee
mov eax, dword [ebx]
mov edx, dword [0x4b9b14]
cmp eax, dword [edx + 0x1c]
jne 0x436fee
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.0044c904
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.004037d8
jmp 0x436ff7
cmp eax, 0xb00b
jne 0x436fee
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004357a8
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