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

Disassembly:
mov edx, dword [esp + 4]
push ebx
cmp dword [edx + 0x14], 8
push esi
push edi
mov edi, dword [edx + 0x10]
mov ebx, ecx
jb 0x405474
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add edi, edi
je 0x405491
nop
movzx eax, byte [edx + ecx]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edi
jb 0x405480
mov edx, dword [ebx + 0x14]
mov eax, edx
pop edi
and eax, esi
cmp dword [ebx + 0x18], eax
pop esi
pop ebx
ja 0x4054a9
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
ret 4

Function at 0x406cf0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x432f88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push dword [esp + 0x30]
add ecx, 0x40
call fcn.0040b980
test eax, eax
je 0x406e0a
cmp dword [eax + 0x40], 0x10
lea edx, [eax + 0x2c]
jb 0x406d33
mov edx, dword [edx]
test edx, edx
je 0x406e0a
cmp byte [edx], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
jne 0x406d69
xor ecx, ecx
jmp 0x406d79
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d70
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00401b7d
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
cmp esi, eax
je 0x406dc5
cmp dword [esi + 0x14], 0x10
jb 0x406da8
push dword [esi]
call fcn.00413220
add esp, 4
lea eax, [esp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00405ad0
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0x10
jb 0x406de0
push dword [esp + 8]
call fcn.00413220
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8
Function at 0x409b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433488
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esi], vtable.TiXmlText.0
cmp byte [edi], 0
jne 0x409c0c
xor ecx, ecx
jmp 0x409c1a
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c11
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.00401b7d
mov byte [esi + 0x40], 0
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40a3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433463
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x1c], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], 0
mov byte [eax + 0x14], 0
mov dword [eax + 0x40], 0xf
mov dword [eax + 0x3c], 0
mov byte [eax + 0x2c], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edx, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edx], 0
jne 0x40a49e
xor eax, eax
jmp 0x40a4ac
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a4a3
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.00401b7d
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40ab20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433433
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov byte [esp + 0x14], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x44e2b3
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00401b7d
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x410160
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00415ef0
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4101c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4101c4
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.00416d8a
add eax, 0x40
push eax
call fcn.00416f13
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413211
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.00417041
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x410252
call fcn.00410020
test eax, eax
jle 0x410252
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413211
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413211
add esp, 0x108
ret
Function at 0x42833f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x454680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041a972
mov dword [ebp - 0x14], eax
cmp dword [0x458ba8], edi
jne 0x428430
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4283bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x428510
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x428510
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x428510
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x458ba8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x458bac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x448b64
push esi
mov dword [0x458bb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458bb8], eax
test eax, eax
je 0x42842d
push 0x448b80
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458bb4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x428455
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x428448
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42846a
push 4
pop eax
jmp 0x428512
cmp dword [ebp - 0x14], edi
je 0x42846a
push dword [0x458ba8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42844f
mov eax, dword [0x458bb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4284c8
cmp dword [0x458bb8], esi
je 0x4284c8
push eax
call ebx
push dword [0x458bb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4284c8
test eax, eax
je 0x4284c8
call ecx
test eax, eax
je 0x4284bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4284bd
test byte [ebp - 8], 1
jne 0x4284c8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4284f8
mov eax, dword [0x458bac]
cmp eax, esi
je 0x4284f5
push eax
call ebx
test eax, eax
je 0x4284f5
call eax
mov edi, eax
test edi, edi
je 0x4284f5
mov eax, dword [0x458bb0]
cmp eax, esi
je 0x4284f5
push eax
call ebx
test eax, eax
je 0x4284f5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x458ba8]
call ebx
test eax, eax
je 0x428510
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x428512
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413211
leave
ret
Function at 0x42d6a0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4328d0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x90]
push 0
push 0
push 3
push 0
push 1
push 0x120089
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 4
mov dword [esp + 0x1c], vtable.pp::core::SmartHandleBase_void___class_pp::core::DefaultHandleDeleter_.0
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
call fcn.00413225
mov esi, eax
add esp, 4
test esi, esi
je 0x42d743
mov dword [esi], 0
jmp 0x42d745
xor esi, esi
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x88], 0
test edi, edi
je 0x42d8a1
cmp edi, 0xffffffff
je 0x42d8a1
push ecx
push 0
push 0
push 0
push 0x4000002
push 0
push edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [esp + 0x50]
call fcn.00404240
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x42d88d
cmp eax, 0xffffffff
je 0x42d88d
push ecx
push 0
push 0
push 0
push 4
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [esp + 0x38]
call fcn.004048f0
mov byte [esp + 0x88], 2
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x42d868
push 0x1c
lea eax, [esp + 0x64]
xorps xmm0, xmm0
push eax
push ebx
mov dword [esp + 0x6c], 0
movq qword [esp + 0x70], xmm0
movq qword [esp + 0x78], xmm0
movq qword [esp + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d868
push 0
push dword [esp + 0x70]
mov ecx, ebp
push ebx
call fcn.0042d940
mov bl, al
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x30]
call fcn.00404950
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x48]
call fcn.004026a0
jmp 0x42d8a3
xor bl, bl
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x30]
call fcn.00404950
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x48]
call fcn.004026a0
jmp 0x42d8a3
xor bl, bl
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x48]
call fcn.004026a0
jmp 0x42d8a3
xor bl, bl
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x18], vtable.pp::core::SmartHandleBase_void___class_pp::core::DefaultHandleDeleter_.0
test esi, esi
je 0x42d8ee
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42d8e6
test edi, edi
je 0x42d8dd
cmp edi, 0xffffffff
je 0x42d8d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0
push esi
call fcn.00413220
add esp, 4
mov dword [esp + 0x28], 0
mov al, bl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00413211
add esp, 0x78
ret 8
Function at 0x42db90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x21c
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x42e3d0
push 6
mov ebp, ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x42dbd0
xor al, al
jmp 0x42dc24
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xa
push 0x44aac8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42dbcc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42dbcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42dbcc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x42dbcc
push ecx
push eax
push ebx
mov ecx, ebp
call fcn.0042d920
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413211
add esp, 0x21c
ret

Function at 0x42f8d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4332bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.OemStringPreference.0
mov dword [esp + 0x14], 0
cmp dword [esi + 0x30], 8
jb 0x42f917
push dword [esi + 0x1c]
call fcn.00413220
add esp, 4
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
xor eax, eax
mov word [esi + 0x1c], ax
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.OemPreference.0
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x42f952
push dword [esi + 4]
call fcn.00413220
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10011082
Capabilities:
Terminate process

Disassembly:
jmp 0x1001f190
jmp fcn.10020820
cmp ecx, dword [0x1002a50c]
jne 0x1001f19a
repz ret
jmp 0x10011235

Function at 0x10012cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x1002c15c
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp esi, esp
call fcn.10011546
mov esi, esp
push 0x1002c15c
mov edi, esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp edi, esp
call fcn.10011546
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp esi, esp
call fcn.10011546
mov eax, dword [0x1002c15c]
cmp eax, dword [ebp + 8]
jle 0x10012d9b
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cmp dword [0x1002c15c], eax
jge 0x10012d9b
mov eax, dword [0x1002c160]
cmp eax, dword [ebp + 0xc]
jle 0x10012d9b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x14]
cmp dword [0x1002c160], eax
jge 0x10012d9b
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.10011546
cwde
and eax, 1
je 0x10012d94
mov eax, 1
jmp 0x10012d9d
mov eax, 2
jmp 0x10012d9d
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.10011546
mov esp, ebp
pop ebp
ret
Function at 0x100134b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0xe4]
mov ecx, 0x39
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [0x1002a010], 0
je 0x100136a3
mov byte [ebp - 0xdd], 0
push 0xa
push 0xbe
mov eax, dword [section..data]
imul eax, eax, 0xf
add eax, dword [0x1002a00c]
push eax
mov ecx, dword [0x1002a008]
push ecx
call fcn.100110b9
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x10013520
mov byte [ebp - 0xdd], 1
mov dword [ebp - 0x14], 0xff00ff00
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x10013536
mov byte [ebp - 0xdd], 1
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 8], 1
jne 0x1001355c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x18]
jle 0x1001355c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp - 8], 2
jne 0x10013570
mov byte [ebp - 0xdd], 1
mov dword [ebp - 0x14], 0xffffa500
mov eax, dword [0x1002c16c]
cmp eax, dword [section..data]
jne 0x100135ea
mov esi, esp
push 0x27
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.10011546
cwde
and eax, 1
je 0x100135b6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x18]
jle 0x100135b4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x100135ea
mov esi, esp
push 0x25
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.10011546
cwde
and eax, 1
je 0x100135ea
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jge 0x100135ea
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [0x1002c16c]
cmp eax, dword [section..data]
jne 0x10013605
mov byte [ebp - 0xdd], 1
mov dword [ebp - 0x14], 0xffffa500
cmp byte [ebp - 0xdd], 0
jne 0x1001361b
push 0x100136b7
call fcn.100112df
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [section..data]
imul edx, edx, 0xf
mov eax, dword [0x1002a00c]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [0x1002a008]
add edx, 0xd
push edx
call fcn.1001123a
add esp, 0x10
cmp byte [ebp - 0xdd], 0
jne 0x1001365e
push 0x100136b7
call fcn.100112df
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [section..data]
imul edx, edx, 0xf
mov eax, dword [0x1002a00c]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [0x1002a008]
add edx, 0xaf
push edx
call fcn.100114f1
add esp, 0x10
mov eax, dword [section..data]
add eax, 1
mov dword [section..data], eax
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.10011546
mov esp, ebp
pop ebp
ret
Function at 0x405d20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, ebp
cmc
add dword [eax], eax
add byte [ebp - 0x27a5040], al
add byte [eax], al
add byte [ebx + 0x4108dc12], al
add byte [edi + ecx], dl
mov edi, gs
add byte [eax], al
add byte [ecx + 0xcd2011], ah
movsd dword es:[edi], dword [esi]
ror byte [edi], 0x15
loope 0x405d4b
add byte [eax], al
mov dword [0x410384], 1
call dword [0xb040c05c]
mov esi, eax
movsd dword es:[edi], dword [esi]
div byte [eax + edx*2 - 0x5f]
pop eax
add eax, dword [ecx]
lcall 0x1068, 0x501d75c0
or al, 0x40
add byte [edx + 0x17], ch
call 0x9e410a40
sub dword [esi + 0x358a3d6], 0x50
add byte [ebp - 0x507bd240], al
push ecx
add byte [eax], al
lea ecx, [esi - 0xa9ae04]
ror byte [ebx + 0x5bf685f0], 1
sbb eax, 0x8bfc558b
inc ebp
or al, 0x52
push esi
push eax
call fcn.0040a67c
out 0x4d, al
or byte [ebx + 0x26560cc2], al
add edi, edi
adc eax, sym.imp.KERNEL32.dll_GlobalFree
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0xffffffffffffffd8
push 0xffffffffffffffff
push ebx
jmp dword [sym.imp.MSVCRT.dll___p__environ]

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
adc dword [ebx - 0x7b], 0xfffffff6
jl 0x407f03
mov dword [ebp + 0x10], 0xcd4e
fst st(2)
or ah, bl
sbb eax, 0x40c25c
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
and byte [esi - 0x5f], dl
imul byte [edi + 0x7589e0df]
fimul word [ecx + 0x5c4f631]
pop esp
ret 0x40
mov edi, ebx
xor cl, byte [esi]
fld qword [ebp - 0x5d]
inc eax
loopne 0x407f08
pop ebp
or bh, al
add dword [ecx], eax
add al, 0x36
add byte [ebx + 0x558bd34d], cl
or byte [ebp + 0x2145ecdc], cl
fcos
adc eax, sym.imp.MSVCRT.dll_modf
pop ds
pop ebp
or byte [edi - 0x3c], dh
in al, dx
fcomp qword [0x40c204]
add esp, 0xc
mov ah, 0xe0
test ah, 0x44
jnp 0x407fcd
lea ebx, [eax - 0x700cc4b0]
pop eax
fld qword [ebp - 0x14]
sbb eax, 0x40c230
invalid
fld qword [ebp - 1]
fcomp qword [0x408530]
sub eax, 0x41003ce0
add byte [eax], al
jne 0x40801d
dec ebp
inc ebp
or byte [edx], dl
or eax, 0xf54020f8
fisttp qword [edx - 0x67]
fld st(0)
scasd eax, dword es:[edi]
sbb eax, 0x40ae28
fnstsw ax
jle 0x40801f
add eax, 0x55dd217a
or ah, bl
or eax, 0x27b5adf8
adc byte [edx], ah
rcr ah, 0x26
sub dl, al
inc eax
add bh, bl
loopne 0x408005
les eax, [0x5ddde77b]
hlt
rcl byte [eax + edx]
lea esi, [eax + ebx]
mov eax, dword [ebp + 0x1c]
and al, al
jne 0x40802d
adc byte [ebp + 0x458b1834], cl
sbb al, 0x22
sal byte [ebp + 3], 3
dec esi
cld
add ecx, dword [esi - 4]
mov ecx, dword [ebp + 0x14]
mov bh, 0x73
adc ecx, dword [ebx - 0x8d9efbb]
fdiv dword [esi]
add esi, eax
hlt
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2e4c6638
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x57514b3d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219