joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450a08
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450bb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450b94
mov dl, 1
mov eax, dword [0x41262c]
call fcn.00403288
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040408c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450b83
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ea3c
test al, al
je 0x450b76
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450bc4
lea eax, [ebp - 0x254]
call fcn.00408c50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450b76
xor eax, eax
push ebp
push 0x450b6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450bfc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450b58
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450b58
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b76
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450a79
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416a48
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450bba
lea eax, [ebp - 0x260]
call fcn.0040408c
ret

Function at 0x4514e8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x459be4]
cmp byte [eax + 0xa5], 0
jne 0x451559
cmp dword [0x459bfc], 0
jne 0x45151a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4514a4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x459bfc], eax
cmp dword [0x459bf8], 0
jne 0x451535
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x459bf8], eax
cmp dword [0x459c00], 0
jne 0x451559
push esp
push 0
push 0
push 0x451448
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x459c00], eax
pop edx
ret
Function at 0x451650
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451667
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041adcc
mov eax, dword [0x45801c]
cmp word [eax + 2], 0
jne 0x45168f
mov eax, dword [0x45801c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452c3c
mov eax, dword [0x4580e4]
cmp word [eax + 2], 0
jne 0x4516a9
mov eax, dword [0x4580e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452e34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412084]
call fcn.00403288
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412084]
call fcn.00403288
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41da00]
call fcn.00424d78
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451830
mov eax, dword [0x457f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425148
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4533d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x457f38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c420
test eax, eax
je 0x45179e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408618
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c448
test eax, eax
je 0x4517b2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
mov eax, dword [0x457e1c]
cmp byte [eax], 0
jne 0x4517e6
mov eax, ebx
call fcn.00451958
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004535b0
mov eax, ebx
call fcn.00453f74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451826
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451bd8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459be4]
cmp dword [eax + 0x30], 0
je 0x451c82
cmp dword [ebx + 0x94], 0
jne 0x451c7c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451b68
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451c7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451c42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451c7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414710
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451c51
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4527e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452819
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040417c
jmp 0x452826
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45378c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4537cd
mov eax, esi
call fcn.0043a0fc
test al, al
je 0x4537cd
mov eax, dword [ebx + 0x84]
call fcn.00439e24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4537cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439e24
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454ab8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040453c
xor eax, eax
push ebp
push 0x454b36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040454c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x454b01
mov eax, dword [ebx + 4]
call fcn.0040454c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b3d
lea eax, [ebp - 4]
call fcn.0040408c
ret
Function at 0x455b38
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455cd5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402a54
cmp word [ebx + 0xa2], 0
je 0x455b81
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x455b95
lea esi, [ebp - 8]
jmp 0x455b97
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x455ba4
xor edi, edi
jmp 0x455bb1
mov eax, dword [ebx + 0x80]
call fcn.0040454c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040454c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00455270
mov eax, dword [ebp - 0x14]
call fcn.0040454c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040454c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040454c
push eax
mov eax, ebx
call fcn.004553a4
push eax
mov eax, ebx
call fcn.00455378
push eax
mov eax, ebx
call fcn.0045532c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0045513c
mov eax, dword [ebp - 0x18]
call fcn.0040454c
push eax
mov eax, dword [ebx + 8]
call fcn.0040454c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x455c3a
call fcn.0040ccac
xor edx, edx
push ebp
push 0x455cb3
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x455c78
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x455c6e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455c9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455cba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x455ce4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x455d10
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040454c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x455d35
call fcn.0040ccac
xor eax, eax
push ebp
push 0x455d6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x455d55
call fcn.0040ccac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455d73
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x405928
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x405938
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0x420d10
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40598c
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40595d
mov eax, 0x4175e4
mov ecx, dword [esp + 0x10]
push esi
push 1
add eax, ecx
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x405985
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40598f
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
ret 0x10

Function at 0x406db1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x26]
push dword [ebp + 0x10]
mov word [ebp - 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push 0x420dc8
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x406e3e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x406e3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x406e3e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x406e3e
push dword [0x4175e0]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.004046ae
mov ecx, dword [ebp + 0x14]
push esi
push edi
call fcn.004049db
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40ab19
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x415fd8
call fcn.00412f30
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov bl, 1
mov byte [ebp - 0x20], al
call fcn.0040366c
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x3fc
mov ecx, esi
call fcn.0040a8e1
mov ecx, esi
call fcn.0040a3d2
mov esi, eax
test esi, esi
je 0x40aba7
mov edx, dword [ebp - 0x1c]
mov eax, 0x4175e4
test edx, edx
mov ecx, eax
je 0x40ab6d
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x4178ab]
jne 0x40ab9d
test edx, edx
je 0x40ab7d
mov eax, edx
mov ecx, dword [ebp - 0x18]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x40aba9
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.0040366c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40abc7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x415fec
call fcn.00412f30
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.0040366c
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
mov dword [ebp - 4], ebx
call fcn.0040a8e1
mov ecx, esi
call fcn.0040a7de
mov esi, eax
cmp esi, ebx
je 0x40ac35
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40ac15
mov eax, 0x4175e4
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.0040366c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f6a9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x40f736
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f6f6
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f718
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f7f4
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x40f75e
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40f769
xor eax, eax
jmp 0x40f7b5
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40f786
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00410749
jmp 0x40f796
cmp ecx, 2
jne 0x40f79f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00410bb7
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40f7e0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40f7f4
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f6b4
pop edi
pop ebx
leave
ret
Function at 0x4124af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00413300
push ebx
push esi
mov edx, 0x1ff
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100e]
mov word [ebp - 0x1010], bx
mov word [ebp - 0x810], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80e]
mov esi, 0x800
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1010]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea edi, [ebp - 0xe]
mov word [ebp - 0x10], bx
push 0xe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x10]
push 0x42016c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1010]
push 1
push eax
call fcn.0041449e
add esp, 0x30
test al, al
jne 0x412588
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041449e
pop ecx
test al, al
pop ecx
jne 0x412588
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0041449e
pop ecx
test al, al
pop ecx
jne 0x412588
inc al
jmp 0x41258a
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414025
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00413300
push ebx
push esi
push edi
call fcn.00413eb2
mov edx, 0x1ff
mov ebx, eax
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100a]
mov word [ebp - 0x100c], si
mov word [ebp - 0x80c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80a]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0xc], esi
push eax
push 0x421ac0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.00413fb5
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4140b8
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x416938
call fcn.00412f30
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x43a
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x4140fd
lea eax, [ebp - 0x1c]
push 0x41cc30
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea edi, [eax + eax]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x414136
lea eax, [ebp - 0x20]
push 0x41cc30
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x41415a
lea eax, [ebp - 0x24]
push 0x41cc30
push eax
mov dword [ebp - 0x24], esi
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x414186
lea eax, [ebp - 0x28]
push 0x41cc30
push eax
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x4141d7
lea eax, [ebp - 0x2c]
push 0x41cc30
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x4141c3
push 0x8000
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 8], esi
je 0x4141d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4141e7
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x100012d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10049399
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x30]
push esi
push edi
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll__vscprintf]
mov esi, eax
inc esi
push esi
call fcn.10016af0
mov edi, eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
push eax
push esi
push edi
call dword [sym.imp.MSVCR71.dll__vsnprintf]
add esp, 0x1c
push edi
lea ecx, [esp + 0xc]
mov byte [edi + esi - 1], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.10001200
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10002790
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
xor eax, eax
test ebx, ebx
je 0x100027d1
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100027d1
push esi
push edi
mov edi, str.255.255.255.255
mov esi, ebx
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x100027d1
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x100027cf
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ebx
ret
xor eax, eax
pop ebx
ret