joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402654
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.00402fc4
test esi, esi
jne 0x40268a
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.00403088
jmp 0x4026a8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402568
mov edi, eax
test esi, esi
je 0x4026a8
cmp dword [ebx], 0
je 0x4026a8
dec esi
jmp 0x402691
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402768
Capabilities:
Query or enumerate registry value

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

Function at 0x402e48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402ea9
cmp word [0x405208], 0xd7b2
jne 0x402e71
cmp dword [0x405210], 0
jbe 0x402e71
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40404c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402ed0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x404018], 0
jne 0x402ec5
push 0
push 0x40406c
push 0x40404c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4038c0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov eax, ebx
call fcn.00402fc4
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x403904
mov eax, ebx
mov edx, esp
call fcn.004030b8
mov eax, dword [ebx]
call fcn.004030f4
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x403904
mov eax, ebx
mov edx, 0x403914
call fcn.004030fc
add esp, 0x108
pop ebx
ret
Function at 0x403918
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403238
xor eax, eax
push ebp
push 0x4039a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402710
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0xa
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403248
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40398e
jmp 0x403990
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039ad
lea eax, [ebp - 4]
call fcn.00402fc4
ret
Function at 0x10039930
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10039af4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
or ebp, 0xffffffff
jmp 0x1003995a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10039961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10039950
mov eax, 1
add ebx, ebx
jne 0x10039973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10039968
jne 0x10039984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10039968
xor ecx, ecx
sub eax, 3
jb 0x10039998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10039a0a
mov ebp, eax
add ebx, ebx
jne 0x100399a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100399b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100399d4
inc ecx
add ebx, ebx
jne 0x100399c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100399b5
jne 0x100399d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100399b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100399f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100399e5
jmp 0x10039956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100399f4
add edi, ecx
jmp 0x10039956
pop esi
mov edi, esi
mov ecx, 0xbf6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10039a12
cmp byte [edi], 0xa
jne 0x10039a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10039a17
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x10039a86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x391dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39204]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10039a44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39208]
or eax, eax
je 0x10039a80
mov dword [ebx], eax
add ebx, 4
jmp 0x10039a61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10039ab7
cmp al, 0xef
ja 0x10039aaa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10039a8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10039a99
mov ebp, dword [esi + 0x3920c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10039aeb
sub esp, 0xffffff80
jmp 0x1000b2b0
Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403576
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x402e90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cbc
test esi, esi
jne 0x402ec7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dac
jmp 0x402ee8
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d2c
mov dword [esp], eax
test esi, esi
je 0x402ee8
cmp dword [ebx], 0
je 0x402ee8
dec esi
jmp 0x402ecf
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403d18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403db0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403d90
xor eax, eax
push ebp
push 0x403d89
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 0x403dcc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x49b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a1048], 0
je 0x404af5
cmp word [0x4a121c], 0xd7b2
jne 0x404abd
cmp dword [0x4a1224], 0
jbe 0x404abd
mov eax, 0x4a1218
call dword [0x4a1234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b094
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 0x404b1c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x49b034], 0
jne 0x404b11
push 0
push 0x49b08c
push 0x49b094
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404c70
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.00402ac0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a1049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c38
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406d88
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 0x406dee
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.00404f2c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403768
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406dd8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406df5
lea eax, [ebp - 0x10]
call fcn.00404cbc
ret

Function at 0x409a0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040517c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a25
test al, 0x10
jne 0x409a29
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c5cc
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 0x40c605
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dac
jmp 0x40c60e
mov eax, ebx
mov edx, esi
call fcn.00404d10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d5f0
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 0x40d6c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d54
lea eax, [ebp - 8]
call fcn.004051cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040517c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6b0
mov eax, ebx
call fcn.00402ac0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6a9
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.0040517c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d693
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d693
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 0x40d6b0
mov eax, dword [ebp - 0x10]
call fcn.00402af0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6cd
lea eax, [ebp - 8]
call fcn.00404cbc
ret
Function at 0x40dc58
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 0x40dcbc
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.00404f2c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00409658
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcc3
lea eax, [ebp - 0xc]
call fcn.00404cbc
ret

Function at 0x40ea98
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404cbc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040517c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40eadd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404dac
jmp 0x40eaf6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405308
push ebx
mov eax, dword [esi]
call fcn.0040517c
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c474
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.0041c2a0
dec esi
jne 0x41c496
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41d5d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a1888
cmp dword [edi], 0
jne 0x41d654
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a1884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b430
mov ecx, 2
call fcn.00402cec
mov edx, 0x41d5b0
lea eax, [esi + 5]
call fcn.0041d5d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d5d0
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 0x41d629
mov dword [0x4a1884], 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 0x41e898
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], bl
bound eax, qword [ecx]
enter 0x421b, 0
pushal
inc edi
inc edx
add byte [esp + ebx + 0x47a00042], al
inc edx
add ah, cl
inc edi
inc edx
add ah, cl
sbb eax, 0x1dd00042
inc edx
add al, ah
inc edi
inc edx
add byte [eax + 0x1e], dl
inc edx
add byte [edx + ecx*2 + 0x42], ah
add byte [esi + ebx + 0x4a7c0042], dh
inc edx
add byte [eax - 0x37ffbdb6], al
push ds
inc edx
add byte [esi + eax*2 + 0x42], bh
add ah, dl
sbb eax, 0x1e5c0042
inc edx
add byte [eax], ah
dec ecx
inc edx
add byte [eax - 0x3fffbdb6], bl
dec edx
inc edx
add ah, dl
dec edx
inc edx
add byte [0x6f634954], al
outsb dx, byte [esi]
mov eax, eax
or al, ch
inc ecx
add byte [edi], al
add eax, 0x6f634954
outsb dx, byte [esi]
cwde
out 0x41, eax
add byte [0x41], ah
or byte [edi + 0x72], al
popal
jo 0x41e887
imul esp, dword [ebx + 0x73], 0xc0850000
add byte [ebp + 0x3b0e74c0], al
add eax, 0x4a1890
je 0x41e836
cmp eax, dword [0x4a1890]
je 0x41e836
push eax
call sub.gdi32.dll_DeleteObject
ret
jae 0x41e8f9
jne 0x41e8fe
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x41e823
inc eax
add byte [ecx + 0x31c289d1], cl
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e89e
ret
mov esi, edi
inc dword [ebx + ebx*8 - 0x3974f882]
jle 0x41e907
mov eax, esi
call fcn.00404214
pop esi
pop ebx
ret

Function at 0x420efc
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 0x420f4d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420f34
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420f24
jmp 0x420f4d
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 0x420f35
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d5c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042d40c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040517c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42d622
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a00b8]
mov dl, 1
mov eax, dword [0x42d380]
call fcn.0040ce90
call fcn.0040462c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d62c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040517c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x42d684
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a0408]
mov dl, 1
mov eax, dword [0x42d380]
call fcn.0040ce90
call fcn.0040462c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042d43c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x439368
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 0x4392b4
call sub.user32.dll_EnumWindows
ret

Function at 0x439488
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 0x439505
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00438ee8
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep_1
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4394ad
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00438ae8
cmp dword [ebp - 4], 0
je 0x4394ef
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040517c
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 0x43950c
lea eax, [ebp - 4]
call fcn.00404cbc
ret
Function at 0x43c7d8
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 [0x4a1b60], 0
je 0x43c927
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a0190]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43c927
mov eax, dword [0x4a1b64]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4a1b60]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43c8f6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4a1b60]
call fcn.004159d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43c8ee
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43c8ee
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43c8ee
mov eax, dword [ebp - 0x14]
call fcn.00445470
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43c8ee
push ebp
call fcn.0043c794
pop ecx
test al, al
jne 0x43c8ee
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43c8aa
mov eax, dword [ebp - 0x14]
call fcn.00443fa0
dec eax
jle 0x43c8ee
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.004040ac
cmp byte [ebp - 1], 0
je 0x43c8ee
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43c8ee
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a1b64]
call fcn.0043bf60
inc edi
dec ebx
jne 0x43c83d
mov eax, dword [0x4a1b64]
cmp dword [eax + 8], 0
jle 0x43c90e
mov eax, dword [0x4a1b64]
call fcn.0043bff0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c927
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c5fc
pop ecx
test al, al
jne 0x43c927
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