joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4282d6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x439070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040aa78
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00409be8
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428862
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x439070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x224], esi
mov dword [esi + 0x10], 0
jb 0x407ee1
mov eax, dword [esi]
jmp 0x407ee3
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, esi
push 0x43522c
call fcn.004021f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x220], 1
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 2
push str.SupplyID
push str.SOFTWARELenovoSLBrowser_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x407f85
cmp word [ebp - 0x218], ax
jne 0x407f5e
xor ecx, ecx
jmp 0x407f76
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f67
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004021f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a82b
mov esp, ebp
pop ebp
ret
Function at 0x407fb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4288cd
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x439070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00409150
push 0x435420
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408004
or eax, 0xffffffff
jmp 0x4081a0
call fcn.004081c0
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0
call fcn.00408810
test al, al
je 0x408109
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0040efc0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00404240
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
push dword [ebp - 0xac]
call fcn.00404960
sub esp, 0x18
lea ecx, [ebp - 0xa8]
mov eax, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.00404160
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0xb0], esp
push str.Count
call fcn.00407180
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0x43547c
call fcn.00407180
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xb8], esp
push str.SLB_CPT001
call fcn.00407180
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.SLBCrashRpt
call fcn.00407180
mov byte [ebp - 4], 0
call fcn.00403bc0
add esp, 0x78
lea ecx, [ebp - 0x58]
call fcn.00404180
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00409e41
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4399e0], 0
je 0x408141
mov eax, dword [0x43ad00]
test eax, eax
je 0x408137
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x43ad00], 0
mov dword [0x43acdc], 0
cmp byte [0x4399e1], 0
je 0x40819e
push 0
call dword [0x43acd8]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4399e1], 0
je 0x40819e
mov eax, dword [0x43ace4]
test eax, eax
je 0x408180
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x43ace4], 0
mov dword [0x43acfc], 0
mov dword [0x43ace0], 0
mov dword [0x43acd8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a82b
mov esp, ebp
pop ebp
ret
Function at 0x409150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x439070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409195
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82b
mov esp, ebp
pop ebp
ret
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0040a82b
mov esp, ebp
pop ebp
ret

Function at 0x409200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x439070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x40928b
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40928b
push 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
neg eax
pop esi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040a82b
mov esp, ebp
pop ebp
ret

Function at 0x41f18c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ee4c
Function at 0x4017f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40adc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp + 0x20], 0x10
mov ecx, 0x2a
lea esi, [ebp - 0x1d0]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], 0x6a09e667
mov dword [ebp - 0x94], 0xbb67ae85
mov dword [ebp - 0x90], 0x3c6ef372
mov dword [ebp - 0x8c], 0xa54ff53a
mov dword [ebp - 0x88], 0x510e527f
mov dword [ebp - 0x84], 0x9b05688c
mov dword [ebp - 0x80], 0x1f83d9ab
mov dword [ebp - 0x7c], 0x5be0cd19
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
jae 0x4018c1
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x120]
call fcn.00401570
lea edi, [ebp - 0x30]
call fcn.00401620
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [ebp - 0x38], 0
xor esi, esi
lea edi, [ebp - 0x78]
jmp 0x4018f0
movzx ecx, byte [ebp + esi - 0x30]
push ecx
push str._02x
push edi
call ebx
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x20
jb 0x4018f0
mov esi, dword [ebp - 0x124]
lea eax, [ebp - 0x78]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401927
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
call fcn.00401cf0
cmp dword [ebp + 0x20], 0x10
jb 0x40194d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret
Function at 0x402230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push SQLBindCol
push 0xa0000
push 0x410678
push 0x410610
push 0
mov dword [0x41060c], esi
call edi
mov dword [0x410608], eax
test eax, eax
jne 0x40227e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x72
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 4]
push eax
push 1
push 0x404
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x410608]
push ecx
push edx
call edi
mov eax, dword [0x410608]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408590
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
jmp 0x4085b8
jmp 0x4085ca
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4085f1
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4085e0
push ebx
push esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x11c]
movzx esi, word [ebp - 0x130]
movzx ebx, word [ebp - 0x10e]
mov ecx, eax
imul ecx, eax
shl edx, 0x10
or edx, eax
shr eax, 2
imul edx, edx, 0x14ce1989
shl esi, 0xe
or esi, eax
mov eax, dword [ebp - 0x110]
and eax, 0xf5fb
shl ebx, 0x10
or eax, ebx
xor eax, 0x15ca2020
push eax
push esi
push edx
sub ecx, 0x13b06451
push ecx
push 0x12ba1074
push 0x64
push 0x40e4c8
mov ecx, edi
call fcn.00409130
push eax
add edi, 8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x4086af
jmp 0x4086c6
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov al, 1
pop edi
call fcn.0040a125
mov esp, ebp
pop ebp
ret
Function at 0x4086e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
jmp 0x408706
jmp 0x408718
cmp dword [esi + 4], 0xffffffff
je 0x408732
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40871e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x408791
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408791
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4087b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40871e
jmp 0x4087c9
jmp 0x4087e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040a125
mov esp, ebp
pop ebp
ret 8

Function at 0x408800
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
jmp 0x408828
jmp 0x40883a
call fcn.00408590
test al, al
jne 0x408856
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx edx, word [0x410604]
push eax
lea ecx, [esi + 8]
push ecx
push edx
push 0x90
push 0x40e3f0
mov ecx, esi
call fcn.00409130
push eax
lea edx, [ebp - 0x108]
call fcn.00409260
add esp, 0x10
push str.Content_type:_application_x_www_form_urlencoded
push 0x48
push 0x40e480
mov ecx, esi
call fcn.00409130
push eax
push str._HTTP_1.1_r_nHost:__s_r_n_s_r_n_r_n
lea edx, [ebp - 0x20c]
call fcn.00409260
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_strcat_s]
lea eax, [ebp - 0x108]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088d0
sub eax, edx
push 0
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x408903
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x408843
jmp 0x408915
jmp 0x40892c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040a125
mov esp, ebp
pop ebp
ret 4
Function at 0x408ce0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x2d
push 0
push 0x410738
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10
xor eax, eax
push 0x18
push 0x40e52c
mov ecx, 0x410730
mov dword [0x410765], eax
mov dword [0x410769], eax
mov dword [0x41076d], eax
call fcn.00409130
push eax
push 0x8c
push 0x40e548
mov ecx, 0x410730
call fcn.00409130
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]

Function at 0x408d50
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x408d6e
jmp 0x408d80
jmp 0x408d92
push 0x10000000
pop dword [0x4d99d4]
jmp 0x408dab
cmp dword [0x4d99d4], 0x10000000
je 0x408e1d
xor eax, eax
mov dword [0x40b2d0], eax
mov dword [0x40b2d4], eax
mov dword [0x40b2d8], eax
mov dword [str.Rwu__], eax
mov dword [0x40b2e0], eax
mov dword [0x40b2e4], eax
mov dword [0x40b2e8], eax
mov dword [0x40b2ec], eax
mov dword [0x40b2f0], eax
mov dword [0x40b2f4], eax
mov dword [str.p_H:], eax
mov dword [0x40b2fc], eax
mov dword [0x40b300], eax
mov dword [0x40b304], eax
mov dword [0x40b308], eax
mov dword [0x40b30c], eax
mov dword [0x40b310], eax
mov dword [str.r_], eax
mov dword [0x40b318], eax
mov dword [0x40b31c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
add ebx, eax
push edx
mov dword [ebp - 0x14], ebx
call fcn.00408fd0
test al, al
je 0x408f16
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, edi
call fcn.00409080
test al, al
je 0x408f16
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push edi
call ebx
mov ecx, 0x40b2e0
mov eax, edi
sub ecx, edi
mov esi, 0x10
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec esi
jne 0x408e95
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push 0x10
push edi
call ebx
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
push 0x40
push 0x10
push esi
call ebx
mov ecx, 0x40b2f0
mov eax, esi
sub ecx, esi
mov dword [ebp - 8], 0x10
lea esp, [esp]
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec dword [ebp - 8]
jne 0x408ed0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0x10
push esi
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, esi
sub edx, edi
sub edx, 0x10
push edx
add edi, 0x10
push edi
call fcn.00408f50
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
call fcn.00408fd0
test al, al
jne 0x408e60
jmp 0x408f28
jmp 0x408f3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408f50
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x408f69
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x408f9f
mov ecx, eax
and ecx, 0xf
mov dl, byte [ecx + 0x40b2d0]
xor dl, byte [eax + esi]
inc eax
add dl, 0x51
mov byte [eax + esi - 1], dl
cmp eax, edi
jl 0x408f85
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push edi
push esi
call ebx
jmp 0x408fbd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x409145
push 0x104
push 0
push 0x4d97c8
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x409182
push esi
mov esi, dword [ebp + 8]
jmp 0x409170
mov dl, byte [esi + eax*4]
xor dl, 0x80
mov byte [eax + 0x4d97c8], dl
inc eax
cmp eax, ecx
jl 0x409170
pop esi
jmp 0x409194
mov eax, 0x4d97c8
pop ebp
ret 8

Function at 0x409b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00409c10
mov eax, dword [0x40eb04]
push 0x72
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 0x410730
mov esi, eax
call fcn.004091a0
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
lea edx, [ebp - 0x108]
push edx
push 0
push 0x401
push esi
call edi
push 0
push 1
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a125
mov esp, ebp
pop ebp
ret

Function at 0x409e00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xff
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
movzx edx, word [ebp - 0x10c]
movzx eax, word [ebp - 0x10e]
movzx ecx, word [ebp - 0x110]
push edx
movzx edx, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push ecx
movzx ecx, word [ebp - 0x118]
push edx
push eax
push ecx
push esi
lea edx, [ebp - 0x108]
push str.._s_04d__02d__02d__02d__02d__02d.txt
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret

Function at 0x40a070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x40e018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea ecx, [ebp - 0x403]
push 0
push ecx
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x404]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x404]
add esp, 0x34
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a0f6
push 0
lea ecx, [ebp - 0x808]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a125
mov esp, ebp
pop ebp
ret

Function at 0x40a125
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e018]
jne 0x40a12f
repz ret
jmp fcn.0040a532
Function at 0x401295
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, 0x3ff
push ebx
mov esi, 0x69e030
push esi
push 0x607814
call edi
test eax, eax
je 0x401323
push str.jemalloc
push esi
call fcn.00412e42
pop ecx
pop ecx
test eax, eax
jne 0x4012d2
mov dword [0x6a2f74], 1
jmp 0x401323
push str.winheap
push esi
call fcn.00412e42
pop ecx
pop ecx
test eax, eax
jne 0x4012ef
mov dword [0x6a2f74], 2
jmp 0x401323
push str.winlfh
push esi
call fcn.00412e42
pop ecx
pop ecx
test eax, eax
jne 0x40130c
mov dword [0x6a2f74], 3
jmp 0x401323
push str.tcmalloc
push esi
call fcn.00412e42
pop ecx
pop ecx
test eax, eax
jne 0x401323
and dword [0x6a2f74], eax
mov eax, dword [0x6a2f74]
dec eax
je 0x4013a1
dec eax
je 0x401390
dec eax
push 1
je 0x401392
call fcn.004013b3
pop ecx
test eax, eax
je 0x401343
push eax
call fcn.00403709
push ebx
push esi
push str.CHROME_PROFILER_TIME
call edi
test eax, eax
je 0x40136d
cmp byte [0x69e030], 0x31
jne 0x40136d
mov dword [0x6a2cc0], 0x55fa44
mov dword [0x6a2cc4], 1
xor eax, eax
mov dword [0x6a78d8], 0x55ab3d
mov dword [0x6a78dc], 0x55abb0
mov dword [0x6a78e0], 0x55abc7
inc eax
jmp 0x4013af
push 0
call fcn.0055aa82
pop ecx
xor ecx, ecx
test al, al
setne cl
jmp 0x4013ad
call fcn.0055ebf3
xor ecx, ecx
test al, al
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
ret

Function at 0x401ec0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6b8fd8]
sub esp, 0x28
test eax, eax
jne 0x401ee1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov dword [0x6b8fd8], eax
and dword [ebp - 4], 0
cmp eax, 0x20000
jae 0x401f0a
lea ecx, [ebp - 4]
push ecx
push 0x102
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401f0a
mov eax, dword [0x6b8fd8]
leave
ret
xor eax, eax
leave
ret