joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x401c00
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [0x40408c]
push edi
push 0x10000
push 2
call esi
mov edi, dword [0x4040c8]
push eax
mov dword [0x4053c0], eax
call edi
push 0x8040
push 2
mov dword [0x4053bc], eax
call esi
push eax
mov dword [0x4053f8], eax
call edi
push 0x400
push 2
mov dword [0x4053e8], eax
call esi
push eax
mov dword [0x4053d8], eax
call edi
mov dword [0x4053c4], eax
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x401c6c
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x401c6e
shr ecx, 1
dec edx
jne 0x401c5d
mov edx, dword [0x4053c4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x401c58
ret

Function at 0x402ca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x402cb2
or eax, 0xffffffff
mov dword [section..data], eax
jmp 0x402ceb
mov edx, dword [esp + 8]
mov eax, dword [section..data]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x402ce5
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x4053c4]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x402cc5
pop edi
mov dword [section..data], eax
pop esi
not eax
ret 8
Function at 0x405f54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
sub edx, edx
mov dword [ebp - 0x10], edx
sub edx, edx
push ebp
push 0x405fba
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
nop
push 7
nop
pop ecx
call fcn.00404294
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fa4
sub ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fc1
lea eax, [ebp - 0x10]
call fcn.00404024
ret

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

Disassembly:
push ebx
mov ebx, eax
push ebx
pop eax
call fcn.004044e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408021
test al, 0x10
jne 0x408025
sub eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ac70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
push ecx
pop esi
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
or eax, eax
jle 0x40aca9
push eax
pop ecx
dec ecx
lea edx, [ebp - 0x100]
push ebx
pop eax
call fcn.00404114
jmp 0x40acb2
mov eax, ebx
push esi
pop edx
call fcn.00404078
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4

Function at 0x40acbc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
push edx
pop esi
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
or eax, eax
jle 0x40acdd
mov al, byte [esp]
jmp 0x40acdf
push ebx
pop eax
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c284
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
sub edx, edx
mov dword [ebp - 0xc], edx
sub edx, edx
push ebp
push 0x40c2e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
pushal
popal
push 7
pop ecx
call fcn.00404294
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
push eax
pop edx
pop eax
call fcn.00407c34
push eax
pop ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2ef
lea eax, [ebp - 0xc]
call fcn.00404024
ret

Function at 0x41bf9c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041bdf4
dec esi
jne 0x41bfbe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x43c994
Capabilities:
Get session user name

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
sub eax, eax
push ebp
push 0x43ca07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404024
mov dword [ebp - 8], 0x1e
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404670
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004044e4
push eax
call sub.advapi32.dll_GetUserNameA
or eax, eax
je 0x43c9f1
push ebx
mov ecx, dword [ebp - 8]
dec ecx
pushfd
xor edx, edx
inc edx
popfd
mov eax, dword [ebp - 4]
call fcn.00404544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca0e
lea eax, [ebp - 4]
call fcn.00404024
ret

Function at 0x43ca14
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044d4
sub eax, eax
push ebp
push 0x43cb29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404024
xor ecx, ecx
push ebp
push 0x43cb09
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x100
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 4]
call fcn.00408224
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43cafa
mov edx, dword [eax + 0xc]
or edx, edx
je 0x43cafa
mov esi, dword [edx]
or esi, esi
je 0x43cafa
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
sub eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
sub eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
lea edx, [ebp - 0x2b4]
push 3
pop ecx
pushal
popal
mov eax, 0x43cb40
call fcn.00408798
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43cb13
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cb30
lea eax, [ebp - 4]
call fcn.00404024
ret

Function at 0x43cdd0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
mov ebx, eax
mov edx, ebx
mov eax, 0x43ce70
call fcn.0043e5bc
sub edx, edx
push ebp
push 0x43ce54
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
or eax, eax
jne 0x43ce45
push 0x100
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
push eax
pop edx
push ebx
pop eax
call fcn.0040421c
call sub.wsock32.dll_WSACleanup
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43ce5e
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x43d7f0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
sub eax, eax
push ebp
push 0x43d8e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.004042e4
cmp eax, 2
jl 0x43d8ce
mov eax, ebx
call fcn.00408008
test al, al
je 0x43d8ce
lea ecx, [ebp - 8]
mov edx, 0x43d904
mov eax, ebx
call fcn.0043d768
sub eax, eax
push ebp
push 0x43d8c4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004044e4
push eax
pop esi
push esi
call sub.kernel32.dll_CreateFileA
push eax
pop ebx
cmp ebx, 0xffffffff
je 0x43d8ba
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004080b0
mov eax, dword [ebp - 0xc]
call fcn.004042e4
mov edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
call fcn.0040453c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_DeleteFileA
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43d8ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d8f0
lea eax, [ebp - 0xc]
pushal
popal
push 2
pop edx
call fcn.00404048
ret

Function at 0x43da14
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
push eax
pop ebx
xor eax, eax
push ebp
push 0x43daeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push ebx
pop eax
call fcn.004042e4
cmp eax, 2
jl 0x43dad5
sub eax, eax
push ebp
push 0x43dacb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
pop eax
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43dac1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004080b0
mov eax, dword [ebp - 8]
call fcn.004042e4
push eax
pop edi
inc edi
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
call fcn.0040453c
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
call fcn.004044e4
push eax
call sub.kernel32.dll_DeleteFileA
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43dad5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43daf2
lea eax, [ebp - 8]
call fcn.00404024
ret

Function at 0x43dbf8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
push eax
pop ebx
mov eax, ebx
call fcn.00404024
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x43dc26
mov edx, ebx
lea eax, [esp + 4]
call fcn.004082f4
add esp, 0x18
pop ebx
ret
Function at 0x401e4d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403ee1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov byte [ebp - 0x12c], 0x31
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov eax, 1
xor edx, edx
cpuid
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0x40517c
lea edx, [ebp - 0x120]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, 3
xor ecx, ecx
xor edx, edx
cpuid
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push str._08X_08X
lea edx, [ebp - 0x11c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x130]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00403956
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString
push 0x80
lea edx, [ebp - 0x8c]
push edx
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0x80
lea ecx, [ebp - 0x10c]
push ecx
push 0x405194
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x114]
push edx
push 0x405198
lea eax, [ebp - 0x124]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403956
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403956
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ccd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4684cb
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.0045d1bb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40cd52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b10a
mov eax, dword [eax]
push 0x5481f0
push eax
call fcn.0044dde4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d446
test bl, bl
je 0x40cd52
push 0x5481f0
lea ecx, [esp + 0xc]
call fcn.0045d7d6
push 0x54bd58
lea ecx, [esp + 0xc]
call fcn.0045d7d6
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 0x40cd8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d446
jmp 0x40ce59
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 0x40ce12
lea edx, [esp + 0x7c]
push 0x54bd54
push edx
call fcn.0044dde4
add esp, 8
test eax, eax
je 0x40ce12
lea eax, [esp + 0x7c]
push 0x54bd50
push eax
call fcn.0044dde4
add esp, 8
test eax, eax
je 0x40ce12
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 0x40cda2
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.0045d446
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 0x40d650
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 0x40d6b2
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 0x40d6c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46854b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5522e4]
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 0x40d7f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d446
xor eax, eax
jmp 0x40d86f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d583
push esi
lea ecx, [esp + 0xc]
call fcn.0045d812
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 0x40d84d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d650
test eax, eax
jne 0x40d84d
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.0040d650
test eax, eax
jne 0x40d84d
lea eax, [esp + 0x14]
push 0x54bd6c
push eax
call fcn.0044ee20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d82c
lea ecx, [esp + 0x14]
push 0x54bd68
push ecx
call fcn.0044eda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d82c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d82f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d533
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d73e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d446
xor eax, eax
jmp 0x40d86f
mov byte [esi], 0
push 0x54bd64
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.0045d446
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 0x41ddc0
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 0x41de2e
cmp si, 0x69
ja 0x41de2e
add esi, 0xffd0
cmp si, 0x11
je 0x41ddfe
push 0x11
call edi
test ax, ax
jge 0x41ddfe
or esi, 0x2000
cmp si, 0x10
je 0x41de13
push 0x10
call edi
test ax, ax
jge 0x41de13
or esi, 0x4000
cmp si, 0x12
je 0x41de28
push 0x12
call edi
test ax, ax
jge 0x41de28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41de3b
mov esi, 0xbd
jmp 0x41ddef
cmp si, 0x6e
jne 0x41de48
mov esi, 0xbe
jmp 0x41ddef
cmp si, 0x6f
jne 0x41dde9
mov esi, 0xbf
jmp 0x41ddef

Function at 0x41f570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5629a0]
xor edx, edx
cmp eax, edx
jne 0x41f596
xor eax, eax
mov byte [eax + 0x5628a0], al
inc eax
cmp eax, 0x100
jl 0x41f57e
mov dword [0x5629a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5628a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41f627
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 0x41f5fa
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 0x41f5c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41f6a0
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 0x41f6f3
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 0x41f6da
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 0x426130
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 0x4262c8
cmp ebp, ebx
jle 0x4262c8
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 0x42618e
dec eax
or eax, 0xfffffff8
inc eax
je 0x426195
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4261a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4261ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045d187
add esp, 4
cmp eax, ebx
je 0x4261cc
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.0045d187
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 0x4262be
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 0x4262a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x426291
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x426286
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 0x426294
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x426294
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x426230
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 0x426221
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