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

Disassembly:
push ebp
lea ebp, [esp - 0x1198]
mov eax, 0x1218
call fcn.0040e990
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp + 0x1194], eax
push edi
push 0x430b5c
push 0x430b8c
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push 0x1000
push eax
call fcn.0040f998
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406bfb
xor eax, eax
jmp 0x406c7f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xf8c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
je 0x406c30
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406bf4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], 1
jne 0x406bf4
mov eax, dword [esi + 4]
test eax, eax
je 0x406c4a
push eax
call fcn.0040ea5b
pop ecx
push edi
call fcn.0040eb62
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.004068d7
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x406c6d
push eax
call fcn.0040ea5b
pop ecx
lea eax, [ebp + 0xf8c]
push eax
call fcn.0040eb62
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp + 0x1194]
xor ecx, ebp
call fcn.0040e263
add ebp, 0x1198
leave
ret
Function at 0x406c94
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
xor ebx, ebx
push str.FORCED_FX_ROOT
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], 0x1fe
xor esi, esi
mov dword [ebp - 0x6c], ebx
call fcn.0040f22b
add esp, 0xc
cmp dword [ebp - 0x6c], ebx
je 0x406d22
cmp eax, ebx
jne 0x406d22
push 0x34
push 1
call fcn.0040e632
push str.2.0
mov esi, eax
call fcn.0040eb62
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.004068d7
push dword [ebp - 0x6c]
call fcn.0040eb62
mov dword [esi], eax
push dword [ebp - 0x6c]
call fcn.0040ea5b
add esp, 0x1c
jmp 0x406ddd
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x430bd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406d47
xor eax, eax
jmp 0x406ddf
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x406dc0
cmp dword [ebp - 0x78], ebx
je 0x406d7c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x78]
call fcn.00406b38
pop ecx
pop ecx
jmp 0x406d7f
xor eax, eax
inc eax
cmp eax, ebx
je 0x406dc0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004068d7
pop ecx
pop ecx
cmp esi, ebx
je 0x406dab
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040697b
pop ecx
pop ecx
test eax, eax
je 0x406dc0
jmp 0x406db8
push 0x34
push 1
call fcn.0040e632
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x3c]
call fcn.00406b99
inc dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x1fe
cmp dword [ebp - 0x80], ebx
je 0x406d48
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
mov ecx, dword [ebp + 0x1c4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e263
add ebp, 0x1c8
leave
ret
Function at 0x406e59
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1c], 0x10
call fcn.00407c5a
push 2
pop eax
push 0x430c00
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x406eb9
mov eax, edi
jmp 0x406f09
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
jne 0x406ed3
push esi
call fcn.00407cf9
pop ecx
jmp 0x406eb5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x406eca
push SysReAllocString
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
je 0x406eca
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp - 0x18]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e263
leave
ret

Function at 0x406fb1
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00407c5a
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x430c18
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x407011
mov eax, edi
jmp 0x40702d
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x40702b
push esi
call fcn.00407cf9
pop ecx
jmp 0x40700d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e263
leave
ret
Function at 0x407118
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esp + 8], 0
jne 0x407122
xor eax, eax
ret
mov eax, dword [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407129
sub eax, edx
sar eax, 1
push esi
lea esi, [eax + eax + 6]
lea eax, [esi + esi]
push edi
push eax
call fcn.0040ecc4
mov edi, eax
pop ecx
test edi, edi
je 0x407198
push dword [esp + 0x10]
push str._s_r_n
push esi
push edi
call fcn.00407eae
mov eax, edi
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407166
sub eax, ecx
sar eax, 1
push 0
add eax, eax
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push edi
mov esi, ecx
call fcn.0040ea5b
pop ecx
mov eax, esi
pop edi
pop esi
ret

Function at 0x40719b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, 0x442af0
xor ebx, ebx
mov esi, edi
push 0
push 2
push esi
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4071e2
test eax, eax
je 0x4071e6
movzx eax, word [esi]
cmp eax, 0xa
je 0x4071e6
cmp eax, 0xd
je 0x4071d0
inc ebx
add esi, 2
cmp esi, 0x4432ee
jl 0x4071a7
xor eax, eax
mov word [0x4432ee], ax
jmp 0x4071f0
xor eax, eax
jmp 0x4071f2
xor eax, eax
mov word [ebx*2 + 0x442af0], ax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x407c5a
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x435248]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x449b88], 0
jne 0x407ce4
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.0040aa5f
mov esi, eax
pop ecx
test esi, esi
jne 0x407cae
push str.wsock32.dll
call fcn.0040aa5f
mov esi, eax
xor edi, edi
pop ecx
test esi, esi
jne 0x407cae
push 0xd
call fcn.0040954f
pop ecx
push eax
call fcn.00407bbb
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x407cc3
push 0xe
jmp 0x407ca2
test edi, edi
je 0x407cd8
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x449b84], eax
pop edi
mov dword [0x449b88], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040e263
add esp, 0x194
ret

Function at 0x407dca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp + 0x78c], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push str.SoftwareOracleJavaFX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e46
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push str.Disabled
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407e46
lea eax, [ebp - 0x74]
push eax
push str.true
call fcn.0040fe4c
pop ecx
pop ecx
test eax, eax
je 0x407e49
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x78c]
xor ecx, ebp
call fcn.0040e263
add ebp, 0x790
leave
ret
Function at 0x40800c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040e990
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x432448
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 0x400
mov dword [ebp - 0x70], 1
call esi
test eax, eax
jne 0x40810d
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408093
and dword [ebp - 0x70], 0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4080a4
and dword [ebp - 0x70], 0
lea eax, [ebp + 0x794]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x43243c
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.0040f97a
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
test eax, eax
jne 0x40810d
lea eax, [ebp + 0xfa4]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x432518
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4080fd
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40810d
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e263
add ebp, 0xf98
leave
ret

Function at 0x40822f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40827e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x4084fe
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408534
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e263
leave
ret
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40855a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x408526
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
cmp dword [ebp - 0x228], edi
je 0x40857e
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408563
jmp 0x408584
mov esi, dword [ebp - 0x218]
pop edi
jmp 0x40854f

Function at 0x408587
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4085de
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
test eax, eax
jne 0x4085d8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x4092bf
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 9
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406e59
pop ecx
mov dword [0x44a3b0], eax
cmp eax, 0xffffffff
jne 0x409313
push 5
call fcn.0040954f
pop ecx
push eax
call fcn.004091d5
cmp dword [ebp + 8], esi
jg 0x40931c
push 0x13
jmp 0x409307
push dword [ebp + 8]
call fcn.00406fb1
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x409330
push 0x11
jmp 0x409307
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 0x4328f8
push 0xffffffffffffffff
push 6
pop edi
push edi
push eax
call fcn.004119ea
add esp, 0x14
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x40935f
push 0x14
jmp 0x409307
push ebx
call fcn.00407cf9
pop ecx
cmp dword [ebp - 0x10], esi
je 0x40942f
mov ebx, dword [ebp - 0x14]
push 0x7f00
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x409225
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x4328fc
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push ebx
push esi
push esi
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0xcf0000
push str.Win32Splash
push str.SplashDummy
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x40921f
push 0x4e20
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4093e4
push 0x15
jmp 0x409307
call fcn.00409165
push dword [ebp - 0x10]
call fcn.00409185
pop ecx
push 8
push 0x401
push edi
push dword [0x44a3b0]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x409422
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call edi
test eax, eax
jne 0x40940e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e263
leave
ret
Function at 0x409691
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
push edi
test eax, eax
jns 0x4096ad
fadd qword [0x4282f0]
fdiv qword [0x4282e8]
push ecx
push ecx
fstp qword [esp]
call fcn.00411a10
fmul qword [0x4282e0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
call fcn.00411be6
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc eax
push 2
push eax
call fcn.0040e632
mov edi, eax
add esp, 0x10
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4097bd
xor edx, edx
push esi
test ebx, ebx
je 0x40978e
push 0x3f
pop edi
cmp edx, ebx
jae 0x409708
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + edx*2]
inc edx
jmp 0x40970a
xor ecx, ecx
cmp edx, ebx
jae 0x40971b
mov esi, dword [ebp + 8]
movzx esi, word [esi + edx*2]
mov dword [ebp + 0xc], esi
inc edx
jmp 0x40971f
and dword [ebp + 0xc], 0
cmp edx, ebx
jae 0x40972d
mov esi, dword [ebp + 8]
movzx esi, word [esi + edx*2]
inc edx
jmp 0x40972f
xor esi, esi
shl ecx, 8
add ecx, dword [ebp + 0xc]
shl ecx, 8
add ecx, esi
mov esi, ecx
shr esi, 0x12
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], si
mov esi, ecx
shr esi, 0xc
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], si
mov esi, ecx
shr esi, 6
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, edi
mov cx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 4], si
mov word [eax + 6], cx
add eax, 8
cmp edx, ebx
jb 0x4096fe
mov edi, dword [ebp + 0x10]
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
mov esi, dword [edx*4 + 0x433f28]
test esi, esi
jle 0x4097ba
fld qword [ebp - 8]
call fcn.00411bb0
lea eax, [edi + eax*2 - 2]
push 0x3d
pop ecx
mov word [eax], cx
sub eax, 2
dec esi
jne 0x4097ae
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4099ce
Capabilities:
Write file on windows

Disassembly:
push edi
push 0x433f3c
push dword [esp + 0xc]
call fcn.00410932
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4099e7
pop edi
ret
push ebx
push esi
push dword [esp + 0x14]
call fcn.0040993d
push edi
push dword [esp + 0x20]
mov esi, eax
push 1
push esi
call fcn.0041203e
push edi
mov ebx, eax
call fcn.00410747
add esp, 0x18
test esi, esi
je 0x409a17
push esi
call fcn.0040ea5b
pop ecx
xor eax, eax
cmp ebx, dword [esp + 0x18]
pop esi
pop ebx
sete al
pop edi
ret
Function at 0x409cc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00409906
mov edi, eax
pop ecx
test edi, edi
js 0x409d0d
push 0x433f34
push dword [ebp + 8]
call fcn.00410932
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x409d0d
lea eax, [edi + 2]
push eax
call fcn.0040ecc4
mov esi, eax
pop ecx
push ebx
test esi, esi
jne 0x409d1a
call fcn.00410747
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
push 1
push esi
call fcn.00412302
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jle 0x409d3b
push 9
call fcn.0040954f
push eax
call fcn.00407bbb
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00410747
pop ecx
cmp ebx, edi
je 0x409d50
push esi
call fcn.0040ea5b
jmp 0x409d0c
xor ecx, ecx
xor eax, eax
cmp eax, ebx
jge 0x409d65
cmp byte [eax + esi], 0
jne 0x409d5f
inc ecx
inc eax
cmp eax, 6
jl 0x409d54
cmp ecx, 1
jle 0x409d79
mov edi, dword [ebp + 0xc]
lea eax, [ebx + esi]
mov dword [edi], esi
mov word [eax], 0
jmp 0x409d90
mov byte [ebx + esi], 0
mov ebx, esi
call fcn.00409991
mov edi, dword [ebp + 0xc]
push esi
mov dword [edi], eax
call fcn.0040ea5b
pop ecx
mov eax, dword [edi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409d95
sub eax, edx
sar eax, 1
jmp 0x409d15

Function at 0x40a58e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a5f7
cmp dword [ebp + 0x10], 1
je 0x40a5cf
cmp dword [ebp + 0x10], 2
je 0x40a5cf
push 0xd
pop eax
jmp 0x40a5f7
mov eax, dword [ebp - 4]
test edi, edi
je 0x40a5f1
test eax, eax
je 0x40a5ec
test al, 1
jne 0x40a5ca
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40a5f1
jmp 0x40a5ca
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40a8a4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x44b5fc], 0
je 0x40a8cf
mov eax, dword [0x44b5f8]
jmp 0x40a913
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040e9c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x40a906
cmp dword [ebp - 0x7c], 6
jb 0x40a906
mov eax, ecx
jmp 0x40a908
xor eax, eax
mov dword [0x44b5f8], eax
mov dword [0x44b5fc], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040e263
add ebp, 0x98
leave
ret
Function at 0x40aa5f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x435248]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040e9c0
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40aaf5
cmp eax, edi
ja 0x40aaf5
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0040e9c0
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x428bf4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40aaf7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e263
leave
ret

Function at 0x40ab6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040e9c0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40abe8
cmp dword [ebp + 8], esi
je 0x40abe8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x40abec
xor eax, eax
jmp 0x40ac0a
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret