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

Disassembly:
push 0x14
mov eax, 0x4a036c
call fcn.00481d3a
xor esi, esi
push str.0x00000000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], esi
call fcn.00401640
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.SoftwareKingsoftANTIVIRUS
mov dword [ebp - 4], esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4363ce
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x4b4ed4
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x4363c5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push str.VersionTypes
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call edi
test eax, eax
jne 0x4363c5
and dword [ebp - 0x14], 0xffffff
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.0x_08x
push eax
call fcn.004063eb
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040144c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, ebx
call fcn.00481e12
ret

Function at 0x438f5d
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047e75f
push str.test
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047e6e5
lea eax, [ebp - 0x20c]
push 0x4b4cb0
push eax
call fcn.00481882
add esp, 0x20
test eax, eax
pop esi
je 0x438fd1
push eax
call fcn.00480d35
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b9fe
leave
ret
Function at 0x439520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2f8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x4d0620]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push 0xe
push eax
call fcn.00402f7f
and dword [esp + 0x30], 0
lea eax, [esp + 0x18]
push 2
push eax
call fcn.00402f7f
push 0x4b4d00
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x44], 1
call fcn.00402dca
add esp, 0x1c
mov byte [esp + 0x28], 2
mov ecx, dword [esp + 0xc]
call fcn.004393d5
test al, al
jne 0x4395d7
push str.kavtemp.xml
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.004015ba
mov byte [esp + 0x28], 2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [esp + 0xc]
call fcn.004393d5
mov ecx, dword [esp + 0xc]
add edi, 0xb4
add ecx, 0xfffffff0
mov dword [0x4ee80c], edi
call fcn.00401325
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43ada9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, 0x11c
push esi
xor ebx, ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0047e7d0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x43ae0f
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
jne 0x43ae0f
and dword [edi], ebx
jmp 0x43af2e
mov eax, dword [ebp - 0x98]
dec eax
je 0x43aef6
dec eax
je 0x43ae2a
mov dword [edi], 1
jmp 0x43af2b
push 6
pop ebx
cmp dword [ebp - 0xa4], ebx
jb 0x43ae5f
cmp byte [ebp + 0x72], 1
jne 0x43ae59
mov eax, dword [ebp - 0xa0]
sub eax, 0
je 0x43ae4b
dec eax
je 0x43ae51
jmp 0x43ae5f
mov dword [edi], 0xb
mov dword [edi], 0xc
jmp 0x43ae5f
mov dword [edi], 0xd
push 5
pop esi
cmp dword [ebp - 0xa4], esi
jne 0x43aee9
cmp dword [ebp - 0xa0], 2
jne 0x43aecf
push str.GetNativeSystemInfo
push 0x4b48b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43ae97
lea ecx, [ebp - 0xcc]
push ecx
call eax
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x43aeab
mov dword [edi], 0xa
jmp 0x43aec7
cmp byte [ebp + 0x72], 1
push 9
pop eax
jne 0x43aec5
cmp word [ebp - 0xcc], ax
jne 0x43aec5
mov dword [edi], 8
jmp 0x43aec7
mov dword [edi], eax
cmp dword [ebp - 0xa4], esi
jne 0x43aee9
cmp dword [ebp - 0xa0], 1
jne 0x43aede
mov dword [edi], 7
cmp dword [ebp - 0xa0], 0
jne 0x43af2b
mov dword [edi], ebx
cmp dword [ebp - 0xa4], 4
ja 0x43af2b
mov dword [edi], esi
jmp 0x43af2b
push 4
pop eax
cmp dword [ebp - 0xa4], eax
jne 0x43af2b
cmp dword [ebp - 0xa0], ebx
je 0x43af1d
cmp dword [ebp - 0xa0], 0xa
je 0x43af23
cmp dword [ebp - 0xa0], 0x5a
je 0x43af29
jmp 0x43af2b
mov dword [edi], 2
mov dword [edi], 3
mov dword [edi], eax
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 0x74]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047b9fe
add ebp, 0x78
leave
ret

Function at 0x43af41
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0047e7d0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x43af97
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x43afa0
cmp dword [ebp - 0x7c], 6
jb 0x43afa0
xor edi, edi
inc edi
mov ecx, dword [ebp + 0x9c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047b9fe
add ebp, 0xa0
leave
ret
Function at 0x43b02d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
je 0x43b1f8
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b1e3
push esi
call fcn.0047dc09
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
je 0x43b1e3
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43b1e3
cmp dword [ebp - 8], esi
jne 0x43b1e3
cmp word [edi], 0x100
jne 0x43b1e3
movzx esi, word [edi + 2]
test esi, esi
je 0x43b1e3
push esi
call fcn.0047dc09
test eax, eax
pop ecx
mov dword [0x4f02f8], eax
je 0x43b1e3
push esi
push 0
push eax
call fcn.0047e7d0
push dword [0x4f02f8]
lea eax, [edi + 4]
push eax
call fcn.0049bb30
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b1e3
cmp eax, esi
jne 0x43b1e3
mov eax, dword [0x4f02f8]
and dword [0x4ee800], 0
lea ecx, [eax + esi - 8]
lea esi, [eax + 4]
mov dword [0x4f02fc], ecx
mov dword [0x4f0310], esi
cmp word [eax], 0x100
jne 0x43b1e3
mov edx, dword [esi + 0x18]
cmp edx, 4
jg 0x43b1e3
movzx ebx, word [eax + 2]
lea edi, [edx*4 + 0x1c]
cmp ebx, edi
jne 0x43b1e0
cmp dword [esi], 1
jne 0x43b1e0
and dword [ebp + 8], 0
test edx, edx
mov edi, dword [ebp - 0xc]
jle 0x43b1c9
lea ebx, [esi + 0x1c]
jmp 0x43b171
mov eax, dword [0x4f02f8]
mov edx, dword [ebx]
add edx, eax
lea eax, [edx + 4]
add ecx, 0xfffffff8
cmp eax, ecx
ja 0x43b1e0
cmp word [edx], 0x101
jne 0x43b1e0
mov ecx, dword [eax + 4]
movzx edx, word [edx + 2]
lea ecx, [ecx*4 + 8]
cmp edx, ecx
jne 0x43b1e0
movzx ecx, word [eax + 2]
test ecx, ecx
jl 0x43b1e0
mov edx, dword [0x4f0310]
cmp ecx, dword [edx + 0x18]
jge 0x43b1e0
mov dword [ecx*4 + 0x4f0300], eax
add edi, dword [eax + 4]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [0x4f02fc]
add ebx, 4
cmp eax, dword [esi + 0x18]
jl 0x43b16c
cmp word [ecx], 0xfff
jne 0x43b1e0
cmp word [ecx + 2], 4
jne 0x43b1e0
cmp edi, dword [esi + 4]
jne 0x43b1e0
and dword [ebp - 0x10], 0
mov edi, dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop esi
je 0x43b1f8
push edi
call fcn.0047e8b5
pop ecx
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x43e2af
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x49f78a
call fcn.00481da3
mov esi, edx
xor ebx, ebx
cmp esi, ebx
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], esi
jne 0x43e2df
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.0043f50a
xor al, al
call fcn.00481e26
ret
call fcn.0043dc88
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.00481067
push esi
call fcn.00480c55
push ebx
push ebx
push esi
mov dword [ebp - 0x34], eax
call fcn.00481067
add esp, 0x1c
cmp dword [ebp - 0x34], ebx
push ebx
jne 0x43e314
push ebx
push 0xd
jmp 0x43e2cf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00408794
mov eax, dword [ebp - 0x34]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00440722
mov eax, dword [ebp - 0x34]
inc eax
push eax
call fcn.0045d840
push dword [ebp - 0x40]
mov esi, eax
push 1
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], esi
push esi
mov byte [esi], bl
call fcn.0048351a
add esp, 0x14
cmp eax, 1
je 0x43e37b
push esi
call fcn.0045d845
pop ecx
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.0043f50a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408749
jmp 0x43e2d7
mov edx, dword [ebp - 0x34]
mov eax, esi
mov ecx, eax
mov byte [ecx + edx], bl
cmp byte [ecx], bl
je 0x43e3e4
mov cl, byte [esi]
cmp cl, 0xa
jne 0x43e3a4
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea eax, [ebp - 0x2c]
call fcn.00440648
inc esi
mov eax, esi
jmp 0x43e3e0
cmp cl, 0xd
jne 0x43e3df
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jle 0x43e3bb
push ecx
push eax
lea eax, [ebp - 0x2c]
call fcn.00440648
xor ebx, ebx
push 0xa
inc ebx
lea edi, [ebp - 0x2c]
call fcn.00439a2d
mov edi, dword [ebp - 0x38]
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x43e3d7
inc esi
inc esi
jmp 0x43e3d9
mov esi, eax
mov eax, esi
xor ebx, ebx
jmp 0x43e3e0
inc esi
cmp byte [esi], bl
jne 0x43e389
sub esi, eax
je 0x43e3f2
push esi
push eax
lea eax, [ebp - 0x2c]
call fcn.00440648
push dword [ebp - 0x3c]
call fcn.0045d845
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x43e407
lea eax, [ebp - 0x28]
mov edx, dword [edi]
push ebx
push ebx
push eax
mov ecx, edi
call dword [edx + 8]
cmp byte [edi + 0x44], bl
je 0x43e42c
mov byte [ebp - 0x2d], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408749
mov al, byte [ebp - 0x2d]
jmp 0x43e2d9
mov byte [ebp - 0x2d], 1
jmp 0x43e419
Function at 0x442249
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x442254
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x442306
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
sub eax, 8
dec edi
jne 0x44226b
pop edi
test eax, eax
je 0x44231f
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4b3188]
inc ecx
dec eax
jne 0x44230a
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x442326
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4b3188]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4b3188]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x442a22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x442a52
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442a4d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x442a7a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x442a63
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0047f590
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x443673
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x4436f8
cmp dword [esi + 4], 0xffffffff
jne 0x4436f8
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x443699
sub eax, ecx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4436c8
cmp ax, 0x2f
je 0x4436c8
push 0x4b3620
push edi
call fcn.0040468c
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00442918
test eax, eax
pop ecx
pop ecx
jne 0x4436df
mov eax, dword [ebp + 8]
jmp 0x4436fd
push eax
call fcn.00442c9b
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4436fd
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x443cee
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x443d22
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x443d22
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x443dcd
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x443d41
cmp cx, 0x5c
jne 0x443d43
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x443d35
cmp eax, esi
je 0x443d82
sub eax, esi
sar eax, 1
push edi
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0047f590
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00443cee
add esp, 0x14
pop edi
and word [ebp - 0x20c], 0
test ebx, ebx
je 0x443d9d
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040464f
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040468c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x443dcd
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret
Function at 0x444203
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x444244
cmp byte [ebp - 0x198], 1
jne 0x44423e
cmp byte [ebp - 0x197], 1
je 0x444247
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b9fe
leave
ret

Function at 0x444319
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test edx, edx
jne 0x444321
push 0x2b
pop eax
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
jmp fcn.00445be4

Function at 0x4446d4
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4446f1
push dword [esi + 0x14]
push dword [esp + 0xc]
push dword [esp + 0xc]
push ecx
push esi
call eax
add esp, 0x14
ret
test ecx, ecx
jl 0x444722
cmp ecx, 2
jg 0x444722
push dword [esi + 0x10]
push 1
push 2
push dword [ecx*4 + 0x4b197c]
call fcn.0048124b
push dword [esi + 0x10]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0048124b
add esp, 0x20
xor eax, eax
ret
Function at 0x448df7
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
lea edx, [ecx + eax]
cmp ecx, edx
mov eax, 0x1505
jae 0x448e12
push esi
movsx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x448e04
pop esi
ret
Function at 0x44c249
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 0x74]
mov dword [ebp - 0x124], edi
call fcn.0047be60
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x44c3ac
and dword [ebp - 0x120], 0
push ecx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0047e7d0
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [esi + 0x74]
call ebx
lea eax, [ebp - 0x120]
push eax
push 0
push dword [esi + 0x74]
push edi
call fcn.00448c4a
add esp, 0x10
cmp eax, 1
jne 0x44c2d3
lea eax, [ebp - 0x120]
push eax
push edi
call fcn.0044d5e1
pop ecx
pop ecx
mov edi, dword [ebp - 0x120]
test edi, edi
je 0x44c2ee
push dword [esi + 0x74]
lea eax, [ebp - 0x10c]
push eax
call fcn.0047ffb0
pop ecx
pop ecx
cmp byte [ebp - 0x10c], 0
jne 0x44c304
push dword [esi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x44c3a5
lea eax, [ebp - 0x10c]
push eax
push str.We_bind_local_end_to__s_n
call fcn.0044440b
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x44c399
test edi, edi
je 0x44c399
mov ebx, dword [edi]
call fcn.00448d96
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x44c374
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x128], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x44c395
push str.getsockname___failed
call fcn.00444475
jmp 0x44c3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x8318], eax
mov ebx, eax
mov eax, dword [ebp - 0x124]
call fcn.0044cb88
push eax
push str.bind_failure:__s
jmp 0x44c3a5
xor eax, eax
jmp 0x44c3af
lea eax, [ebp - 0x10c]
push eax
push str.couldnt_find_my_own_IP_address___s_
call fcn.00444475
pop ecx
pop ecx
push 0x2d
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret
Function at 0x44c4dc
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, edx
push dword [ebx + 0xc]
mov edi, ecx
push dword [edi + 0x28]
mov eax, dword [edi]
push dword [ebx + 4]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x90], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
je 0x44c6c0
lea eax, [ebp - 0x88]
push 0x80
push eax
mov ecx, ebx
mov byte [esi], 0
call fcn.00448b2b
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
call fcn.0044440b
mov eax, esi
add esp, 0x10
cmp byte [eax + 0x1b6], 0
je 0x44c572
push dword [ebp - 0x8c]
call fcn.0044c487
pop ecx
mov eax, dword [edi]
cmp dword [eax + 0x74], 0
je 0x44c590
push dword [ebp - 0x8c]
mov ecx, edi
call fcn.0044c249
test eax, eax
pop ecx
jne 0x44c6b4
push dword [ebp - 0x8c]
xor eax, eax
inc eax
call fcn.0044c20f
cmp dword [edi + 0x28], 1
pop ecx
jne 0x44c5bb
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
jmp 0x44c5bd
xor edi, edi
cmp edi, 0xffffffff
jne 0x44c655
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb
mov dword [ebp - 0x94], ebx
je 0x44c645
cmp ebx, 0x2732
jle 0x44c5e9
cmp ebx, 0x2734
jle 0x44c645
mov eax, dword [ebp - 0x98]
call fcn.0044cb88
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
call fcn.00444475
add esp, 0xc
mov dword [esi + 0x8318], ebx
push dword [ebp - 0x8c]
lea esi, [ebp - 0x94]
call fcn.0044c3be
test edi, edi
pop ecx
jne 0x44c66d
test al, al
je 0x44c684
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x90]
push str.connected_n
mov byte [eax], 1
call fcn.0044440b
pop ecx
jmp 0x44c665
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x8c]
call fcn.0044c22a
mov edi, eax
cmp edi, 1
jne 0x44c60f
mov eax, esi
cmp dword [eax + 0x2d8], 2
jne 0x44c60f
mov eax, dword [ebp - 0x8c]
jmp 0x44c6c3
cmp edi, 1
jne 0x44c684
mov esi, dword [ebp - 0x90]
push str.Timeout_n
call fcn.0044440b
jmp 0x44c6b3
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x8318], ebx
mov eax, dword [ebp - 0x98]
call fcn.0044cb88
mov esi, dword [ebp - 0x90]
push eax
push 0x4bb6f8
call fcn.0044440b
pop ecx
pop ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret
Function at 0x44d481
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x28
call dword [0x4d2020]
mov esi, eax
xor ebx, ebx
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
pop ecx
stosd dword es:[edi], eax
jne 0x44d4b6
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x44d5dc
mov edi, dword [ebp + 8]
lea eax, [edi + 0x320]
push dword [eax]
mov dword [ebp - 4], eax
call fcn.0044590d
push dword [ebp + 0xc]
call dword [0x4d201c]
cmp eax, ebx
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jne 0x44d4e7
push esi
call dword [0x4d2014]
pop ecx
jmp 0x44d4a7
mov eax, dword [ebp + 0x10]
push ebx
push 1
mov dword [edi + 0x324], eax
mov byte [edi + 0x32c], bl
mov dword [edi + 0x330], ebx
mov dword [edi + 0x328], ebx
mov dword [edi + 0x334], esi
or dword [esi + 0xc], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x44d52d
push dword [ebp - 4]
call fcn.0044d3c8
pop ecx
push 0xb
jmp 0x44d4a9
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x44d51d
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x44d51d
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x44d51d
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x44d51d
call fcn.0048b69e
add eax, 0x40
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
push ebx
push edi
push 0x44d232
push ebx
push ebx
call fcn.004829a4
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x44d5b4
call fcn.00481eba
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.0044d3c8
pop ecx
jmp 0x44d4af
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret