joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5687e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x2da4]
mov eax, 0x2da4
call fcn.006197b0
push 0xffffffffffffffff
push 0x658fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x2da0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x2db0]
mov edi, dword [ebp + 0x2db4]
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push 0x2da0
push esi
lea eax, [ebp]
push eax
call fcn.00618760
mov ecx, dword [edi]
push ecx
push esi
mov edx, dword [ebx]
push edx
call fcn.00618760
add esp, 0x18
jmp 0x568860
push 0
push 0x2da0
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x2dac]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x568910
mov edx, dword [ebp - 0x14]
lea esi, [eax + edx]
mov dword [ebp - 0x24], esi
cmp esi, dword [edi]
jle 0x5688f5
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
lea edi, [esi + esi]
push edi
call fcn.005ec342
add esp, 4
mov esi, eax
test esi, esi
jne 0x5688c1
push 1
mov ecx, dword [0x75599c]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0055bf00
mov eax, 0x753b
jmp 0x568944
push edi
push 0
push esi
call fcn.00618760
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebx]
push ecx
push esi
call fcn.00619c20
mov dword [ebx], esi
mov edx, dword [ebp - 0x18]
mov dword [edx], edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.005ec337
add esp, 0x1c
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
push eax
lea ecx, [ebp]
push ecx
mov edx, dword [ebx]
add edx, dword [ebp - 0x14]
push edx
call fcn.00619c20
add esp, 0xc
mov dword [ebp - 0x14], esi
jmp 0x568860
xor eax, eax
jmp 0x568944
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2da0]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x2da4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56a1d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659248
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x194]
cmp dword [eax], ebx
je 0x56a32a
cmp dword [eax + 0x168], ebx
je 0x56a32a
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push 1
mov eax, dword [0x755adc]
push eax
mov ecx, esi
call fcn.0055bf00
push 0x6722a4
mov ecx, dword [esi + 0x194]
mov edx, dword [ecx + 0x168]
push edx
push str.USER__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x56a270
sub eax, edi
push str.send___Proxy_USER_n
push ebx
push eax
push edx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
cmp edi, ebx
je 0x56a2c6
mov eax, dword [esi + 0x3204]
mov dword [eax + 0x140], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
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 0x56a340
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659278
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push 1
mov eax, dword [0x755ae0]
push eax
mov ecx, esi
call fcn.0055bf00
push 0x6722a4
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0x10]
push edx
push str.PASS__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x56a3b8
sub eax, edi
push str.send___PASS_n
push ebx
push eax
push edx
mov ecx, dword [esi + 0x31f4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
cmp edi, ebx
je 0x56a40e
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
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 0x56a490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6592a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x194]
cmp dword [eax], ebx
je 0x56a5df
cmp dword [eax + 0x16c], ebx
je 0x56a5df
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push 1
mov eax, dword [0x755ae0]
push eax
mov ecx, esi
call fcn.0055bf00
push 0x6722a4
mov ecx, dword [esi + 0x194]
mov edx, dword [ecx + 0x16c]
push edx
push str.PASS__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x56a525
sub eax, edi
push str.send___proxy_PASS_n
push ebx
push eax
push edx
mov ecx, dword [esi + 0x31f4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
cmp edi, ebx
je 0x56a57b
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
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 0x56adf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659368
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push 1
mov eax, dword [0x755abc]
push eax
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 4]
push 0x6722a4
push 0x6722a4
cmp eax, ebx
je 0x56ae6b
push eax
push str.CWD__s_sTYPE_I_s
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x14
jmp 0x56ae7c
push str.TYPE_I_sNOOP_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
mov dword [esi + 0x9c], 0xb
mov ecx, esi
call fcn.0055b910
push 0x3ff
push ebx
lea ecx, [esi + 0x3240]
push ecx
call fcn.00618760
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x56aeb0
sub eax, edi
push str.send___test_sequence
push ebx
push eax
push edx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
cmp edi, ebx
je 0x56aee7
mov eax, dword [esi + 0x3204]
mov dword [eax + 0x140], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, edi
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 0x56b010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6593c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x194]
cmp dword [eax], ebx
je 0x56b0bb
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x14]
cmp eax, 0x15
je 0x56b08c
push eax
push str.:_ld
lea edx, [ebp - 0x18]
push edx
call fcn.00402f70
add esp, 0xc
jmp 0x56b099
push 0x670984
lea ecx, [ebp - 0x18]
call fcn.005494d0
mov eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [eax + 0xc]
push eax
push str._s__s_s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402f70
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
push 1
mov edx, dword [0x755adc]
push edx
mov ecx, esi
call fcn.0055bf00
mov eax, dword [esi + 0x194]
cmp dword [eax], ebx
je 0x56b0e6
mov eax, dword [ebp - 0x1c]
jmp 0x56b106
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.004030b0
mov byte [ebp - 4], 4
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
push 0x6722a4
push eax
push str.USER__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x56b137
and ebx, 0xfffffffe
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x24]
call fcn.00402570
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56b150
sub eax, edi
push str.send___USER_n
push 0
push eax
push edx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
test edi, edi
je 0x56b1c0
mov eax, dword [esi + 0x3204]
mov dword [eax + 0x140], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
xor eax, eax
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 0x56d010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659689
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 1
push 0x670984
lea ecx, [ebp - 0x14]
call fcn.004030b0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x56d0a8
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x56d077
sub eax, edi
test eax, eax
jle 0x56d0a8
cmp byte [ecx + eax - 1], 0x2f
mov eax, 0x670984
je 0x56d095
mov eax, 0x674e00
push eax
push ecx
push 0x66fde0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
push str.Get_MDTM..._r_n
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esi + 0xc0]
cmp byte [edx + 0x19d], 0
je 0x56d0c8
mov eax, dword [ebp - 0x14]
jmp 0x56d0e3
push 0x670984
lea ecx, [ebp - 0x20]
call fcn.004030b0
mov byte [ebp - 4], 3
mov ebx, 1
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
push 0x6722a4
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 8]
push edx
push eax
push str.MDTM__s_s_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0x14
mov dword [ebp - 4], 2
test bl, 1
je 0x56d11e
and ebx, 0xfffffffe
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x20]
call fcn.00402570
mov edx, dword [ebp - 0x18]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56d126
sub eax, edi
push str.send___MDTM
push 0
push eax
push edx
mov ecx, dword [esi + 0x31f4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov edi, eax
test edi, edi
je 0x56d18a
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x13
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402570
xor eax, eax
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 0x571ec0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659a28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.005acd30
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.FTPSession.0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x14c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.005ac5c0
mov edx, dword [ebp + 0x18]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24c], eax
mov ecx, esi
call fcn.00571530
push edi
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x880], eax
mov dword [ebp - 4], edi
jmp 0x571f6e
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x574bc0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
push esi
mov esi, dword [esp + 0x18]
lea edx, [edx + ebx + 7]
push edx
push esi
call fcn.00573f30
add esp, 8
test eax, eax
jne 0x574bef
pop esi
pop ebx
pop ecx
ret 0xc
push esi
call fcn.0054ea60
mov ecx, eax
add esp, 4
xor eax, eax
test ebx, ebx
jbe 0x574cbe
lea edx, [ebx - 1]
mov eax, 0xaaaaaaab
mul edx
push ebp
mov ebp, edx
shr ebp, 1
inc ebp
mov esi, 2
lea eax, [ebp + ebp*2]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
lea ebx, [ebx]
lea edx, [esi - 1]
cmp edx, ebx
jae 0x574c3c
mov al, byte [edi + 1]
jmp 0x574c3e
xor al, al
cmp esi, ebx
jae 0x574c47
mov dl, byte [edi + 2]
jmp 0x574c49
xor dl, dl
movzx esi, byte [edi]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], bl
movzx esi, byte [edi]
movzx eax, al
and esi, 3
mov ebx, eax
shl esi, 4
shr ebx, 4
or esi, ebx
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
movzx esi, dl
and eax, 0xf
mov edx, esi
mov byte [ecx + 1], bl
mov ebx, dword [esp + 0x1c]
add eax, eax
inc ecx
shr edx, 6
add eax, eax
or edx, eax
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
inc ecx
and esi, 0x3f
mov byte [ecx], al
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov esi, dword [esp + 0x20]
inc ecx
mov byte [ecx], dl
add esi, 3
inc ecx
add edi, 3
sub ebp, 1
mov dword [esp + 0x20], esi
jne 0x574c30
mov eax, dword [esp + 0x10]
pop edi
pop ebp
lea edx, [ebx + 1]
cmp eax, edx
jne 0x574cd7
pop esi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov eax, 1
pop ebx
pop ecx
ret 0xc
add ebx, 2
cmp eax, ebx
jne 0x574ce6
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebx
pop ecx
ret 0xc
Function at 0x5758b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659c00
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x31f8]
mov ecx, dword [eax + 0xb8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [esi + 0xc0]
call fcn.005c94f0
mov eax, dword [esi + 0x31f8]
mov edi, 1
mov dword [eax + 0x138], edi
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0x320], 0
je 0x575937
mov eax, dword [esi + 0x31f8]
test eax, eax
je 0x575937
cmp dword [eax + 0x40], 0
jne 0x5759ee
mov eax, dword [esi + 0x31f8]
mov edx, dword [eax + 0xc8]
or edx, dword [eax + 0xcc]
je 0x5759e7
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp + 8], 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push str.bIgnMTCh
mov edx, dword [0x754bec]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x575987
cmp dword [ebp - 0x18], eax
je 0x575987
mov bl, 1
mov byte [ebp - 0x11], bl
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + 8]
test eax, eax
je 0x5759e7
test bl, bl
jne 0x5759e7
push 0x3f
push eax
call fcn.00619660
add esp, 8
test eax, eax
jne 0x5759e7
mov ecx, dword [esi + 0x31f8]
cmp dword [ecx + 0x13c], eax
jne 0x5759da
push 0x50044
mov edx, dword [esi + 0xc0]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x755ba4]
push ecx
push 0
call fcn.0046f4c0
add esp, 0x10
cmp eax, 7
je 0x5759ee
mov dword [esi + 0x3250], edi
mov byte [esi + 0x3254], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x588920
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a920
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea esi, [edi + 0x86c]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
cmp dword [esi], 0xffffffff
je 0x5889a3
mov dword [ebp - 0x18], eax
cmp eax, 0x20
jge 0x5889c3
mov edx, eax
imul edx, edx, 0x3470
mov ecx, dword [edi + 0x25c]
mov dword [edx + ecx + 0x108], esi
inc eax
jmp 0x588983
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
jge 0x5889c3
mov edx, eax
imul edx, edx, 0x3470
mov ecx, dword [edi + 0x25c]
mov dword [edx + ecx + 0x108], ebx
inc eax
jmp 0x5889a3
mov dword [ebp - 4], 0xffffffff
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 0x589140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
lea esp, [esp]
push 0
lea edx, [esp + 0x1c]
mov eax, esi
sub eax, 4
push edx
mov ecx, ebx
push eax
sbb ecx, 0
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x5891a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x589290
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x589290
cmp dword [esp + 0x10], 4
jne 0x589290
lea edx, [esp + 0x20]
push edx
call fcn.005a25a0
add esp, 4
test eax, eax
jbe 0x589290
xor ecx, ecx
mov edx, 0xfffffffc
sub edx, eax
mov eax, 0xffffffff
sbb eax, ecx
add esi, edx
adc ebx, eax
js 0x589290
jg 0x589209
test esi, esi
jbe 0x589290
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x58922b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x589290
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x589253
cmp dword [esp + 0x10], 0xc
jne 0x589290
lea ecx, [esp + 0x24]
push ecx
call fcn.005a2570
movsx edx, byte [esp + 0x2b]
shl edx, 0x18
add esp, 4
or eax, edx
je 0x589170
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0061807e
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0061807e
add esp, 0x20
ret 0x10