joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40c3e2
push 0x124
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00465660
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c400
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
cmp edx, dword [esp + 0x18]
je 0x40c41a
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c400
jmp 0x40c43e
lea eax, [esp + 0x34]
mov edi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c426
sub eax, edx
push eax
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.00460b70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret

Function at 0x40d640
Capabilities:
Create raw socket
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 9]
push ebx
push eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esp + 0x10], bl
call fcn.00465660
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push ebx
push ebx
push 1
push 3
push 2
mov word [esi + 8], ax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40d6d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 8]
push str.WSASocket___failed:__d_r_n
push ecx
call fcn.00460c94
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004606fe
add esp, 0x108
ret
mov ecx, dword [esi + 4]
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], 1
call fcn.0046110e
add esp, 4
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x40d701
mov dword [esi + 0x10], ebx
mov ecx, dword [esp + 0x108]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004606fe
add esp, 0x108
ret
Function at 0x40d740
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x158
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
mov dword [esp + 0x18], eax
je 0x40d8c9
mov ecx, 2
mov word [esp + 0x50], cx
mov dword [esp + 0x54], edx
mov dword [esp + 0x14], 0x10
call fcn.0040d950
mov ebp, eax
mov ax, word [0x51a6fc]
inc ax
movzx ebx, ax
push 0x2c
mov word [0x51a6fc], ax
mov eax, dword [esi + 0xc]
push 0
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
call fcn.00465660
mov edi, dword [esi + 0xc]
mov byte [edi], 8
mov byte [edi + 1], 0
mov cx, word [esi + 8]
mov word [edi + 4], cx
mov word [edi + 6], bx
mov dword [edi + 8], ebp
mov eax, dword [esi + 0xc]
add esp, 0xc
call fcn.0040d910
mov word [edi + 2], ax
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
push 0
push 0x2c
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40d8c9
cmp dword [esp + 0x18], 0
je 0x40d906
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00465660
add esp, 0xc
lea ebp, [esi + 4]
push 0
push 0x64
push 0
push ebp
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x40d8b5
mov eax, dword [ebp]
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x24], 1
je 0x40d8b5
call fcn.0040d950
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi]
mov edi, eax
lea eax, [esp + 0x54]
push eax
push 0
push pe_nt_image_headers32
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40d8b5
mov cl, byte [esp + 0x60]
and cl, 0xf
movzx dx, cl
add dx, dx
add dx, dx
movzx edx, dx
movzx ecx, dx
mov bx, word [esp + ecx + 0x64]
lea ecx, [esp + ecx + 0x60]
cmp bx, word [esi + 8]
jne 0x40d8b5
cmp byte [ecx], 0
jne 0x40d8b5
mov ebx, dword [esp + 0x20]
cmp word [ecx + 6], bx
je 0x40d8e6
call fcn.0040d950
sub eax, dword [esp + 0x1c]
cmp eax, 0x7d0
jb 0x40d826
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004606fe
add esp, 0x158
ret 4
sub edi, dword [ecx + 8]
mov esi, dword [esp + 0x18]
movzx ecx, dx
movzx edx, byte [esp + 0x68]
sub eax, ecx
sub eax, 0xc
mov word [esi], bx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, 1
jmp 0x40d8cb

Function at 0x40e06b
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp], eax
push esi
mov esi, ecx
jmp loc.00838538
Function at 0x40e3fa
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ebp
imul esi, esi, 0x108
push esi
mov dword [esp + 0x24], 0
call fcn.0046110e
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x40e384
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push esi
push 0
push ebx
call fcn.00465660
lea edi, [ebp*4]
push edi
call fcn.0046110e
mov esi, eax
add esp, 0x10
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40e3b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push 0
push esi
call fcn.00465660
add esp, 0xc
mov dword [esp + 0x14], 0
test ebp, ebp
jle 0x40e434
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
mov ecx, 0x41
mov edi, ebx
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x104], eax
test eax, eax
je 0x40e49d
push ebx
push 0
push 0x40daa0
call fcn.004632c0
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x104
inc eax
add esp, 0xc
add ebx, 0x108
cmp eax, ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], eax
jl 0x40e3d0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor eax, eax
test ebp, ebp
jle 0x40e450
lea ecx, [ebx + 0x104]
mov edx, dword [ecx]
mov dword [esi + eax*4], edx
inc eax
add ecx, 0x108
cmp eax, ebp
jl 0x40e440
push 0xffffffffffffffff
push 1
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
sbb eax, eax
add eax, 1
jne 0x40e49d
mov eax, dword [0x50d068]
test eax, eax
je 0x40e494
mov edx, dword [0x51a91c]
mov ecx, eax
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x40e490
cmp dword [ecx + 0x104], 0
jne 0x40e490
mov dword [ecx + 0x10c], edx
inc edx
test eax, eax
jne 0x40e475
push ebx
call fcn.004611d8
add esp, 4
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40f0a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f0f2
mov eax, dword [esp]
cmp al, 2
jne 0x40f0ec
shr eax, 8
cmp al, 2
jne 0x40f0ec
mov al, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004606fe
add esp, 0x19c
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor al, al
call fcn.004606fe
add esp, 0x19c
ret
Function at 0x410f70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x238
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
mov ebp, dword [esp + 0x244]
push esi
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push eax
mov dword [ebp + 0x1c], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jl 0x4110ee
mov edx, dword [ebp + 0xc]
cmp dword [edx - 0xc], 0
lea esi, [ebp + 0xc]
je 0x4110ee
movzx ecx, word [ebp + 0x10]
mov eax, 2
push ecx
mov word [esp + 0x238], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
mov word [esp + 0x236], ax
mov ecx, dword [edx - 0xc]
mov eax, edx
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x411012
push ecx
mov ecx, esi
call fcn.00401ee0
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 0x1c]
push 0x10
lea ecx, [esp + 0x238]
push ecx
push edx
mov dword [esp + 0x244], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x411041
mov al, 1
jmp 0x4110f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4110ee
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov ecx, 0x41
lea esi, [esp + 0x20]
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x12c]
push edx
lea ecx, [esp + 0x28]
push ecx
push 0
inc eax
push eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0
call ebx
test eax, eax
jl 0x4110ee
jne 0x4110bf
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jle 0x411060
jmp 0x4110ee
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41103a
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x128]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x411060
xor al, al
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004606fe
add esp, 0x238
ret 4
Function at 0x411410
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4c0361
mov eax, dword fs:[0]
push eax
mov eax, 0x1158
call fcn.00467a60
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x1154], eax
push ebx
push ebp
push edi
mov eax, dword [0x4e5b00]
xor eax, esp
push eax
lea eax, [esp + 0x1168]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7ff
lea eax, [esp + 0x169]
push ebx
push eax
mov byte [esp + 0x170], bl
call fcn.00465660
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], ebx
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
lea edx, [esp + 0x68]
mov dword [esp + 0x6c], eax
push edx
inc eax
push eax
mov dword [esp + 0x70], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x4114af
jne 0x4114b6
inc ebp
cmp ebp, 0xa
jle 0x411480
xor al, al
jmp 0x411923
mov ecx, dword [esi + 0x1c]
push ebx
push 1
lea eax, [esp + edi + 0x16c]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4114af
inc edi
cmp edi, 0x800
jge 0x4114af
cmp edi, 4
jl 0x411480
cmp byte [esp + edi + 0x160], 0xd
jne 0x411480
cmp byte [esp + edi + 0x161], 0xa
jne 0x411480
cmp byte [esp + edi + 0x162], 0xd
jne 0x411480
cmp byte [esp + edi + 0x163], 0xa
jne 0x411480
mov byte [esp + edi + 0x164], bl
jmp 0x692fa1
mov ecx, dword [esp + 0x1168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1154]
xor ecx, esp
call fcn.004606fe
add esp, 0x1164
ret
Function at 0x411e10
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x940
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x938], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x7ff
lea eax, [esp + 0x145]
push ebx
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov byte [esp + 0x14c], bl
call fcn.00465660
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], ebx
xor esi, esi
jmp 0x411e60
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
push edx
inc eax
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x411e8f
jne 0x411ea9
inc ebp
cmp ebp, 0xa
jle 0x411e60
xor al, al
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x938]
xor ecx, esp
call fcn.004606fe
add esp, 0x940
ret
mov ecx, dword [edi + 0x1c]
push ebx
push 1
lea eax, [esp + esi + 0x148]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x411e8f
inc esi
cmp esi, 0x800
jge 0x411e8f
cmp esi, 4
jl 0x411e60
cmp byte [esp + esi + 0x13c], 0xd
jne 0x411e60
cmp byte [esp + esi + 0x13d], 0xa
jne 0x411e60
cmp byte [esp + esi + 0x13e], 0xd
jne 0x411e60
cmp byte [esp + esi + 0x13f], 0xa
jne 0x411e60
push 5
lea edx, [esp + 0x144]
push str.HTTP_
push edx
mov byte [esp + esi + 0x14c], bl
call fcn.00462703
add esp, 0xc
test eax, eax
jne 0x411e8f
fldz
lea eax, [esp + 0x14]
push eax
fstp dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x148]
push str.HTTP__f__d
push edx
mov dword [esp + 0x24], ebx
call fcn.00463417
add esp, 0x10
cmp eax, 2
jne 0x411e8f
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x411f74
cmp eax, 0x12e
jne 0x411e8f
lea eax, [esp + 0x140]
push str.Content_Length
push eax
call fcn.00462c70
lea ecx, [esp + 0x18]
push ecx
push str.Content_Length:__d
push eax
mov dword [esp + 0x24], ebx
call fcn.00463417
add esp, 0x14
cmp eax, 1
jne 0x411e8f
cmp dword [esp + 0x10], 0xa
jne 0x411e8f
xor eax, eax
push ebx
push 0xa
lea edx, [esp + 0x13c]
mov dword [esp + 0x13d], eax
mov dword [esp + 0x141], eax
mov word [esp + 0x145], ax
mov eax, dword [edi + 0x1c]
push edx
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xa
jne 0x411e8f
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402ad0
mov edx, dword [esp + 0x18]
push edx
call fcn.00460d71
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [edi + 4], edx
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412031
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x944]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004606fe
add esp, 0x940
ret
Function at 0x415b00
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push esi
push 0x438
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], 0
call fcn.0046110e
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
jne 0x415b4b
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
push 0x438
push 0
push esi
call fcn.00465660
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
test eax, eax
je 0x415b38
push ebp
push edi
xor edi, edi
add esi, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea ebp, [esi - 0xc]
mov eax, ebx
mov dword [ebp], edx
mov dword [esi - 4], edi
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415b90
sub eax, ecx
push eax
push ebx
push esi
call fcn.00469530
push ebp
push 0
push 0x4159b0
mov dword [esi + 0x108], 1
call fcn.004632c0
inc edi
add esp, 0x18
add esi, 0x21c
cmp edi, 2
jl 0x415b76
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
lea ecx, [esi + 4]
pop ebp
cmp dword [ecx], 0
jne 0x415bfa
inc eax
add ecx, 0x21c
cmp eax, 2
jl 0x415be0
mov bl, byte [esp + 0xb]
jmp 0x415c8a
imul eax, eax, 0x21c
mov eax, dword [eax + esi + 0x110]
xor ecx, ecx
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], ecx
mov dword [esp + 0x19], ecx
mov dword [esp + 0x1d], ecx
mov word [esp + 0x21], cx
mov byte [esp + 0x23], cl
mov dword [esp + 0xc], eax
test eax, eax
jne 0x415c3d
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x415c63
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
push ecx
push edx
movzx ecx, ah
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x24]
push str._d._d._d._d
push eax
call fcn.00460c94
add esp, 0x18
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c70
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004029c0
mov bl, 1
push 8
call fcn.0046110e
add esp, 4
test eax, eax
je 0x415cb1
push eax
push 0
push 0x415ab0
mov dword [eax + 4], 2
mov dword [eax], esi
call fcn.004632c0
add esp, 0xc
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
Function at 0x415cd0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x438
mov byte [esp + 0xf], 0
call fcn.0046110e
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
jne 0x415cfd
pop esi
xor al, al
pop ebx
add esp, 8
ret
push 0x438
push 0
push esi
call fcn.00465660
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
test eax, eax
je 0x415cf5
push edi
xor edi, edi
add esi, 0xc
push ebp
jmp 0x415d30
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea ebp, [esi - 0xc]
mov eax, ebx
mov dword [ebp], ecx
mov dword [esi - 4], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415d44
sub eax, ecx
push eax
push ebx
push esi
call fcn.00469530
push ebp
push 0
push 0x4159b0
mov dword [esi + 0x108], 0
call fcn.004632c0
inc edi
add esp, 0x18
add esi, 0x21c
cmp edi, 2
jl 0x415d30
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
lea ecx, [edi + 4]
pop ebp
cmp dword [ecx], 0
jne 0x415daa
inc eax
add ecx, 0x21c
cmp eax, 2
jl 0x415d93
mov bl, byte [esp + 0xf]
jmp 0x415dda
imul eax, eax, 0x21c
lea edx, [eax + edi + 0x118]
test edx, edx
jne 0x415dbf
xor eax, eax
jmp 0x415dcd
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415dc4
sub eax, esi
mov ecx, dword [esp + 0x1c]
push eax
push edx
call fcn.004029c0
mov bl, 1
push 8
call fcn.0046110e
add esp, 4
test eax, eax
je 0x415e01
push eax
push 0
push 0x415ab0
mov dword [eax + 4], 2
mov dword [eax], edi
call fcn.004632c0
add esp, 0xc
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x41a4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x51b228], ecx
inc edx
cmp edx, 0x100
jl 0x41a4a2
ret
Function at 0x41cd40
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
sub esp, 0xc
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
push ebp
mov esi, ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41cd84
test al, 0x10
jne 0x41cd84
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004606fe
add esp, 0xc
ret
push ebx
push edi
mov ecx, esi
call fcn.0040a360
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
movzx eax, word [esp + 0x24]
push 0x4cb430
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41ce03
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ce03
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0046110e
push esi
mov edi, eax
push ebx
push edi
call fcn.00469530
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebp
push ecx
mov eax, esi
mov ecx, edi
call fcn.0041d4d0
add esp, 8
test eax, eax
jne 0x41ce22
xor esi, esi
mov dword [0x519f6c], 1
jmp 0x41ce26
pop edi
pop ebx
pop esi
mov dword [0x519f6c], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004606fe
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
test edi, edi
je 0x41ce33
push edi
call fcn.004611d8
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.004606fe
add esp, 0xc
ret
Function at 0x41dd40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x41ddd0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.00469530
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41dd9f
sub eax, ebp
jmp 0x41dda1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41dd90
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41ddc0
sub eax, ebp
jmp 0x41ddc2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41ddb1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41de8b
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x41ddf8
mov ebx, ecx
test ebx, ebx
je 0x41de4d
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41de19
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0041d590
jmp 0x41de31
cmp eax, 2
jne 0x41de3b
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x41de2b
xor eax, eax
jmp 0x41de38
push ebx
call fcn.0041d810
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00469530
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x41de77
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41de8b
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x41dd50
pop edi
pop ebp
pop ebx
add esp, 8
ret