joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
xor edi, edi
push ebp
mov dword [esp + 0x1c], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1002866c
push eax
push eax
push edi
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1002866c
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebp
ret 8

Function at 0x100289e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1003a0db
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.10037c50
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x2028], eax
push ebx
push esi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x2038]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetControlhivelist
xor esi, esi
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x10028a4a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x10028afd
push 0x1ffe
lea ecx, [esp + 0x3a]
push esi
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x40], si
call fcn.1002fb20
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push str._registryuser_s_1_5_19
push edx
mov dword [esp + 0x2c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x10028aa8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10028afd
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], 1
jne 0x10028a43
lea edx, [esp + 0x34]
lea eax, [esp + 0x18]
call fcn.10002c20
lea eax, [esp + 0x18]
mov dword [esp + 0x2040], esi
call fcn.10019da0
mov ebx, 0xf
lea eax, [esp + 0x18]
call fcn.1001a590
test eax, eax
lea esi, [esp + 0x18]
je 0x10028af6
call fcn.10003e00
xor al, al
jmp 0x10028afd
call fcn.10003e00
mov al, 1
mov ecx, dword [esp + 0x2038]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.1002b6af
add esp, 0x2038
ret
Function at 0x10028b30
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1010
call fcn.10037c50
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x101c]
mov ebx, eax
lea eax, [esp + 0x1020]
push eax
push ecx
call fcn.1002da27
add eax, 1
add esp, 8
cmp eax, 0x1000
jg 0x10028bde
mov eax, dword [esp + 0x101c]
lea edx, [esp + 0x1020]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1002d9bb
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x10028bde
cmp byte [esi + 5], 0
je 0x10028ba8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 7], 0
je 0x10028bba
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10028ed0
cmp byte [esi + 4], 0
je 0x10028bde
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1014]
pop edi
pop ebx
xor ecx, esp
call fcn.1002b6af
add esp, 0x1010
ret

Function at 0x10028c00
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x200c
call fcn.10037c50
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x2008], eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x201c]
mov ebp, eax
lea eax, [esp + 0x2020]
push eax
push ecx
call fcn.1002b76c
add eax, 1
add esp, 8
cmp eax, 0x1000
jg 0x10028cad
mov eax, dword [esp + 0x201c]
lea edx, [esp + 0x2020]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1002b755
mov ebx, eax
add esp, 0xc
test ebx, ebx
jl 0x10028cad
cmp byte [esi + 5], 0
je 0x10028c79
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [esi + 7], 0
je 0x10028c89
push esi
lea edi, [esp + 0x14]
call fcn.10029170
cmp byte [esi + 4], 0
je 0x10028cad
mov edx, dword [esi]
push 0
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x2014]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b6af
add esp, 0x200c
ret
Function at 0x10028dd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1003a05b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0x3fe
lea eax, [esp + 0x32]
push 0
push eax
mov edi, ecx
mov word [esp + 0x38], 0
call fcn.1002fb20
add esp, 0xc
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10028e40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov esi, edi
call fcn.100031f0
push 1
mov ebx, edi
call fcn.10027b20
cmp eax, 0xffffffff
jne 0x10028e71
call fcn.100286f0
jmp 0x10028ea8
lea ecx, [eax + 1]
push edi
lea esi, [esp + 0x14]
call fcn.10016b90
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x440], 0
call fcn.10003860
cmp dword [esp + 0x28], 8
jb 0x10028ea8
mov eax, dword [esp + 0x14]
push eax
call fcn.1002b322
add esp, 4
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.1002b6af
add esp, 0x42c
ret
Function at 0x100292d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x2d0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edi
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x98
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.1002fb20
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10029374
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0x1ff
lea ecx, [esp + 0xd5]
push 0
push ecx
mov byte [esp + 0xdc], 0
call fcn.1002fb20
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push str.Version___d._d._d_r_n
mov ecx, 0x200
lea edi, [esp + 0xec]
call fcn.10004080
add esp, 0x1c
mov edi, esi
call fcn.10016af0
push 0xe
push str._SystemInfo__r_n
mov ecx, esi
call fcn.10002fc0
lea eax, [esp + 0xd0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100293d7
sub eax, edx
push eax
lea edx, [esp + 0xd4]
push edx
mov eax, esi
call fcn.10015ee0
cmp dword [esp + 8], 0
push 0x14
mov eax, esi
je 0x10029404
push str.SystemType__64Bit_r_n
jmp 0x10029409
push str.SystemType__32Bit_r_n
call fcn.10015ee0
push 0x200
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.1002fb20
mov ecx, dword [esp + 0x2c]
push ecx
push str.NumberOfProcessors:___d_r_n
mov ecx, 0x200
lea edi, [esp + 0xe4]
call fcn.10004080
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10029445
sub eax, edx
push eax
lea edx, [esp + 0xd4]
push edx
mov eax, esi
call fcn.10015ee0
push 4
push str._r_n_r_n
mov eax, esi
call fcn.10015ee0
mov ecx, dword [esp + 0x2d4]
pop edi
xor ecx, esp
call fcn.1002b6af
add esp, 0x2d8
ret
Function at 0x1002b6af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10043330]
jne 0x1002b6b9
repz ret
jmp fcn.1002ef08

Function at 0x100332c5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10043ac8]
je 0x100332e0
inc edi
cmp edi, 0x17
jb 0x100332d1
cmp edi, 0x17
jae 0x10033460
push ebp
push 3
call fcn.100378ed
cmp eax, 1
pop ecx
je 0x1003342c
push 3
call fcn.100378ed
test eax, eax
pop ecx
jne 0x10033314
cmp dword [0x1004416c], 1
je 0x1003342c
cmp ebx, 0xfc
je 0x1003345f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10044708
push ebp
call fcn.1002e454
add esp, 0xc
test eax, eax
je 0x1003334a
push esi
push esi
push esi
push esi
push esi
call fcn.1002b808
add esp, 0x14
push 0x104
mov esi, 0x10044721
push esi
push 0
mov byte [0x10044825], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003338e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1002e454
add esp, 0xc
test eax, eax
je 0x1003338e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1002b808
add esp, 0x14
push esi
call fcn.1002db60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100333d3
push esi
call fcn.1002db60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10044a1c
push 0x1003cbf4
sub ecx, eax
push ecx
push eax
call fcn.1003551a
add esp, 0x14
test eax, eax
je 0x100333d3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1002b808
add esp, 0x14
jmp 0x100333d5
xor esi, esi
push 0x1003cbf0
push ebx
push ebp
call fcn.10037626
add esp, 0xc
test eax, eax
je 0x100333f5
push esi
push esi
push esi
push esi
push esi
call fcn.1002b808
add esp, 0x14
push dword [edi*8 + 0x10043acc]
push ebx
push ebp
call fcn.10037626
add esp, 0xc
test eax, eax
je 0x10033417
push esi
push esi
push esi
push esi
push esi
call fcn.1002b808
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10037730
add esp, 0xc
jmp 0x1003345f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1003345f
cmp ebp, 0xffffffff
je 0x1003345f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10043acc]
push dword [esi]
call fcn.1002db60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10037730
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1002fc74
xor ebx, ebx
cmp dword [0x10044bf0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10037806
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100378e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100378e6
push eax
call fcn.1002fc06
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10044bf0], eax
call esi
push eax
call fcn.1002fc06
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10044bf4], eax
call esi
push eax
call fcn.1002fc06
mov dword [0x10044bf8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100308be
test eax, eax
pop ecx
pop ecx
je 0x100377d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002b808
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10037806
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1002fc06
cmp eax, ebx
pop ecx
mov dword [0x10044c00], eax
je 0x10037806
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002fc06
pop ecx
mov dword [0x10044bfc], eax
mov eax, dword [0x10044bfc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1003788b
cmp dword [0x10044c00], ecx
je 0x1003788b
push eax
call fcn.1002fc7d
push dword [0x10044c00]
mov esi, eax
call fcn.1002fc7d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1003788b
cmp edi, ebx
je 0x1003788b
call esi
cmp eax, ebx
je 0x10037858
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10037858
test byte [ebp - 0x18], 1
jne 0x1003788b
lea eax, [ebp - 0x10]
push eax
call fcn.100308f5
test eax, eax
pop ecx
je 0x10037873
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002b808
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10037882
or dword [ebp + 0x10], 0x200000
jmp 0x100378c6
or dword [ebp + 0x10], 0x40000
jmp 0x100378c6
mov eax, dword [0x10044bf4]
cmp eax, dword [ebp - 8]
je 0x100378c6
push eax
call fcn.1002fc7d
cmp eax, ebx
pop ecx
je 0x100378c6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100378c6
mov eax, dword [0x10044bf8]
cmp eax, dword [ebp - 8]
je 0x100378c6
push eax
call fcn.1002fc7d
cmp eax, ebx
pop ecx
je 0x100378c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10044bf0]
call fcn.1002fc7d
cmp eax, ebx
pop ecx
je 0x100378e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100378e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x4a4264]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416c70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49060b
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.00484f41
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x416cf2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048285d
mov eax, dword [eax]
push 0x4b1cf4
push eax
call fcn.00475164
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004851cc
test bl, bl
je 0x416cf2
push 0x4b1cf4
lea ecx, [esp + 0xc]
call fcn.0048555c
push 0x4b1d00
lea ecx, [esp + 0xc]
call fcn.0048555c
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 0x416d2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004851cc
jmp 0x416df9
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 0x416db2
lea edx, [esp + 0x7c]
push 0x4b1cfc
push edx
call fcn.00475164
add esp, 8
test eax, eax
je 0x416db2
lea eax, [esp + 0x7c]
push 0x4b1cf8
push eax
call fcn.00475164
add esp, 8
test eax, eax
je 0x416db2
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 0x416d42
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.004851cc
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 0x4175f0
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 0x417652
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 0x417660
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49068b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bb9c4]
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 0x417798
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4176c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004851cc
xor eax, eax
jmp 0x41780f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00485309
push esi
lea ecx, [esp + 0xc]
call fcn.00485598
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 0x4177ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004175f0
test eax, eax
jne 0x4177ed
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 closesocket
mov ecx, edi
call fcn.004175f0
test eax, eax
jne 0x4177ed
lea eax, [esp + 0x14]
push 0x4b1d10
push eax
call fcn.004761e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4177cc
lea ecx, [esp + 0x14]
push 0x4b1d0c
push ecx
call fcn.00476160
mov esi, eax
add esp, 8
test esi, esi
jne 0x4177cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4177cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004852b9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4176de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004851cc
xor eax, eax
jmp 0x41780f
mov byte [esi], 0
push 0x4b1d08
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.004851cc
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 0x429340
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 0x4293ae
cmp si, 0x69
ja 0x4293ae
add esi, 0xffd0
cmp si, 0x11
je 0x42937e
push 0x11
call edi
test ax, ax
jge 0x42937e
or esi, 0x2000
cmp si, 0x10
je 0x429393
push 0x10
call edi
test ax, ax
jge 0x429393
or esi, 0x4000
cmp si, 0x12
je 0x4293a8
push 0x12
call edi
test ax, ax
jge 0x4293a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4293bb
mov esi, 0xbd
jmp 0x42936f
cmp si, 0x6e
jne 0x4293c8
mov esi, 0xbe
jmp 0x42936f
cmp si, 0x6f
jne 0x429369
mov esi, 0xbf
jmp 0x42936f

Function at 0x42acc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cc1d8]
xor edx, edx
cmp eax, edx
jne 0x42ace6
xor eax, eax
mov byte [eax + 0x4cc0d8], al
inc eax
cmp eax, 0x100
jl 0x42acce
mov dword [0x4cc1d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cc0d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42ad77
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 0x42ad4a
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 0x42ad18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42adf0
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 0x42ae43
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 0x42ae2a
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