joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486c40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e968
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
push 0x587ab4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00455d10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push esi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00483030
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00485060
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x486cd2
inc eax
push 1
push eax
push dword [ebp - 0x40]
call fcn.0045bfe0
add esp, 0xc
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x486cff
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0045bfe0
add esp, 0xc
lea eax, [ebp - 0x88]
mov dword [ebp - 0x14], 0xf
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], 0
push eax
mov ecx, edi
mov byte [ebp - 0x28], 0
call fcn.00486e30
test al, al
jne 0x486db1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004872e0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x486d43
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x5c]
mov edi, eax
cmp ecx, 8
jb 0x486d65
push 2
inc ecx
push ecx
push dword [ebp - 0x70]
call fcn.0045bfe0
add esp, 0xc
test edi, edi
jne 0x486db1
lea eax, [ebp - 0x70]
push eax
call fcn.00485780
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x486d7d
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x486d85
mov esi, dword [esi]
push eax
push esi
push str.FileSystem::CreateDirectory_failed__path:_s___s
push 2
call fcn.004825f0
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp eax, 0x10
jb 0x486dad
push 1
inc eax
push eax
push dword [ebp - 0x70]
call fcn.0045bfe0
add esp, 0xc
xor bl, bl
jmp 0x486db3
mov bl, 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x486dca
push 1
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.0045bfe0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret 4
Function at 0x487190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
push 0x587ab4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00455d10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push esi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00483030
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00485060
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x487222
inc eax
push 1
push eax
push dword [ebp - 0x40]
call fcn.0045bfe0
add esp, 0xc
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x48724f
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0045bfe0
add esp, 0xc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 0xf
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], 0
push eax
mov byte [ebp - 0x28], 0
call fcn.004872e0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x487279
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x5c]
mov esi, eax
cmp ecx, 8
jb 0x487299
push 2
inc ecx
push ecx
push dword [ebp - 0x70]
call fcn.0045bfe0
add esp, 0xc
mov ecx, dword [ebp - 0x44]
test esi, esi
setne bl
cmp ecx, 0x10
jb 0x4872b5
push 1
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.0045bfe0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7860
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.00537090
mov eax, dword [0x5fad8c]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x4d78cd
cmp edi, eax
je 0x4d78c1
test ebp, ebp
je 0x4d7940
test ebx, ebx
js 0x4d7940
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x4d78d3
test eax, eax
je 0x4d7940
mov edi, eax
push edi
call fcn.004999d0
add esp, 4
test al, 2
jne 0x4d7940
test ebp, ebp
je 0x4d7a4b
push edi
mov dword [esp + 0x14], 1
call fcn.004bc920
add esp, 4
cmp eax, 0x90
jg 0x4d7940
cmp eax, ebx
jge 0x4d795b
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.004c46b0
add esp, 0xc
test eax, eax
je 0x4d7940
push ebx
push ebp
push dword [esi + 4]
call fcn.004c4850
add esp, 0xc
test eax, eax
je 0x4d7940
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004c4610
add esp, 0xc
test eax, eax
jne 0x4d7977
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053649e
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x4d7940
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x4d799a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x4d79a0
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.004c46b0
add esp, 0xc
test eax, eax
je 0x4d7a58
push edi
call fcn.004bc920
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.004c4850
add esp, 0x10
test eax, eax
je 0x4d7a58
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x4d79f0
push ebp
push edi
push dword [esi + 0xc]
call fcn.004c46b0
add esp, 0xc
test eax, eax
je 0x4d7a58
push edi
call fcn.004bc920
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004c4850
add esp, 0x10
test eax, eax
je 0x4d7a58
push dword [esi + 8]
push dword [esi + 4]
call fcn.004c4870
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x4d7a5a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4d7a2f
jmp 0x4d799e
xor ebp, ebp
test ebx, ebx
je 0x4d7a70
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.00401320
add esp, 8
mov eax, ebp
jmp 0x4d7942
Function at 0x4f3580
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00537090
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004be4d0
mov ebx, eax
push ebx
push esi
call fcn.004be3b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f3609
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4f35e3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004be420
push esi
call fcn.004be570
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4f3609
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004be4d0
mov ebx, eax
push ebx
push esi
call fcn.004be3b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f3678
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4f365e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004be420
push esi
call fcn.004be570
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4f3601
push esi
call fcn.004be570
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4f3c40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00537090
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x4f3c84
cmp ecx, edx
jb 0x4f3c84
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x4f3c73
pop edi
jmp 0x4f3c91
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.004bd440
add esp, 0x14
pop esi
test eax, eax
je 0x4f3cbb
cmp dword [esp], 0x10
jne 0x4f3cbb
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4f3e00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4f3e63
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4f3e63
push ebx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x4f3e36
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x4f3e27
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x4f3e61
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x4f3e61
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x4f3e50
pop edi
pop ebx
pop esi
ret
Function at 0x5222b0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x5222c4
mov dword [esp + 0x18], fcn.00520a90
jmp fcn.0048eb10
mov dword [esp + 0x18], fcn.0051fd30
jmp fcn.0048e840
Function at 0x5384f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f381
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x90]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53853e
mov eax, dword [eax + 4]
jmp 0x538540
xor eax, eax
push 1
push 0x98
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov esi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x538581
lea eax, [ebp + 8]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x20], ecx
call fcn.00545900
mov dword [esi], 0x53e940
jmp 0x538583
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [edi], esi
mov dword [ebp - 0x18], 0
call fcn.005705a0
lea ecx, [ebp + 8]
call fcn.0054cd20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x8c

Function at 0x5385c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f3c1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x90]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53860e
mov eax, dword [eax + 4]
jmp 0x538610
xor eax, eax
push 1
push 0x98
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov esi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x53864e
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.00545900
mov dword [esi], 0x53ea30
jmp 0x538650
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [edi], esi
mov dword [ebp - 0x18], 0
call fcn.005705a0
lea ecx, [ebp + 8]
call fcn.0054cd20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x8c
Function at 0x538680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f401
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x60]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5386cc
mov eax, dword [eax + 4]
jmp 0x5386ce
xor eax, eax
push 1
push 0x68
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x53871a
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.00548dc0
mov eax, dword [ebp + 0x58]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x5c]
mov dword [esi + 0x54], eax
mov dword [edi], 0x53eb70
jmp 0x53871c
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.00570620
lea ecx, [ebp + 0x18]
call fcn.0054d580
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x5c

Function at 0x538750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f441
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x80]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53879f
mov eax, dword [eax + 4]
jmp 0x5387a1
xor eax, eax
push 1
push 0x88
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x5387f6
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.00547720
mov eax, dword [ebp + 0x70]
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x74]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp + 0x78]
mov dword [esi + 0x70], eax
mov dword [edi], 0x53ec40
jmp 0x5387f8
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.005706a0
mov esi, dword [ebp + 0x6c]
test esi, esi
je 0x538831
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x538831
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x538831
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x64]
test ecx, ecx
je 0x538849
mov esi, dword [ecx]
lea eax, [ebp + 0x40]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x7c
Function at 0x538860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f481
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x88]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5388af
mov eax, dword [eax + 4]
jmp 0x5388b1
xor eax, eax
push 1
push 0x90
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538909
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.00547850
mov eax, dword [ebp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x7c]
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 0x80]
mov dword [esi + 0x78], eax
mov dword [edi], 0x53ed70
jmp 0x53890b
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.0054d170
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x84

Function at 0x538940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x78]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53898c
mov eax, dword [eax + 4]
jmp 0x53898e
xor eax, eax
push 1
push 0x80
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538a04
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.00548f40
mov eax, dword [ebp + 0x60]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x64]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x68]
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 0x6c]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 0
mov dword [esi + 0x68], eax
mov dword [ebp + 0x70], 0
mov dword [edi], 0x53ee90
jmp 0x538a06
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.00570760
mov esi, dword [ebp + 0x6c]
test esi, esi
je 0x538a3f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x538a3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x538a3f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp + 0x18]
call fcn.0054d580
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x74
Function at 0x538a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f501
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x88]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x538aaf
mov eax, dword [eax + 4]
jmp 0x538ab1
xor eax, eax
push 1
push 0x90
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538b09
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.005490e0
mov eax, dword [ebp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x7c]
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 0x80]
mov dword [esi + 0x78], eax
mov dword [edi], 0x53efd0
jmp 0x538b0b
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.0054d8e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x84

Function at 0x538b40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f541
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x90]
push dword [0x603f80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x538b8f
mov eax, dword [eax + 4]
jmp 0x538b91
xor eax, eax
push 1
push 0x98
push eax
push dword [ebp - 0x10]
call fcn.0053cad0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538bf2
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.005492c0
mov eax, dword [ebp + 0x80]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x84]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0x88]
mov dword [esi + 0x80], eax
mov dword [edi], 0x53f100
jmp 0x538bf4
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.00570800
lea ecx, [ebp + 8]
call fcn.0054d960
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x8c
Function at 0x539910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push dword [0x603f98]
mov esi, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53995e
cmp dword [eax], esi
je 0x53995e
mov eax, dword [eax + 8]
test eax, eax
jne 0x539953
lea eax, [edi + 8]
mov dword [ebp - 0x24], edi
push eax
push 0x58
call fcn.00556400
mov esi, eax
mov dword [ebp - 0x1c], ebx
add esp, 8
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x5399e3
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.0055f820
mov ebx, 1
mov byte [ebp - 4], 2
push edi
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x55c5c0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.00549040
jmp 0x5399e5
xor esi, esi
test bl, 1
je 0x5399ea
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x539a41
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x539a2a
mov dword [eax + 0x14], esi
jmp 0x539a2d
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x53e810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
and edx, 3
cmp eax, dword [ebp + 0xc]
je 0x53e850
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
nop dword [eax]
mov bl, byte [edx + esi]
inc edx
xor bl, byte [eax]
and edx, 3
mov byte [ecx], bl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc eax
inc ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ecx
cmp eax, dword [ebp + 0xc]
jne 0x53e830
pop esi
pop ebx
pop ebp
ret