joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee6ab
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
sub esp, 0x5c
push 0x1d8
mov eax, 0x5da59e
call fcn.005234e3
mov esi, ecx
mov dword [ebp + 0x5c], esi
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00411742
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x174], ebx
jbe 0x4eea2e
lea eax, [ebp + 0x44]
push eax
call fcn.00523a6b
pop ecx
lea eax, [esi + 0x16c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp + 0x48]
call fcn.004f2802
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x4c], ebx
mov eax, dword [esi + 0x174]
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 1
wait
lea eax, [ebp + 0x24]
push eax
lea ecx, [esi + 0x16c]
call fcn.004eaa4f
push eax
lea ecx, [ebp + 0x50]
call fcn.004cdc46
test al, al
jne 0x4ee7ed
lea ecx, [ebp + 0x50]
call fcn.004cdcec
mov esi, eax
lea edi, [ebp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x58]
push dword [ebp + 0x34]
push dword [ebp + 0x44]
call fcn.00526291
pop ecx
pop ecx
fcomp qword [0x67d800]
fnstsw ax
test ah, 0x41
je 0x4ee79c
push dword [ebp + 0x34]
push dword [ebp + 0x44]
call fcn.00526291
pop ecx
pop ecx
fcomp qword [0x67d7f8]
fnstsw ax
test ah, 0x41
jne 0x4ee78f
cmp byte [ebp + 0x38], 1
je 0x4ee79c
lea ecx, [ebp + 0x50]
call fcn.004cdc1e
mov esi, dword [ebp + 0x5c]
jmp 0x4ee722
push dword [ebp + 0x54]
push dword [ebp + 0x50]
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x5c]
add ecx, 0x16c
call fcn.004fc6a4
lea eax, [ebp + 0x30]
cmp byte [ebp + 0x38], bl
je 0x4ee7bf
push ebx
jmp 0x4ee7c1
push 1
push eax
call fcn.004c153b
pop ecx
pop ecx
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 0x174], ebx
jne 0x4ee7eb
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x40], bl
je 0x4ee7e5
mov ecx, dword [ebp + 0x3c]
call fcn.0040df8b
wait
jmp 0x4eea4b
mov esi, eax
wait
mov dword [ebp - 4], ebx
jmp 0x4eea2e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2a4], eax
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x40], bl
je 0x4eea4b
mov ecx, dword [ebp + 0x3c]
call fcn.0040df8b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret

Function at 0x4eea5e
Capabilities:
Connect socket

Disassembly:
push 8
mov eax, 0x5db531
call fcn.005234b0
mov esi, ecx
cmp dword [esi + 0x168], 0xffffffff
je 0x4eeaad
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411742
and dword [ebp - 4], 0
push 0x10
push 0x7083cc
push dword [esi + 0x168]
call dword [sym.imp.WSOCK32.dll_connect]
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4eeaad
mov ecx, dword [ebp - 0x14]
call fcn.0040df8b
call fcn.00523588
ret
Function at 0x4eeef2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x24
mov eax, 0x5da64a
call fcn.00523519
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push eax
push eax
mov esi, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004e3012
and dword [ebp - 4], 0
mov eax, dword [esi + 0x15c]
test eax, eax
jle 0x4eefba
cmp eax, 2
jle 0x4eefbe
add eax, 0xfffffffb
cmp eax, 1
ja 0x4eefba
mov ecx, esi
call fcn.004eec14
add esi, 0xa0
mov ecx, esi
call fcn.0043ba89
cmp eax, 5
jb 0x4eefba
push 5
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004d258a
push 1
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x2a]
push eax
call fcn.005229e0
movzx eax, byte [ebp - 0x2a]
mov dword [edi], eax
push 2
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005229e0
movzx eax, word [ebp - 0x28]
add eax, 5
add esp, 0x18
mov ecx, esi
mov dword [ebx], eax
call fcn.0043ba89
movzx ecx, word [ebp - 0x28]
add ecx, 5
cmp eax, ecx
jb 0x4eefba
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004e2ff1
mov al, bl
call fcn.0052359c
ret 8
xor bl, bl
jmp 0x4eefa4
push dword [esi + 0x160]
mov ecx, esi
call fcn.004ea880
cmp eax, 5
mov dword [ebp - 0x30], eax
jb 0x4eefba
push 2
push 5
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x160]
call dword [sym.imp.WSOCK32.dll_recv]
push 1
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x2a]
push eax
call fcn.005229e0
movzx eax, byte [ebp - 0x2a]
mov dword [edi], eax
push 2
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005229e0
movzx eax, word [ebp - 0x28]
add eax, 5
add esp, 0x18
cmp dword [ebp - 0x30], eax
mov dword [ebx], eax
jmp 0x4eefa0
Function at 0x4f61e3
Capabilities:
Enumerate network shares

Disassembly:
push 0x10
mov eax, 0x5db5eb
call fcn.005234e3
mov edi, ecx
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 3
jg 0x4f62d0
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], 3
ja 0x4f62d0
mov al, byte [edi + 0x21]
test al, al
jne 0x4f62d0
mov eax, 0x4000
mov dword [ebp - 0x14], eax
push eax
call fcn.004fed14
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4f62d0
and dword [ebp + 0x20], 0
mov dword [ebp - 0x18], 1
and dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4f62b6
cmp byte [edi + 0x21], 0
jne 0x4f62ae
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x20]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4f62ae
cmp dword [esi + 8], 2
jne 0x4f6283
inc dword [ebx]
cmp dword [ebx], 3
ja 0x4f62ae
test byte [esi + 0xc], 2
je 0x4f6258
cmp dword [esi + 8], 2
je 0x4f6258
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
mov ecx, edi
call fcn.004f61e3
jmp 0x4f6258
push dword [ebp + 0x20]
call sub.MPR.dll_WNetCloseEnum
or dword [ebp - 4], 0xffffffff
jmp 0x4f62c9
push esi
call fcn.0051d89c
pop ecx
call fcn.00523588
ret 0x1c
Function at 0x4fa106
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x5dbf5f
call fcn.005234b0
mov ebx, ecx
push dword [ebp + 8]
mov byte [ebp - 0xd], 0
call fcn.004dad18
mov esi, eax
test esi, esi
je 0x4fa197
cmp byte [esi + 4], 0
mov byte [ebp - 0xd], 1
je 0x4fa242
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [esi], eax
mov al, byte [ebp + 0x14]
mov byte [esi + 4], al
mov dword [esi + 8], edi
jle 0x4fa1f4
push edi
call fcn.004fed14
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
jne 0x4fa1e5
push eax
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push 0x67f478
call fcn.004ac9bc
mov dword [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
mov ecx, 0x721f30
call fcn.00430cd8
cmp byte [ebp - 0xd], 0
jne 0x4fa1e1
push esi
call fcn.0051d492
pop ecx
jmp 0x4fa1e1
push 0x18
call fcn.0051d97d
mov esi, eax
test esi, esi
pop ecx
je 0x4fa1b0
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x4fa1b2
xor esi, esi
xor edi, edi
cmp esi, edi
jne 0x4fa134
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x14], esp
push edi
push 0x67f478
call fcn.004ac9bc
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
mov ecx, 0x721f30
call fcn.00430cd8
xor eax, eax
jmp 0x4fa242
push edi
push dword [ebp + 0xc]
push eax
call fcn.005229e0
add esp, 0xc
jmp 0x4fa1f8
and dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [esi + 0x14], 0
cmp byte [ebp - 0xd], 0
mov dword [esi + 0x10], eax
jne 0x4fa240
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411742
mov dword [ebp - 4], 2
add dword [ebx + 0xc], edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.004fa057
mov dword [eax], esi
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4fa240
mov ecx, dword [ebp - 0x18]
call fcn.0040df8b
mov eax, esi
call fcn.00523588
ret 0x10
Function at 0x4fa71b
Capabilities:
Set socket configuration

Disassembly:
push 0x80
mov eax, 0x5dc02f
call fcn.00523519
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x21c]
xor ebx, ebx
push dword [esi + 0x2c]
mov dword [ebp - 0x8c], esi
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x88], esp
push ebx
push str.GWT.UDPFlowPunchReceived.Received
call fcn.004ac9bc
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, 0x721f18
call fcn.0044d683
push 0x50
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00522720
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x88], esp
push eax
mov ecx, esi
mov byte [ebp - 0x84], 4
call fcn.004d7050
mov dword [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
mov ecx, 0x721f18
call fcn.004bee9c
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x2c]
push ebx
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x7c], eax
call fcn.004e3012
mov dword [ebp - 4], 2
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0x22], 0x47
call fcn.00522720
add esp, 0xc
lea eax, [edi + 8]
push eax
mov word [ebp - 0x34], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x30], eax
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 0x21c]
mov word [ebp - 0x32], ax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa3e3
push 0x1c0
lea ecx, [ebp - 0x24]
mov word [ebp - 0x36], 0x170
call fcn.004e306a
push 0x50
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x1c]
call fcn.005229e0
add esp, 0xc
push ebx
push ebx
mov esi, dword [ebp - 0x8c]
push ebx
push 2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004f4c27
movzx eax, word [ebp - 0x36]
mov ecx, dword [esi + 0x21c]
add eax, 0x50
mov dword [ecx + 0x2f4], eax
push 0x4e2
lea ecx, [ebp - 0x24]
mov word [ebp - 0x36], 0x492
call fcn.004e306a
push 0x50
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x1c]
call fcn.005229e0
add esp, 0xc
push ebx
push ebx
push ebx
push 2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004f4c27
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004e2ff1
call fcn.0052359c
ret 4
Function at 0x4faa5c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
sub esp, 0xac
lea ebp, [esp - 4]
mov eax, dword [0x70b744]
xor eax, ebp
mov dword [ebp + 0xac], eax
push 0x50
mov eax, 0x5dc0ec
call fcn.005234b0
mov edi, 0x9c
push edi
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
mov esi, ecx
call fcn.00522720
mov al, byte [ebp + 0xb8]
add esp, 0xc
push ebx
push str.GWT.SendUDPPunchRequest
lea ecx, [ebp - 0x38]
mov byte [ebp], al
call fcn.004ac9bc
mov dword [ebp - 4], ebx
movzx eax, byte [ebp + 0xb8]
push ebx
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004ac6f7
mov byte [ebp - 4], 1
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, 0x721f18
call fcn.004112c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
call fcn.004ac66a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004ac66a
mov ecx, dword [esi + 0x21c]
push 0xf
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004fa396
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.004ae117
add esp, 0x28
mov dword [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x4fab45
mov eax, dword [eax + 4]
jmp 0x4fab48
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.00520ac0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004108b7
mov eax, dword [esi + 0x21c]
add eax, 0x324
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x10], ebx
sub eax, ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x14
lea edx, [eax + ecx]
mov dx, word [ebp + edx + 0x18]
mov word [ebp + ecx + 0x18], dx
jb 0x4fab77
push 0x10
lea eax, [ebp + 0x9c]
push ebx
push eax
call fcn.00522720
mov eax, dword [esi + 0x21c]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x9c]
mov dword [ebp - 0x14], 0x10
mov eax, dword [eax + 0x2cc]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x4fac3c
push dword [ebp + 0x9e]
call dword [sym.imp.WSOCK32.dll_ntohs]
push 0x4f
sub esp, 0x24
mov word [ebp + 0x90], ax
mov eax, esp
mov dword [ebp - 0x10], esp
push 5
push eax
call fcn.004c34b3
pop ecx
pop ecx
mov dword [ebp - 4], 5
lea eax, [ebp - 0x30]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.004ae117
add esp, 0x28
mov dword [ebp - 4], 6
cmp dword [eax + 0x18], 0x10
jb 0x4fac1d
mov eax, dword [eax + 4]
jmp 0x4fac20
add eax, 4
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.00520ac0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004108b7
mov eax, dword [esi + 0x2c]
push ebx
push ebx
push 1
push ebx
push ebx
mov dword [ebp + 4], eax
push edi
lea eax, [ebp]
push eax
push 0x61
mov ecx, esi
call fcn.004d088b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
call fcn.0051d721
add ebp, 0xb0
leave
ret 4
Function at 0x4fdec3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x75dca8], 0
push esi
jne 0x4fde36
call fcn.004fdd61
test eax, eax
je 0x4fde79
mov eax, dword [0x75dca8]
cmp eax, 1
jne 0x4fde57
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4fde79
pop esi
ret
push eax
call dword [0x75dcb0]
test eax, eax
jne 0x4fdec1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4fde7d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x75dca8]
call dword [0x75dcb0]
mov edi, eax
test edi, edi
je 0x4fdea4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4fdec0
lea edi, [esi + 0xff0]
push esi
push dword [0x75dca8]
call dword [0x75dcac]
add esi, 0x10
cmp esi, edi
jb 0x4fdeaa
mov eax, esi
pop edi
pop esi
ret
jmp 0x4fde23

Function at 0x4fe091
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x70b744]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004fdfd0
mov eax, 0x400000
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.00522720
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 0x4fe0e0
cmp dword [ebp - 0x1c], 5
jb 0x4fe0f8
jmp 0x4fe0f4
cmp dword [ebp - 0x10], 1
jne 0x4fe0f8
cmp dword [ebp - 0x1c], 4
ja 0x4fe0f4
jne 0x4fe0f8
cmp dword [ebp - 0x18], 0
jbe 0x4fe0f8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x68018c
call fcn.00430c8d
test eax, eax
jge 0x4fe119
mov byte [0x76a26c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051d721
add ebp, 0x78
leave
ret
Function at 0x50cf00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5dd8a3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
push 0x1c
call fcn.0051d97d
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x64], ebp
je 0x50cf59
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.0050cda0
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
jmp 0x50cf5b
xor ebx, ebx
mov dword [ebx], esi
mov dword [ebx + 4], ebp
mov byte [ebx + 0xc], 0
mov dword [ebx + 8], fcn.0050cd90
mov eax, dword [esi]
push ebx
lea ecx, [eax + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.0050d4f0
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0x4c]
call fcn.0050d2d0
mov edi, dword [esi]
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
mov dword [esp + 0x64], 1
mov dword [esp + 0x14], edi
jbe 0x50cfa8
call fcn.0051e314
mov dword [esp + 0x28], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jbe 0x50cfcb
call fcn.0051e314
mov eax, dword [esp + 0x18]
cmp edi, eax
je 0x50cfd4
call fcn.0051e314
cmp ebp, dword [esp + 0x1c]
je 0x50d091
mov esi, dword [esi]
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
add esi, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.0050d0e0
cmp ebp, dword [edi + 8]
mov byte [esp + 0x78], 2
jb 0x50d006
call fcn.0051e314
mov byte [esp + 0x78], 1
mov ecx, dword [ebp]
call fcn.0050fff0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
mov edi, dword [ebx + 0x14]
mov edx, dword [edi + 4]
lea esi, [ebx + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
mov ecx, esi
mov byte [esp + 0x70], 3
call fcn.0050cdc0
push 1
mov ecx, esi
mov ebp, eax
call fcn.0050ce60
mov ecx, dword [esp + 0x28]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
cmp ecx, dword [eax + 8]
mov byte [esp + 0x44], 0
mov byte [esp + 0x64], 1
jb 0x50d07b
call fcn.0051e314
add dword [esp + 0x28], 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
jmp 0x50cfb0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.0050d370
lea ecx, [esp + 0x38]
call fcn.0050d240
mov esi, dword [esi]
lea ecx, [esp + 0x48]
mov byte [esi + 0x1c], 1
mov dword [esp + 0x64], 0xffffffff
call fcn.0050d310
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x5104a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x75e118]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x5104b7
push eax
call edi
test eax, eax
jne 0x5104ed
push esi
call fcn.00510250
push 0x510110
push 0x75e114
mov esi, eax
call fcn.005103f0
mov eax, dword [0x75e118]
add esp, 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x75e118]
test eax, eax
pop esi
jne 0x5104ea
pop edi
ret
push eax
call edi
pop edi
ret

Function at 0x5105d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5ddf48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x75e118]
test eax, eax
jne 0x510602
xor esi, esi
jmp 0x51060b
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 0x51064d
cmp dword [esi + 0x14], 0
jne 0x51068f
cmp dword [esi + 0x10], 0
jne 0x510695
push 0x510110
push 0x75e114
call fcn.005103f0
mov eax, dword [0x75e118]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x51067b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51067b
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 0x5106d5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x5106c3
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 0x510695
cmp dword [esi + 0x14], 0
je 0x510627
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x5106fa
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 0x51072b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51072b
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 0x51072b
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 0x5106df
jmp 0x510621
Function at 0x5107e0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x510750
push 0
push 0
call fcn.0052b800
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x510820
lea ecx, [esp + 8]
call fcn.00511320
push 0x6dd6ec
lea edx, [esp + 0xc]
push edx
call fcn.0052365b
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x510849
cmp eax, 0xffffffff
je 0x510849
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret