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

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ead8
cmp dword [esp + 0x10], 1
setne al
pop ecx
ret
mov eax, 2
pop ecx
ret

Function at 0x40eae0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret

Function at 0x410600
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4114d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x490
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00410600
add esp, 4
lea ecx, [esp + 4]
push 0x433b08
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x498]
push 0x4310a8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x41165a
push ebx
push esi
push 2
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test ebx, ebx
jbe 0x41156c
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 0x400
lea edx, [esp + 0xa4]
push 1
push edx
call ebp
mov esi, eax
lea eax, [esp + 0xac]
push esi
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00410630
add esp, 0x1c
sub ebx, esi
jne 0x41153d
pop ebp
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00411080
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0x433b08
call sub.MFC42.DLL_CString::operator_2
xor edi, edi
xor ecx, ecx
mov cl, byte [esp + edi + 0x20]
mov esi, ecx
mov eax, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp eax, 9
jle 0x4115cf
add al, 0x37
lea edx, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
jmp 0x4115ef
add al, 0x30
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x411602
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x411629
add al, 0x37
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
jmp 0x411649
add al, 0x30
lea edx, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, 0x10
jl 0x411595
pop esi
pop ebx
lea ecx, [esp + 8]
push 0x20
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x49c]
push edx
push 0x431080
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
pop edi
add esp, 0x490
ret
Function at 0x412ae0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, ecx
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 0xa
cmp esi, 0x2800
jge 0x412bf0
mov eax, dword [ebp + 0x54]
mov cl, byte [eax + 0xc]
test cl, cl
jne 0x412bf0
mov cl, byte [0x433e74]
test cl, cl
jne 0x412bf0
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, dword [eax + 8]
call fcn.00426ce0
test eax, eax
jle 0x412bf0
mov dl, byte [esp + 0x13]
mov byte [esi + edi], dl
inc esi
cmp esi, 4
jl 0x412b09
cmp byte [esi + edi - 4], 0xd
jne 0x412b09
cmp byte [esi + edi - 3], bl
jne 0x412b09
cmp byte [esi + edi - 2], 0xd
jne 0x412b09
cmp byte [esi + edi - 1], bl
jne 0x412b09
mov byte [esi + edi], 0
mov al, byte [0x433e81]
test al, al
je 0x412bec
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x58]
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x20]
push ecx
push str..debug_response__d.dat
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
push eax
call fcn.00401400
mov ecx, dword [esp + 0x34]
push 0x431848
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x412bdb
push ebp
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x412bf3
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41eed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov ecx, 9
mov edx, str.netbladeprotected
push ebx
push ebp
push esi
push edi
mov esi, str.0123456789abcdefghijklmnopqrstvuwxyz
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov eax, edi
sub edx, edi
mov esi, 0xf
movsx ebx, byte [edx + eax]
movsx ebp, byte [eax]
imul ebx, ebp
and ebx, 0x8000007f
jns 0x41ef13
dec ebx
or ebx, 0xffffff80
inc ebx
and ebx, 0xff
add ecx, ecx
xor ecx, ebx
inc eax
dec esi
jne 0x41eefc
and ecx, 0x800000ff
jns 0x41ef31
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov dl, byte [edi + 0xf]
sar eax, 4
cmp dl, byte [esp + eax + 0x10]
jne 0x41ef67
and ecx, reloc.WS2_32.dll_ntohs
jns 0x41ef52
dec ecx
or ecx, 0xfffffff0
inc ecx
mov al, byte [edi + 0x10]
mov dl, byte [esp + ecx + 0x10]
cmp al, dl
jne 0x41ef67
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x421700
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x429df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1458c]
mov dword [esp + 0x38], 0
test eax, eax
je 0x421735
call fcn.00421640
mov ecx, esi
call fcn.00421670
test eax, eax
jne 0x421764
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
lea eax, [esp + 0x40]
lea ecx, [esi + 0x8e0]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
push ecx
mov dword [esi + 0x8e4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4217b3
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov edx, dword [eax + 0xc]
push edi
push ebx
mov eax, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xf]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xd]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
and edi, 0xff
push eax
push edi
lea ecx, [esp + 0x24]
push 0x431388
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0x14594]
add esp, 0x18
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
mov edi, dword [eax + 0x38]
push ecx
push edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x2c]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esi + 8]
call fcn.00426d50
test eax, eax
pop edi
jne 0x421853
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esi + 8]
push 0x15f90
call fcn.00426c00
lea ecx, [esp + 0x40]
mov dword [esi + 0x1458c], 1
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x421a10
Capabilities:
Check mutex on windows

Disassembly:
push str.NetbladeIf_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x421a24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x4257d0
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [0x43440c]
push ebx
push esi
cmp eax, 2
push edi
jne 0x4258b6
call fcn.00425980
test eax, eax
je 0x4258b1
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x425925
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x42585f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x433b08
or ecx, 0xffffffff
xor eax, eax
mov dword [0x434414], 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x425925
mov edi, 0x433b08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
jmp 0x42590f
mov eax, dword [0x434414]
test eax, eax
jne 0x4258b1
mov edi, 0x433b08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x425925
mov edi, 0x433b08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x43440c]
test eax, eax
jbe 0x425925
cmp eax, 2
ja 0x425925
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x42591b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x425925
mov edi, 0x433b08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x425925
mov edi, 0x433b08
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x426200
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WiseNetbladeIf
push 0
mov dword [0x434418], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x434418]
push eax
push str.WiseNetbladeIf
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x120]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x42627f
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x108
ret

Function at 0x426830
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42685a
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov eax, esi
mov word [0x43442c], cx
mov dword [esi], 0xffffffff
pop esi
add esp, 0x190
ret

Function at 0x426910
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x426928
call fcn.00426960
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
test eax, eax
jge 0x426940
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
neg eax
dec eax
pop ecx
ret

Function at 0x4269b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x4269c8
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
test esi, esi
mov dword [esp + 0x14], eax
jne 0x4269ef
mov dword [esp + 0xc], esi
jmp 0x426a21
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x426a21
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4269be
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x426a1b
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
pop edi
test eax, eax
setl cl
dec ecx
pop esi
mov eax, ecx
add esp, 0x10
ret 8
Function at 0x426a60
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x426a78
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x426ac7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x426a6e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x426ac1
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8

Function at 0x426b30
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x426b46
xor eax, eax
pop edi
pop ecx
ret
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
jge 0x426b5c
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0x260
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x426b80
mov ecx, eax
call fcn.00426890
mov esi, eax
test esi, esi
je 0x426b82
mov dword [esi + 4], edi
jmp 0x426b92
xor esi, esi
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop esi
pop edi
pop ecx
ret

Function at 0x426c00
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x43442c]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x426c14
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x426c45
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45b516cb
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x36d96fc5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0xfa3370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xfa338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xfcc074
push ecx
mov edi, eax
call fcn.00fb7198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfa33cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fb702e
push esi
call fcn.00fb6fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xfa6850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xfa68ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xfd1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa68ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00fb71e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xfa68ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfd1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa692a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00fb8082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xfa6957
mov word [eax], si
add eax, 2
push eax
call fcn.00fb8030
add esp, 4
jmp 0xfa6959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xfa68ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xfa68b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xfa6ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xfa7080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xfa70c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfcc458
push ecx
call fcn.00fb71e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00fb71e1
add esp, 0x10
jmp 0xfa70d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00fb720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00fb6dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00fa7050
mov eax, dword [0xfd1728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xfa713b
push esi
call fcn.00fa6fb0
add esp, 4
mov dword [0xfd1728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xfa714c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00fa6ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xfaa440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xfaa4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xfaa48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xfaa471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xfaa47e
add edx, ecx
cmp ebx, edx
jb 0xfaa48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xfaa467
xor ecx, ecx
jmp 0xfaa4a2
test eax, eax
jne 0xfaa492
xor ecx, ecx
jmp 0xfaa4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00faa3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xfaa8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xfaa921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xfaa946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xfaa96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xfaa993
push ecx
push esi
call fcn.00faa4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret