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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, ebp
test ebp, ebp
jne 0x4b5907
xor ebx, ebx
jmp 0x4b591f
cmp byte [ebp], 0
je 0x4b5916
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4b5910
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4b59de
jmp 0x4b5944
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x4b594c
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b596c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.004af3d0
test eax, eax
jne 0x4b59cb
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 4
cmp dword [ecx + 0xc], 0
je 0x4b59b5
xor eax, eax
mov edi, ebx
mov edx, ebp
test ebx, ebx
jle 0x4b59af
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x57f160]
lea ebp, [eax*8]
xor esi, ebp
dec edi
xor eax, esi
inc edx
test edi, edi
jg 0x4b5990
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x4b59b7
xor edx, edx
push ebp
call fcn.004afe00
add esp, 4
test eax, eax
je 0x4b59e8
mov edi, dword [eax + 8]
test edi, edi
jne 0x4b59de
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x4b5940
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x4b59cb

Function at 0x4b59f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, edi
test edi, edi
jne 0x4b5a06
xor ebx, ebx
jmp 0x4b5a1f
cmp byte [edi], 0
je 0x4b5a16
jmp 0x4b5a10
inc eax
cmp byte [eax], 0
jne 0x4b5a10
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x4b5adc
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x4b5a44
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x4b5a4c
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x4b5a6c
mov edx, dword [eax]
call fcn.004af3d0
test eax, eax
jne 0x4b5abb
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x4b5aa5
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x4b5a9f
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x57f160]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x4b5a80
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x4b5aa7
xor edx, edx
push edi
call fcn.004afe00
add esp, 4
test eax, eax
je 0x4b5ad8
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4b5ace
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x4b5a40
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x4b5abb
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4b9f90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x4b9fab
mov esi, 0x80
cmp esi, dword [edi]
jne 0x4b9fb6
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x5cb294]
test eax, eax
je 0x4b9fc1
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.004b9650
mov ebp, eax
mov eax, dword [0x5cb298]
add esp, 4
mov dword [esp + 8], ebp
test eax, eax
je 0x4b9fe3
call eax
test ebp, ebp
jne 0x4b9fef
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.004af060
push ebp
mov dword [edi + 0xc], ebp
call dword [0x5c1cbc]
mov ebx, eax
shr ebx, 3
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call fcn.0052b590
mov ecx, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test ecx, ecx
je 0x4ba0cf
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x4ba063
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x57f160]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x4ba040
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x4ba0aa
mov esi, dword [eax]
test esi, esi
je 0x4ba080
mov edx, dword [eax + 4]
jmp 0x4ba082
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x4ba0aa
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x4ba0a2
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x4ba0c3
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x4ba0c3
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x4ba0b9
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4ba033
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4c1150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [0x5cb2b4]
push ebx
push esi
test eax, eax
je 0x4c118c
push eax
push 0x577cb4
lea eax, [esp + 0x14]
push eax
push 0xe6
call fcn.004c1080
add esp, 0x10
jmp 0x4c1231
call fcn.004afee0
test eax, eax
je 0x4c11d6
lea ecx, [esp + 0x114]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x114]
call fcn.004affa0
mov esi, eax
test esi, esi
jne 0x4c1213
pop esi
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.0052b318
add esp, 0x318
ret
lea eax, [esp + 0x114]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x114]
push ecx
call fcn.004b0000
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c11ba
call fcn.004affa0
push ebx
mov esi, eax
call fcn.0052b60a
add esp, 4
test esi, esi
je 0x4c11ba
push esi
push 0x577cb4
lea edx, [esp + 0x14]
push edx
push 0xe6
call fcn.004c1080
push esi
call fcn.0052b60a
add esp, 0x14
cmp byte [esp + 0xc], 0
lea eax, [esp + 0xc]
je 0x4c1246
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4c1240
lea ecx, [esp + 0xc]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x4c125f
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x4c125f
sub eax, 1
jne 0x4c1254
lea edx, [esp + 0xc]
push edx
mov byte [esp + eax + 0x10], 0
mov eax, dword [esp + 0x328]
push 0x582618
add eax, 0xffffffe2
push edi
push eax
call fcn.004c1080
add esp, 0x10
mov eax, edi
test edi, edi
je 0x4c129d
cmp byte [edi], 0
je 0x4c1296
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4c1290
sub eax, edi
and eax, 0x3fffffff
cmp dword [0x5c1c9c], 0
push ebp
mov esi, eax
mov ebx, 0x14
lea ebp, [edi + eax]
jne 0x4c12bb
mov dword [esp + 0xc], 0
jmp 0x4c12e0
push 5
call dword [0x5c1cd8]
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c12e0
mov ecx, eax
push ecx
call dword [0x5c1ce0]
add esp, 4
lea ebx, [ebx]
dec ebx
call fcn.004b9d90
mov byte [ebp], al
inc ebp
test ebx, ebx
jne 0x4c12e0
mov eax, dword [esp + 0xc]
pop ebp
test eax, eax
je 0x4c1301
push eax
call dword [0x5c1ce8]
add esp, 4
mov ecx, 0x14
jmp 0x4c1310
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
inc esi
sub ecx, 1
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x4c1310
mov byte [edi + esi], cl
mov ecx, dword [esp + 0x31c]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0052b318
add esp, 0x318
ret
Function at 0x4c1470
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x14], 0x200
call fcn.004c1350
add esp, 0x10
test eax, eax
jne 0x4c159f
push ebx
push esi
push edi
call fcn.004afee0
lea ebx, [esp + 0x14]
test eax, eax
je 0x4c14c8
call fcn.004aff40
mov esi, eax
jmp 0x4c14e8
call fcn.004aff40
mov edi, eax
test edi, edi
je 0x4c1566
push edi
call fcn.004b0070
push edi
mov esi, eax
call fcn.0052b60a
add esp, 8
test esi, esi
je 0x4c1566
call fcn.004afee0
test eax, eax
mov eax, esi
je 0x4c152d
cmp word [esi], 0
je 0x4c1516
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x4c1511
add eax, 2
cmp word [eax], 0
jne 0x4c1500
jmp 0x4c1516
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4c1557
cmp byte [esi], 0
je 0x4c1542
cmp byte [eax], 0x5c
je 0x4c153f
inc eax
cmp byte [eax], 0
jne 0x4c1532
jmp 0x4c1542
mov byte [eax], 0
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0052b60a
add esp, 4
test edi, edi
jne 0x4c1583
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0052b318
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0052b318
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.0052b318
add esp, 0x114
ret
Function at 0x4c3120
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x4c312d
xor eax, eax
pop ebx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x44
call fcn.004b9a70
mov edi, eax
test edi, edi
jne 0x4c3147
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.004bd230
mov dword [edi], eax
mov ecx, dword [ebx + 8]
push ebp
push ecx
push esi
call fcn.004c2ed0
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ebp
push eax
push esi
call fcn.004c9d20
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push ebp
push edx
push esi
call fcn.004bd230
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ebp
push eax
push esi
call fcn.004c9d20
add esp, 0x44
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push ebp
push eax
push esi
call fcn.004bd230
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
mov byte [edi + 4], cl
mov edx, dword [ebx + 0x1c]
push ebp
push edx
push esi
call fcn.004c3120
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ebp
push eax
push esi
call fcn.004c9d20
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push ebp
push eax
push esi
call fcn.004c9d20
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x38
mov edx, 0xfff7
mov dword [edi + 0x24], eax
and cx, dx
or eax, 0xffffffff
pop ebp
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4cb610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
jmp 0x4cb630
mov al, byte [ebp + 0x57f888]
mov byte [esp + 0x10], al
test edi, edi
je 0x4cb6b5
cmp byte [edi], 0
mov eax, edi
je 0x4cb64b
inc eax
cmp byte [eax], 0
jne 0x4cb645
mov ecx, dword [esp + 0x20]
sub eax, edi
and eax, 0x3fffffff
add ecx, 0x17c
cmp dword [ecx + 0xc], 0
mov ebx, eax
je 0x4cb69d
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x4cb693
mov edi, edi
movzx edi, byte [edx]
movzx edi, byte [edi + 0x57f160]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x4cb670
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
jmp 0x4cb69f
xor edx, edx
push edi
call fcn.004afe00
add esp, 4
test eax, eax
je 0x4cb6b1
mov eax, dword [eax + 8]
jmp 0x4cb6bc
xor eax, eax
jmp 0x4cb6bc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x4cb6cc
movzx ecx, byte [esp + 0x10]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x4cb6ed
inc ebp
cmp ebp, 3
mov dword [esp + 0x14], ebp
jl 0x4cb630
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x10]
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4e13d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
push edi
mov edi, dword [eax + 0x18]
mov eax, dword [edx]
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], edi
jle 0x4e1410
add edx, 4
lea esp, [esp]
cmp dword [edx], edi
je 0x4e14cc
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4e1400
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edi
cmp edi, eax
jae 0x4e15c9
mov ebx, dword [ebp + 0x18]
jmp 0x4e1440
fldz
mov edx, 0x100
cmp word [edi + 0x10], dx
jne 0x4e15b6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, ebx
or eax, ecx
jne 0x4e15b6
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov edx, dword [ecx + 0x164]
and eax, dword [esp + 0x10]
and edx, dword [esp + 0x14]
or eax, edx
je 0x4e15b6
mov esi, dword [ecx + 0x1c]
fld st(0)
mov ecx, dword [ecx + 0x14]
fst qword [esp + 0x30]
lea eax, [ecx + ecx*4]
fxch st(1)
lea eax, [esi + eax*8]
fst qword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp esi, eax
jae 0x4e156e
mov ecx, 0x200
cmp word [esi + 0x10], cx
jne 0x4e14e5
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push ebx
push edx
push eax
jmp 0x4e151f
mov eax, 1
xor edx, edx
call fcn.00530d40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4e1418
mov ecx, dword [esp + 0x38]
cmp dword [esi + 8], ecx
jne 0x4e1563
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 4]
push ebx
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 8]
push ecx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x43
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], 1
push edx
lea edi, [esp + 0x6c]
mov eax, dword [ebp + 0x10]
fstp st(1)
lea ecx, [esp + 0x4c]
fstp st(0)
xor edx, edx
call fcn.004d9d70
fld qword [esp + 0x5c]
fadd qword [esp + 0x3c]
mov ecx, dword [ebp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
fst qword [esp + 0x30]
fld qword [esp + 0x58]
fadd qword [esp + 0x20]
fst qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x4e1571
mov eax, dword [esp + 0x2c]
add esi, 0x28
cmp esi, eax
jb 0x4e14b3
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
je 0x4e1595
fstp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004b7530
fld qword [esp + 0x28]
add esp, 8
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0x30]
fxch st(1)
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4e15b4
fxch st(1)
mov dword [ecx], 0x10000000
fstp qword [ecx + 0x10]
mov dword [ecx + 8], edi
fstp qword [ecx + 0x18]
jmp 0x4e15b8
fstp st(1)
fstp st(0)
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x3c]
jb 0x4e1440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5004d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5cb2c0]
push esi
test eax, eax
je 0x50050a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x50050a
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x5004f3
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x50050a
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x500700
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x500788
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x500787
mov ecx, dword [0x5cb2c0]
test ecx, ecx
jne 0x500726
xor eax, eax
jmp 0x50072f
push ecx
call esi
mov ecx, dword [0x5cb2c0]
cmp byte [eax + 0x18], 0
je 0x500787
test ecx, ecx
je 0x500787
push ecx
call esi
test eax, eax
je 0x500787
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x50074c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x500787
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x500768
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5b0bd4
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.0052aee6
pop esi
pop ecx
ret

Function at 0x500eb0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x565a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x5004b0
push 0x5cb2b8
call fcn.005007f0
mov eax, dword [0x5cb2c0]
add esp, 8
test eax, eax
je 0x500f0a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00529186
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.0049cf70
int3
Function at 0x500f40
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x565aa8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x5cb2c0]
test eax, eax
jne 0x500f72
xor esi, esi
jmp 0x500f7b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x500fa7
cmp dword [esi + 0x14], 0
jne 0x500fe9
cmp dword [esi + 0x10], 0
jne 0x500ff0
push 0
call fcn.00500eb0
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x500fd5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500fd5
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
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 0x501030
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x50101e
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 0x500ff0
cmp dword [esi + 0x14], 0
je 0x500f97
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x501055
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 0x501086
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x501086
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 0x501086
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 0x50103a
jmp 0x500f91
Function at 0x501120
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x565af8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x5010a0
push 0
push 0
call fcn.00532ca2
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x50118b
lea ecx, [esp + 0x10]
call fcn.00529186
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0049cf70
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x5011b1
cmp eax, 0xffffffff
je 0x5011b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x502ace
Capabilities:
Create pipe

Disassembly:
push 0x44
mov eax, 0x565e07
call fcn.0052b390
mov esi, ecx
push str..pipe_
lea ecx, [ebp - 0x50]
call fcn.004022a6
lea ecx, [esi + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040aab0
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00402d14
cmp byte [esi + 0x18], 0
je 0x502ba8
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x28]
jae 0x502b24
lea edi, [ebp - 0x28]
call fcn.005043dc
push eax
push 0x1388
mov esi, 0x200
push esi
push esi
mov ebx, 0xff
push ebx
push 6
push 0x40080003
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x502b85
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x502b60
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.005043dc
push eax
push 0x1388
push esi
push esi
push ebx
push 6
push 0x40000003
push dword [ebp - 0x30]
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x502b8e
push dword [ebp - 0x34]
call fcn.00504436
pop ecx
xor edi, edi
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402d14
mov eax, dword [ebp - 0x34]
call fcn.0052b413
ret
mov dword [ebp - 0x30], 5
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
jae 0x502bbb
lea ebx, [ebp - 0x28]
push edi
push 0x40000000
push 3
call fcn.005043dc
push eax
push edi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x34], 0xffffffff
mov ebx, eax
jne 0x502c22
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jle 0x502b90
push 0x64
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x502b90
cmp ebx, 2
je 0x502baf
cmp ebx, 0xe7
jne 0x502b90
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x502c17
lea eax, [ebp - 0x28]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x502baf
push edi
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x502b90
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x34], 0xffffffff
jmp 0x502b90