joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + esi + 2], 0
lea esi, [esi + 2]
jne 0x443c10
sar esi, 1
lea ebx, [esi + 4]
mov ecx, esi
and ecx, 1
mov eax, ebx
or eax, 1
add eax, ecx
jns 0x443c35
mov eax, 0xffffffff
jmp 0x443c37
add eax, eax
push eax
call fcn.0040cbb0
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [edi]
test dx, dx
je 0x443c81
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x443c70
mov word [ecx], 0
mov ecx, ebx
and ecx, 0xfffd
and esi, 2
mov edx, esi
xor edx, 2
imul edx, ecx
or ebx, 2
imul ebx, esi
lea ecx, [ebx + edx]
mov word [esp], cx
lea ecx, [ebx + edx]
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xfcfdfafb
mov word [esp + 0x24], 0
lea ecx, [esp + 0x20]
mov edx, 0xd5
nop
nop
nop
nop
nop
movzx edi, byte [ecx]
lea esi, [edx - 0x6e7ce300]
or esi, edi
and edi, edx
not esi
or esi, edi
mov edi, esi
and edi, 0x60
xor esi, 0xe0
lea ebx, [esi + edi*2]
add bl, 0x4e
mov byte [ecx], bl
inc ecx
dec edx
cmp edx, 0xcf
jne 0x443d00
mov esi, dword [esp + 0x20]
mov ecx, dword [0x44fabc]
test ecx, ecx
je 0x443d89
xor edx, edx
mov edi, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x87573896
je 0x443d60
inc edx
cmp ecx, edx
jne 0x443d50
jmp 0x443d89
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x443d89
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 2
push dword [0x44fac4]
push ecx
mov edi, eax
call fcn.00440ac0
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.0040cbc0
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x443d9f
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x443db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xfcfdfafb
mov word [esp + 4], 0
mov eax, esp
mov edx, 0xd5
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax]
lea ecx, [edx - 0x6e7ce300]
or ecx, ebx
and ebx, edx
not ecx
or ecx, ebx
mov ebx, ecx
and ebx, 0x60
xor ecx, 0xe0
lea ecx, [ecx + ebx*2]
add cl, 0x4e
mov byte [eax], cl
inc eax
dec edx
cmp edx, 0xcf
jne 0x443de0
mov eax, dword [esp]
mov edx, dword [0x44fabc]
test edx, edx
je 0x443e68
xor ebx, ebx
mov ecx, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa70a987f
je 0x443e40
inc ebx
cmp edx, ebx
jne 0x443e30
jmp 0x443e68
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x443e68
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 5
push dword [0x44fac4]
push edx
call fcn.00440ac0
add esp, 0x20
test edi, edi
je 0x443e72
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x443e7e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x443e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp], 0xfcfdfafb
mov word [esp + 4], 0
mov eax, esp
mov ebx, 0xd5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [eax]
lea ebp, [ebx - 0x6e7ce300]
or ebp, edi
and edi, ebx
not ebp
or ebp, edi
mov edi, ebp
and edi, 0x60
xor ebp, 0xe0
lea ecx, [edi*2]
add ecx, ebp
add cl, 0x4e
mov byte [eax], cl
inc eax
dec ebx
cmp ebx, 0xcf
jne 0x443ec0
mov eax, dword [esp]
mov ebx, dword [0x44fabc]
test ebx, ebx
je 0x443f4e
xor ebp, ebp
mov edi, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xd41f89d1
je 0x443f20
inc ebp
cmp ebx, ebp
jne 0x443f10
jmp 0x443f4e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x443f4e
lea eax, [esp + 8]
push 0
push 0
push edx
push esi
push eax
push 0
push 0
push 0
push dword [esp + 0x44]
push 9
push dword [0x44fac4]
push ebx
call fcn.00440ac0
add esp, 0x30
cmp eax, 0x103
jne 0x443ff9
mov dword [esp], 0xfcfdfafb
mov word [esp + 4], 0
mov eax, esp
mov ecx, 0xd5
nop
nop
movzx edx, byte [eax]
lea esi, [ecx - 0x6e7ce300]
or esi, edx
and edx, ecx
not esi
or esi, edx
mov edx, esi
and edx, 0x60
xor esi, 0xe0
lea edx, [esi + edx*2]
add dl, 0x4e
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0xcf
jne 0x443f70
mov eax, dword [esp]
mov ecx, dword [0x44fabc]
test ecx, ecx
je 0x443ff1
xor edx, edx
mov edi, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x53f09cfa
je 0x443fd0
inc edx
cmp ecx, edx
jne 0x443fc0
jmp 0x443ff1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x443ff1
push 0
push 0
push dword [esp + 0x2c]
push 3
push dword [0x44fac4]
push ecx
call fcn.00440ac0
add esp, 0x18
test eax, eax
js 0x443ff9
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x444010
xor ecx, ecx
cmp eax, 0xc0000011
je 0x44400e
mov ecx, dword [esp + 0xc]
mov dword [edx], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4441a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x4441c0
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov ebp, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and ebp, 0xfffd
imul ebp, ecx
lea ecx, [ebx + ebp]
mov word [esp], cx
lea ecx, [ebx + ebp]
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x40
mov eax, esp
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0xfcfdfafb
mov word [esp + 0xc], 0
lea eax, [esp + 8]
mov edi, 0xd5
nop
nop
movzx ecx, byte [eax]
lea ebx, [edi - 0x6e7ce300]
or ebx, ecx
and ecx, edi
not ebx
or ebx, ecx
mov ecx, ebx
and ecx, 0x60
xor ebx, 0xe0
lea ecx, [ebx + ecx*2]
add cl, 0x4e
mov byte [eax], cl
inc eax
dec edi
cmp edi, 0xcf
jne 0x444240
mov eax, dword [esp + 8]
mov edi, dword [0x44fabc]
test edi, edi
je 0x4442c5
xor ebx, ebx
mov ebp, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x9ecf05eb
je 0x4442a1
inc ebx
cmp edi, ebx
jne 0x444290
jmp 0x4442c5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x4442c5
lea eax, [esp + 0x10]
push esi
push eax
push edx
push dword [esp + 0x4c]
push 4
push dword [0x44fac4]
push edi
call fcn.00440ac0
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44ae00
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x44f004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x44ae2b
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x44ae5f
cmp edi, 0x19f
jne 0x44ae5f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.fihiresaduduvakuzafanenazewuduhe
push str.vabunayadedifecibu
push str.yosavagenisusoluselidesuli
push str.nibezitihomoyaradilocaxihenazigo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x44aed2
jmp 0x44ae70
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.0044adf0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x44aecd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x44ae70
pop esi
cmp edi, 0x2d
jne 0x44aeec
mov dword [0x529500], 0xa62e7790
mov dword [0x529504], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424c60
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00424cdf
jae 0x424c6c
xor ecx, ecx
call fcn.00424cdf
jae 0x424c96
xor eax, eax
call fcn.00424cdf
jae 0x424ca7
mov al, 0x10
call fcn.00424cdf
adc al, al
jae 0x424c88
jne 0x424cd4
stosb byte es:[edi], al
jmp 0x424c6d
call fcn.00424ceb
dec ecx
loop 0x424cb3
mov eax, ebp
call fcn.00424ce9
jmp 0x424cd5
lodsb al, byte [esi]
shr eax, 1
je 0x424cfb
adc ecx, 2
mov ebp, eax
jmp 0x424cd5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00424ce9
cmp eax, 0x7d00
jae 0x424cd3
cmp eax, 0x500
jae 0x424cd4
cmp eax, 0x7f
ja 0x424cd5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x424c6d
pop ebp
ret 8
Function at 0x401a70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x400
call fcn.00410964
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ace
push esi
call fcn.00412221
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401b0d
push esi
call fcn.00412221
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401ab3
push edi
xor edi, edi
cmp dword [esi], ebx
jbe 0x401b5f
lea ebx, [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b72
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x401b46
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00412221
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push edi
mov ebx, str.StartLoop
mov edi, 0x42fab0
call fcn.00410060
xor ebx, ebx
cmp byte [esi], bl
je 0x4042d5
mov ecx, esi
call fcn.00403f90
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x4042e8
mov ebx, str.Failed
mov edi, str.socket__
call fcn.00410060
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x3c]
push edx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40433e
mov ebx, str.Failed
mov edi, str.bind__
call fcn.00410060
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov byte [esi + 1], bl
call fcn.00404360
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b5bb
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x434674]
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 esi, ecx
mov ebx, str.RecvfromSocketThread_start
mov edi, str.SocketService
mov dword [ebp - 0x830], esi
call fcn.00410060
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov dword [ebp - 0x834], 0x10
mov word [esi + 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esi + 0x42], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp byte [esi + 1], 0
mov dword [esi + 0x44], eax
jne 0x404552
nop
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x834]
push edx
lea eax, [esi + 0x40]
push eax
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x404548
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x810]
push edx
push 0
push 0xfde9
mov byte [ebp + eax - 0x810], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea ebx, [edi + edi + 2]
push ebx
call fcn.00413a83
add esp, 4
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.0041d880
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x42fa3d
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
call fcn.004014a0
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.00410964
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4044c1
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x82c]
call fcn.004014a0
push edi
call fcn.0041350a
mov ebx, dword [ebp - 0x82c]
add esp, 4
cmp dword [ebp - 0x818], 0x10
jae 0x4044f5
lea ebx, [ebp - 0x82c]
mov edi, str.socket_recv:
call fcn.00410060
push 8
call fcn.0041227d
add esp, 4
test eax, eax
je 0x40451a
mov ecx, dword [ebp - 0x830]
mov dword [eax + 4], ecx
mov dword [eax], esi
jmp 0x40451c
xor eax, eax
mov ecx, eax
call fcn.00404640
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x818], 0x10
jb 0x404542
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00412221
add esp, 4
mov esi, dword [ebp - 0x830]
cmp byte [esi + 1], 0
je 0x4043e0
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.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x404570
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
mov ebx, 1
push ebx
push 2
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
push 0
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
xor edx, edx
push esi
mov word [ebp - 0x12], dx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4045da
xor bl, bl
jmp 0x404605
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4045f8
xor bl, bl
jmp 0x404605
mov eax, dword [ebp - 0x22]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi], ax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x404622
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x406050
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b4b7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x42fd70
mov dword [edi + 0x10], 0x42fe20
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408470
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.0040a5b0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x436f4c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
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 4
Function at 0x413b17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413b3e
call fcn.00413229
mov dword [eax], esi
call fcn.00413216
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041972d
mov eax, esi
jmp 0x413b93
test dword [ebp + 0xc], 0xfffffff9
jne 0x413b24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041323c
pop ecx
call fcn.00413216
mov eax, dword [eax]
jmp 0x413b93
test al, 0x10
jne 0x413b91
test al, 1
je 0x413b91
test byte [ebp + 0xc], 2
je 0x413b91
call fcn.00413229
mov dword [eax], 5
call fcn.00413216
mov dword [eax], 0xd
jmp 0x413b62
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41f9e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.0041f5ff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041f64a
push eax
push esi
push dword [ebp + 8]
call fcn.0041f5ff
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid
stosb byte es:[edi], al