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

Disassembly:
mov eax, 0xa4
call fcn.00490990
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x5b17da
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.0050b4c0
add esp, 0xc
cmp edi, 0x40
jbe 0x5b17f6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.0050b4c0
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x5b1820
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.0048d310
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x5b18ff
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x5b1898
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x5b1890
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x5b1936
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x5b1905
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0xa4
ret
Function at 0x5bc9c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x5bc9e6
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x5bc9f5
jl 0x5bc9d1
cmp dword [esp], 0
jbe 0x5bc9d1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
call edi
test eax, eax
jne 0x5bca21
lea ebx, [ebx]
inc esi
cmp esi, 3
ja 0x5bca47
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
je 0x5bca10
fild qword [esp + 0x10]
fmul qword [0x7d3b20]
fild qword [esp + 8]
fdivp st(1)
call fcn.0048cba6
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ecx
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], 0
mov dword [eax + 4], 0
pop esi
add esp, 0x10
ret
Function at 0x5bd7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x765218
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dfc0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x854964]
cmp eax, 0xffffffff
jne 0x5bd81b
xor ebx, ebx
jmp 0x5bd824
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x5bd865
cmp dword [ebx + 0x30], 0
jne 0x5bd8ac
cmp dword [ebx + 0xc], 0
jne 0x5bd8b2
push 0x5bcaf0
push 0x86611c
call fcn.005bd140
mov eax, dword [0x854964]
add esp, 8
cmp eax, 0xffffffff
je 0x5bd865
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x5bd898
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5bd898
mov edx, dword [ebx]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x5bd8fa
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5bd8e4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
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 dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x5bd8b2
cmp dword [ebx + 0x30], 0
je 0x5bd83a
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x5bd9a3
call fcn.0048d4e7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5bd927
call fcn.0048d4e7
cmp dword [edi + 0x10], 0
je 0x5bd983
test esi, esi
jne 0x5bd9aa
call fcn.0048d4e7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5bd942
call fcn.0048d4e7
cmp dword [edi + 0x18], 0
je 0x5bd983
test esi, esi
jne 0x5bd9ae
call fcn.0048d4e7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5bd95d
call fcn.0048d4e7
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x5bd9b2
call fcn.0048d4e7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5bd975
call fcn.0048d4e7
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.0044ed05
cmp dword [ebx + 0x30], 0
jne 0x5bd907
jmp 0x5bd834
mov eax, dword [esi]
jmp 0x5bd91d
mov eax, dword [esi]
jmp 0x5bd938
mov eax, dword [esi]
jmp 0x5bd953
mov eax, dword [esi]
jmp 0x5bd96b
Function at 0x5bda50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x10]
push ecx
push 4
push eax
push 0x5bd9c0
push 0
push 0
call fcn.0048e0cb
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5bda79
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x5bda9e
cmp eax, 0xffffffff
je 0x5bda9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x5d0000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76648e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x69]
mov dword [ebp - 0x68], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005db2f0
add esp, 8
push 0x7fff
lea ecx, [ebp - 0x3c]
call fcn.005d6190
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x10], 8
jb 0x5d007c
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xd8], edx
jmp 0x5d0085
lea eax, [ebp - 0x24]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x5d01a8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
sub edx, 1
cmp dword [ebp - 0x2c], edx
jae 0x5d01a8
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x38]
jb 0x5d00e6
push 0
push 0x130
push str..includePoco_Buffer.h
push str.index____used
call fcn.005da6a0
add esp, 0x10
mov edx, dword [ebp - 0x34]
xor eax, eax
mov ecx, dword [ebp - 0x80]
mov word [edx + ecx*2], ax
lea edx, [ebp - 0x89]
mov dword [ebp - 0x88], edx
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.0041c8f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.005db930
add esp, 8
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov ecx, dword [0x7d4aa0]
push ecx
push 0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041c6d0
mov eax, dword [ebp - 0x60]
or eax, 1
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0041c8f0
mov byte [ebp - 4], 1
movzx ecx, byte [ebp - 0x30]
test ecx, ecx
je 0x5d018e
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.00481e6e
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov eax, dword [ebp + 8]
jmp 0x5d023f
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov ecx, dword [0x7d4aa0]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041c6d0
mov eax, dword [ebp - 0x60]
or eax, 1
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
movzx ecx, byte [ebp - 0x30]
test ecx, ecx
je 0x5d01f6
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00481e6e
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov eax, dword [ebp + 8]
jmp 0x5d023f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5d0250
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7664ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov ecx, dword [ebp + 8]
call fcn.0046a318
lea eax, [ebp - 0x11c]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x14], 0x100
jbe 0x5d02a6
mov dword [ebp - 0x238], 0x100
jmp 0x5d02af
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
lea ecx, [ebp + eax*2 - 0x11c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
jae 0x5d03a7
lea eax, [ebp - 0x18d]
mov dword [ebp - 0x18c], eax
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00449c25
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jae 0x5d032c
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x5d032c
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 0x1a6], dx
movzx eax, word [ebp - 0x1a6]
push eax
push 1
lea ecx, [ebp - 0x138]
call fcn.0047de3f
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x5d02ed
lea edx, [ebp - 0x1b1]
mov dword [ebp - 0x1b0], edx
push 0
push 0
lea ecx, [ebp - 0x154]
call fcn.0041c8f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.005db640
add esp, 8
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045f640
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x154]
call fcn.0041c8f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.00449c25
jmp 0x5d02bf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5dc700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766dc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x5dc73c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xec], edx
jmp 0x5dc748
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xec], eax
push 0
push 0
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5dc77e
push 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x60]
call fcn.005c94f0
push 0x827ba0
lea eax, [ebp - 0x60]
push eax
call fcn.0048d568
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00481e79
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x5dc7aa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xf0], edx
jmp 0x5dc7b6
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041c2b0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.00481e6e
add esp, 4
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov ecx, dword [0x7d4aa0]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041c6d0
mov eax, dword [ebp - 0x6c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041c8f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5dc840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x5dc85a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
jmp 0x5dc863
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
xor edx, edx
cmp edx, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x5dc890
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766dd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x5dc8c5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xb4], edx
jmp 0x5dc8d1
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x10
jb 0x5dc8e8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xb8], eax
jmp 0x5dc8f4
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5dc964
push str.cannot_set_environment_variable:
lea ecx, [ebp - 0x28]
call fcn.0041c2b0
mov dword [ebp - 4], 0
mov ecx, dword [0x7d4aa0]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0044be11
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.005c9b20
push 0x827c60
lea ecx, [ebp - 0x58]
push ecx
call fcn.0048d568
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041c8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5ddc40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766e4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x5ddd27
lea edx, [ebp - 0x79]
mov dword [ebp - 0x78], edx
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.0041c8f0
mov dword [ebp - 0xf8], str.Cannot_get_computer_name
mov eax, dword [ebp - 0xf8]
add eax, 1
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xf8]
mov dl, byte [ecx]
mov byte [ebp - 0xfd], dl
add dword [ebp - 0xf8], 1
cmp byte [ebp - 0xfd], 0
jne 0x5ddcad
mov eax, dword [ebp - 0xf8]
sub eax, dword [ebp - 0xfc]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
push ecx
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x6c]
call fcn.0041c1a0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x50]
call fcn.005c9b20
push 0x827c60
lea eax, [ebp - 0x50]
push eax
call fcn.0048d568
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041c8f0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041c2b0
mov edx, dword [ebp - 0x70]
or edx, 1
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5ddd50
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov word [ecx + 4], ax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x288
mov edx, dword [ebp - 0xc]
push edx
call fcn.00481e79
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x5dddc3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00481e6e
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.00481e79
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x5dddce
cmp dword [ebp - 4], 0
je 0x5dddce
jmp 0x5dde4e
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x5dde3c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x11], 0
cmp dword [ebp - 0x10], 0
je 0x5dde3c
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x5dde3c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1a0], 6
jne 0x5dde32
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x190], 6
jne 0x5dde32
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004909c0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x5ddde9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00481e6e
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x5de650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5de682
push 0
push 0x5e
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5de69f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5de6a8
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5de6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x13
ja case.0x5de6dd.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x5de708]
jmp dword [edx*4 + 0x5de700]
xor al, al
jmp 0x5de6f9
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5de752
push 0
push 0x74
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5de76f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5de778
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5de7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
je 0x5de79c
jmp 0x5de7a0
xor al, al
jmp 0x5de7b1
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret