joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403550
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x403574
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40356d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x403600
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x405200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40521e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40525f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x625010fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
jmp 0x625011af
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [esp], eax
call fcn.6250102b
cmp dword [ebp + 0xc], eax
jne 0x625011ab
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x24]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x625011ba
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x62501164
cmp dword [ebp - 4], 0
je 0x625011d6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x625011d9
mov eax, dword [ebp - 4]
leave
ret
Function at 0x62501215
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 4], 0
jmp 0x6250124b
mov eax, dword [ebp - 4]
mov ecx, eax
lea edx, [ebp - 0x11e]
mov eax, dword [ebp - 4]
add eax, edx
mov byte [eax], cl
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jl 0x62501235
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x625012d1
lea edx, [ebp - 0x11e]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax]
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x14]
mov eax, edx
mov edx, eax
mov eax, dword [ebp + 0x14]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
add eax, ecx
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x11e]
mov dword [esp + 8], eax
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11e]
mov dword [esp], eax
call fcn.625011db
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x62501271
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x6250139e
mov eax, dword [ebp - 8]
add eax, 1
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 8], edx
lea edx, [ebp - 0x11e]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0xc]
add eax, edx
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x11e]
mov dword [esp + 8], eax
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11e]
mov dword [esp], eax
call fcn.625011db
lea edx, [ebp - 0x11e]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
lea ecx, [ebp - 0x11e]
mov eax, dword [ebp - 0xc]
add eax, ecx
movzx eax, byte [eax]
movzx eax, al
add eax, edx
cdq
idiv dword [ebp - 0x18]
mov eax, edx
mov byte [ebp - 0x1d], al
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 0x1d]
movzx eax, byte [ebp + eax - 0x11e]
xor eax, edx
mov byte [ebp - 0x1e], al
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add edx, eax
movzx eax, byte [ebp - 0x1e]
mov byte [edx], al
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jl 0x625012f3
nop
nop
leave
ret
Function at 0x402620
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [esi + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [esi + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [esi + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [esi + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [esi + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [esi + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [esi + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [esi + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [esi + 0x1c], al
lea eax, [esi + 0x1d]
mov bh, byte [edx + 0x1d]
mov byte [eax], bh
mov cl, byte [edx + 0x1e]
mov byte [esi + 0x1e], cl
mov cl, byte [edx + 0x1f]
mov byte [esi + 0x1f], cl
mov esi, 8
nop dword [eax + eax]
mov cl, byte [eax + 1]
mov edi, esi
mov dl, byte [eax + 2]
mov bl, byte [eax - 1]
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
and edi, 7
jne 0x40275e
movzx ecx, cl
movzx edx, bh
mov bh, byte [ecx + 0x45aa18]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x45aa18]
mov byte [ebp - 1], cl
movzx ecx, bl
mov cl, byte [ecx + 0x45aa18]
mov byte [ebp - 2], cl
mov ecx, esi
shr ecx, 3
mov bl, byte [ecx + 0x45a908]
xor bl, byte [edx + 0x45aa18]
jmp 0x40278e
cmp edi, 4
jne 0x40278e
movzx ecx, bl
mov bl, byte [ecx + 0x45aa18]
movzx ecx, bh
mov bh, byte [ecx + 0x45aa18]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + 0x45aa18]
mov byte [ebp - 1], cl
movzx ecx, dl
mov cl, byte [ecx + 0x45aa18]
mov byte [ebp - 2], cl
mov cl, byte [eax - 0x1d]
inc esi
xor cl, bl
mov byte [eax + 3], cl
mov cl, byte [eax - 0x1c]
xor cl, bh
mov byte [ebp - 3], cl
mov bh, byte [ebp - 3]
mov byte [eax + 4], cl
mov cl, byte [eax - 0x1b]
xor cl, byte [ebp - 1]
mov byte [eax + 5], cl
mov cl, byte [eax - 0x1a]
xor cl, byte [ebp - 2]
mov byte [eax + 6], cl
add eax, 4
cmp esi, 0x3c
jb 0x402710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov ebx, 4
push esi
push edi
mov dword [ebp - 8], eax
mov esi, ecx
lea edi, [eax + 0xe0]
nop dword [eax + eax]
mov edx, 4
mov al, byte [edi]
inc edi
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x402c45
sub ebx, 1
jne 0x402c40
mov eax, dword [ebp - 8]
add eax, 0xd0
mov byte [ebp - 1], 0xd
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
nop dword [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x45a918]
mov byte [ecx - 4], al
sub edx, 1
jne 0x402cd0
inc edi
sub ebx, 1
jne 0x402cc0
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ebx, 4
mov edi, 4
nop dword [eax]
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x402d00
sub ebx, 1
jne 0x402cf4
mov ecx, esi
call fcn.004027d0
mov dl, byte [ebp - 1]
sub dword [ebp - 0xc], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x402c64
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x45a918]
mov byte [ecx - 4], al
sub edx, 1
jne 0x402d90
inc edi
sub ebx, 1
jne 0x402d82
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
mov ecx, 4
nop dword [eax]
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x402dc0
sub dword [ebp - 0xc], 1
jne 0x402db4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b66d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x461020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00407070
push 8
call fcn.0042b498
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.0042a210
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
call fcn.0040e1f0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x40d047
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40d047
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x40d063
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00407070
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dd00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b730
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x461020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042b498
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042a210
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
cmp dword [eax], ecx
jle 0x4145c4
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
nop
mov esi, dword [edx]
add esi, ecx
mov al, byte [esi]
mov byte [ebp - 0x14], al
mov eax, dword [edx + 4]
mov al, byte [ecx + eax]
mov byte [ebp - 0x10], al
mov eax, dword [edx + 8]
mov al, byte [ecx + eax]
mov byte [ebp - 8], al
mov eax, dword [edx + 0xc]
mov al, byte [ecx + eax]
mov byte [ebp - 4], al
push dword [ebp - 4]
push 9
call fcn.00414330
push dword [ebp - 8]
mov bl, al
push 0xd
call fcn.00414330
push dword [ebp - 0x10]
xor bl, al
push 0xb
call fcn.00414330
mov edi, dword [ebp - 0x14]
xor bl, al
push edi
push 0xe
call fcn.00414330
push dword [ebp - 4]
xor bl, al
push 0xd
mov byte [esi], bl
call fcn.00414330
push dword [ebp - 8]
mov bl, al
push 0xb
call fcn.00414330
mov esi, dword [ebp - 0x10]
xor bl, al
push esi
push 0xe
call fcn.00414330
push edi
push 9
xor bl, al
call fcn.00414330
mov ecx, dword [ebp - 0xc]
xor bl, al
mov eax, dword [ebp + 8]
push dword [ebp - 4]
push 0xb
mov eax, dword [eax + 4]
mov byte [ecx + eax], bl
call fcn.00414330
push dword [ebp - 8]
mov bl, al
push 0xe
call fcn.00414330
push esi
push 9
xor bl, al
call fcn.00414330
push edi
push 0xd
xor bl, al
call fcn.00414330
mov ecx, dword [ebp - 0xc]
xor bl, al
mov eax, dword [ebp + 8]
push dword [ebp - 4]
push 0xe
mov eax, dword [eax + 8]
mov byte [ecx + eax], bl
call fcn.00414330
push dword [ebp - 8]
mov bl, al
push 9
call fcn.00414330
xor bl, al
push esi
push 0xd
call fcn.00414330
push edi
push 0xb
xor bl, al
call fcn.00414330
mov edx, dword [ebp + 8]
xor bl, al
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], bl
inc ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
cmp ecx, dword [eax]
jl 0x4144b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4154f0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov edx, 0x35
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00414b20
cmp dword [eax + 0x14], 8
jb 0x415512
mov eax, dword [eax]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
cmp ecx, 8
jb 0x41555c
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4155a4
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x415597
cmp dword [0x465014], 8
mov eax, 0x465000
push 0
cmovae eax, dword [0x465000]
push 0
push 3
push 0
push 0
push 0x1bb
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 8], eax
test eax, eax
je 0x415597
mov byte [esi], 1
cmp byte [esi], 1
pop esi
sete al
mov esp, ebp
pop ebp
ret 8
call fcn.0043042f
int3
Function at 0x415cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x461020]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
call fcn.00402620
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x108], xmm0
test edi, edi
je 0x415d84
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x108]
dec eax
sub edi, esi
shr eax, 4
inc eax
mov dword [esp + 0xc], eax
nop dword [eax]
movups xmm0, xmmword [esi]
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00402c20
mov ecx, 0x10
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x415d63
sub edi, 0x10
sub dword [esp + 0xc], 1
movups xmmword [esp + 0x108], xmm0
jne 0x415d50
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + edi - 1]
cmp eax, 0x10
ja 0x415daa
sub edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret

Function at 0x415f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x461020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x100
push ebx
xor bl, bl
mov dword [ebp - 0x10], 0
cmp edx, ecx
push esi
cmovne ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
or ecx, 0x20019
cmp dword [eax + 0x14], 0x10
push edi
mov edi, dword [ebp + 0xc]
jb 0x415f8e
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
push ecx
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416030
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], eax
mov eax, edi
jb 0x415fb6
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416027
push eax
mov eax, dword [ebp - 8]
mov ecx, esi
dec eax
mov dword [ebp - 0xc], 1
push eax
call fcn.00403fd0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x415fec
mov eax, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x415ff4
mov edi, dword [edi]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416027
cmp dword [ebp - 8], eax
jne 0x416025
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41601c
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], bl
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b459
mov esp, ebp
pop ebp
ret
Function at 0x4191f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41924e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x419210
mov eax, dword [edi]
jmp 0x419339
cmp eax, 0x4e0
jb 0x419339
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x419270
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4192c0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret