joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0042f9e2
mov ebx, eax
test ebx, ebx
jne 0x404f00
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x404fe7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404fe7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404fe7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x404f68
cmp esi, ecx
jae 0x404fe7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x404f52
cmp esi, ecx
jae 0x404fe7
movzx eax, word [esi]
test ax, ax
je 0x404fe7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x404ff2
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x404fb1
push edi
mov ecx, ebx
call fcn.00403540
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x404ff2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
int3

Function at 0x406e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x406e6f
test edx, edx
je 0x406e6f
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x406e6f
push esi
xor esi, esi
nop dword [eax]
mov cl, byte [esi + ebx]
mov eax, edx
sar eax, 8
xor al, cl
mov byte [esi + ebx], al
inc esi
movzx eax, cl
add eax, edx
imul edx, eax, 0xce6d
add edx, 0x58bf
cmp esi, edi
jb 0x406e40
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4086b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660c5d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x714f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40870f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
lea ecx, [eax - 0x10]
mov edi, dword [eax - 0xc]
jle 0x40872f
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.00402c10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
add dword [ecx + 0xc], 0xffffffff
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
push edi
cmove eax, esi
mov dword [ecx + 0xc], eax
push dword [ebp + 8]
push 1
push 0
push str.Path
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408772
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4094f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660d80
mov eax, dword fs:[0]
push eax
mov eax, 0x3944
call fcn.00602c00
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042eec2
push 0x687790
lea ecx, [ebp - 0x28]
call fcn.00408be0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00408b30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push section..data
push eax
call fcn.00409750
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00409740
push eax
mov ecx, esi
call fcn.0042e2b1
push 0
lea ecx, [ebp - 0x3950]
call fcn.00409c10
lea ecx, [ebp - 0x3950]
mov byte [ebp - 4], 2
call fcn.0042e9bf
push 0
call fcn.0062425e
int3
Function at 0x4099d0
Capabilities:
Accept command line arguments
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.zhuzaiRxjhIce
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409a30
push 0
push 0
push 0x6878fc
call fcn.004334c2
jmp 0x409b7c
test esi, esi
je 0x409a3b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.0044018a
add esp, 4
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x409b0f
cmp dword [ebp - 0x210], 3
jl 0x409b0f
push dword [esi + 4]
lea ecx, [ebp - 0x218]
call fcn.00409830
push dword [esi + 8]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.00409830
push dword [ebp - 0x218]
call fcn.00625d4b
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x409ac1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x214]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409aed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409b0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x2c0]
call fcn.00408cb0
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0042e9bf
cmp eax, 1
jne 0x409b71
mov eax, dword [0x687914]
mov dword [ebp - 0x1f4], eax
mov al, byte [0x687918]
mov byte [ebp - 0x1f0], al
lea eax, [ebp - 0x20c]
push eax
push 2
mov dword [ebp - 0x204], 0x80
mov dword [ebp - 0x200], 7
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
lea ecx, [ebp - 0x2c0]
call fcn.00409170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret
Function at 0x40b9a0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Kernel32.dll
mov dword [ebp - 0x44], 0x56ec8b55
mov dword [ebp - 0x40], 0x6a0875ff
mov dword [ebp - 0x3c], 0xffff6800
mov dword [ebp - 0x38], 0x15ff001f
mov dword [ebp - 0x34], 0x152000
mov dword [ebp - 0x30], 0xf685f08b
mov dword [ebp - 0x2c], 0xff6a1f74
mov dword [ebp - 0x28], 0x815ff56
mov dword [ebp - 0x24], 0x56001520
mov dword [ebp - 0x20], 0x200415ff
mov dword [ebp - 0x1c], 0xff6a0015
mov dword [ebp - 0x18], 0x202c15ff
mov dword [ebp - 0x14], 0xff500015
mov dword [ebp - 0x10], 0x15202815
mov dword [ebp - 0xc], 0x5ec03300
mov dword [ebp - 8], 0x4c25d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x40bb7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x688250
push ebx
call esi
push 0x68825c
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x688270
push ebx
mov dword [ebp - 0x54], eax
call esi
push 0x68827c
push ebx
mov dword [ebp - 0x50], eax
call esi
push 0x688290
push ebx
mov dword [ebp - 0x4c], eax
call esi
mov dword [ebp - 0x48], eax
xor eax, eax
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x58], 0
je 0x40bb7d
inc eax
cmp eax, 5
jb 0x40ba80
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push 0x14
push 0
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40bb7d
push 0
push 0x14
lea eax, [ebp - 0x58]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40bb6e
push 0x40
lea eax, [esi + 4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x25], eax
add eax, 4
push 0x1000
mov dword [ebp - 0x1e], eax
add eax, 4
push 0x40
mov dword [ebp - 0x16], eax
add eax, 4
push 0
push edi
mov dword [ebp - 0xf], eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40bb6e
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40bb3f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40bb3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060266e
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6613a3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x714f78]
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
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], esi
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
or edi, 0xffffffff
test eax, eax
je 0x40bd69
lea ecx, [ebp + 8]
call fcn.0040ddb0
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bd44
call fcn.00423a0b
test eax, eax
je 0x40bdb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x13c]
call fcn.00402ad0
test al, al
jne 0x40bc73
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc57
sub eax, edx
lea ecx, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00408790
mov esi, dword [ebp - 0x13c]
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40bda8
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40bcab
push edi
lea ecx, [ebp - 0x13c]
call fcn.00403540
mov esi, dword [ebp - 0x13c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00626d61
push eax
call fcn.0040b820
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40bda8
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bdb2
push eax
push esi
call fcn.00623a86
add esp, 8
test eax, eax
jne 0x40bce8
inc ebx
push dword [esi - 8]
push esi
call fcn.006266af
add esp, 8
test eax, eax
js 0x40bda8
cmp eax, dword [esi - 8]
jg 0x40bda8
mov dword [esi - 0xc], eax
or edi, 0xffffffff
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bd2a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x140]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bc17
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.006266af
add esp, 8
test eax, eax
js 0x40bda8
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40bda8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40bd88
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0060266e
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3
Function at 0x40c260
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00605e30
push 0x686f7f
push dword [ebp + 0x10]
call fcn.00623a86
add esp, 0x14
push 0
push dword [ebp + 0xc]
test eax, eax
jne 0x40c2aa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40c2bc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 0
push 0x4000000
push 3
push 0
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x44
mov esi, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00605e30
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x260], 0x44
push esi
push dword [ebp + 0xc]
mov word [ebp - 0x230], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x20c]
push str._s__d___s_
push eax
movups xmmword [ebp - 0x21c], xmm0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test ebx, ebx
je 0x40c36b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40c376
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c393
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c3ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
pop ebx
jg 0x40c3c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c480
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661435
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x714f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x8000000
push 3
push 0
push 3
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c4de
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x40c61a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
test edi, edi
jle 0x40c54c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40c52b
push edi
lea ecx, [ebp - 0x10]
call fcn.00403540
mov esi, dword [ebp - 0x10]
push edi
push 0x20
push esi
call fcn.00605e30
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40c610
mov dword [esi - 0xc], edi
mov ecx, 1
mov byte [esi + edi], 0
mov dword [ebp - 4], 1
test edi, edi
js 0x40c610
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x40c573
push edi
lea ecx, [ebp - 0x10]
call fcn.00403540
mov esi, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi - 8]
push esi
call fcn.006266af
add esp, 8
test eax, eax
js 0x40c610
cmp eax, dword [esi - 8]
jg 0x40c610
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp edi, dword [ebp - 0x14]
je 0x40c5ae
xor edi, edi
jmp 0x40c5dd
or edx, 0xffffffff
mov ebx, esi
test edi, edi
je 0x40c5d1
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x726718]
sub edi, 1
jne 0x40c5b7
mov eax, dword [ebp + 0xc]
not edx
mov edi, 1
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c5fc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3
Function at 0x40cae0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp + 0x14], 0
push esi
mov dword [ebp + 0x10], esi
call fcn.00420636
push esi
mov edi, eax
push 0
push edi
call fcn.00605e30
push esi
push ebx
push edi
call fcn.00605330
add esp, 0x1c
test esi, esi
je 0x40cb8a
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40cb8a
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0042063f
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x40d5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661637
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
mov dword [ebp - 0x11c], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
call fcn.00605e30
push dword [0x714032]
lea eax, [ebp - 0x114]
push 0x71403a
push eax
call fcn.00605330
mov ecx, dword [esi + 0x390c]
add esp, 0x18
test ecx, ecx
je 0x40d6c2
push dword [0x714032]
lea eax, [ebp - 0x114]
push dword [0x714036]
push eax
call fcn.00406e20
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x40d6dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x687f94
push edi
mov dword [ebp - 0x118], 1
call fcn.00402cc0
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 8
push 0
push 0x687f74
push 0x687f78
mov ecx, esi
call fcn.0042840a
push 0xffffffffffffffff
call fcn.0062425e
push 0x80004005
call fcn.004020e0
int3

Function at 0x40d830
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop word [eax + eax]
xor eax, eax
test cl, 1
je 0x40d84b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x40d856
bts eax, 6
shr ecx, 1
test cl, 1
je 0x40d861
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40d86c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x40d877
bts eax, 3
shr ecx, 1
test cl, 1
je 0x40d882
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40d88d
bts eax, 1
test cl, 2
je 0x40d896
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x40d92f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x40d920
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x726718], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x40d840
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Create thread

Disassembly:
cmp dword [0x7230b4], 0
jne 0x410e77
push 0
push 0
push ecx
push 0x411ba0
push 0
push 0
mov dword [0x7230b4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret