joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016dda0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 0
jne 0x1016ddb3
xor eax, eax
jmp 0x1016df8c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1016ddd3
xor eax, eax
jmp 0x1016df8c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
je 0x1016ddf1
xor eax, eax
jmp 0x1016df8c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
call fcn.1000e760
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x1016de26
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x1016df8a
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x3f
je 0x1016df02
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x30
jl 0x1016de80
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
cmp ecx, 0x39
jg 0x1016de80
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
sub edx, 0x30
mov dword [ebp - 0x1c], edx
jmp 0x1016de98
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xffffffdf
sub eax, 0x37
mov dword [ebp - 0x1c], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x30
jl 0x1016ded7
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x39
jg 0x1016ded7
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
sub eax, 0x30
mov dword [ebp - 0x20], eax
jmp 0x1016deef
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xffffffdf
sub eax, 0x37
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x1c]
shl eax, 4
or eax, dword [ebp - 0x20]
cmp edx, eax
jne 0x1016df67
cmp dword [ebp - 8], 0
jne 0x1016df0e
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
test ecx, ecx
jne 0x1016df25
mov eax, dword [ebp - 8]
jmp 0x1016df8c
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x3f3f
je 0x1016df46
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x3f
jne 0x1016df46
mov dword [ebp - 0x24], 2
jmp 0x1016df4d
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
test edx, edx
jne 0x1016df65
mov eax, dword [ebp - 8]
jmp 0x1016df8c
jmp 0x1016df85
cmp dword [ebp - 8], 0
je 0x1016df85
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.1000e760
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x1016de1d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10175690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xf
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebp - 4], 0
je 0x101756cb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x596c60]
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 0x59fd40
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 0x59fd40
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.0050828d
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.00507b54
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.00507b54
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 0x59fd40
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 0x59fd40
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.005072fd
mov esp, ebp
pop ebp
ret
Function at 0x406620
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x59a0c0], 0
jne 0x406784
xor eax, eax
nop
mov cl, byte [eax + 0x551140]
xor cl, 0xbc
mov byte [eax + 0x59f800], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406630
push 0x59fd40
call fcn.00410bc0
add esp, 4
test eax, eax
je 0x406748
or dword [0x59a0c0], 1
xor eax, eax
jmp 0x406670
mov cl, byte [eax + 0x5510f8]
xor cl, 0xbc
mov byte [eax + 0x59f780], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406670
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x5510b0]
xor cl, 0xbc
mov byte [eax + 0x59f7c0], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406690
call fcn.00449840
test eax, eax
je 0x406748
or dword [0x59a0c0], 2
xor eax, eax
mov cl, byte [eax + 0x5510a4]
xor cl, 0xbc
mov byte [eax + 0x59f900], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 9
jb 0x4066c0
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x551060]
xor cl, 0xbc
mov byte [eax + 0x59f8c0], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x4066e0
call fcn.00449990
test eax, eax
je 0x406748
or dword [0x59a0c0], 4
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x551018]
xor cl, 0xbc
mov byte [eax + 0x59f880], 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 [0x59a0c0], 8
call fcn.00411f50
test eax, eax
jne 0x406753
call fcn.004065b0
mov eax, 1
ret
or dword [0x59a0c0], 0x10
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x550fd0]
xor cl, 0xbc
mov byte [eax + 0x59f840], cl
add eax, 1
lea edx, [eax + 1]
cmp edx, 0x41
jb 0x406760
or dword [0x59a0c0], 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.0050828d
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.0050cd55
add esp, 0x18
test eax, eax
jne 0x411019
push esi
call fcn.00507b54
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.0050bdb0
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.0050828d
add esp, 4
test eax, eax
mov dword [ebp - 4], eax
je 0x427849
push edi
call fcn.0050828d
add esp, 4
test eax, eax
jne 0x427852
mov eax, dword [ebp - 4]
push eax
call fcn.00507b54
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.00507b54
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.0050828d
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x427903
push edi
call fcn.0050828d
add esp, 4
test eax, eax
jne 0x42790b
push ebx
call fcn.00507b54
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.00507b54
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 0x5575d0
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.0050828d
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 [0x59d1a0]
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.0050e0a4
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 0x59d184
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 [0x59d148], 1
mov eax, 0
push esi
adc dword [0x59d14c], eax
mov edx, dword [esi + 8]
add dword [0x59d150], edx
mov edx, dword [0x59d180]
push edx
adc dword [0x59d154], eax
mov ecx, dword [esi + 8]
add dword [0x59d168], ecx
adc dword [0x59d16c], eax
call fcn.00410770
push 0x59d184
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.00507b54
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.0050e2e0
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 [0x596c60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x59d5b8], 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 + 0x595304]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005072fd
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.0050b67e
push str.ws2_32
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.0050e384
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.0050b67e
push str.wship6
lea edx, [ebp - 0x110]
push 0x10c
push edx
call fcn.0050e384
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 [0x595304], edx
mov dword [0x59530c], 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 + 0x595304]
xor ecx, ebp
mov dword [0x59d5b8], 1
call fcn.005072fd
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 [0x596c60]
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.005072fd
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 0x456010
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x596c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp edi, 0x40
mov dword [ebp - 0x150], eax
mov esi, edx
jle 0x45606c
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00411580
push edi
lea edx, [ebp - 0x14c]
push esi
push edx
call fcn.00411d00
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00411e10
add esp, 0x18
lea esi, [ebp - 0x14]
mov edi, 0x10
push 0x41
lea edx, [ebp - 0x58]
push 0
push edx
call fcn.0050c510
push 0x41
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0050c510
push edi
lea ecx, [ebp - 0x58]
push esi
push ecx
call fcn.0050bdb0
push edi
lea edx, [ebp - 0x9c]
push esi
push edx
call fcn.0050bdb0
add esp, 0x30
pop edi
xor eax, eax
pop esi
lea esp, [esp]
xor byte [ebp + eax - 0x58], 0x36
xor byte [ebp + eax - 0x9c], 0x5c
add eax, 1
cmp eax, 0x40
jl 0x4560b0
lea eax, [ebp - 0xf4]
push eax
call fcn.00411580
push 0x40
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xf4]
push edx
call fcn.00411d00
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x150]
push eax
push ecx
lea edx, [ebp - 0xf4]
push edx
call fcn.00411d00
lea eax, [ebp - 0xf4]
push eax
push ebx
call fcn.00411e10
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00411580
push 0x40
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xf4]
push eax
call fcn.00411d00
push 0x10
lea ecx, [ebp - 0xf4]
push ebx
push ecx
call fcn.00411d00
add esp, 0x40
lea edx, [ebp - 0xf4]
push edx
push ebx
call fcn.00411e10
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
call fcn.005072fd
mov esp, ebp
pop ebp
ret

Function at 0x45ad00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret