joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
je 0x4d9ee6
cmp byte [0x56c0b7], 0
je 0x4d9ee6
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.005037ac
add esp, 8
test eax, eax
je 0x4d9ddd
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005042f0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4d9e07
mov ecx, dword [esi + 4]
mov dword [ebp - 0x230], ecx
jmp 0x4d9e10
lea edx, [esi + 4]
mov dword [ebp - 0x230], edx
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x22c], eax
call fcn.004ea360
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x4d9edb
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.005033b0
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x284], 0x44
call fcn.00421a70
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4d9ebb
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x4d9edb
push 0x40010
push 0x530ee8
push 0
lea ecx, [ebp - 0x228]
call fcn.00421a70
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x228]
call fcn.00401aa0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
Function at 0x4e23b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push eax
xor ebx, ebx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4e2417
call fcn.004d9c10
cmp eax, 4
jg 0x4e2407
push 4
push 0x24
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.004da9b0
add eax, 4
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00409d70
add esp, 8
test bl, 1
je 0x4e2417
lea ecx, [ebp - 0x98]
call fcn.004da3f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e2420
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp + 8], 0xffffffff
cmp eax, 0xffffffff
jne 0x4e2474
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.004d7380
add esp, 0xc
test eax, eax
je 0x4e2474
push eax
push 0x12
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x94]
call fcn.004daa00
lea ecx, [ebp - 0x94]
call fcn.004da3f0
mov esp, ebp
pop ebp
ret

Function at 0x4e9b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
jbe 0x4e9b28
call fcn.004eda40
cmp eax, 1
jl 0x4e9b28
mov dword [ebp - 4], 0x10000
jmp 0x4e9b2a
xor edi, edi
push 8
call fcn.00501e17
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push 0x4e9ac0
test ebx, ebx
push edi
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4e9b71
push esi
call fcn.00501b8f
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4e9b80
pop edi
mov dword [ebx], eax
pop esi
mov al, 1
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 0x4eb4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004e94f0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4eb4c7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
call fcn.004e94f0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4eb546
mov eax, dword [eax + 4]
jmp 0x4eb549
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4eb55d
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4eb800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004e94f0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4eb8af
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.004040b0
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.004daea0
mov ecx, eax
call fcn.004db230
push eax
mov ecx, esi
call fcn.004db0b0
lea ecx, [ebp - 0x248]
call fcn.004dae70
lea ecx, [ebp - 0x264]
call fcn.004dae70
cmp dword [ebp - 0x214], 8
jb 0x4eb89e
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00501b8f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00501b9a
mov esp, ebp
pop ebp
ret

Function at 0x4eb8c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004e94f0
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4eb97f
cmp eax, 0x104
ja 0x4eb97f
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.004040b0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x260]
call fcn.004daea0
mov ecx, eax
call fcn.004db230
push eax
mov ecx, esi
call fcn.004db0b0
lea ecx, [ebp - 0x244]
call fcn.004dae70
lea ecx, [ebp - 0x260]
call fcn.004dae70
cmp dword [ebp - 0x210], 8
jb 0x4eb96e
mov edx, dword [ebp - 0x224]
push edx
call fcn.00501b8f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
Function at 0x4ec2e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x24], 0
call fcn.004e94f0
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x4ec30f
mov ebx, dword [edi]
jmp 0x4ec311
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ec333
pop edi
shr al, 4
pop esi
and al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004db0d0
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x4ec349
mov edi, dword [edi]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00404130
test eax, eax
jne 0x4ec378
lea ecx, [ebp - 0x20]
call fcn.004dae70
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.004ec2e0
add esp, 4
test al, al
je 0x4ec35d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4ec3af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ec35d
push esi
call fcn.004eb530
add esp, 4
test al, al
je 0x4ec35d
lea ecx, [ebp - 0x20]
call fcn.004dae70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00501b9a
mov esp, ebp
pop ebp
ret

Function at 0x4ec3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call fcn.004e94f0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4ec3ee
mov eax, dword [eax + 4]
jmp 0x4ec3f1
add eax, 4
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0
test esi, esi
je 0x4ec42e
lea ecx, [ebp + 8]
call fcn.004e5c50
cmp esi, 0xffffffff
je 0x4ec427
mov dword [ebp + 8], esi
jmp 0x4ec42a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4ec43e
lea ecx, [ebp + 8]
call fcn.004e5c50
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ec46f
mov esi, dword [ebp - 4]
cmp esi, edi
jne 0x4ec46f
lea ecx, [ebp + 8]
call fcn.004e5c50
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
call fcn.004e5c50
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ed020
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
xor ebx, ebx
cmp dword [0x568294], 0xffffffff
push esi
push edi
mov dword [ebp - 4], ebx
jne 0x4ed0b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp dword [0x56c09c], 1
mov esi, eax
jne 0x4ed084
call fcn.004d9c10
cmp eax, 3
jg 0x4ed084
cmp esi, 0xffffffff
jne 0x4ed084
push 3
push 0x37
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.004da9b0
add eax, 4
push str.Check_failed:_value___TLS_OUT_OF_INDEXES.
push eax
call fcn.00409d70
add esp, 8
test bl, 1
je 0x4ed097
lea ecx, [ebp - 0x98]
and ebx, 0xfffffffe
call fcn.004da3f0
push 0xffffffffffffffff
push esi
push 0x568294
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x4ed0b1
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp dword [0x56c09c], 1
jne 0x4ed0fc
call fcn.004d9c10
cmp eax, 3
jg 0x4ed0fc
mov eax, dword [0x568294]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ed0fc
push 3
push 0x43
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
or ebx, 2
call fcn.004da9b0
add eax, 4
push str.Check_failed:__TlsGetValue_tls_key__.
push eax
call fcn.00409d70
add esp, 8
test bl, 2
je 0x4ed10c
lea ecx, [ebp - 0x98]
call fcn.004da3f0
push 0x100
lea ecx, [ebp - 0x198]
push 0
push ecx
call fcn.005033b0
mov eax, dword [0x568294]
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.004f0933
mov ebx, eax
add esp, 4
mov ecx, 0x40
lea esi, [ebp - 0x198]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x568294]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x568294]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x4ed27d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4ed27c
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x568294]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.005026cd
add esp, 4
mov ebx, 0x40
mov esi, dword [0x568298]
dec esi
xor edi, edi
xor dl, dl
cmp esi, edi
jle 0x4ed20c
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, edi
je 0x4ed207
mov ecx, dword [esi*4 + 0x56ce40]
cmp ecx, edi
je 0x4ed207
push eax
mov dword [ebp + esi*4 - 0x104], edi
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, edi
jg 0x4ed1e2
dec ebx
cmp ebx, edi
jle 0x4ed217
test dl, dl
jne 0x4ed1d3
jmp 0x4ed26c
cmp dword [0x56c09c], 1
jne 0x4ed259
call fcn.004d9c10
cmp eax, 3
jg 0x4ed259
push 3
push 0xbe
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x198]
mov ebx, 1
call fcn.004da9b0
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.00409d70
add esp, 8
jmp 0x4ed25c
mov bl, byte [ebp - 4]
test bl, 1
je 0x4ed26c
lea ecx, [ebp - 0x198]
call fcn.004da3f0
mov edx, dword [0x568294]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ed2b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x568294]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x4ed2d7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4ed2dc
call fcn.004ed020
push 0x568298
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
dec eax
mov dword [esi + 4], eax
cmp dword [0x56c09c], 1
jne 0x4ed344
call fcn.004d9c10
cmp eax, 3
jg 0x4ed344
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jg 0x4ed344
push str.slot____0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004dc2b0
add esp, 0xc
cmp eax, ebx
je 0x4ed344
push eax
push 3
push 0x65
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.004daaa0
lea ecx, [ebp - 0x9c]
call fcn.004da3f0
mov eax, dword [esi + 4]
cmp eax, 0x40
jl 0x4ed3a3
cmp dword [0x56c09c], 1
jne 0x4ed389
call fcn.004d9c10
cmp eax, 3
jg 0x4ed389
push 3
push 0x67
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x130]
mov ebx, 1
call fcn.004da9b0
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.00409d70
add esp, 8
test bl, 1
je 0x4ed399
lea ecx, [ebp - 0x130]
call fcn.004da3f0
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [eax*4 + 0x56ce40], edx
mov byte [esi], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ed3c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x568294]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4ed3e6
call fcn.004ed020
mov edi, eax
cmp dword [0x56c09c], 1
jne 0x4ed4a8
call fcn.004d9c10
cmp eax, 3
jg 0x4ed447
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
test eax, eax
jg 0x4ed447
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004dc2b0
add esp, 0xc
test eax, eax
je 0x4ed447
push eax
push 3
push 0x7f
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.004daaa0
lea ecx, [ebp - 0x9c]
call fcn.004da3f0
cmp dword [0x56c09c], 1
jne 0x4ed4a8
call fcn.004d9c10
cmp eax, 3
jg 0x4ed4a8
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x4ed4a8
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004dc2b0
add esp, 0xc
test eax, eax
je 0x4ed4a8
push eax
push 3
push 0x80
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.004daaa0
lea ecx, [ebp - 0x9c]
call fcn.004da3f0
mov edx, dword [esi + 4]
mov eax, dword [edi + edx*4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ed4c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x568294]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4ed4e6
call fcn.004ed020
mov edi, eax
cmp dword [0x56c09c], 1
jne 0x4ed5ab
call fcn.004d9c10
cmp eax, 3
jg 0x4ed54a
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
test eax, eax
jg 0x4ed54a
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004dc2b0
add esp, 0xc
test eax, eax
je 0x4ed54a
push eax
push 3
push 0x88
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.004daaa0
lea ecx, [ebp - 0x9c]
call fcn.004da3f0
cmp dword [0x56c09c], 1
jne 0x4ed5ab
call fcn.004d9c10
cmp eax, 3
jg 0x4ed5ab
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x4ed5ab
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004dc2b0
add esp, 0xc
test eax, eax
je 0x4ed5ab
push eax
push 3
push 0x89
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.004daaa0
lea ecx, [ebp - 0x9c]
call fcn.004da3f0
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi + edx*4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ed820
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004ed7d0
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.005033b0
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x4ed8bb
test ecx, ecx
jle 0x4ed940
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4ed940
cmp eax, 6
jne 0x4ed8eb
cmp byte [ebp - 6], 1
jne 0x4ed8e3
sub ecx, ebx
je 0x4ed8db
sub ecx, 1
je 0x4ed8d3
mov dword [esi], eax
jmp 0x4ed940
mov dword [esi], 5
jmp 0x4ed940
mov dword [esi], 3
jmp 0x4ed940
mov dword [esi], 4
jmp 0x4ed940
jle 0x4ed940
cmp dword [0x56c09c], 1
jne 0x4ed92a
call fcn.004d9c10
cmp eax, 3
jg 0x4ed92a
push 3
push 0x39
push str..winwindows_version.cc
lea ecx, [ebp - 0x1dc]
mov ebx, 1
call fcn.004da9b0
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.00409d70
add esp, 8
test bl, 1
je 0x4ed93a
lea ecx, [ebp - 0x1dc]
call fcn.004da3f0
mov dword [esi], 7
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x4ed9be
cmp eax, 6
je 0x4ed9b5
cmp eax, 9
jne 0x4ed9c5
mov dword [esi + 0x18], 1
jmp 0x4ed9c5
mov dword [esi + 0x18], 2
jmp 0x4ed9c5
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501b9a
mov esp, ebp
pop ebp
ret
Function at 0x4efc60
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x40], eax
lea eax, [edi + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x44], esi
xor esi, esi
push esi
lea edx, [edi + 0x44]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
xor eax, eax
lea edx, [esp + 0x10]
push edx
push 0x2c
lea ecx, [edi + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x68], ecx
push 0x2c
lea ecx, [esp + 0x50]
push ecx
push ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x4efd1e
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x88
ret 4
cmp dword [esp + 0x10], 2
jne 0x4efd10
cmp dword [esp + 0x14], esi
je 0x4efd10
cmp dword [esp + 0x30], esi
je 0x4efd10
cmp dword [esp + 0x34], esi
je 0x4efd10
cmp dword [esp + 0x38], esi
je 0x4efd10
push esi
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
push 0x2c
lea eax, [esp + 0x74]
push eax
push ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x7c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4efd10
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], edx
mov dword [edi + 0x38], ecx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x88
ret 4

Function at 0x501b9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x568fd0]
jne 0x501ba4
repz ret
jmp fcn.0050f232