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

Disassembly:
push 0x88
mov eax, 0x10193f9a
call fcn.1015e434
mov edi, dword [ebp + 0xc]
push 0x14
xor ebx, ebx
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 1
call fcn.101596b0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
call fcn.10126da3
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.10008790
mov ecx, eax
call fcn.10008760
push eax
call fcn.10127294
pop ecx
pop ecx
mov ecx, eax
call fcn.10008790
mov ecx, eax
call fcn.10008790
cmp byte [esi + 0x200], bl
mov byte [esi + 0x202], 1
je 0x1012765c
cmp byte [esi + 0x201], bl
je 0x1012765c
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], ebx
jne 0x1012768f
push 0x14
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.101596b0
mov esi, dword [esi + 0x134]
mov eax, dword [esi]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x94]
push ecx
push 0x15
mov ecx, esi
call dword [eax + 0x48]
jmp 0x10127798
jbe 0x10127798
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
jbe 0x1012777a
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], ebx
call fcn.100441e0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x68]
push eax
call fcn.10008790
mov edi, eax
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x25]
push eax
call fcn.10007ca0
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x26]
push eax
call fcn.10007ca0
lea eax, [ebp - 0x52]
push eax
lea eax, [ebp - 0x56]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x5e]
push eax
lea eax, [ebp - 0x62]
push eax
mov ecx, edi
call fcn.10008790
mov ecx, eax
call fcn.10008760
mov ecx, eax
call fcn.10008790
mov ecx, eax
call fcn.10008760
mov ecx, eax
call fcn.10008790
mov ecx, eax
call fcn.10008760
mov al, byte [ebp - 0x26]
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0x63], al
mov al, byte [ebp - 0x64]
xor al, byte [ebp - 0x25]
and al, 0x1f
xor byte [ebp - 0x64], al
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x49]
push eax
call fcn.10008760
mov ecx, eax
call fcn.10008790
mov ecx, eax
call fcn.10008760
lea ecx, [ebp - 0x4a]
push ecx
mov ecx, dword [eax + 4]
call fcn.10007ca0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10066340
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jb 0x101276ad
mov esi, dword [esi + 0x134]
mov eax, dword [esi]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x48]
lea ecx, [ebp - 0x7c]
call fcn.10004a10
mov eax, dword [ebp - 0x34]
call fcn.1015e4b7
ret 8
Function at 0x1012c236
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call fcn.100223e0
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.10021d40
add esp, 0xc
test al, al
je 0x1012c2a8
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
call dword [sym.imp.WS2_32.dll_connect]
push esi
push dword [esi + 0xc]
mov ecx, esi
mov dword [esi + 0x10], 1
call fcn.1012beed
push esi
push dword [esi + 0xc]
mov ecx, esi
call fcn.1012bef5
mov al, 1
jmp 0x1012c2bd
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1012c2b7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0xc], 0xffffffff
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10159cce
leave
ret 4

Function at 0x1012dd80
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x1019476a
call fcn.1015e434
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0x101a4a78
call fcn.10001460
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.1012a85f
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.1012a85f
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.1012a85f
mov dword [esi + 0x350], ebx
mov byte [esi + 0x354], bl
lea eax, [esi + 0x358]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x368]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x378]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea ecx, [esi + 0x388]
call fcn.10001460
lea ecx, [esi + 0x3a4]
mov byte [ebp - 4], 7
call fcn.1010bf73
mov eax, dword [ebp + 8]
mov dword [esi + 0x3b0], eax
mov eax, dword [eax + 0x10]
add eax, 2
push eax
lea ecx, [esi + 0x3b4]
mov byte [ebp - 4], 8
call fcn.1012a710
mov eax, 0x1012dc9c
push eax
lea edi, [esi + 0x3cc]
push esi
mov ecx, edi
mov byte [esi + 0x3c8], bl
call fcn.1012a1a0
lea eax, [esi + 0x3ec]
mov dword [esi + 0x3e8], ebx
lea ecx, [esi + 0x3fc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.10001460
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x24c], ebx
call fcn.10112454
mov eax, esi
call fcn.1015e4b7
ret 4
Function at 0x1012e3d1
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
sub esp, 0x4a0
lea ebp, [esp - 4]
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x4a0], eax
push 8
mov eax, 0x101948fa
call fcn.1015e3cb
xor esi, esi
push 0x384
lea eax, [ebp + 0x1c]
push esi
push eax
mov dword [ebp - 0x10], esi
call fcn.101596b0
add esp, 0xc
push 0xff
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x1012e4d4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
je 0x1012e4c2
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
test ebx, ebx
je 0x1012e4c2
push ebx
lea ecx, [ebp]
call fcn.10006620
and dword [ebp - 4], 0
push str.127.0.0.1
lea ecx, [ebp]
call fcn.100357e0
push ebx
call fcn.1015e340
cmp eax, 0x1e
pop ecx
jae 0x1012e488
push ebx
call fcn.1015e340
pop ecx
mov edi, eax
jmp 0x1012e48b
push 0x1d
pop edi
push edi
lea eax, [ebp + esi + 0x1c]
push ebx
push eax
call fcn.1015a650
or dword [ebp - 4], 0xffffffff
add esp, 0xc
inc dword [ebp - 0x10]
lea eax, [esi + edi]
push 0
push 1
lea ecx, [ebp]
mov byte [ebp + eax + 0x1c], 0
add esi, 0x1e
call fcn.10003eb0
cmp dword [ebp - 0x10], 0x1e
jl 0x1012e436
cmp dword [ebp - 0x10], 0
jle 0x1012e4d4
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x1012e4d6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4a0]
xor ecx, ebp
call fcn.10159cce
add ebp, 0x4a4
leave
ret

Function at 0x1013e626
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x1013e64b
lea ecx, [esi + 0xc]
push ecx
push eax
push esi
push 0x1013e5e3
push eax
push eax
mov byte [esi + 0x11], al
call fcn.1015a189
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret

Function at 0x10151ab6
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x10151adb
lea ecx, [esi + 0xc]
push ecx
push eax
push esi
push 0x10151a9c
push eax
push eax
mov byte [esi + 0x11], al
call fcn.1015a189
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret

Function at 0x10159cce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101cd7b4]
jne 0x10159cd8
repz ret
jmp fcn.10165e5c
Function at 0x1015fe8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x1015fecc
cmp dword [ebp + 0x14], edi
je 0x1015fecc
cmp ecx, edi
jne 0x1015fed3
call fcn.1015f250
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.10159869
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x1015fee7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x1015ff08
cmp ebx, 0xffffffff
je 0x1015fef7
push ebx
push edi
push ecx
call fcn.101596b0
add esp, 0xc
cmp esi, edi
je 0x1015feb4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x1015feb4
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x1015ff24
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x1015ff2b
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x1016001c
test word [esi + 0xc], 0x10c
je 0x1015ff7f
mov eax, dword [esi + 4]
test eax, eax
je 0x1015ff7f
jl 0x1016007d
cmp ebx, eax
mov edi, ebx
jb 0x1015ff50
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x10160024
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10159539
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x10160014
cmp ebx, dword [ebp - 0xc]
jb 0x1015ffec
cmp dword [ebp - 0xc], 0
je 0x1015ffa9
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x1015ff9e
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x1015ffa5
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x1015ffb4
mov eax, accept
cmp ebx, eax
ja 0x1015ffb4
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x10160050
push eax
push dword [ebp - 8]
push esi
call fcn.10169792
pop ecx
push eax
call fcn.1015f9b9
add esp, 0xc
test eax, eax
je 0x1016008f
cmp eax, 0xffffffff
je 0x1016007d
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x10160014
push esi
call fcn.101693d2
cmp eax, 0xffffffff
pop ecx
je 0x10160081
cmp dword [ebp - 4], 0
je 0x10160050
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1015ff33
mov eax, dword [ebp + 0x14]
jmp 0x1015fece
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x1016003b
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.101596b0
add esp, 0xc
call fcn.1015f250
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x1015fec4
cmp dword [ebp + 0xc], 0xffffffff
je 0x10160066
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.101596b0
add esp, 0xc
call fcn.1015f250
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x1015fec4
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x1015fece
or dword [esi + 0xc], 0x10
jmp 0x10160081
Function at 0x1016a1a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x101ce590]
je 0x1016a1bb
inc edi
cmp edi, 0x17
jb 0x1016a1ac
cmp edi, 0x17
jae 0x1016a33b
push ebp
push 3
call fcn.10171efa
cmp eax, 1
pop ecx
je 0x1016a307
push 3
call fcn.10171efa
test eax, eax
pop ecx
jne 0x1016a1ef
cmp dword [0x101cf6d0], 1
je 0x1016a307
cmp ebx, 0xfc
je 0x1016a33a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x101cfc10
push ebp
call fcn.1015c7d6
add esp, 0xc
test eax, eax
je 0x1016a225
push esi
push esi
push esi
push esi
push esi
call fcn.1015976d
add esp, 0x14
push 0x104
mov esi, 0x101cfc29
push esi
push 0
mov byte [0x101cfd2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1016a269
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1015c7d6
add esp, 0xc
test eax, eax
je 0x1016a269
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1015976d
add esp, 0x14
push esi
call fcn.1015e340
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1016a2ae
push esi
call fcn.1015e340
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x101cff24
push 0x101a65d4
sub ecx, eax
push ecx
push eax
call fcn.1015bfcb
add esp, 0x14
test eax, eax
je 0x1016a2ae
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1015976d
add esp, 0x14
jmp 0x1016a2b0
xor esi, esi
push 0x101a65d0
push ebx
push ebp
call fcn.1015c904
add esp, 0xc
test eax, eax
je 0x1016a2d0
push esi
push esi
push esi
push esi
push esi
call fcn.1015976d
add esp, 0x14
push dword [edi*8 + 0x101ce594]
push ebx
push ebp
call fcn.1015c904
add esp, 0xc
test eax, eax
je 0x1016a2f2
push esi
push esi
push esi
push esi
push esi
call fcn.1015976d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10171d3d
add esp, 0xc
jmp 0x1016a33a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1016a33a
cmp ebp, 0xffffffff
je 0x1016a33a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101ce594]
push dword [esi]
call fcn.1015e340
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10171d3d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.101657c7
xor ebx, ebx
cmp dword [0x101d0168], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10171e13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10171ef3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10171ef3
push eax
call fcn.10165759
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101d0168], eax
call esi
push eax
call fcn.10165759
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101d016c], eax
call esi
push eax
call fcn.10165759
mov dword [0x101d0170], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10163feb
test eax, eax
pop ecx
pop ecx
je 0x10171de1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1015976d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10171e13
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10165759
cmp eax, ebx
pop ecx
mov dword [0x101d0178], eax
je 0x10171e13
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10165759
pop ecx
mov dword [0x101d0174], eax
mov eax, dword [0x101d0174]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10171e98
cmp dword [0x101d0178], ecx
je 0x10171e98
push eax
call fcn.101657d0
push dword [0x101d0178]
mov esi, eax
call fcn.101657d0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10171e98
cmp edi, ebx
je 0x10171e98
call esi
cmp eax, ebx
je 0x10171e65
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10171e65
test byte [ebp - 0x18], 1
jne 0x10171e98
lea eax, [ebp - 0x10]
push eax
call fcn.10164022
test eax, eax
pop ecx
je 0x10171e80
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1015976d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10171e8f
or dword [ebp + 0x10], 0x200000
jmp 0x10171ed3
or dword [ebp + 0x10], 0x40000
jmp 0x10171ed3
mov eax, dword [0x101d016c]
cmp eax, dword [ebp - 8]
je 0x10171ed3
push eax
call fcn.101657d0
cmp eax, ebx
pop ecx
je 0x10171ed3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10171ed3
mov eax, dword [0x101d0170]
cmp eax, dword [ebp - 8]
je 0x10171ed3
push eax
call fcn.101657d0
cmp eax, ebx
pop ecx
je 0x10171ed3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101d0168]
call fcn.101657d0
cmp eax, ebx
pop ecx
je 0x10171ef3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10171ef5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10175a40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1017597f
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.101596b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10175a8f
cmp dword [ebp - 0x1c], 5
jb 0x10175aa7
jmp 0x10175aa3
cmp dword [ebp - 0x10], 1
jne 0x10175aa7
cmp dword [ebp - 0x1c], 4
ja 0x10175aa3
jne 0x10175aa7
cmp dword [ebp - 0x18], 0
jbe 0x10175aa7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x101a7840
call fcn.100e31d0
test eax, eax
jge 0x10175ac8
mov byte [0x101cee50], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10159cce
add ebp, 0x78
leave
ret
Function at 0x101767e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10197a08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x101d0254]
test eax, eax
jne 0x10176812
xor esi, esi
jmp 0x1017681b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x1017685d
cmp dword [esi + 0x14], 0
jne 0x1017689f
cmp dword [esi + 0x10], 0
jne 0x101768a5
push 0x101763b0
push 0x101d024c
call fcn.101765e0
mov eax, dword [0x101d0254]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x1017688b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017688b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x101768e5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x101768d3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x101768a5
cmp dword [esi + 0x14], 0
je 0x10176837
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1017690a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1017693b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1017693b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017693b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x101768ef
jmp 0x10176831
jmp 0x101767e0
Function at 0x10176960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10197a08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x101d0254]
test eax, eax
jne 0x10176812
xor esi, esi
jmp 0x1017681b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x1017685d
cmp dword [esi + 0x14], 0
jne 0x1017689f
cmp dword [esi + 0x10], 0
jne 0x101768a5
push 0x101763b0
push 0x101d024c
call fcn.101765e0
mov eax, dword [0x101d0254]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x1017688b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017688b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x101768e5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x101768d3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x101768a5
cmp dword [esi + 0x14], 0
je 0x10176837
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1017690a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1017693b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1017693b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017693b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x101768ef
jmp 0x10176831
jmp 0x101767e0
Function at 0x10176990
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x101769c2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x101769bf
push 0xd
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x101769e3
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret