joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415028
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004061e0
mov eax, dword [0x431010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413531
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41506a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4151c6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421610
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4328f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041601f
mov ecx, dword [esi*4 + 0x4328f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4151bf
cmp eax, dword [edi + ecx + 0x24]
jne 0x4151bf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4151bf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041601f
add esp, 0x14
test edx, edx
jl 0x4151bf
jg 0x415135
test eax, eax
jb 0x4151bf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4151bf
jl 0x41514f
cmp dword [ebp - 0x1008], eax
ja 0x4151bf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41516d
test ebx, ebx
je 0x4151a6
cmp ecx, edi
jae 0x4151a6
mov al, byte [ecx]
cmp al, 0xd
jne 0x415187
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415193
cmp byte [ecx + 1], 0xa
jne 0x415193
inc ecx
jmp 0x415193
movzx eax, al
movsx eax, byte [eax + 0x431298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41516d
cmp edx, ebx
jne 0x41516d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4151c4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040540a
leave
ret
Function at 0x4154bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4328f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4154fd
cmp byte [ebx], 0xa
jne 0x4154fd
or byte [eax + edi + 0x28], 4
jmp 0x415502
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415600
mov al, byte [edx]
cmp al, 0x1a
je 0x4155e2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x415531
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x415556
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x415560
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415513
jmp 0x415600
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4155dd
cmp dword [ebp - 0xc], 0
je 0x4155dd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4328f0]
test byte [eax + edi + 0x28], 0x48
je 0x4155b7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4155a2
mov byte [esi], dl
jmp 0x4155b3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4328f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415600
cmp byte [ebp - 1], 0xa
jne 0x4155c6
cmp esi, ebx
jne 0x4155c6
mov byte [esi], 0xa
jmp 0x4155ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041603d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415600
mov byte [esi], 0xd
jmp 0x4155ff
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4328f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4155fc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415600
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415609
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4328f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41564c
cmp word [esi], dx
jne 0x41564c
or byte [edi + eax + 0x28], 4
jmp 0x415651
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4157a4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415784
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415693
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4156c9
cmp eax, edx
jae 0x4156d5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41566b
jmp 0x4157a4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415780
cmp dword [ebp - 0x14], 0
je 0x415780
mov eax, dword [ebx*4 + 0x4328f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415758
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x415721
mov word [esi], cx
jmp 0x415754
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4328f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4328f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4328f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4157a4
pop ebx
cmp word [ebp - 4], bx
jne 0x415769
cmp esi, dword [ebp + 0xc]
jne 0x415769
mov word [esi], bx
jmp 0x4157a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041603d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4157a4
push 0xd
jmp 0x41579d
mov ecx, dword [ebx*4 + 0x4328f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41579b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4157a4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a46d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41a50a
push ebx
push esi
call fcn.0041a436
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004190bb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a4b7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a509
push edi
push eax
call fcn.00412640
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a4d7
call fcn.00411b9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a508
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004190bb
add esp, 0x20
test eax, eax
jne 0x41a4f6
push edi
call fcn.00411b9f
jmp 0x41a4fe
push ebx
call fcn.00411b9f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x421410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42143d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42143d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x427f00
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00427f8f
jae 0x427f0e
xor ecx, ecx
call fcn.00427f8f
jae 0x427f3d
xor eax, eax
call fcn.00427f8f
jae 0x427f4d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00427f8f
adc al, al
jae 0x427f2f
jne 0x427f79
stosb byte es:[edi], al
jmp 0x427f11
call fcn.00427f9b
sub ecx, ebx
jne 0x427f56
call fcn.00427f99
jmp 0x427f75
lodsb al, byte [esi]
shr eax, 1
je 0x427f83
adc ecx, ecx
jmp 0x427f72
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00427f99
cmp eax, 0x7d00
jae 0x427f72
cmp ah, 5
jae 0x427f73
cmp eax, 0x7f
ja 0x427f74
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x427f11
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00438a38
leave
ret 4

Function at 0x4019d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4019f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a0f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a06
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401a42
nop
cmp esi, ecx
jae 0x401a06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401a30
cmp esi, ecx
jae 0x401a06
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4029b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
push esi
mov eax, 0xaaaaaaab
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 3]
mul esi
lea eax, [ebx + 4]
shr edx, 1
add eax, edx
mov dword [ebp - 4], eax
cmp eax, dword [edi + 4]
jbe 0x402a14
push eax
call fcn.004414e5
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0043b130
mov eax, dword [edi]
add esp, 0x10
test eax, eax
je 0x402a0a
push dword [edi + 4]
push eax
push esi
call fcn.0043a630
push dword [edi]
call fcn.004414e0
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [edi], esi
mov dword [edi + 4], eax
jmp 0x402a16
mov esi, dword [edi]
xor ecx, ecx
test ebx, ebx
je 0x402aa9
mov edi, dword [ebp - 8]
lea ecx, [ebx - 1]
mov eax, 0xaaaaaaab
add edi, 2
mul ecx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp + 8], eax
nop dword [eax]
movzx eax, byte [edi - 2]
lea edi, [edi + 3]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], al
movzx ecx, byte [edi - 5]
movzx eax, byte [edi - 4]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + 1], al
movzx ecx, byte [edi - 4]
movzx eax, byte [edi - 3]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + 2], al
movzx eax, byte [edi - 3]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x402a40
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
cmp ecx, eax
jne 0x402ac2
pop edi
mov word [esi - 1], 0x3d
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 2]
mov byte [esi], 0
cmp ecx, eax
jne 0x402ad2
mov word [esi - 2], 0x3d3d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edi, edi
jle 0x403f13
mov ebx, dword [sym.imp.WS2_32.dll_recv]
nop
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call ebx
test eax, eax
je 0x403f29
cmp eax, 0xffffffff
je 0x403f1c
mov edx, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp - 8]
cmp esi, edi
jl 0x403ef0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edi, edi
jle 0x403f7f
mov ebx, dword [sym.imp.WS2_32.dll_send]
nop
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x403f88
mov edx, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp - 8]
cmp esi, edi
jl 0x403f60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404190
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a890
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
call fcn.00418791
mov ecx, eax
test ecx, ecx
je 0x404323
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x34], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov byte [ebp - 4], 1
xor esi, esi
mov edx, dword [ebp + 0xc]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x28], edx
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x404242
nop dword [eax]
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404235
mov ecx, dword [ebp + 8]
add esi, eax
mov edx, dword [ebp - 0x28]
cmp esi, edi
jl 0x404210
jmp 0x404242
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4042a5
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_recv]
xor esi, esi
nop word [eax + eax]
push 0
mov eax, 0x11
sub eax, esi
push eax
lea eax, [ebp - 0x24]
add eax, esi
push eax
push ecx
call edi
test eax, eax
je 0x4042a5
cmp eax, 0xffffffff
je 0x404278
mov ecx, dword [ebp + 8]
add esi, eax
cmp esi, 0x11
jl 0x404250
jmp 0x404282
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4042a5
lea edx, [ebp - 0x24]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404288
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edx, esi
push edx
push eax
call fcn.004067e0
mov edi, 1
jmp 0x4042c7
mov esi, dword [ebp - 0x30]
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push esi
call fcn.0040d4d0
push str._n_tPlease_make_sure_that_the_proxy_server_protocol_and_address_are_correct.
push 3
push esi
call fcn.0040d4d0
add esp, 0x18
xor edi, edi
mov edx, dword [ebp - 0x34]
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4042e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x404304
mov ecx, dword [eax]
push eax
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438a38
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00402150
int3
Function at 0x4104d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebx + 0x8c]
mov dword [ebp - 4], ecx
je 0x41051e
call fcn.0041d6d8
push 5
push dword [ebx + 0x84]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x41052e
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov edi, eax
xor esi, esi
inc esi
test edi, edi
je 0x41057a
mov edx, dword [edi]
mov eax, edx
shr eax, 0x10
mov dword [ebp - 4], 0xffff
cmp ax, word [ebp - 4]
jne 0x410559
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0xc]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x14]
jmp 0x410564
movzx eax, word [edi + 0xa]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0xc]
test edx, 0x1801
jne 0x410578
cmp word [ebp - 4], 0
jne 0x410578
test ax, ax
je 0x41057a
xor esi, esi
cmp dword [ebx + 0x84], 0
je 0x41058a
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418658
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xffffffffffffffff
push esi
call fcn.00422852
test eax, eax
je 0x4186af
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.0044a24f
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4186a4
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x418692
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004189a8
int3

Function at 0x41c9da
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41ca2d
push esi
push dword [ebp + 8]
call fcn.0041cbc7
mov edi, eax
test edi, edi
je 0x41ca28
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41ca28
mov eax, dword [ebp - 8]
jmp 0x41ca3f
mov eax, dword [ebp + 0x10]
jmp 0x41ca3f
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc