joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6510
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6107e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.004a6680
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x30]
call fcn.004a5210
mov ecx, dword [ebp + 8]
push eax
push 0x719d24
mov dword [ebp - 4], 0
call fcn.004975a0
mov edx, dword [ebp - 0x10]
pop esi
cmp edx, 0x10
jb 0x4a658b
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6581
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a659b
push edx
push ecx
call fcn.00507e8e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.005184a7
int3

Function at 0x4a7c30
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a7c66
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x4a7c66
jne 0x4a7c5d
cmp dword [esp + 8], 2
jb 0x4a7c66
xor al, al
add esp, 0x114
ret
mov al, 1
add esp, 0x114
ret

Function at 0x4a7e20
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6107e8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 8], 0xffffffff
jne 0x4a7e5b
mov esi, dword [ebx]
mov ecx, edi
call fcn.004a2010
push eax
mov ecx, ebx
call dword [esi + 0x90]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
call fcn.004a1ef0
push eax
mov ecx, edi
call fcn.004a1f80
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4a7ed6
call esi
cmp eax, 0x2714
je 0x4a7e61
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004a2130
mov edx, eax
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004a8fe0
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4a7ed6
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a7ecc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7ee9
push edx
push ecx
call fcn.00507e8e
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.005184a7
int3
Function at 0x4a7ef0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
jne 0x4a7f31
mov esi, dword [edi]
mov ecx, ebx
call fcn.004a2010
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004a1ef0
mov ecx, ebx
mov esi, eax
call fcn.004a1f80
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4a7fef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x4a7fcb
cmp esi, 0x2733
je 0x4a7fcb
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.004a2130
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004a8fe0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4a7fcb
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a7fc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a802b
push edx
push ecx
call fcn.00507e8e
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x4a8030
mov ecx, edi
call fcn.004a8e00
test eax, eax
je 0x4a7fef
mov ecx, eax
call fcn.004a8f60
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [edi]
push 1
call dword [eax + 0x84]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.005184a7
push str.connect_timed_out
lea ecx, [ebp - 0x44]
call fcn.00455927
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004a2130
push ecx
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.0046fa50
push 0x709440
lea eax, [ebp - 0x88]
push eax
call fcn.0050c727
int3
Function at 0x4a8080
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6107e8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x4a80bb
mov esi, dword [edi]
mov ecx, ebx
call fcn.004a2010
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
call fcn.004a1ef0
push eax
mov ecx, ebx
call fcn.004a1f80
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4a8147
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x4a8147
cmp esi, 0x2733
je 0x4a8147
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004a2130
mov edx, eax
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004a8fe0
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4a8147
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a813d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a815a
push edx
push ecx
call fcn.00507e8e
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.005184a7
int3

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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x4a84d7
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
or eax, dword [ecx + 4]
je 0x4a84d7
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x4a853d
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4a8526
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x4a8511
test edi, edi
jns 0x4a851a
call ebx
cmp eax, 0x2714
je 0x4a84e4
test edi, edi
jns 0x4a851a
call fcn.004a8eb0
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.00496100
push 0x709888
mov eax, ecx
push eax
call fcn.0050c727
push 0
lea ecx, [esp + 8]
call fcn.0046fa10
push 0x709440
mov eax, ecx
push eax
call fcn.0050c727
int3
Function at 0x4a8563
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x4a858b
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x4a858b
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x4a8617
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4a8600
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x4a85c5
test edi, edi
jns 0x4a85f4
call ebx
cmp eax, 0x2714
je 0x4a8598
test edi, edi
jns 0x4a85f4
call ebx
cmp eax, 0x2733
jne 0x4a85da
cmp byte [esi + 0x20], 0
jne 0x4a862f
jmp 0x4a85f4
cmp eax, 0x274c
je 0x4a862f
mov ecx, eax
call fcn.004a8f60
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.00496100
push 0x709888
mov eax, ecx
push eax
call fcn.0050c727
push 0
lea ecx, [esp + 8]
call fcn.0046fa10
push 0x709440
mov eax, ecx
push eax
call fcn.0050c727
push eax
lea ecx, [esp + 0x14]
call fcn.0046fa10
push 0x709440
mov eax, ecx
push eax
call fcn.0050c727
int3

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x612098
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x21], 0
je 0x4a8715
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x4a8715
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x4a87d2
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], 0x1c
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4a87bc
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x4a875b
test edi, edi
jns 0x4a875f
call ebx
cmp eax, 0x2714
je 0x4a8722
test edi, edi
js 0x4a8788
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x14]
call fcn.004a1d00
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.004a1de0
lea ecx, [ebp + 0x14]
call fcn.0045ebc0
jmp 0x4a87a7
call ebx
cmp eax, 0x2733
jne 0x4a8799
cmp byte [esi + 0x20], 0
jne 0x4a87e9
jmp 0x4a87a7
cmp eax, 0x274c
je 0x4a87e9
mov ecx, eax
call fcn.004a8f60
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ecx
lea ecx, [ebp - 0x58]
call fcn.00496100
push 0x709888
mov eax, ecx
push eax
call fcn.0050c727
push 0
lea ecx, [ebp - 0x58]
call fcn.0046fa10
push 0x709440
mov eax, ecx
push eax
call fcn.0050c727
push eax
lea ecx, [ebp - 0x84]
call fcn.0046fa10
push 0x709440
mov eax, ecx
push eax
call fcn.0050c727
int3
Function at 0x4a8bb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 8]
sub esp, 0x4c
push esi
cmp eax, 0xffffffff
je 0x4a8c11
lea ecx, [esp + 4]
mov dword [esp + 4], 0x1c
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a8bfa
push dword [esp + 4]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
call fcn.004a1d00
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004a8eb0
mov ecx, dword [ebp + 8]
call fcn.004a1c40
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4
push ecx
lea ecx, [esp + 0x28]
call fcn.00496100
push 0x709888
mov eax, ecx
push eax
call fcn.0050c727
int3

Function at 0x4aac40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4c
cmp dword [edx + 0x10], 0
push esi
mov esi, ecx
je 0x4aacba
cmp dword [edx + 0x14], 0x10
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x30], 4
jb 0x4aac6f
mov edx, dword [edx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4aacba
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov eax, dword [eax + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.004a9f30
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004a9f60
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004a9ef0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ab020
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, edx
xorps xmm0, xmm0
push edi
mov edi, ecx
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x10], 0x402
jb 0x4ab052
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4ab086
push dword [esp + 8]
mov ecx, edi
call fcn.004abd80
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.004ab090
int3
Function at 0x4c5500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61341f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x10], 0
lea esi, [ebx + 0x60]
mov dword [ebx], 0x6f11b8
mov dword [esi], 0x6ee228
push edi
mov dword [ebx + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push dword [ebp + 8]
call fcn.004c5410
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
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
mov dword [edi + 0xc], 0
call fcn.004e2142
mov esi, eax
add esp, 4
test esi, esi
je 0x4c5603
push 1
mov dword [ebp - 4], 3
call fcn.00508da5
add esp, 4
mov dword [esi + 4], eax
jmp 0x4c5605
xor esi, esi
lea eax, [ebx + 4]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 4
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 5
push eax
call fcn.00457f56
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 6
test esi, esi
je 0x4c566b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x4c5668
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 2
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4c568b
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x4c56b8
mov eax, dword [ebx]
pop edi
pop esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.Poco::Base64Decoder.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
test cl, 4
je 0x4c56c4
mov esi, str.ios_base::badbit_set
jmp 0x4c56d4
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00455295
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.004554a6
push 0x708b84
lea eax, [ebp - 0x34]
push eax
call fcn.0050c727
int3
Function at 0x4c5f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6134bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x10], 0
lea esi, [ebx + 0x60]
mov dword [ebx], 0x6ee230
mov dword [esi], 0x6ee9ac
push edi
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push dword [ebp + 8]
call fcn.004c5e70
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov edi, dword [eax + 4]
add edi, esi
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
mov dword [edi + 0xc], 0
call fcn.004e2142
mov esi, eax
add esp, 4
test esi, esi
je 0x4c6065
push 1
mov dword [ebp - 4], 3
call fcn.00508da5
add esp, 4
mov dword [esi + 4], eax
jmp 0x4c6067
xor esi, esi
lea eax, [ebx + 4]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 4
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 5
push eax
call fcn.00457f56
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 6
test esi, esi
je 0x4c60cd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x4c60ca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 2
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4c60ed
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x4c611a
mov eax, dword [ebx]
pop edi
pop esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.Poco::Base64Encoder.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
test cl, 4
je 0x4c6126
mov esi, str.ios_base::badbit_set
jmp 0x4c6136
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00455295
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.004554a6
push 0x708b84
lea eax, [ebp - 0x34]
push eax
call fcn.0050c727
int3
Function at 0x4c63e0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call fcn.0050c430
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret
Function at 0x4c7430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61354f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push esi
mov dword [ebp - 0x18], 0
lea esi, [ebx + 0x50]
mov dword [ebx], 0x6edcec
mov dword [esi], 0x6ee228
push edi
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], 1
call fcn.004c7350
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
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
mov dword [edi + 0xc], 0
call fcn.004e2142
mov esi, eax
add esp, 4
test esi, esi
je 0x4c752e
push 1
mov dword [ebp - 4], 3
call fcn.00508da5
add esp, 4
mov dword [esi + 4], eax
jmp 0x4c7530
xor esi, esi
lea eax, [ebx + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 4
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
push eax
call fcn.00457f56
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 6
test esi, esi
je 0x4c7596
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x4c7593
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 2
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4c75b6
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x4c75e3
mov eax, dword [ebx]
pop edi
pop esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.Poco::RandomInputStream.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x4c75ef
mov esi, str.ios_base::badbit_set
jmp 0x4c75ff
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00455295
add esp, 8
lea ecx, [ebp - 0x3c]
push eax
push esi
call fcn.004554a6
push 0x708b84
lea eax, [ebp - 0x3c]
push eax
call fcn.0050c727
int3
Function at 0x4e5878
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 0x4e58cb
push esi
push dword [ebp + 8]
call fcn.004e5a61
mov edi, eax
test edi, edi
je 0x4e58c6
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 0x4e58c6
mov eax, dword [ebp - 8]
jmp 0x4e58dd
mov eax, dword [ebp + 0x10]
jmp 0x4e58dd
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
leave
ret 0xc

Function at 0x4e6a35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x4e6a60
cmp dword [ebx + 0x80], 0
jne 0x4e6a60
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.004f1179
push 5
push edi
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]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.004e6ca0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4e7f0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4e7f56
call fcn.004f1179
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e7f53
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e7fa6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x4e7f83
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x61e860]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x4e7f83
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4e7fa4
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x61e860]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc