joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413adb
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x41c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], edx
push 0x20c
xor edi, edi
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00404120
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00401920
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], edi
call fcn.00401a40
mov ebx, eax
test ebx, ebx
je 0x401589
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push ebx
call esi
push str.FDICopy
push ebx
mov dword [ebp - 0x43c], eax
call esi
push str.FDIDestroy
push ebx
mov dword [ebp - 0x440], eax
call esi
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x43c], edi
je 0x401584
cmp dword [ebp - 0x440], edi
je 0x401584
test eax, eax
je 0x401584
push edi
mov dword [0x41d520], edi
mov dword [0x41d50c], edi
mov dword [0x41d510], 0xffffffff
mov dword [0x41d514], 0xffffffff
mov dword [0x41d518], 0xffffffff
mov dword [0x41d51c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40157a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401589
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [0x41d520], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x41d50c], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x401130
push 0x401180
push 0x4010f0
push 0x401070
push 0x401040
push fcn.00401030
push 0x401020
call dword [ebp - 0x43c]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40156f
push dword [ebp - 0x444]
lea eax, [ebp - 0x438]
mov dword [ebp - 0x230], edi
push 0x104
push eax
mov dword [ebp - 0x22c], edi
call fcn.00406244
lea eax, [ebp - 0x438]
push eax
push edi
push 0x4011a0
push edi
push 0x419798
push 0x419798
push esi
call dword [ebp - 0x440]
add esp, 0x28
test eax, eax
jne 0x401563
mov edi, dword [ebp - 0x1c]
add edi, 0xb000
push esi
call dword [ebp - 0x448]
add esp, 4
jmp 0x401589
mov edi, dword [ebp - 0x1c]
add edi, 0xb000
jmp 0x401589
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401589
mov edi, 1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401597
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402e7e
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b42
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x41c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x21c], ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], eax
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 7
mov word [ebx + 0x18], cx
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], 7
mov word [ebx + 0x30], cx
push ecx
push 0x4197d4
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00401b40
push 0
push 0x4197d4
lea ecx, [ebx + 0x18]
call fcn.00401b40
push esi
push edi
push str._S___d_
lea eax, [ebp - 0x218]
push 0x208
push eax
call fcn.004015d0
lea ecx, [ebp - 0x218]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401713
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x30]
call fcn.00401b40
mov esi, dword [ebp - 0x220]
mov edx, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 3
mov dword [ebp - 0x21c], 0
mov dword [ebx + 0x48], eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401754
sub edx, ecx
lea ecx, [ebx + 0x18]
sar edx, 1
push edx
push esi
call fcn.00401b40
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x400
push dword [ebx + 0x48]
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x40180b
mov edx, dword [ebp - 0x21c]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017a0
sub ecx, esi
sar ecx, 1
movzx eax, word [edx + ecx*2]
lea esi, [edx + ecx*2]
push eax
call fcn.00406646
add esp, 4
test eax, eax
je 0x4017d7
movzx eax, word [esi - 2]
sub esi, 2
push eax
call fcn.00406646
add esp, 4
test eax, eax
jne 0x4017c3
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x21c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017e7
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00401b40
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402e7e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b8e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x41c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
push esi
mov dword [esi + 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401986
push str.cabinet.dll
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4019ce
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4c
call fcn.0040308a
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x29
push str.c:jenkinsworkspaceinstaller_ws_srccommonwrapperdlllibrary.cpp
push str.Error_reading_system_directory_path
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x41a838
push eax
call fcn.00403e85
push 0x4c
call fcn.0040308a
add esp, 4
mov dword [ebp - 0x18], eax
push 0x35
push str.c:jenkinsworkspaceinstaller_ws_srccommonwrapperdlllibrary.cpp
push str.Error_creating_DLLibrary_object
push 0x10b
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x41a838
push eax
call fcn.00403e85
int3
Function at 0x408478
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.00408030
mov dword [ebp - 0xbc], eax

Function at 0x408487
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x408506
mov byte [ebp - 0x1f], 0x59
invalid
inc ebp
invalid

Function at 0x40849d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x408506

Function at 0x409746
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00407fdc
add esp, 0xc
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x678]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x3ac], eax
push 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00407fdc
add esp, 0xc
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x6f8], eax
and dword [ebp - 0x700], 0
jmp 0x4097bb
Function at 0x4038f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x140]
test eax, eax
js 0x4039ea
mov ecx, dword [esi + 0x13c]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, ecx
jne 0x403a01
cmp eax, 0xa
jne 0x403929
cmp dword [esi + 0x12c], 0
jne 0x403a01
cmp eax, 0xb
je 0x403a01
mov edx, dword [esi + 0x130]
cmp dword [esi + 0x134], edx
je 0x40394b
test edx, edx
je 0x40394b
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x128]
cmp edx, ebx
jb 0x4039ed
add ecx, ebx
lea eax, [edx + edi]
cmp eax, ecx
ja 0x4039ed
test edi, edi
je 0x4039ac
cmp edx, ebx
jne 0x4039ac
test dl, 0xf
je 0x403985
lea eax, [esi + 0x30]
lea ecx, [esi + 0x20]
push eax
push ecx
push ecx
call fcn.00404e24
add esp, 0xc
movzx edx, byte [esi]
lea ebx, [esi + 0x10]
and edx, 7
xor ecx, ecx
mov eax, ebx
inc edx
lea eax, [eax - 1]
mov byte [eax], cl
shr ecx, 8
dec edx
jne 0x403993
lea eax, [esi + 0x30]
push eax
push ebx
push esi
call fcn.00404e24
add esp, 0xc
mov eax, dword [esi + 0x130]
xor edx, edx
sub eax, dword [esi + 0x128]
test edi, edi
je 0x4039d7
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x10]
add ecx, eax
mov al, byte [ecx + 0x10]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edx + ebx], al
inc edx
cmp edx, edi
jb 0x4039c6
mov ecx, dword [esi + 0x130]
xor eax, eax
cmp ecx, dword [esi + 0x134]
pop ebx
setne al
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
mov dword [esi + 0x140], 0xfffffff9
mov eax, 0xfffffff9
pop esi
pop ebp
ret
pop edi
mov dword [esi + 0x140], 0xfffffffa
mov eax, 0xfffffffa
pop esi
pop ebp
ret
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036d0
Capabilities:
Query or enumerate registry value

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

Function at 0x40457c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46904c], 0
je 0x4045dd
cmp word [0x469220], 0xd7b2
jne 0x4045a5
cmp dword [0x469228], 0
jbe 0x4045a5
mov eax, 0x46921c
call dword [0x469238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467030], 0
jne 0x4045f9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4084ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40853c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40853c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4084ef
test edx, 3
jne 0x4084de
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4084e9
jmp 0x4084ef
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4084ef
cmp dword [ecx - 8], 1
je 0x4084f9
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40850b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x408548
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4085d8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4085d8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40858b
test edx, 3
jne 0x40857a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408585
jmp 0x40858b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40858b
cmp dword [ecx - 8], 1
je 0x408595
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4085a7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x40ba0c
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 0x40ba45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ec
jmp 0x40ba4e
mov eax, ebx
mov edx, esi
call fcn.00404750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba58
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 0x40ba7a
movzx eax, byte [esp]
jmp 0x40ba7c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c10c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf84
mov eax, dword [0x468d78]
cmp byte [eax], 0
je 0x40c188
mov eax, dword [0x468b60]
call fcn.00403098
call fcn.00402e08
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.0040916c
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 0x40c1d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468b04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b7f8]
call fcn.00405bf0
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 0x40ca64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404794
lea eax, [ebp - 4]
call fcn.00404c10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb24
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb1d
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 - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb07
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb24
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb41
lea eax, [ebp - 4]
call fcn.004046fc
ret
Function at 0x41ea1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46c304
cmp dword [edi], 0
jne 0x41ea98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46c300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x467ae8
mov ecx, 2
call fcn.00402e9c
mov edx, 0x41e9f4
lea eax, [esi + 5]
call fcn.0041ea14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ea14
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 0x41ea6d
mov dword [0x46c300], 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 0x42100c
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.00404bc0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421064
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x468eac]
mov dl, 1
mov eax, dword [0x420b30]
call fcn.0040c2cc
call fcn.00404144
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420c38
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 0x4221f4
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 0x4221fa
ret
Function at 0x4337fc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004046fc
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43384a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040496c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4378cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4379ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x420b90]
call fcn.00420c60
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4379d5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00420d00
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040496c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x437a14
call fcn.00404a0c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00420d64
lea ecx, [ebp - 4]
mov edx, 0x437a50
mov eax, dword [ebp - 0xc]
call fcn.00420f94
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ddb0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4379b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x437a5c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4684d0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4379bf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x437aac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x437af3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437ad6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437ae7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x437af3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43cbfc
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 [0x46c538], 0
je 0x43cd45
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x468d08]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43cd45
mov eax, dword [0x46c53c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46c538]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43cd14
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46c538]
call fcn.004179b4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43cd0c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43cd0c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43cd0c
mov eax, dword [ebp - 0x14]
call fcn.00446f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43cd0c
push ebp
call fcn.0043cbb8
pop ecx
test al, al
jne 0x43cd0c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403acc
test al, al
je 0x43cd0c
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, 0xffbc
call fcn.00403acc
cmp byte [ebp - 1], 0
je 0x43cd0c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43cd0c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46c53c]
call fcn.0043c328
inc edi
dec ebx
jne 0x43cc61
mov eax, dword [0x46c53c]
cmp dword [eax + 8], 0
jle 0x43cd2c
mov eax, dword [0x46c53c]
call fcn.0043c3e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43cd45
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043ca1c
pop ecx
test al, al
jne 0x43cd45
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