joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527724
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x164]
mov edx, dword [0x408888]
call fcn.004057ec
xor eax, eax
push ebp
push 0x527871
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebp - 4], 0
je 0x527852
mov eax, dword [ebx + 0x414]
cmp byte [eax + 0x210], 0
je 0x527852
xor esi, esi
mov eax, dword [ebx + 0x418]
cmp byte [eax + 0x210], 0
je 0x5277b2
lea ecx, [ebp - 0x164]
mov edx, 0x3f
mov eax, edi
call fcn.0040a214
test eax, eax
jne 0x5277a2
mov esi, dword [ebp - 0x164]
lea eax, [ebp - 0x164]
call fcn.0040a288
jmp 0x52784c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52784c
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x527846
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x527840
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jns 0x527812
add edx, 3
sar edx, 2
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x80
jle 0x527828
mov dword [ebp - 0xc], 0x80
mov edx, dword [ebp - 0xc]
test edx, edx
jbe 0x527837
add esi, dword [eax]
add eax, 4
dec edx
jne 0x52782f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
and esi, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527878
lea eax, [ebp - 0x164]
mov edx, dword [0x408888]
call fcn.004058bc
ret

Function at 0x528584
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x528655
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x52860e
dec ecx
jne 0x528650
cmp eax, 4
jg 0x5285c4
mov eax, 4
jmp 0x528658
cmp eax, 5
jne 0x5285d7
test edx, edx
jne 0x5285d7
mov eax, 5
jmp 0x528658
cmp eax, 5
jne 0x5285e8
cmp edx, 1
jne 0x5285e8
mov eax, 6
jmp 0x528658
cmp eax, 5
jne 0x5285f9
cmp edx, 2
jne 0x5285f9
mov eax, 7
jmp 0x528658
cmp eax, 6
jne 0x528609
test edx, edx
jne 0x528609
mov eax, 8
jmp 0x528658
or eax, 0xffffffff
jmp 0x528658
cmp eax, 4
jne 0x52861b
test edx, edx
jne 0x52861b
xor eax, eax
jmp 0x528658
cmp eax, 4
jne 0x52863a
cmp edx, 0xa
jne 0x52863a
cmp byte [esp + 0x15], 0x41
jne 0x528633
mov eax, 2
jmp 0x528658
mov eax, 1
jmp 0x528658
cmp eax, 4
jne 0x52864b
cmp edx, 0x5a
jne 0x52864b
mov eax, 3
jmp 0x528658
or eax, 0xffffffff
jmp 0x528658
or eax, 0xffffffff
jmp 0x528658
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x52c988
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405254
lea ebx, [ebp - 0x24]
xor eax, eax
push ebp
push 0x52ca69
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.00403400
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x41
mov word [ebp - 0x38], si
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x52ca51
jmp 0x52ca13
cmp dword [ebx + 4], 0x12
jne 0x52ca07
mov eax, dword [ebx + 8]
call fcn.00404d18
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x52c9f9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
je 0x52ca13
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
jmp 0x52ca53
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ca70
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x52ec04
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffafc
push ebx
xor ecx, ecx
mov dword [ebp - 0x504], ecx
mov dword [ebp - 0x3f8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x52eccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3f4], 0x104
mov eax, dword [0x5396c4]
cmp dword [eax], 2
je 0x52ec66
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x4fd]
push eax
call sub.advapi32.dll_GetUserNameA
lea edx, [ebp - 0x3f8]
lea eax, [ebp - 0x4fd]
call fcn.0040aa2c
jmp 0x52ec87
push ebp
lea eax, [ebp - 0x3f8]
call fcn.0052e618
pop ecx
cmp dword [ebp - 0x3f8], 0
jne 0x52ec87
lea eax, [ebp - 0x3f8]
call fcn.0052e8e0
push ebp
lea edx, [ebp - 0x504]
mov eax, dword [ebp - 0x3f8]
call fcn.0052e3c0
pop ecx
mov edx, dword [ebp - 0x504]
mov eax, ebx
call fcn.00404e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ecd2
lea eax, [ebp - 0x504]
call fcn.00404db4
lea eax, [ebp - 0x3f8]
call fcn.00404db4
ret
Function at 0x415253
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41525e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x41a712
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x46159c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x104]
mov dword [ebp - 0x60], 0x800
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a804
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41a7fb
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.0043adb2
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.cdgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a7f3
cmp dword [ebp - 0x58], 1
jne 0x41a7f3
push dword [esi + 0x100]
call fcn.0043adad
and dword [esi + 0x100], 0
push edi
call fcn.00439eb0
inc eax
push eax
call fcn.0043adb2
push edi
push eax
mov dword [esi + 0x100], eax
call fcn.00439f50
add esp, 0x14
push edi
call fcn.0043adad
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x100]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.00439e9c
add ebp, 0x7b8
leave
ret
Function at 0x41a956
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44c411
call fcn.0043a704
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esi], 0x452278
mov dword [esi + 0x94], ebx
mov dword [esi + 0x108], ebx
call fcn.00439f3b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x41a988
call fcn.004200eb
jmp 0x41a98a
xor eax, eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x98]
push 0x44e5c8
push eax
mov dword [esi + 0x100], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x28], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x38], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.00439f50
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x421d40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48860b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047cb7a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x421dc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047a1fd
mov eax, dword [eax]
push 0x4dacf4
push eax
call fcn.0046c4c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047ce05
test bl, bl
je 0x421dc2
push 0x4dacf4
lea ecx, [esp + 0xc]
call fcn.0047d195
push 0x4dad00
lea ecx, [esp + 0xc]
call fcn.0047d195
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x421dfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047ce05
jmp 0x421ec9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x421e82
lea edx, [esp + 0x7c]
push 0x4dacfc
push edx
call fcn.0046c4c4
add esp, 8
test eax, eax
je 0x421e82
lea eax, [esp + 0x7c]
push 0x4dacf8
push eax
call fcn.0046c4c4
add esp, 8
test eax, eax
je 0x421e82
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421e12
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047ce05
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4226d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x422732
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x422740
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48868b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e174c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x422878
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4227a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ce05
xor eax, eax
jmp 0x4228ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047cf42
push esi
lea ecx, [esp + 0xc]
call fcn.0047d1d1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4228cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004226d0
test eax, eax
jne 0x4228cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004226d0
test eax, eax
jne 0x4228cd
lea eax, [esp + 0x14]
push 0x4dad10
push eax
call fcn.0046d5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4228ac
lea ecx, [esp + 0x14]
push 0x4dad0c
push ecx
call fcn.0046d550
mov esi, eax
add esp, 8
test esi, esi
jne 0x4228ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4228af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047cef2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4227be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ce05
xor eax, eax
jmp 0x4228ef
mov byte [esi], 0
push 0x4dad08
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0047ce05
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4341b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x43421e
cmp si, 0x69
ja 0x43421e
add esi, 0xffd0
cmp si, 0x11
je 0x4341ee
push 0x11
call edi
test ax, ax
jge 0x4341ee
or esi, 0x2000
cmp si, 0x10
je 0x434203
push 0x10
call edi
test ax, ax
jge 0x434203
or esi, 0x4000
cmp si, 0x12
je 0x434218
push 0x12
call edi
test ax, ax
jge 0x434218
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43422b
mov esi, 0xbd
jmp 0x4341df
cmp si, 0x6e
jne 0x434238
mov esi, 0xbe
jmp 0x4341df
cmp si, 0x6f
jne 0x4341d9
mov esi, 0xbf
jmp 0x4341df

Function at 0x435dc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f2a38]
xor edx, edx
cmp eax, edx
jne 0x435de6
xor eax, eax
mov byte [eax + 0x4f2938], al
inc eax
cmp eax, 0x100
jl 0x435dce
mov dword [0x4f2a38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f2938
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x435e77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x435e4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x435e18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x435ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x435f43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x435f2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cbd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x43cd68
cmp ebp, ebx
jle 0x43cd68
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x43cc2e
dec eax
or eax, 0xfffffff8
inc eax
je 0x43cc35
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x43cc44
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x43cc4b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0047cb46
add esp, 4
cmp eax, ebx
je 0x43cc6c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0047cb46
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x43cd5e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x43cd45
mov al, byte [edx]
cmp al, 0xc0
jbe 0x43cd31
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x43cd26
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x43cd34
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x43cd34
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x43ccd0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x43ccc1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x43fd90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x489e68
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x43fdc9
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00484523
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0048456f
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0043fe50
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004845ac
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24