joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100181f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.1011bf70
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x10018228
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x10018223
mov eax, dword [ebx]
jmp 0x10018225
mov eax, ebx
mov byte [eax], 0
call fcn.1000dd30
test al, al
je 0x10018244
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10017bc0
mov dword [ebp - 0x10014], eax
test eax, eax
je 0x10018231
push eax
push 0x10000
lea eax, [ebp - 0x1000c]
xor edi, edi
push 1
push eax
call fcn.101201fe
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10018], esi
test esi, esi
je 0x100182e3
mov eax, dword [ebp + 8]
lea ecx, [ecx]
test ebx, ebx
je 0x100182b0
sub eax, edi
lea edx, [ebp - 0x10018]
cmp eax, esi
mov dword [ebp - 0x1001c], eax
lea ecx, [ebp - 0x1001c]
cmovae ecx, edx
lea eax, [ebp - 0x1000c]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.10001ea0
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jb 0x100182ff
push dword [ebp - 0x10014]
lea eax, [ebp - 0x1000c]
add edi, esi
push 0x10000
push 1
push eax
call fcn.101201fe
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10018], esi
test esi, esi
jne 0x10018280
mov ebx, dword [ebp - 0x10014]
push ebx
call fcn.1011fe28
add esp, 4
test eax, eax
jne 0x10018305
mov byte [ebp - 0x1000d], 1
jmp 0x1001830c
mov ebx, dword [ebp - 0x10014]
mov byte [ebp - 0x1000d], 0
push ebx
call fcn.1011d775
mov ecx, dword [ebp - 8]
add esp, 4
mov al, byte [ebp - 0x1000d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret

Function at 0x10018350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.10017490

Function at 0x10018570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push esi
lea esi, [ecx + 4]
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.100181f0
add esp, 4
test al, al
jne 0x100185e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x100185da
cmp eax, 0x21
je 0x100185da
cmp eax, 5
jne 0x100185b5
mov eax, 0x3e8
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x100185bd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10019150
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.1011a400
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x10019188
mov byte [esi + 8], 1
call ebx
jmp 0x1001918e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x100191aa
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x10019160
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10019bf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x10193948]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x10019c6c
mov ecx, 1
mov edx, 0x10193948
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10019c48
mov eax, dword [0x10193948]
cmp eax, 1
jne 0x10019c6c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x10193948]
cmp eax, 1
je 0x10019c30
mov eax, dword [0x10193948]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1019394c], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1019394c], eax
cmp eax, 0xffffffff
je 0x10019c76
mov dword [0x10193948], 0x1019394c
mov eax, dword [0x10193948]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3

Function at 0x1001c8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0x10179324
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x204]
mov dword [esi + 0x20], eax
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x1001c917
cmp dword [eax], esi
je 0x1001c913
add eax, 4
cmp eax, edx
jne 0x1001c908
cmp eax, edx
jne 0x1001c920
lea eax, [ebp + 8]
push eax
call fcn.100096b0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x101948ac]
lea ecx, [edi + 0x1d0]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10021ed0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [edi], 0x10179324
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
cmp edx, ecx
je 0x1001c9fa
cmp dword [edx], edi
je 0x1001c9cf
add edx, 4
cmp edx, ecx
jne 0x1001c9c4
cmp edx, ecx
je 0x1001c9fa
cmp dword [esi + 0x64], 0
je 0x1001c9e1
mov dword [edx], 0
jmp 0x1001c9fa
mov eax, ecx
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call fcn.1011a7e0
add esp, 0xc
add dword [esi + 0x5c], 0xfffffffc
mov esi, dword [edi + 0x10]
test esi, esi
je 0x1001ca65
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x1001ca1e
cmp edx, 0x7fffffff
jne 0x1001ca1e
movsd xmm0, qword [0x1018cf40]
jmp 0x1001ca2b
call fcn.10144d5f
divsd xmm0, qword [0x1017a1c0]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.1001cb10
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.10021c30
add esp, 0xc
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
je 0x1001caa0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x204]
cmp dword [edi + 0x20], eax
jne 0x1001caa0
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov eax, esp
mov dword [edi + 8], 0
mov dword [eax], edx
mov eax, dword [ecx]
push dword [edi + 0xc]
call dword [eax + 8]
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
add ecx, 0x1d0
lea eax, [esp + 0xc]
push eax
call fcn.10020760
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1c4]
call fcn.10023b10
mov esi, dword [edi + 8]
add esp, 8
test esi, esi
je 0x1001caf5
mov ecx, esi
call fcn.10021590
push esi
call fcn.1011a1ea
add esp, 4
mov dword [edi], method._WO_.virtual_4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x1001f585
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1c4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x1001f5da
push dword [edi + 0x1c4]
call esi
mov ebx, eax
mov esi, dword [ebx + 8]
test esi, esi
je 0x1001f5da
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x1808]
jne 0x1001f5dd
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, dword [ebx + 0xc]
jne 0x1001f5dd
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, esi
je 0x1001f5dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001f5f9
cmp byte [esi + 4], 0
jne 0x1001f5f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0xc]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x1f0]
test ecx, ecx
je 0x1001f637
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [edi + 0x1f4]
jne 0x1001f637
cmp edx, dword [ecx + 0x1808]
jne 0x1001f57a
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push dword [ebp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10021150
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x101939c4]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x100211cc
mov ecx, 1
mov edx, 0x101939c4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x100211a8
mov eax, dword [0x101939c4]
cmp eax, 1
jne 0x100211cc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x101939c4]
cmp eax, 1
je 0x10021190
mov eax, dword [0x101939c4]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x101939c8], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x101939c8], eax
cmp eax, 0xffffffff
je 0x100211d6
mov dword [0x101939c4], 0x101939c8
mov eax, dword [0x101939c4]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3

Function at 0x10021950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x10021963
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x10021981
mov edi, edi
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x10021970
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.101242b3
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x100219ad
mov eax, edx
pop edi
pop esi
pop ebp
ret 4
Function at 0x100233e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], 0
mov esi, edx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x10023453
cmp dword [0x10194a40], 0
jne 0x10023440
push 0x44
call fcn.1011a4b2
add esp, 4
test eax, eax
je 0x1002341d
mov ecx, eax
call fcn.10013f40
mov esi, eax
jmp 0x1002341f
xor esi, esi
push 0
push esi
push 0x10194a40
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1002343d
test esi, esi
je 0x1002343d
push ecx
mov ecx, esi
call fcn.10013f00
mov esi, dword [ebp - 4]
mov eax, dword [0x10194a40]
cmp dword [eax], 1
jl 0x10023453
mov dword [ebp - 8], 0x10000
jmp 0x10023455
xor ebx, ebx
push 8
call fcn.1011a4b2
add esp, 4
mov edi, eax
push 0
push dword [ebp - 8]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x100232c0
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10023498
push edi
call fcn.1011a1ea
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100234ae
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10023670
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call fcn.100236b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x100236a5
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x100236b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x101939cc]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x10023747
mov ecx, 1
mov edx, 0x101939cc
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10023708
mov eax, dword [0x101939cc]
cmp eax, 1
jne 0x10023747
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x101939cc]
cmp eax, 1
je 0x100236f0
mov eax, dword [0x101939cc]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x101939d0], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x101939d0], eax
cmp eax, 0xffffffff
je 0x10023751
mov eax, 0x1000a6c0
mov dword [0x101939cc], 0x101939d0
test eax, eax
je 0x10023747
push 0x101939cc
push 0x1000a6c0
call fcn.1001a690
add esp, 8
mov eax, dword [0x101939cc]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3

Function at 0x100239a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test ecx, ecx
je 0x100239d9
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x100239d9
test ecx, ecx
je 0x100239d9
add ecx, 0xfffffffc
je 0x100239d9
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x24], 0
lea ecx, [esi + 4]
pop esi
jmp fcn.10035d40
Function at 0x10023ab0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x10023ad5
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3

Function at 0x10023b10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10023ba6
cmp dword [0x1019387c], 3
jg 0x10023b98
lea ebx, [eax + 1]
mov dword [esp + 8], 3
push ebx
push 2
lea ecx, [esp + 0x18]
call fcn.10005310
mov dword [esp + 0xac], str.k:liebao_src_pool_release.branch_91_src_import_base_threading_thread_local_win.cc
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.k:liebao_src_pool_release.branch_91_src_import_base_threading_thread_local_win.cc
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.1000b280
lea eax, [esp + 0x10]
push str.Failed_to_TlsSetValue__.
push eax
call fcn.100025d0
add esp, 8
test bl, 1
je 0x10023ba6
lea ecx, [esp + 8]
call fcn.1000b010
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10023d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10023d3f
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop ebp
ret
mov ecx, dword [eax + 0xb0]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x10023d5a
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
pop ebp
ret

Function at 0x10025bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
mov edi, ecx
mov dword [esp + 8], 0
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [esp + 0x10]
je 0x10025c23
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10025c1f
push 1
push 0x113
push 0x113
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10025c1f
xor bl, bl
jmp 0x10025c35
mov bl, 1
jmp 0x10025c35
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x10025c4d
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.10025a80
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002c300
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x1002c312
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x1002c329
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.1011c4fa
mov esi, eax
add esp, 8
test esi, esi
je 0x1002c3a2
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1002c399
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002c399
cmp dword [ebp - 4], 0
je 0x1002c399
push 0x14
call fcn.1011a4b2
add esp, 4
test eax, eax
je 0x1002c3a2
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.1002c130
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1011bc41
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002c600
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.1011dd07
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002c6d4
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x1002c6ee
cmp esi, 8
jb 0x1002c670
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x1002c718
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.1000c2b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c720
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.1000c2b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ccc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.1002d040
test al, al
je 0x1002cd2d
mov eax, dword [0x1018e6e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1002cce5
call fcn.10036860
mov ecx, eax
mov eax, dword [0x101939f0]
cmp dword [ecx + eax*4], 0
jne 0x1002cd2d
push 0x74
call fcn.1011a4b2
add esp, 4
test eax, eax
je 0x1002cd0a
push esi
mov ecx, eax
call fcn.1002c8f0
mov esi, eax
jmp 0x1002cd0c
xor esi, esi
mov eax, dword [0x1018e6e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1002cd25
call fcn.10036860
mov ecx, eax
mov eax, dword [0x101939f0]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x1002cd30
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x101939ec], 0
push ebx
push esi
push edi
jne 0x1002cd42
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x1018e6e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1002cd5b
call fcn.10036860
mov ecx, eax
mov eax, dword [0x101939f0]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x1002cdf2
mov ecx, 0x101939f8
xor edi, edi
xor ebx, ebx
call fcn.10006440
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x101939f4]
test ecx, ecx
je 0x1002cd9b
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x101939f4], eax
mov dword [ecx + 4], ebx
jmp 0x1002cda8
mov ebx, dword [0x10193a18]
inc ebx
mov dword [0x10193a18], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1002cdcf
push 0x74
call fcn.1011a4b2
add esp, 4
test eax, eax
je 0x1002cdcd
push ebx
mov ecx, eax
call fcn.1002ca80
mov edi, eax
jmp 0x1002cdcf
xor edi, edi
mov eax, dword [0x1018e6e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1002cde8
call fcn.10036860
mov ecx, eax
mov eax, dword [0x101939f0]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10034c00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 0x20
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x10034c68
test bl, 1
je 0x10034c50
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.1000b010
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x10034c23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3

Function at 0x10035c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0xc], 0
cmp dword [ebp + 0xc], 0
push edi
mov edi, ecx
je 0x10035d30
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
jne 0x10035d05
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x18]
call fcn.10035ea0
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.10035f50
add esp, 8
lea ecx, [edi + 4]
push eax
call fcn.10009c40
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
test ecx, ecx
je 0x10035cb3
add ecx, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x10035cb3
test ecx, ecx
je 0x10035cb3
add ecx, 0xfffffffc
je 0x10035cb3
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10035cd4
lock xadd dword [ecx], esi
dec esi
setne al
test al, al
jne 0x10035cd4
test ecx, ecx
je 0x10035cd4
push ecx
call fcn.1011a1ea
add esp, 4
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call fcn.10008af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push 0xffffffffffffffff
push edi
push 0x10035dd0
push esi
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x10035d10
mov dword [edi + 0xc], eax
mov dword [ebx], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10008af0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10007480
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10023650
int3