joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a726
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4c3f8c
je 0x48a7e2
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48a7ca
mov esi, dword [ebx + 4]
jmp 0x48a7c4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48a7b4
cmp dword [ebp - 0xc], 4
jne 0x48a7b4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x48a7ac
or dword [eax + 0x9c], ecx
jmp 0x48a7b4
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x48a778
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x48a75b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x48ab9b
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x493468
call fcn.004748b4
sub esp, 0x11c
mov eax, dword [0x4c4828]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x48ac94
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x48ac68
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00409660
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0048ab9b
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004048f0
test bl, bl
jne 0x48ac68
or dword [ebp - 4], 0xffffffff
jmp 0x48abd9
cmp esi, 0x103
je 0x48ac78
cmp esi, 0x3f2
jne 0x48ac88
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004748a3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48afcc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x48b001
cmp edi, dword [esi + 0xc]
jge 0x48b001
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48b001
cmp edi, dword [eax + 8]
jge 0x48b001
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x48b003
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x48b107
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x48b13b
jmp fcn.0047f88a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x48b1ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x48b2a5
cmp eax, dword [edi + 0xc]
jge 0x48b2a5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x48b1fd
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x48b28e
cmp dword [ebp + 0xc], ebx
je 0x48b28e
jmp 0x48b227
push 0x10
call fcn.0048ae98
cmp eax, ebx
je 0x48b213
mov ecx, eax
call fcn.0048b0fe
mov esi, eax
jmp 0x48b215
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x48b23e
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x48b24e
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x48b260
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0047f88a
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00472500
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x48b2a0
cmp ecx, dword [esi + 8]
jge 0x48b2a0
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x48b2a6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402571
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x40b988
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x40b0d8], eax
push esi
call fcn.00402613
cmp eax, ebx
mov dword [0x40b0cc], eax
jne 0x407dc2
mov dword [0x40b9a0], ebx
cmp dword [0x40b0cc], ebx
mov dword [ebp - 0x11c], 0x11c
jne 0x407ddc
push 4
call fcn.00402613
test eax, eax
jne 0x407e1d
mov dword [0x40b9a4], ebx
call dword [sym.imp.KERNEL32.DLL_GetACP]
mov dword [0x40b9a8], eax
call fcn.004026eb
push dword [ebp + 0xc]
call fcn.00402ab7
push dword [ebp + 0xc]
call fcn.00402ae1
pop edi
pop esi
pop ebx
leave
ret 8
push 4
call fcn.00402613
test eax, eax
mov dword [0x40b9a0], esi
je 0x4025c1
jmp 0x4025bb
cmp dword [0x40b9a0], ebx
jne 0x4025d7
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4025d7
cmp dword [ebp - 0x114], esi
jae 0x407e12
cmp dword [ebp - 0x118], 6
jb 0x4025d7
mov dword [0x40bcb0], esi
jmp 0x4025d7
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
mov dword [0x40b9a4], esi
jne 0x4025ec
jmp 0x4025e6

Function at 0x402613
Capabilities:
Check os version

Disassembly:
cmp dword [0x40ba5c], 0
push ebx
push esi
push edi
push 1
pop ebx
je 0x40267e
mov eax, dword [esp + 0x10]
cmp eax, 0x11
ja case.default.0x40262f
jmp dword [eax*4 + 0x402636]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edi, 0x40b9c0
push edi
mov dword [0x40ba5c], ebx
mov dword [0x40b9c0], 0x9c
call esi
test eax, eax
jne 0x402622
jmp 0x407f69
mov eax, ebx
jmp 0x4026e5
xor eax, eax
cmp dword [0x40b9d0], 2
sete al
jmp 0x4026e5
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
mov eax, dword [0x40b9c4]
cmp eax, 4
ja 0x4026a5
jne case.default.0x40262f
cmp dword [0x40b9c8], 0xa
jb case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], 2
je 0x407f98
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
push edi
mov dword [0x40b9c0], 0x94
call esi
jmp 0x402622
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
jmp 0x4026e5
test byte [0x40ba58], 0x10
je case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4026d2
call fcn.00407ee9
jmp 0x4026e5
mov al, byte [0x40ba5a]
cmp al, bl
je 0x407f98
cmp al, 3
je 0x407f98
cmp al, 2
jmp 0x4026dd
cmp byte [0x40ba5a], bl
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4080de
mov al, byte [0x40ba5a]
cmp al, 3
je 0x407feb
cmp al, 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jne case.default.0x40262f
mov al, byte [0x40ba58]
test al, 2
invalid
test dh, bl
cmpsb byte [esi], byte es:[edi]
invalid
Function at 0x416a3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x14], 1
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x64616f4c
mov dword [ebp - 0x3c], 0x6f736552
mov dword [ebp - 0x38], 0x65637275
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push 0x4082a8
call dword [0x4080dc]
push eax
call dword [0x4080d0]
mov dword [ebp - 8], eax
push 0x4082b8
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [0x4080a4]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [0x4080c4]
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [ebp - 8]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call dword [0x4080d8]
cmp dword [ebp + 0x10], 0x65
jne 0x416ae2
mov dword [ebp - 0x1c], 0xc6f
cmp dword [ebp + 0x10], 0x66
jne 0x416aef
mov dword [ebp - 0x1c], 0x145
push dword [ebp - 4]
call fcn.0041c585
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0x44]
push dword [ebp - 0x10]
call fcn.0041c573
add esp, 0xc
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.004165fb
push 0
push dword [ebp + 0x14]
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [fcn.004080a0]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x416b4c
and dword [ebp - 0x14], 0
jmp 0x416b61
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [fcn.004080bc]
cmp dword [ebp - 0x10], 0
je 0x416b76
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call fcn.0041c57f
pop ecx
cmp dword [ebp - 0x44], 0
je 0x416b85
push dword [ebp - 0x44]
call dword [0x4080a8]
cmp dword [ebp - 0x18], 0xffffffff
je 0x416b94
push dword [ebp - 0x18]
call dword [0x4080e8]
mov eax, dword [ebp - 0x14]
leave
ret 0x10
Function at 0x417f06
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
cmp dword [0x40c930], 0
jne 0x417f93
push 0x400
call fcn.0041c585
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x40c930], eax
and dword [ebp - 8], 0
jmp 0x417f3c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x417f93
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 8
jmp 0x417f5b
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x417f82
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x417f78
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0xc], eax
jmp 0x417f80
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp - 0xc], eax
jmp 0x417f54
mov eax, dword [ebp - 8]
mov ecx, dword [0x40c930]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
jmp 0x417f35
and dword [ebp - 0x14], 0
jmp 0x417fa0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jae 0x417fdc
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x40c930]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x417f99
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x41b443
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call fcn.0041c5a9
test eax, eax
je 0x41b47e
jmp 0x41b61f
push dword [ebp - 8]
push 0x40
call dword [0x40804c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41b497
jmp 0x41b61f
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push 0x408cf4
call dword [0x4080dc]
push eax
call dword [0x4080d0]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.0041c579
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41b5f6
and dword [ebp - 0x44], 0
jmp 0x41b50e
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x41b5f4
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x41b5ce
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408cfc
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408218]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [fcn.004080a0]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x41b5ce
push dword [ebp - 0x154]
call dword [0x4080e8]
lea eax, [ebp - 0x150]
push eax
call dword [0x4080f0]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408950
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408218]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.00419d5e
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x41b5ef
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.0041b443
jmp 0x41b507
jmp 0x41b601
cmp dword [ebp - 0x40], 0x103
je 0x41b601
jmp 0x41b60e
cmp dword [ebp - 0x40], 0x103
jne 0x41b4d3
push dword [ebp - 0xc]
call dword [0x408050]
push dword [ebp - 4]
call fcn.0041c5a3
leave
ret 4
Function at 0x4019f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x401a07
xor eax, eax
mov esp, ebp
pop ebp
ret 8
push ebx
mov eax, 0xaaaaaaab
mul ecx
push esi
push edi
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
cmp eax, ecx
mov dword [ebp - 0xc], eax
lea edx, [eax + 2]
sbb ebx, ebx
mov dword [ebp - 0x10], edx
neg ebx
add ebx, edi
lea eax, [ebx*4 + 3]
push eax
call fcn.00405cb3
mov esi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
test edi, edi
je 0x401abd
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp - 4], edi
add esi, 2
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
shr eax, 2
lea esi, [esi + 4]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 6], al
movzx ecx, byte [edx - 4]
movzx eax, byte [edx - 5]
shl eax, 4
shr ecx, 4
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 5], al
movzx ecx, byte [edx - 3]
movzx eax, byte [edx - 4]
shl eax, 2
shr ecx, 6
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 4], al
movzx eax, byte [edx - 3]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 3], al
sub edi, 1
jne 0x401a53
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jbe 0x401b2d
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea edx, [eax + edi*2]
movzx eax, byte [edx + edi]
add edx, edi
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edi*4], al
movzx eax, byte [edx]
cmp ecx, dword [ebp - 0x10]
jne 0x401b12
movzx ecx, byte [edx + 1]
shl eax, 4
shr ecx, 4
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edi*4 + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x401b24
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edi*4 + 1], al
mov al, 0x3d
mov byte [esi + edi*4 + 2], al
mov byte [esi + edi*4 + 3], 0x3d
pop edi
mov byte [esi + ebx*4], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403a70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0xe
push str.__qwertyuiop__
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004014f0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 5
push str._r_n._r_n
cmp eax, 5
jb 0x403b03
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 5]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 5], 0
jmp 0x403b14
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 5
call fcn.004057f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403bd5
push 0x401
lea esi, [edi + 0x9c]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 0x400
push esi
push dword [edi + 0x4a4]
call ebx
cmp eax, 0xffffffff
je 0x403bd5
push 6
push str.QUIT_r_n
lea ecx, [ebp - 0x28]
mov byte [edi + eax + 0x9c], 0
call fcn.004014f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403bd5
push 0x401
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [edi + 0x4a4]
call ebx
cmp eax, 0xffffffff
je 0x403bd5
mov byte [edi + eax + 0x9c], 0
mov bl, 1
jmp 0x403bd7
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x403c0d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403c03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403c03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00405c7d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405c3f
mov esp, ebp
pop ebp
ret
Function at 0x403c30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x40a008]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 0
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [edi + 0x18], 0x10
lea ecx, [edi + 4]
mov esi, eax
jb 0x403c61
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, 2
mov word [esp + 0xc], ax
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403d28
push 0x401
mov dword [edi + 0x4a4], esi
lea esi, [edi + 0x9c]
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [edi + 0x4a4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403d28
mov ecx, edi
mov byte [edi + eax + 0x9c], 0
call fcn.00402130
test eax, eax
jne 0x403d2d
mov ecx, edi
call fcn.00402590
test al, al
je 0x403d28
mov ecx, edi
call fcn.00403020
test al, al
je 0x403d28
mov ecx, edi
call fcn.00403220
test eax, eax
jne 0x403d2d
mov ecx, edi
call fcn.00403a70
test al, al
je 0x403d28
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00405c3f
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00405c3f
mov esp, ebp
pop ebp
ret
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40408c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4040ae
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4040b0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x404135
jg 0x4040c5
test esi, esi
je 0x404135
test ecx, ecx
jl 0x404118
jg 0x4040cf
test eax, eax
je 0x404118
cmp edi, ecx
jg 0x4040e3
jl 0x4040d9
cmp esi, eax
jae 0x4040e3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x404135
jg 0x40411b
test esi, esi
je 0x404135
jmp 0x40411b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404135
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc