joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5f0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov dword [ebp - 4], 0xffffffff
push 0x208
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0041fdd0
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0x4a
mov dword [ebp - 0x28], 0
push 0x4a
push 0
push 0x478ac0
call fcn.0041fdd0
add esp, 0xc
push 0x24
push 0x478a98
call fcn.0041d4e0
add esp, 8
mov dword [ebp - 0xc], str._shlLK:Th84__rpoxKGqmArpeTKjf_c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 5], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 5], 0
jne 0x40b65c
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
push str._shlLK:Th84__rpoxKGqmArpeTKjf_c
push 0x478ae5
call fcn.0041f2d0
add esp, 0xc
mov dword [ebp - 0x10], 0x478a98
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp - 6], dl
add dword [ebp - 0x10], 1
cmp byte [ebp - 6], 0
jne 0x40b69d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x478a98
push 0x478ac0
call fcn.0041f2d0
add esp, 0xc
call fcn.004108b0
mov dword [ebp - 0x24], eax
push 0x104
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0041d580
add esp, 8
movzx edx, al
test edx, edx
jne 0x40b70e
xor eax, eax
jmp 0x40b7cf
push str.PFRO.log
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.0041d3e0
push 0
push 0
push 4
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
call fcn.0041d600
cmp dword [ebp - 4], 0xffffffff
jne 0x40b753
xor eax, eax
jmp 0x40b7cf
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0x478ac0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b7aa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x40b7cf
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
push 2
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40e040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40e090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40e199
lea edx, [ebp - 0xc]
push edx
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40e0bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40e199
push 4
lea edx, [ebp - 8]
push edx
push 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e0ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40e199
mov dword [ebp - 4], 0
push 0x44
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.0041fdd0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x6c], str.WinSta0Default
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x430
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40e17d
cmp dword [ebp - 4], 0
je 0x40e16b
mov ecx, dword [ebp - 4]
push ecx
call sub.USERENV.dll_DestroyEnvironmentBlock
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, 1
jmp 0x40e199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x40e197
mov edx, dword [ebp - 4]
push edx
call sub.USERENV.dll_DestroyEnvironmentBlock
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e670
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 7
mov edx, dword [ebp + 8]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e69f
xor eax, eax
jmp 0x40e6ce
push 0x200
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fdd0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40e6e0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x10
mov edx, dword [ebp + 8]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e70f
xor eax, eax
jmp 0x40e729
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40e730
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
mov edx, dword [ebp + 8]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e75f
xor eax, eax
jmp 0x40e78e
push 0x200
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fdd0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40f300
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
ret

Function at 0x40f320
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call fcn.00408d80
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f368
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.00405b20
mov eax, dword [ebp - 8]
jmp 0x40f37a
mov dword [ebp - 0xc], 0
lea ecx, [ebp + 8]
call fcn.00405b20
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40f380
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [0x478b0c], 0
je 0x40f399
mov eax, 1
jmp 0x40f3ba
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x478b0c], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40f410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
je 0x40f422
cmp dword [ebp + 0x10], 0
jg 0x40f426
xor eax, eax
jmp 0x40f476
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jge 0x40f471
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40f466
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x40f476
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x40f42d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x410210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 1]
mov byte [ebp - 1], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x410234
mov edi, dword [ebp - 0xc]
mov cx, word [0x434f30]
mov word [edi], cx
mov dl, byte [0x434f32]
mov byte [edi + 2], dl
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 2], al
add dword [ebp - 8], 1
cmp byte [ebp - 2], 0
jne 0x41026c
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
imul eax, dword [ebp + 8], 0x24
mov ecx, dword [eax + 0x478b20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x419400
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x41943f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xbb8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41943f
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret 4

Function at 0x419450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xf024
call fcn.0041dd6d
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419486
mov ecx, dword [ebp - 0xc]
call fcn.004190a0
mov dword [ebp - 0x10], eax
jmp 0x41948d
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0041a5f0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0041a450
push eax
lea ecx, [ebp - 0x18]
call fcn.00405c10
movzx edx, al
test edx, edx
je 0x4194e4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
mov ecx, dword [ebp + 8]
push ecx
push 0x1e
mov ecx, dword [ebp - 4]
call fcn.004196e0
jmp 0x4195af
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 6
push eax
mov ecx, dword [ebp - 8]
call fcn.004191b0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 4]
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.004192c0
mov edx, dword [ebp - 8]
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x419980
push 0
push 0
call fcn.00425829
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jne 0x4195a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00419650
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x41958a
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00419360
mov dword [ebp - 0x20], eax
jmp 0x419591
mov dword [ebp - 0x20], 0
push 4
mov edx, dword [ebp + 8]
push edx
push 0x1e
mov ecx, dword [ebp - 4]
call fcn.004196e0
jmp 0x4195af
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x41b9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x30], ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x41d330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x41ba5c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41ba5e
mov al, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41d380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d3c7
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x41d3c5
mov dword [ebp - 8], 1
jmp 0x41d3ce
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x41d450
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x230], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.0041fdd0
add esp, 0xc
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d4c9
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
jne 0x41d4b5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x41d4d5
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d499
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41d670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x10
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41d696
xor eax, eax
jmp 0x41d6c7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41d6ba
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x41d6c7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42ddc8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042da6a
Function at 0x5ae370
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 0x5ae38e
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 0x5d7074
push ecx
mov edi, eax
call fcn.005c2198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ae3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005c202e
push esi
call fcn.005c1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5b1850
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 0x5b18ae
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 0x5dc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5b18ba
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.005c21e1
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 0x5b18ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5dc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5b192a
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.005c3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5b1957
mov word [eax], si
add eax, 2
push eax
call fcn.005c3030
add esp, 4
jmp 0x5b1959
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 0x5b18ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5b18b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5b20c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5d7458
push ecx
call fcn.005c21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005c21e1
add esp, 0x10
jmp 0x5b20d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005c220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005c1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005b2050
mov eax, dword [0x5dc728]
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 0x5b213b
push esi
call fcn.005b1fb0
add esp, 4
mov dword [0x5dc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5b214c
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.005b1ff0
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 0x5b5440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5b54b7
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 0x5b548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b5471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5b547e
add edx, ecx
cmp ebx, edx
jb 0x5b548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b5467
xor ecx, ecx
jmp 0x5b54a2
test eax, eax
jne 0x5b5492
xor ecx, ecx
jmp 0x5b54a2
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.005b53c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5b58f0
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 0x5b5921
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 0x5b5946
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 0x5b596e
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 0x5b5993
push ecx
push esi
call fcn.005b54c0
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