joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e73a0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x5e7bb0
sub esp, 0x118
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
cmp ecx, edi
jne 0x5e7c11
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x120]
push edi
push ecx
push eax
push edx
call fcn.005e7a70
add esp, 0x10
pop edi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00469ae8
add esp, 0x118
ret
cmp ecx, 0xffffffff
jne 0x5e7c24
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x7a120
jmp 0x5e7c4b
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 8], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0xc], ecx
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, dword [esp + 0x12c]
cmp edi, ebx
jge 0x5e7cff
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esi + 1]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x5e7cea
jne 0x5e7c9e
cmp dword [esp + 0x138], 0xffffffff
jne 0x5e7cff
mov ecx, dword [esp + 0x1c]
push 0
mov eax, ebx
sub eax, edi
push eax
add ecx, edi
push ecx
push esi
call ebp
test eax, eax
jns 0x5e7ce1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5e7ccd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x5e7cef
push 0x4e20
call fcn.005e8c00
add esp, 4
add dword [esp + 0x10], 0x14
jmp 0x5e7c62
je 0x5e7cf6
add edi, eax
jmp 0x5e7c62
or eax, 0xffffffff
jmp 0x5e7d01
mov eax, 0xfffffffe
jmp 0x5e7d01
mov eax, 0xfffffffd
test edi, edi
je 0x5e7d01
mov eax, edi
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.00469ae8
add esp, 0x118
ret

Function at 0x5e76b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x190], eax
movzx ecx, byte [esp + 0x19c]
movzx edx, byte [esp + 0x198]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00469ae8
add esp, 0x194
ret

Function at 0x5e7730
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret

Function at 0x5e7740
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x5e7820
Capabilities:
Get socket status

Disassembly:
sub esp, 0x214
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
imul edx, edx, 0x3e8
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 8], edx
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
cmp ecx, 0xffffffff
jne 0x5e78a5
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x5e78bd
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5e78e0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00469ae8
add esp, 0x214
ret
jne 0x5e78fd
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00469ae8
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [esp + 0x214]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
call fcn.00469ae8
add esp, 0x214
ret

Function at 0x5e7930
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5e7979
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x5e7979
cmp eax, 0x2733
je 0x5e7965
cmp eax, 0x2735
jne 0x5e797d
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.005e7820
add esp, 8
neg eax
sbb eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x5e7a70
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5e7b17
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x5e7ab9
xor ecx, ecx
jmp 0x5e7ae2
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5e7b15
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
je 0x5e7b73
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5e7b8d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5e7b62
call esi
cmp eax, 0x2733
je 0x5e7b62
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
test edi, edi
je 0x5e7b73
push 0x30d40
call fcn.005e8c00
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
jne 0x5e7b94
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
Function at 0x5e7bb0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x5e7bb0
sub esp, 0x118
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
cmp ecx, edi
jne 0x5e7c11
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x120]
push edi
push ecx
push eax
push edx
call fcn.005e7a70
add esp, 0x10
pop edi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00469ae8
add esp, 0x118
ret
cmp ecx, 0xffffffff
jne 0x5e7c24
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x7a120
jmp 0x5e7c4b
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 8], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0xc], ecx
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, dword [esp + 0x12c]
cmp edi, ebx
jge 0x5e7cff
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esi + 1]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x5e7cea
jne 0x5e7c9e
cmp dword [esp + 0x138], 0xffffffff
jne 0x5e7cff
mov ecx, dword [esp + 0x1c]
push 0
mov eax, ebx
sub eax, edi
push eax
add ecx, edi
push ecx
push esi
call ebp
test eax, eax
jns 0x5e7ce1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5e7ccd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x5e7cef
push 0x4e20
call fcn.005e8c00
add esp, 4
add dword [esp + 0x10], 0x14
jmp 0x5e7c62
je 0x5e7cf6
add edi, eax
jmp 0x5e7c62
or eax, 0xffffffff
jmp 0x5e7d01
mov eax, 0xfffffffe
jmp 0x5e7d01
mov eax, 0xfffffffd
test edi, edi
je 0x5e7d01
mov eax, edi
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.00469ae8
add esp, 0x118
ret
Function at 0x5e7d20
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5e7d20
sub esp, 0x110
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5e7dd7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x5e7d6d
xor ecx, ecx
jmp 0x5e7d96
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5e7dd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
je 0x5e7e33
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x5e7e4d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5e7e22
call esi
cmp eax, 0x2733
je 0x5e7e22
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
test edi, edi
je 0x5e7e33
push 0x186a0
call fcn.005e8c00
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
jne 0x5e7e54
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret

Function at 0x5e7fc0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
ret

Function at 0x5e8670
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x5e8699
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5e8699
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret

Function at 0x5e86a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x5e86c9
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e86c9
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret

Function at 0x5e8820
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
neg eax
sbb eax, eax
neg eax
dec eax
ret
Function at 0x5e88a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jns 0x5e88bd
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
jne 0x5e88d9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
pop esi
mov dword [ecx], 0
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push edi
lea eax, [esi + 1]
push eax
push 1
mov dword [edx], esi
call fcn.005dfc69
mov edi, eax
add esp, 8
test edi, edi
je 0x5e8933
test esi, esi
jle 0x5e8912
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e8912
mov eax, dword [esp + 0xc]
jmp 0x5e8915
or eax, 0xffffffff
cmp eax, esi
jne 0x5e892a
mov edx, dword [esp + 0x18]
mov dword [edx], edi
mov byte [edi + esi], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.0046a795
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x5e9a80
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x5ea360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
cmp ecx, 0x1c
ja case.0x5ea373.1
movzx ecx, byte [ecx + 0x5ea38c]
jmp dword [ecx*4 + 0x5ea384]
and eax, 0x7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x616240
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor esi, esi
xor edi, edi
call fcn.005dfc1b
mov ebx, dword [esp + 0x28]
add esp, 4
xor ebp, ebp
xor edx, edx
cmp ebx, 2
jl 0x616280
mov eax, dword [esp + 0x20]
lea ecx, [ebx - 2]
shr ecx, 1
add eax, 0xc
inc ecx
lea edx, [ecx + ecx]
add esi, dword [eax - 8]
add edi, dword [eax]
add eax, 0x10
dec ecx
jne 0x616275
cmp edx, ebx
jge 0x61628c
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + edx*8 + 4]
mov edx, dword [esp + 0x10]
add edi, esi
mov esi, dword [esp + 0x1c]
push edx
add ebp, edi
push ebp
push esi
call fcn.006160b0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jns 0x6162b6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
test ebp, ebp
je 0x616305
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [esi + 0x10], 1
mov dword [esi + 0xc], eax
test ebx, ebx
jle 0x616305
mov edi, dword [esp + 0x20]
add edi, 4
mov ecx, dword [esi + 4]
mov ebx, dword [edi]
mov eax, dword [edi - 4]
push ecx
push ebx
push 1
push eax
call fcn.0046e169
add esp, 0x10
cmp ebx, eax
jne 0x6162fd
add dword [esi + 0x20], ebx
inc ebp
add edi, 8
cmp ebp, dword [esp + 0x24]
jl 0x6162d5
jmp 0x616305
mov dword [esp + 0x14], 0xffffffff
mov edi, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, edi
sub ecx, dword [esi + 0x14]
cmp ecx, dword [edx + 0x90]
jl 0x61633d
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
je 0x616339
cmp dword [esi + 0x10], eax
je 0x616339
push ecx
call fcn.00471bd8
add esp, 4
test eax, eax
jne 0x616339
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x618370
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
lea esi, [edi + 4]
xor ecx, ecx
mov dword [esp + 4], 0
mov eax, edi
cmp edi, esi
je 0x618394
mov dl, byte [eax]
xor byte [esp + ecx + 4], dl
inc ecx
inc eax
and ecx, 3
cmp eax, esi
jne 0x618385
lea eax, [edi + 0x14]
lea esi, [eax + 4]
xor ecx, ecx
cmp eax, esi
je 0x6183af
mov dl, byte [eax]
xor byte [esp + ecx + 4], dl
inc ecx
inc eax
and ecx, 3
cmp eax, esi
jne 0x6183a0
lea eax, [edi + 0x18]
lea esi, [eax + 4]
xor ecx, ecx
cmp eax, esi
je 0x6183cf
jmp 0x6183c0
mov dl, byte [eax]
xor byte [esp + ecx + 4], dl
inc ecx
inc eax
and ecx, 3
cmp eax, esi
jne 0x6183c0
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x61cf20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x80
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
mov ebp, dword [esp + 0x90]
push 0x64
lea eax, [esp + 0x20]
push eax
push str.TSM_DATA_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x61cf6e
push str.C:WINDOWSTSM_DATA
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push 0x63
push ecx
call fcn.0046ad85
add esp, 0x10
test eax, eax
jle 0x61cfde
cmp eax, 0x64
jae 0x61cfde
lea edx, [esp + 0x1c]
push edx
call fcn.005e8840
mov eax, dword [esp + 0x90]
add esp, 4
push esi
push edi
push eax
mov edi, 0x18
lea esi, [esp + 0x10]
call fcn.0061cea0
add esp, 4
test eax, eax
je 0x61cff3
push ebp
mov ecx, esi
mov esi, dword [esp + 0x94]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x6ceae4
push 0xffffffffffffffff
lea eax, [esi - 1]
push eax
push ebx
call fcn.0046ad85
add esp, 0x1c
test eax, eax
jle 0x61cff3
cmp eax, esi
jae 0x61cff3
lea eax, [edi - 0x17]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x80
ret
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x80
ret
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00469ae8
add esp, 0x80
ret
Function at 0x61d010
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x4a8], eax
mov eax, dword [esp + 0x4b0]
push ebx
push ebp
push esi
add ecx, 0x18
push edi
mov dword [esp + 0x10], 0x18790314
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0046be8d
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 4
xor ebx, ebx
call fcn.0046be9f
mov edi, eax
cmp edi, 0xffffffff
je 0x61d15f
push 0x64
lea edx, [esp + 0x58]
push edx
push str.TSM_DATA_PATH
call ebp
test eax, eax
jne 0x61d0ba
push str.C:WINDOWSTSM_DATA
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push 0x63
push eax
call fcn.0046ad85
add esp, 0x10
test eax, eax
jle 0x61d185
cmp eax, 0x64
jae 0x61d185
lea ecx, [esp + 0x54]
push ecx
call fcn.005e8840
push edi
push str._08X
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push 0x13
push edx
call fcn.0046ad85
add esp, 0x18
test eax, eax
jle 0x61d185
cmp eax, 0x14
jae 0x61d185
lea eax, [esp + 0x28]
push eax
push str.tsm__s
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push 0x17
push ecx
call fcn.0046ad85
add esp, 0x14
test eax, eax
jle 0x61d185
cmp eax, 0x18
jae 0x61d185
push str..mmf
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x5c]
push eax
push 0x6ceae4
push 0xffffffffffffffff
lea ecx, [esp + 0xcc]
push 0x3ff
push ecx
call fcn.0046ad85
add esp, 0x1c
test eax, eax
jle 0x61d185
cmp eax, 0x400
jae 0x61d185
lea edx, [esp + 0xb8]
push 0x53
push edx
call fcn.005e85b0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x61d1a8
inc ebx
cmp ebx, 0xa
jl 0x61d071
or eax, 0xffffffff
mov ecx, dword [esp + 0x4b8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469ae8
add esp, 0x4ac
ret
push edi
push 0x6ceaf8
push 1
push str.get_shmid_i
push 0xcd
push str.lib_src_tmng_tsm_shm.c
push 0
call fcn.0061b740
add esp, 0x1c
jmp 0x61d169
push 0x18
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x28], edi
call fcn.005e8670
push esi
call fcn.005e8630
add esp, 0x10
mov eax, edi
jmp 0x61d16c
Function at 0x61d1d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x4a8], eax
push esi
push 0x64
lea eax, [esp + 0x4c]
push eax
push str.TSM_DATA_PATH
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x61d224
push str.C:WINDOWSTSM_DATA
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
push 0x63
push ecx
call fcn.0046ad85
add esp, 0x10
test eax, eax
jle 0x61d2a8
cmp eax, 0x64
jae 0x61d2a8
lea edx, [esp + 0x48]
push edx
call fcn.005e8840
push esi
push str._08X
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0x13
push eax
call fcn.0046ad85
add esp, 0x18
test eax, eax
jle 0x61d2a8
cmp eax, 0x14
jae 0x61d2a8
lea ecx, [esp + 0x1c]
push ecx
push str.tsm__s
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push 0x17
push edx
call fcn.0046ad85
add esp, 0x14
test eax, eax
jle 0x61d2a8
cmp eax, 0x18
jae 0x61d2a8
push str..mmf
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0x6ceae4
push 0xffffffffffffffff
lea edx, [esp + 0xc0]
push 0x3ff
push edx
call fcn.0046ad85
add esp, 0x1c
test eax, eax
jle 0x61d2a8
cmp eax, 0x400
jb 0x61d2e1
push esi
push 0x6ceaf8
push 1
push str.get_size_i
push 0xe6
push str.lib_src_tmng_tsm_shm.c
push 0
call fcn.0061b740
add esp, 0x1c
xor eax, eax
pop esi
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.00469ae8
add esp, 0x4ac
ret
lea eax, [esp + 0xac]
push eax
call fcn.005e8820
add esp, 4
test eax, eax
jne 0x61d2c9
lea ecx, [esp + 0xac]
push 3
push ecx
call fcn.005e85b0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x61d2c9
push 0x18
lea edx, [esp + 8]
push edx
push esi
call fcn.005e86a0
push esi
call fcn.005e8630
mov ecx, dword [esp + 0x4bc]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop esi
xor ecx, esp
call fcn.00469ae8
add esp, 0x4ac
ret
Function at 0x6212e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
mov dword [ebp - 0x20], eax
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
and dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
sub dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
shl ebx, 2
add eax, ebx
push dword [ebp + eax - 0x14]
call sub.WS2_32.dll_ntohl
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
mov dword [ebp + ebx - 0x14], eax
jl 0x62131f
push 0x10
xor eax, eax
pop ecx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 0x10]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
dec ecx
jne 0x621345
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [ebp - 0x20]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469ae8
leave
ret

Function at 0x6213a2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
mov dword [ebp - 0x20], eax
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
and dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
sub dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
shl ebx, 2
add eax, ebx
push dword [ebp + eax - 0x14]
call sub.WS2_32.dll_ntohl
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
mov dword [ebp + ebx - 0x14], eax
jl 0x6213e1
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 0x10]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
dec ecx
jne 0x62140a
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [ebp - 0x20]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469ae8
leave
ret
Function at 0x6419e0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x641a02
jmp 0x6419f0
imul eax, eax, 0xf4243
movzx ecx, cl
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x6419f0
ret