joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x403660
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x4036ef
cmp dword [esi], 0x53464348
jne 0x4036ef
cmp dword [esi + 0x958], 0x10
jl 0x4036ef
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4036ef
push esi
push str.args__p_
call fcn.0040feb0
push str.ts_generate_id_by_host_serial
push str._s_ENTER
mov edi, eax
lea eax, [ebp - 0xdc]
push 0xc8
push eax
call fcn.00410530
push edi
push 0x30
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_handle.c
lea ecx, [ebp - 0xdc]
push ecx
push 0x200
push 0x10
push esi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x38
push 0x400
lea edx, [ebp - 0x4dc]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x4dc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403710
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esi + 0x100a60]
push edx
lea eax, [ebp - 0x4dc]
push eax
call fcn.00410550
push 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x4dc]
push edx
mov byte [esi + 0x100ad7], 0
call fcn.00411500
push 0x41
call fcn.00507c0d
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x403764
lea edi, [eax + 1]
jmp 0x4037ad
push 0x41
push edi
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00411230
add esp, 0x10
test eax, eax
jne 0x403789
push edi
call fcn.005074d4
add esp, 4
mov edi, 1
jmp 0x4037ad
push 0x28
lea ecx, [esi + 0x100ab0]
push edi
push ecx
call fcn.00410590
push edi
call fcn.005074d4
add esp, 0x10
mov dword [esi + 0x100b3c], 1
xor edi, edi
cmp dword [esi], 0x53464348
jne 0x403822
cmp dword [esi + 0x958], 0x10
jl 0x403822
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x403822
push ebx
push edi
push str.Returning__d
call fcn.0040feb0
push str.ts_generate_id_by_host_serial
push str._s_EXIT
lea edx, [ebp - 0xdc]
push 0xc8
push edx
mov ebx, eax
call fcn.00410530
push ebx
push 0x62
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_handle.c
lea eax, [ebp - 0xdc]
push eax
push 0x200
push 0x10
push esi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x406620
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x599100], 0
jne 0x406784
xor eax, eax
nop
mov cl, byte [eax + 0x550140]
xor cl, 0xbc
mov byte [eax + 0x59e840], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406630
push 0x59ed80
call fcn.00410bc0
add esp, 4
test eax, eax
je 0x406748
or dword [0x599100], 1
xor eax, eax
jmp 0x406670
mov cl, byte [eax + 0x5500f8]
xor cl, 0xbc
mov byte [eax + 0x59e7c0], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406670
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x5500b0]
xor cl, 0xbc
mov byte [eax + 0x59e800], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406690
call fcn.00449840
test eax, eax
je 0x406748
or dword [0x599100], 2
xor eax, eax
mov cl, byte [eax + 0x5500a4]
xor cl, 0xbc
mov byte [eax + 0x59e940], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 9
jb 0x4066c0
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x550060]
xor cl, 0xbc
mov byte [eax + 0x59e900], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x4066e0
call fcn.00449990
test eax, eax
je 0x406748
or dword [0x599100], 4
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x550018]
xor cl, 0xbc
mov byte [eax + 0x59e8c0], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406710
push 0
call fcn.0044c670
add esp, 4
test eax, eax
je 0x406748
or dword [0x599100], 8
call fcn.00411f50
test eax, eax
jne 0x406753
call fcn.004065b0
mov eax, 1
ret
or dword [0x599100], 0x10
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x54ffd0]
xor cl, 0xbc
mov byte [eax + 0x59e880], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406760
or dword [0x599100], 0x400
xor eax, eax
ret

Function at 0x410fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
test ebx, ebx
push esi
push edi
mov edi, eax
je 0x410fc2
mov dword [ebx], 0
shl edi, 0xa
cmp edi, 0x5000
jae 0x410fd2
mov edi, 0x5000
push 8
call fcn.00507c0d
mov esi, eax
add esp, 4
test esi, esi
je 0x411011
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x410f80
push edi
push 0
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0050c6d5
add esp, 0x18
test eax, eax
jne 0x411019
push esi
call fcn.005074d4
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test byte [ebp + 8], 1
je 0x411028
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebx, ebx
je 0x41102e
mov dword [ebx], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411230
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x4113be
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4113be
mov edx, dword [ebp + 0xc]
cmp edx, 2
jle 0x411310
mov dword [ebp + 8], 4
mov al, byte [edi]
mov cl, byte [edi + 1]
sub dword [ebp + 0xc], 3
mov bl, al
add edi, 1
mov dl, byte [edi + 1]
shr bl, 2
and al, 3
mov byte [ebp - 4], bl
mov bl, cl
shl al, 4
add edi, 1
shr bl, 4
add al, bl
and cl, 0xf
mov byte [ebp - 3], al
add cl, cl
mov al, dl
shr al, 6
add cl, cl
add cl, al
mov eax, dword [ebp + 8]
and dl, 0x3f
add edi, 1
cmp eax, dword [ebp + 0x14]
mov byte [ebp - 1], dl
jg 0x4113be
movzx edx, byte [ebp - 4]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp + 0x10]
mov byte [esi + ebx], dl
movzx edx, byte [ebp - 3]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add esi, 1
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [ebp - 1]
add esi, 1
add eax, 1
mov byte [esi + ebx], dl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add eax, 1
add esi, 1
add eax, 1
mov byte [esi + ebx], dl
add eax, 1
add esi, 1
cmp dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jg 0x411262
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4113ac
xor al, al
xor cl, cl
test edx, edx
mov byte [ebp + 0xa], 0
mov byte [ebp + 9], al
mov byte [ebp + 8], cl
jle 0x41133e
push edx
lea eax, [ebp + 8]
push edi
push eax
call fcn.0050b730
mov al, byte [ebp + 9]
mov cl, byte [ebp + 8]
add esp, 0xc
mov dl, cl
shr dl, 2
mov byte [ebp - 4], dl
mov dl, al
and cl, 3
shr dl, 4
and al, 0xf
shl cl, 4
add cl, dl
mov dl, byte [ebp + 0xa]
add al, al
shr dl, 6
add al, al
add al, dl
lea edx, [esi + 4]
cmp edx, dword [ebp + 0x14]
jg 0x4113be
movzx edx, byte [ebp - 4]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add esi, 1
mov byte [esi + ebx], dl
add esi, 1
cmp dword [ebp + 0xc], 1
jne 0x411396
mov byte [esi + ebx], 0x3d
jmp 0x4113a2
movzx eax, al
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], cl
add esi, 1
mov byte [esi + ebx], 0x3d
add esi, 1
cmp esi, dword [ebp + 0x14]
jge 0x4113be
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411580
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x427800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427810
sub eax, edx
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.00507c0d
add esp, 4
test eax, eax
mov dword [ebp - 4], eax
je 0x427849
push edi
call fcn.00507c0d
add esp, 4
test eax, eax
jne 0x427852
mov eax, dword [ebp - 4]
push eax
call fcn.005074d4
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
mov ecx, edi
jle 0x427879
lea ecx, [ecx]
cmp byte [ecx], 0
jne 0x427867
mov ecx, edi
mov bl, byte [ecx]
mov byte [edx + eax], bl
add edx, 1
add ecx, 1
cmp edx, esi
jl 0x427860
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x427880
sub ecx, edi
test esi, esi
mov byte [ecx + eax], dl
jle 0x4278b1
mov edi, dword [ebp - 4]
mov edx, eax
sub edx, ebx
mov ecx, ebx
sub edi, ebx
lea ecx, [ecx]
mov bl, byte [edx + ecx]
xor bl, byte [ecx]
add ecx, 1
sub esi, 1
mov byte [edi + ecx - 1], bl
jne 0x4278a0
push eax
call fcn.005074d4
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4278d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.00507c0d
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x427903
push edi
call fcn.00507c0d
add esp, 4
test eax, eax
jne 0x42790b
push ebx
call fcn.005074d4
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
mov ecx, edi
jle 0x42792f
cmp byte [ecx], 0
jne 0x42791d
mov ecx, edi
mov bl, byte [ecx]
mov byte [edx + eax], bl
add edx, 1
add ecx, 1
cmp edx, esi
jl 0x427916
mov ebx, dword [ebp - 8]
test esi, esi
mov byte [eax + esi], 0
jle 0x42795a
mov ecx, dword [ebp + 8]
mov edx, eax
mov edi, ebx
sub edx, ecx
sub edi, ecx
mov dword [ebp - 4], esi
mov bl, byte [edx + ecx]
xor bl, byte [ecx]
add ecx, 1
sub dword [ebp - 4], 1
mov byte [edi + ecx - 1], bl
jne 0x427945
mov ebx, dword [ebp - 8]
push eax
mov byte [ebx + esi], 0
call fcn.005074d4
add esp, 4
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430280
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.ADVAPI32.DLL
xor ebx, ebx
mov dword [edi + 0x100a5c], 0x4301c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4302d7
push 0x5565d0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4302d0
lea eax, [ebp + 8]
push eax
call fcn.00430210
add esp, 4
test eax, eax
jne 0x4302d0
mov dword [edi + 0x100a5c], fcn.00430210
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 0x100a44]
push ecx
call fcn.00410bc0
add esp, 4
test eax, eax
jne 0x4302f4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
lea eax, [edi + 0x100a30]
call fcn.0042fdb0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x449af0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x449cbb
cmp byte [eax], 0
je 0x449cbb
push esi
push 0x38
call fcn.00507c0d
mov esi, eax
add esp, 4
cmp esi, edi
je 0x449cc2
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov edi, dword [ebp + 8]
test edi, edi
push ebx
lea ebx, [esi + 0x18]
mov dword [ebx], 0xffffffff
je 0x449b4e
cmp dword [edi], 0xffffffff
je 0x449b4e
mov dword [esi + 0x34], 1
mov eax, dword [edi]
mov dword [ebx], eax
jmp 0x449b82
mov ecx, dword [ebp + 0xc]
push 0
push 0x8000
push ecx
push ebx
call fcn.0046c5d0
add esp, 0x10
test eax, eax
je 0x449c87
test edi, edi
je 0x449b7b
mov edx, dword [ebx]
mov dword [edi], edx
mov dword [esi + 0x34], 1
jmp 0x449b82
mov dword [esi + 0x34], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0046c770
add esp, 8
test eax, eax
je 0x449c87
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edx, [ebx + ecx]
cmp edx, dword [ebp - 8]
ja 0x449c87
xor edx, edx
mov dword [esi + 8], ecx
mov dword [esi + 0x10], ebx
mov eax, ebx
div dword [0x59c1e0]
mov edi, edx
lea eax, [edi + ecx]
mov dword [ebp + 0xc], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push eax
call fcn.0050da24
add esp, 4
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x449c87
push 0
push 0
push 0
push 0x8000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x20], eax
je 0x449c87
mov ecx, dword [ebp + 0xc]
push ecx
sub ebx, edi
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x24], eax
je 0x449c87
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
push 0x59c1c4
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x14], edi
call fcn.00410be0
add dword [0x59c188], 1
mov eax, 0
push esi
adc dword [0x59c18c], eax
mov edx, dword [esi + 8]
add dword [0x59c190], edx
mov edx, dword [0x59c1c0]
push edx
adc dword [0x59c194], eax
mov ecx, dword [esi + 8]
add dword [0x59c1a8], ecx
adc dword [0x59c1ac], eax
call fcn.00410770
push 0x59c1c4
call fcn.00410c00
mov eax, dword [esi + 0x24]
add esp, 0x10
add eax, edi
mov dword [ebp - 4], eax
jne 0x449cb4
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x449c96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x34], 0
jne 0x449ca8
lea eax, [esi + 0x18]
push eax
call fcn.0046c7c0
add esp, 4
push esi
call fcn.005074d4
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44f950
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x1c], ecx
je 0x44f9e6
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x44f9b8
cmp word [ecx + 0xa], 4
jne 0x44f9b8
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x44f9b8
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.0044f8e0
test eax, eax
mov dword [esi], eax
je 0x44f9da
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x44f992
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call fcn.0050dc60
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x44f9f6.11001
jmp dword [eax*4 + 0x44fa1c]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18
Function at 0x450210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x59c5f8], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x44fcc0
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x44ff80
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.0044fc70
je 0x450283
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x594304]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x450394
push ebx
push esi
push edi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0050affe
push str.ws2_32
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.0050dd04
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x110]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4502ff
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x45034b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.0050affe
push str.wship6
lea edx, [ebp - 0x110]
push 0x10c
push edx
call fcn.0050dd04
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call edi
mov esi, eax
test esi, esi
je 0x450391
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4503b9
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + edi*8 - 0x230]
push ecx
push esi
call ebx
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x4503b9
add edi, 1
cmp edi, 3
jl 0x450350
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov dword [0x594304], edx
mov dword [0x59430c], eax
mov dword [fcn.0044fc70], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x594304]
xor ecx, ebp
mov dword [0x59c5f8], 1
call fcn.00506c7d
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x450391
Function at 0x450c00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
add eax, 1
call fcn.00506c7d
mov esp, ebp
pop ebp
ret

Function at 0x450d20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.00450c50
test eax, eax
je 0x450d9f
mov eax, dword [ebp + 0xc]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x450d8f
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x450d8f
mov edx, esi
call fcn.00450cc0
cmp eax, 0xffffffff
je 0x450d8f
cmp eax, 0x10000
jge 0x450da6
push 0x10000
mov ecx, esi
call fcn.00450d00
add esp, 4
cmp eax, 0xffffffff
jne 0x450da6
mov eax, esi
call fcn.00450c70
test eax, eax
je 0x450d9f
call fcn.00450c90
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x451100
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], edi
je 0x45119c
mov eax, dword [esi + 4]
cmp eax, 2
je 0x451124
cmp eax, 0x17
jne 0x45119c
cmp dword [esi], edi
je 0x45119c
cmp dword [esi + 8], edi
je 0x45119c
movzx eax, word [esi + 0xc]
cmp ax, di
jbe 0x45119c
mov word [esi + 0xe], di
mov ebx, 1
nop
movzx eax, di
shl eax, 7
add eax, dword [esi + 8]
push eax
call fcn.004253b0
add esp, 4
test eax, eax
je 0x45119c
add edi, ebx
cmp di, word [esi + 0xc]
jb 0x451140
mov edx, dword [esi + 4]
mov eax, dword [esi]
sub edx, 2
push 0
neg edx
lea ecx, [ebp + 8]
push ecx
sbb edx, edx
push 0
and edx, 0x1b
push 8
add edx, ebx
push edx
push eax
mov dword [ebp + 8], 0
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
mov dword [ebp - 4], eax
je 0x4511af
cmp eax, 0x251d
je 0x4511af
cmp eax, 0x232b
je 0x4511bd
xor eax, eax
test esi, esi
je 0x4511a8
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x232b
je 0x4511bd
cmp eax, 0x251d
jne 0x4511c4
mov dword [ebp - 4], 0x2af9
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x451248
mov dx, word [esi + 0xe]
cmp dx, word [esi + 0xc]
jae 0x451241
mov edi, 0x1c
mov edi, edi
test ecx, ecx
je 0x45123e
movzx eax, word [esi + 0xe]
mov edx, dword [esi + 4]
shl eax, 7
add eax, dword [esi + 8]
cmp edx, 2
jne 0x451204
cmp word [ecx + 8], bx
jne 0x451204
mov edx, dword [ecx + 0x18]
mov dword [eax + 4], edx
jmp 0x451227
cmp edx, 0x17
jne 0x451232
cmp word [ecx + 8], di
jne 0x451232
mov edx, dword [ecx + 0x18]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x14], edx
mov dx, word [esi + 4]
mov word [eax], dx
add word [esi + 0xe], bx
mov ax, word [esi + 0xe]
cmp ax, word [esi + 0xc]
mov ecx, dword [ecx]
jb 0x4511e0
mov ecx, dword [ebp + 8]
push ebx
push ecx
call sub.DNSAPI.dll_DnsRecordListFree
mov eax, ebx
jmp 0x45119e

Function at 0x451890
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xffff
push esi
call fcn.00425370
add esp, 8
test eax, eax
je 0x4518ec
lea eax, [ebp - 4]
push eax
push esi
call fcn.004253e0
add esp, 8
test eax, eax
je 0x4518ec
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 4]
push ecx
push esi
push edi
call ebx
cmp eax, 0xffffffff
jne 0x4518e8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4518c6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4518f5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret