joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402660
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00402600
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x423018]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4026ab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.XDriverGetStatus_OpenService___Faild__d____n
call fcn.00402340
add esp, 8
jmp 0x4026d4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
push str.XDriverGetStatus__s___d_____n
call fcn.00402340
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4026e4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4026f0
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00402600
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x423018]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4027d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3e5
je 0x402782
cmp dword [ebp - 4], 0x431
je 0x402782
mov eax, dword [ebp - 4]
push eax
push str.InstallDriver_CrateService___Faild__d____n
call fcn.00402340
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x402860
push str.InstallDriver_CrateService___Faild_Service_is_ERROR_IO_PENDING_or_ERROR_SERVICE_EXISTS___n
call fcn.00402340
add esp, 4
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x423018]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4027d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push str.InstallDriver_OpenService___Faild__d____n
call fcn.00402340
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x402860
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402859
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e5
je 0x402822
cmp dword [ebp - 0x10], 0x420
je 0x402822
mov edx, dword [ebp - 0x10]
push edx
push str.InstallDriver_StartService___Faild__d____n
call fcn.00402340
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x402860
cmp dword [ebp - 0x10], 0x3e5
jne 0x402843
push str.InstallDriver_StartService___Faild_ERROR_IO_PENDING____n
call fcn.00402340
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x402860
push str.InstallDriver_StartService___ERROR_SERVICE_ALREADY_RUNNING____n
call fcn.00402340
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x402860
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x402870
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402bb0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
push 0
push 0
push str.TrikIE_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402c46
mov dword [ebp - 0xc], 0x1388
push 4
lea eax, [ebp - 0xc]
push eax
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [ebp - 0xc]
push edx
push 6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0x4000000
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402c37
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x402c4b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x402c4b
mov eax, 0xffffff9b
mov esp, ebp
pop ebp
ret

Function at 0x402cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402d39
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x402d40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41f284]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x402dce
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402db6
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00402d40
add esp, 8
jmp 0x402d85
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e98e
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x423020], 0
je 0x402e46
mov eax, 1
jmp 0x402ee7
cmp dword [0x423020], 0
jne 0x402e5e
push 0x14
call fcn.00401750
add esp, 4
mov dword [0x423020], eax
cmp dword [0x42302c], 0
jne 0x402e79
push 0x105
call fcn.00401750
add esp, 4
mov dword [0x42302c], eax
push 0
mov eax, dword [0x42302c]
mov ecx, dword [eax]
push ecx
mov edx, dword [0x42302c]
mov eax, dword [edx + 8]
push eax
call fcn.00414c40
add esp, 0xc
mov ecx, dword [0x42302c]
mov edx, dword [ecx]
sub edx, 1
push edx
mov eax, dword [0x42302c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov edx, dword [0x42302c]
mov eax, dword [edx + 8]
push eax
call fcn.004024a0
add esp, 4
push eax
mov ecx, dword [0x423020]
push ecx
call fcn.00401960
add esp, 8
mov edx, dword [0x423020]
cmp dword [edx + 4], 0
jle 0x402ee5
mov eax, 1
jmp 0x402ee7
xor eax, eax
pop ebp
ret

Function at 0x402ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x41f284]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fe7
mov ecx, dword [ebp + 8]
push ecx
push str._sConnection
lea edx, [ebp - 0x120]
push edx
call fcn.0040e99d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fdd
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.PnpInstanceID
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402fd3
push 3
push 0x421f18
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040fc03
add esp, 0xc
test eax, eax
jne 0x402fd3
mov dword [ebp - 0x124], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e98e
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x41f284]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031de
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc], 0
jmp 0x40309b
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x20]
jge 0x4031d4
mov dword [ebp - 0x134], 0x104
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea edx, [ebp - 0x12f]
push edx
call fcn.00414c40
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031cf
mov byte [ebp - 0x240], 0
push 0x104
push 0
lea ecx, [ebp - 0x23f]
push ecx
call fcn.00414c40
add esp, 0xc
mov dword [ebp - 0x10], 0x104
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.NetCfgInstanceId
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031c5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.0040ebd0
add esp, 8
test eax, eax
je 0x4031c5
mov dword [ebp - 0x244], 4
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.Characteristics
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x4031c3
mov eax, dword [ebp - 0x248]
and eax, 4
je 0x4031c3
mov dword [ebp - 0x18], 1
jmp 0x4031d4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403092
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0040e98e
mov esp, ebp
pop ebp
ret
Function at 0x4035c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4035db
xor eax, eax
jmp 0x403663
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x4035f6
mov dword [ebp - 0x14], 0x400000
jmp 0x4035fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x403653
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403663
cmp dword [ebp - 0x10], 0
jne 0x40365b
jmp 0x403661
cmp dword [ebp - 4], 0
ja 0x4035e4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40368b
xor eax, eax
jmp 0x403713
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x4036a6
mov dword [ebp - 0x14], 0x400000
jmp 0x4036ac
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x403703
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403713
cmp dword [ebp - 0x10], 0
jne 0x40370b
jmp 0x403711
cmp dword [ebp - 4], 0
ja 0x403694
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403720
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403754
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403754
mov eax, dword [ebp - 0xc]
jmp 0x403773
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.0041b740
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403bb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403b70
add esp, 4
mov dword [ebp - 4], 0
jmp 0x403bf2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x403c45
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x403c13
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x403c36
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
sub edx, 1
not edx
and edx, 0xedb88320
xor ecx, edx
mov dword [ebp - 8], ecx
jmp 0x403c0a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x6c], edx
jmp 0x403be9
mov esp, ebp
pop ebp
ret

Function at 0x408a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 0x10]
or eax, 0x100
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x10]
shr edx, 7
and edx, 1
push edx
mov eax, dword [ebp + 0x14]
and eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
add eax, ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*2]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408920
add esp, 0xc
mov edx, dword [ebp + 0x10]
shl edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x14]
xor eax, dword [ebp + 0x10]
not eax
and eax, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x10000
jb 0x408a36
mov esp, ebp
pop ebp
ret

Function at 0x408b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
shl edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x408b56
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x100
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
shr eax, 8
add edx, eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp + 0xc]
shr eax, 7
and eax, 1
neg eax
and eax, 0x7ff
xor edx, eax
sar edx, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, dword [ecx + edx*4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor edx, dword [ebp + 0xc]
not edx
and edx, dword [ebp - 8]
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x408bbf
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
xor edx, 0x7ff
sar edx, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
sar eax, 4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
xor ecx, 0x7ff
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x408fdb
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 8
jae 0x40901c
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jb 0x408fee
jmp 0x4090ab
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 3
mov edx, dword [ebp + 0xc]
shl edx, 3
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2 + 4]
push ecx
call fcn.00408d00
add esp, 0x10
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x408fd2
jmp 0x409027
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x10
jae 0x40906b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x409037
jmp 0x4090ab
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
sub edx, 8
push edx
push 3
mov eax, dword [ebp + 0xc]
shl eax, 3
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2 + 0x104]
push edx
call fcn.00408d00
add esp, 0x10
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + ecx*4], eax
jmp 0x40901e
jmp 0x409076
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x4090ab
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
sub eax, 0x10
push eax
push 8
mov ecx, dword [ebp + 8]
add ecx, 0x204
push ecx
call fcn.00408d00
add esp, 0x10
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x40906d
mov esp, ebp
pop ebp
ret
Function at 0x40e98e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f284]
jne 0x40e998
repz ret
jmp fcn.0041027f

Function at 0x4174a5
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.00413c2d
and dword [ebp - 4], 0
cmp dword [0x422ed8], 0
mov ebx, eax
jne 0x417556
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417607
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417607
push eax
call fcn.00413bbb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422ed8], eax
call esi
push eax
call fcn.00413bbb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422edc], eax
call esi
push eax
call fcn.00413bbb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x422ee0], eax
call esi
push eax
call fcn.00413bbb
pop ecx
mov dword [0x422ee8], eax
test eax, eax
je 0x417556
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413bbb
pop ecx
mov dword [0x422ee4], eax
mov eax, dword [0x422ee4]
cmp eax, ebx
je 0x4175ae
cmp dword [0x422ee8], ebx
je 0x4175ae
push eax
call fcn.00413c36
push dword [0x422ee8]
mov esi, eax
call fcn.00413c36
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4175ae
test edi, edi
je 0x4175ae
call esi
test eax, eax
je 0x4175a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4175a5
test byte [ebp - 0xc], 1
jne 0x4175ae
or dword [ebp + 0x10], 0x200000
jmp 0x4175e7
mov eax, dword [0x422edc]
cmp eax, ebx
je 0x4175e7
push eax
call fcn.00413c36
pop ecx
test eax, eax
je 0x4175e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4175e7
mov eax, dword [0x422ee0]
cmp eax, ebx
je 0x4175e7
push eax
call fcn.00413c36
pop ecx
test eax, eax
je 0x4175e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422ed8]
call fcn.00413c36
pop ecx
test eax, eax
je 0x417607
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417609
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret