joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x40dca9
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
push edi
mov edi, ecx
cmp esi, 0x3e80000
jbe 0x40dd0c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x30
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_operator]
push 0x30
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], 4
cmp dword [edi + 4], 0
je 0x40dd75
add esi, 4
push esi
call dword [sym.imp.mfc140u.dll_operator_1]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x10]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
jmp 0x40dd87
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push ebx
push 0
lea eax, [ebx + 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x40ddd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40ddd2
push 0x30
push ebx
call fcn.0040ee7c
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x40de03
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x40ddf5
push 1
call ebx
cmp dword [edi + 8], 1
je 0x40dde0
jmp 0x40de03
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40de20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x40de49
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret

Function at 0x40e0d0
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x417014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x41761c], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40e128
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x4192c8], 0x409d00
mov dword [0x4192c0], 0x409f50
call esi
mov dword [0x4192d0], eax
push 0
test eax, eax
je 0x40e169
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x4192c4], eax
test eax, eax
jne 0x40e18c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
mov ecx, 5
add eax, 2
cmp eax, ecx
cmovl eax, ecx
xor esi, esi
mov dword [0x4192cc], eax
test eax, eax
jle 0x40e1f7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
nop
push 0
push 0
push 0
push 0x40de90
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x40dfd0
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x4192cc]
jl 0x40e1c0
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret 4

Function at 0x40e280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x419250]
test esi, esi
je 0x40e2d8
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x40e2d1
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret
Function at 0x402a81
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x435e8c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x838], edx
push ebx
push ebx
mov eax, 0x800
mov edi, ecx
push eax
push eax
push 1
push 6
push 0x40080003
push str..pipe671A75EB_8A98_4F90_9B16_29DC96A7A4EF
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ae6
push str.CreateNamedPipe_failed
lea ecx, [ebp - 0x818]
call fcn.004012d0
push 0x433bd4
lea eax, [ebp - 0x818]
push eax
call fcn.0040f19a
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
jne 0x402afe
push str.CreateEvent_failed
jmp 0x402aca
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea edi, [ebp - 0x834]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x834]
push eax
push esi
mov dword [ebp - 0x824], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x402b9e
cmp eax, 0x3e5
jne 0x402c85
mov eax, dword [ebp - 0x838]
xor edi, edi
push 0x7530
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push edi
push eax
push 2
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, edi
je 0x402c13
sub eax, 1
je 0x402c7b
lea ecx, [ebp - 0x818]
sub eax, 0x101
je 0x402c71
push str.WaitForSingleObject_failed
jmp 0x402ad0
xor edi, edi
jmp 0x402c13
cmp dword [ebp - 0x820], 0
je 0x402c5e
push dword [ebp - 0x820]
xor eax, eax
lea edi, [ebp - 0x818]
stosd dword es:[edi], eax
lea edx, [ebp - 0x804]
lea ecx, [ebp - 0x818]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00402a51
mov eax, dword [ebp - 0x814]
pop ecx
cmp dword [ebp - 0x818], eax
je 0x402c53
sub eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x81c]
xor edi, edi
push edi
push ecx
push eax
push dword [ebp - 0x818]
mov dword [ebp - 0x81c], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x818]
test eax, eax
je 0x402c59
call fcn.004044b5
push 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.0040e3d0
add esp, 0xc
mov dword [ebp - 0x820], edi
lea eax, [ebp - 0x820]
push edi
push eax
push 0x800
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402ba2
jmp 0x402c5e
lea ecx, [ebp - 0x818]
call fcn.004044b5
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x402b05
push str.WaitForSingleObject_timed_out
jmp 0x402ad0
push str.Exit_event_is_set__exiting
jmp 0x402aca
push str.ConnectNamedPipe_failed
jmp 0x402aca
Function at 0x408140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x408256
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 0x10], 2
cmp word [ebp - 2], 0
jne 0x408176
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x1c]
sar edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
shl edx, 1
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4081bb
xor eax, eax
jmp 0x408259
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x5c
je 0x4081f4
mov edx, 0x5c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], 0
jmp 0x408206
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
mov word [ebp - 4], cx
add dword [ebp - 0x14], 2
cmp word [ebp - 4], 0
jne 0x408215
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
sar edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jae 0x408256
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov ax, word [esi + eax*2]
mov word [edx + ecx*2], ax
jmp 0x4081fd
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00409a60
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4082b7
mov edx, dword [ebp - 4]
push edx
call fcn.00408d30
add esp, 4
test eax, eax
jne 0x4082b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x4082a6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x50
cmp dword [ebp - 4], 0xffffffff
je 0x408d61
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 0xc]
jne 0x408d61
mov dword [ebp - 8], 1
jmp 0x408d68
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40ab30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40aba2
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ab91
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x40aba2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4
add al, 0

Function at 0x40bec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 8]
sub eax, ecx
je 0x40bf27
sub eax, 1
je 0x450474
sub eax, 0x32
jne 0x4503eb
push edi
mov ecx, esi
call fcn.0040dfd0
lea ecx, [esp + 0x18]
call fcn.0040cfa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040dd50
test ebx, ebx
js 0x40bf15
jmp 0x45048e
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
push eax
push 0xae
jmp fcn.0045040c
inc eax
or dl, byte [eax + 0x68]

Function at 0x40ec6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
add al, 0
add byte [eax], al
jg 0x40fe3a
mov ebx, dword [ebp + 0x10]
xor esi, esi
push 0x4d2580
call fcn.00420242
add esp, 4
cmp dword [0x4d2580], 0xffffffff
jne 0x40ec76
push 0x44247b
call fcn.004200a3
add esp, 4
push 0x4d2580
call fcn.004201f8
add esp, 4
jmp 0x40ec76
Function at 0x4167c1
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
or al, 5
xor dh, cl
dec esp
add byte [ecx], al
add byte [eax], al
pop ebx
lodsb al, byte [esi]
add eax, 0x244cd344
add byte [eax], al
add bh, al
add eax, 0x284cdd14
dec esp
sub dl, dh
add byte [eax], al
dec esp
sub dl, dh
add byte [eax], al
add bh, al
add eax, 0x2c4cdd14
add bh, al
add eax, 0x4cdb80
add byte [eax], dh
add bh, al
add eax, 0x4cdcec
add byte [eax], al
xor al, 0xf2
add byte [eax], al
add bh, al
add byte [eax], al
cmp dl, dh
add byte [eax], al
add bh, al
cmp al, 0xa1
cmp ch, bl
inc esp
add byte [eax], al
jae 0x4167a5
add eax, 0x484cd344
add byte [eax], al
add bh, al
add eax, 0x4c4cdd14

Function at 0x424963
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp byte [ebx + 0x73], ah
insd dword es:[edi], dx
loopne 0x4249de
and eax, ebp
xor edx, ebp
invalid
or al, 0xff
Function at 0x471fec
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fff
call fcn.00472090
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472042
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x840f0270
jl 0x47205c
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472090
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720b3
push 0
call fcn.0042e532
pop ecx
mov ecx, eax
call 0x48582050
mov dword [0x4d06e0], 0x840f0270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x163ef9cc]
xchg byte [esi], cl
add esi, 4
sub edx, 1
jne 0x4720c8
mov eax, dword [esi]
mov dword [ebp - 4], 0xc3018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f0470fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472102
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x414ddf
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ecx
add edi, 0xd56073af
add eax, 4
cmp eax, ebx
jne fcn.00414ddf
sub edx, 0x2a00dac8
ret
Function at 0x4012a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506740
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x52f8b0]
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, edx
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
push 0x5348f0
lea eax, [ebp - 0x18]
push str.cmddump_file__s__moduleid__s__
push eax
mov dword [ebp - 4], 0
call fcn.00401d50
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call fcn.00440ba0
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x40136b
jle 0x401344
lea ecx, [edx - 1]
test ecx, ecx
js 0x4013c4
cmp ecx, edx
jg 0x4013c4
cmp word [eax + ecx*2], 0x5c
je 0x401344
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00401440
push 0x11
push str.QQPYBugReport.exe
lea ecx, [ebp - 0x14]
call fcn.00401730
push 0
push 0
push esi
push dword [ebp - 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40138b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4013a9
mov ecx, dword [esi]
push esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401010
int3

Function at 0x401eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ec5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f04
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401f00
lea ebx, [ebx]
cmp esi, edx
jae 0x401f04
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401ef0
cmp esi, edx
jb 0x401f09
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x402e50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov edi, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x402ea8
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
push esi
push ebx
call fcn.0041b8e1
add esp, 4
mov esi, eax
push esi
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x402f03
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5269b0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402f03
mov ecx, dword [ebp - 0xc]
mov bl, 1
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edi + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 6], ax
jmp 0x402f06
mov bl, byte [ebp - 0x11]
test esi, esi
je 0x402f13
push esi
call fcn.0041b8a9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041a77c
mov esp, ebp
pop ebp
ret