joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0xeef2b6dc
add eax, 0x114d7524
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd86b47fc
add dword [ebp - 0x20], 0x75e6fd4f
mov dword [ebp - 0x1c], 0x49e55cab
sub dword [ebp - 0x1c], 0x17b21066
mov dword [ebp - 0x18], 0xb1cad3c
sub dword [ebp - 0x18], 0xbed0690e
mov dword [ebp - 0x14], 0x47bde650
add dword [ebp - 0x14], 0xb84219b0
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x3cdfdd23
sub dword [ebp - 0x20], 0xc86d73cd
mov dword [ebp - 0x1c], 0xabb24da4
add dword [ebp - 0x1c], 0x95ba13d1
mov dword [ebp - 0x18], 0x9f6be3ff
sub dword [ebp - 0x18], 0x3bfc7793
mov dword [ebp - 0x14], 0x1a4b247
sub dword [ebp - 0x14], 0x1a4b247
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x1f9b7266
add eax, 0xe0a50e6e
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x32ca6
push 0
call eax
mov ecx, 0xafaed265
sub ecx, 0xafae99fd
mov edx, eax
mov edi, 0x7c785eb
sub edi, 0x78675eb
add edi, dword [ebp - 0x10]
mov esi, 0x7edd6d9c
add esi, 0xc4871774
mov dword [ebp - 4], 0xef6b4774
mov ebx, dword [edi]
xor dword [ebp - 8], 0xb52dddff
xor ebx, esi
add dword [ebp - 0xc], ecx
mov dword [edx], ebx
sub dword [ebp - 4], edx
add edx, 0x69b78a28
sub edx, 0x69b78a24
add edi, 4
loop 0x402d1d
add eax, 0x8f277f59
add eax, 0x70d9551a
xor ebx, ebx
add ebx, eax
add eax, 0xa3775c5e
add eax, 0x5c88a3a7
mov ecx, 0x8c4fed16
sub ecx, 0x8c0fed16
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10051e0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1009018]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
call fcn.01006d6c
test eax, eax
jne 0x1005238
call sub.cmutil.dll_IsLogonAsSystem
test eax, eax
jne 0x100522a
push 0x10
push 0x100165c
push 0x1001bc0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0100617c
leave
ret 0x10
and dword [ebp - 0x418], 0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
and word [ebp - 0x414], 0
and word [ebp - 0x20c], 0
mov esi, eax
xor eax, eax
mov edx, 0x81
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
push 2
push esi
mov esi, dword [sym.imp.USER32.dll_GetUserObjectInformationW]
call esi
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [ebp - 0x420]
call esi
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push dword [ebp - 0x424]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
jmp loc.01014000

Function at 0x1005524
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x1001ca8
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
je 0x1005588
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1005588
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x1005588
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x10053b4
push edi
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x100559a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x100559a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1006294
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1001d28
call fcn.01006498
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10062d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10062d1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10062e9
cmp eax, 0x20b
je 0x10062d6
mov dword [ebp - 0x1c], ebx
jmp 0x10062fd
cmp dword [ecx + 0x84], 0xe
jbe 0x10062d1
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10062f7
cmp dword [ecx + 0x74], 0xe
jbe 0x10062d1
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009184], 0xffffffff
or dword [0x1009188], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009044]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009040]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100918c], eax
call fcn.0100648e
cmp dword [0x100901c], ebx
jne 0x1006358
push fcn.0100648e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006477
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100903c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009038]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10063ee
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10063c2
cmp al, 0x22
jne 0x10063b4
cmp byte [esi], 0x22
jne 0x10063cb
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10063d5
cmp al, 0x20
jbe 0x10063c7
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
jmp 0x1008968
cmp byte [esi], 0x20
jbe 0x10063cb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10063ee
dec eax
sbb eax, esi
xchg ah, dh
mov al, 0xcf
test edx, ecx
mov al, 0xbf
cmp edx, 0x93bbe837
dec edx
adc dl, ah
not edx
jmp 0x10089b7
mov eax, 0xe02a2036
lea eax, [eax]
mov dl, bl
jge 0x1008993
lea eax, [eax - 0x17]
clc
mov dl, al
xor edx, ebp
jmp 0x101239d
inc al
push 0x6ad8
clc
pop ecx
not eax
not al
not al
xchg dh, al
mov edx, eax
not ah
jmp 0x1008993
adc word [ecx + 0x100bc00], 0x752d
adc eax, edx
and edx, edx
jmp 0x1008916
not edx
inc dl
xchg edx, eax
and eax, ebp
sub ecx, 2
xchg edx, edx
jmp 0x1008934
Function at 0x47e2cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4df880]
jne 0x47e2d6
repz ret
jmp fcn.0047e46f

Function at 0x47f000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0x40000
call dword [sym.imp.KERNEL32.DLL_HeapCreate]
mov dword [0x9febb0], eax
cmp dword [0x9febb0], 0
jne 0x47f03d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [0x9febb0]
push ecx
call fcn.0047f330
add esp, 8
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xe31
push 0
mov edx, dword [0x9febb0]
push edx
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [0x9febb4], eax
push 0xa8
push 0xd05
mov eax, dword [0x9febb4]
push eax
push 0x4dec48
call fcn.0047f0c0
add esp, 0x10
mov ecx, dword [0x4df860]
push ecx
call fcn.0047f340
push eax
mov edx, dword [0x9febb0]
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [0x9febb0]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapDestroy]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402c98
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4030fc
Capabilities:
Query or enumerate registry value

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

Function at 0x403f04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49404c], 0
je 0x403f65
cmp word [0x494220], 0xd7b2
jne 0x403f2d
cmp dword [0x494228], 0
jbe 0x403f2d
mov eax, 0x49421c
call dword [0x494238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x491070
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 0x403f8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x491034], 0
jne 0x403f81
push 0
push 0x491068
push 0x491070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040b8
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.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404080
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406184
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 0x4061ea
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.00404374
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061f1
lea eax, [ebp - 0x10]
call fcn.00404104
ret

Function at 0x40b864
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 0x40b89d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041f4
jmp 0x40b8a6
mov eax, ebx
mov edx, esi
call fcn.00404158
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf58
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bdd0
mov eax, dword [0x49354c]
cmp byte [eax], 0
je 0x40bfd4
mov eax, dword [0x493190]
call fcn.00402ac8
call fcn.00402914
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.00408f34
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 0x40c01c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c00a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4930f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x494668]
call fcn.00405698
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 0x40c8c4
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 0x40c99a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040419c
lea eax, [ebp - 8]
call fcn.00404614
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c984
mov eax, ebx
call fcn.004027ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c97d
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.004045c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c967
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c9ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c967
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 0x40c984
mov eax, dword [ebp - 0x10]
call fcn.004027cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9a1
lea eax, [ebp - 8]
call fcn.00404104
ret

Function at 0x40cf18
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 0x40cf7c
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.00404374
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf83
lea eax, [ebp - 0xc]
call fcn.00404104
ret

Function at 0x421914
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.0042176c
dec esi
jne 0x421936
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422a78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x494890
cmp dword [edi], 0
jne 0x422af4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49488c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x491518
mov ecx, 2
call fcn.004029a8
mov edx, 0x422a50
lea eax, [esi + 5]
call fcn.00422a70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422a70
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 0x422ac9
mov dword [0x49488c], 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 0x424030
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 0x424036
ret

Function at 0x426540
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 0x426591
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426578
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426568
jmp 0x426591
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 0x426579
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4371a8
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 0x4370f4
call sub.user32.dll_EnumWindows
ret

Function at 0x4372c8
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 0x437345
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00436d28
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 0x4372ed
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00436928
cmp dword [ebp - 4], 0
je 0x43732f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004045c4
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 0x43734c
lea eax, [ebp - 4]
call fcn.00404104
ret

Function at 0x43a840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a890]
test si, 4
je 0x43a854
or bl, 1
test si, 8
je 0x43a85e
or bl, 4
test si, 1
je 0x43a868
or bl, 8
test si, 2
je 0x43a872
or bl, 0x10
test si, 0x10
je 0x43a87c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a88b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43a894
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a8cc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a8ad
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a8bc
or bl, 4
test esi, 0x20000000
je 0x43a8c7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x440f74
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x440f86
add esp, 0xfffffff0
call fcn.004035b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004219e8
mov eax, dword [0x49310c]
mov dword [eax + 4], ebx
mov dword [eax], 0x441318
mov eax, dword [0x493120]
mov dword [eax + 4], ebx
mov dword [eax], 0x441324
mov eax, ebx
call fcn.00441330
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4187c0]
call fcn.0040325c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4187c0]
call fcn.0040325c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4187c0]
call fcn.0040325c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4187c0]
call fcn.0040325c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4187c0]
call fcn.0040325c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x43d74c
push eax
push 0
push 0
mov eax, dword [0x4933a8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42343c]
call fcn.00424b78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42343c]
call fcn.00424b78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42343c]
call fcn.00424b78
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00441750
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44162c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44162c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44162c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4410c3
call fcn.00403608
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret