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

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x43bbe7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043b470
mov dword [esp + 4], eax
jmp 0x43bc01
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x43bc0d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x43bc29
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x43bc39
mov esi, 2
jmp 0x43bc55
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x43bc48
mov esi, 3
jmp 0x43bc55
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x43bcb2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x43bc84
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0043b470
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x43c572
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x43c5d0
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x4c1d94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43c5d0
cmp dword [ebp + 0xc], 0
je 0x43c5bf
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_wcscpy
push 0x497458
push edi
call sub.MSVCRT.dll_wcscat
add esp, 0x10
jmp 0x43c5cc
push 0x497458
push edi
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, edi
jmp 0x43c5d3
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x43c63a
mov eax, dword [0x4bf458]
dec eax
dec eax
je 0x43c614
sub eax, 0x16
je 0x43c60c
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x43c63a
push esi
call fcn.004922b0
jmp 0x43c61a
push esi
call fcn.00492350
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004922a0
test edi, edi
je 0x43c64d
push edi
push 0
push dword [0x4c1d94]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x43c7d1
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret

Function at 0x43e858
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4c2914]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x43e8b9
push esi
push dword [0x4c2910]
push 8
push dword [0x4c1d94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4c2914]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4c290c]
jmp 0x43e8a9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43e8a7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x43e897
push edi
push 0x43e7f6
call fcn.00434d6f
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x43e8c3
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x43e8d9
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4c2910]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43e910
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x4c1d94]
mov dword [0x4c2914], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4c2914]
call ebx
mov eax, dword [0x4c2910]
mov edi, eax
add eax, esi
push eax
push dword [0x4c2914]
mov dword [0x4c2910], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4c1d94]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4c2914]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x43e950
test ebx, ebx
je 0x43e971
push 0x14
push 0x4c290c
call fcn.0043f1d6
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x43e971
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x43fea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x43fee6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x4c62d4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x43ff07
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4c62d4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00440280
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x43ffc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x43fff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x440120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x44015e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x44015e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x440160
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x440170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x440194
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x4401e4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x4c62d4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x44022c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x44022c
cmp dword [ebp - 8], 0x100000
jge 0x440200
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x4c62d4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x4402d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x440330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4406c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bf5c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x444d10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x444e71
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x444d6f
test ebx, ebx
jle 0x444d6f
push edi
lea eax, [esp + 0x10]
push eax
push ebx
push dword [0x4c6acc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444d6f
cmp dword [esp + 0xc], ebx
jne 0x444d6f
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x444e70
mov edx, dword [0x4c6acc]
mov ecx, edx
cmp dword [ecx], 0x50555245
jne 0x444e70
mov eax, dword [ecx + 8]
add ecx, 0xc
add eax, 0xadbaaccf
mov dword [esp + 0x10], eax
cmp eax, 8
ja 0x444e70
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x444e70
push ebp
jmp 0x444dc0
cmp dword [ecx], 0x434e5354
lea ebp, [ecx + 8]
mov edi, dword [ecx + 4]
jne 0x444e5a
test edi, edi
jle 0x444e5a
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x4c1d94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x444e5a
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x18]
push edi
push ebp
push ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
movzx eax, byte [eax + 0x444e84]
jmp dword [eax*4 + 0x444e78]
mov eax, dword [0x4c6acc]
lea ecx, [edi + ebp]
add eax, 0xfffffff8
add eax, ebx
cmp ecx, eax
jb 0x444dc0
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x4478e0
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x4c62d8]
call fcn.0043e858
cmp dword [0x4ac018], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x4479e3
cmp dword [0x4c3150], 0
jne 0x4479e3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4c315c
call esi
cmp dword [0x4c2954], 0
je 0x447939
push 0x4c6ad8
call esi
push 0x4d2b38
call esi
push 0x4c62e4
call esi
push ebp
push 0
push 0
push 0
push dword [0x4d2b34]
mov dword [0x4c62dc], ebx
mov dword [0x4c3150], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x4c3158]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x4479b6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x447980
cmp esi, dword [esp + 0x10]
je 0x4479af
cmp dword [esi + 0x2c], 0
jne 0x4479af
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x4479a0
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x447990
cmp dword [esi + 0x2c], 0
jne 0x4479af
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x447980
pop edi
cmp dword [0x4c2954], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x4479db
push 0x4c62e4
call esi
push 0x4d2b38
call esi
push 0x4c6ad8
call esi
push 0x4c315c
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x44b940
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.0044b7b0
call fcn.004478e0
lea ecx, [ecx]
push 0
call fcn.0044bba0
test eax, eax
jne 0x44b950
mov ecx, dword [0x4c296c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
je 0x44ba27
cmp dword [0x4c2970], eax
je 0x44ba27
mov eax, dword [0x4c2968]
shl eax, 2
cmp dword [0x4c3178], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x44ba1c
push eax
push ecx
push dword [0x4c6acc]
call sub.MSVCRT.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [0x4c2968], esi
jle 0x44b9ea
jmp 0x44b9c0
mov eax, dword [0x4c6acc]
mov cl, byte [eax + esi*4]
lea edx, [eax + esi*4]
movzx eax, byte [edx + 3]
inc esi
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 3], cl
mov cl, byte [edx + 1]
mov byte [edx + 1], al
mov byte [edx + 2], cl
cmp esi, dword [0x4c2968]
jl 0x44b9c0
mov esi, dword [0x4c6acc]
call fcn.00459e10
push 0x4d2b38
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x4c3194]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4d2b38
call ebx
jmp 0x44ba27
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.0044c0c0
mov dword [esp + 0xc], 1
call fcn.00459e10
push 0x4d2b38
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4c3194]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4d2b38
call ebx
mov eax, dword [0x4c3194]
mov eax, dword [eax + 0x14]
call eax
push 0x4c62e4
call edi
push 0x4d2b38
call edi
push 0x4c6ad8
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x4c318c]
call edi
push dword [0x4c318c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x4c3190]
call edi
push dword [0x4c3190]
call esi
push 0x4c62e4
call ebx
push 0x4d2b38
call ebx
push 0x4c6ad8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4c62e4
call esi
push 0x4d2b38
call esi
push 0x4c6ad8
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x44f5a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xcc
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0xd8]
xor esi, esi
push eax
push edi
call fcn.0044faf0
add esp, 8
test eax, eax
je 0x44f678
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xe0]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x44f678
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xe4]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x44f678
push ebx
push eax
push eax
push 3
push eax
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44f66c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f665
test edi, edi
jle 0x44f665
lea eax, [edi + 1]
push ebp
push eax
call sub.MSVCRT.dll_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44f664
push esi
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f664
cmp dword [esp + 0x10], edi
jne 0x44f664
push ebp
mov byte [edi + ebp], 0
call fcn.0044f9d0
add esp, 4
mov esi, eax
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
Function at 0x44fc40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x44fc53
push ebp
push esi
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x44fc68
mov ax, word [0x49a628]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44fc82
sub ecx, edx
lea esi, [esp + 0xc]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44fdc5
mov edi, dword [esp + 0x25c]
lea eax, [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x25c]
sub esi, eax
nop
lea eax, [esp + 0x140]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x44fcd7
test byte [esp + 0x114], 0x10
je 0x44fd6c
mov ecx, 0x49a62c
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44fd20
test dl, dl
je 0x44fd1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44fd20
add eax, 2
add ecx, 2
test dl, dl
jne 0x44fd00
xor eax, eax
jmp 0x44fd25
sbb eax, eax
or eax, 1
test eax, eax
je 0x44fd7f
mov ecx, 0x49a284
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44fd55
test dl, dl
je 0x44fd51
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44fd55
add eax, 2
add ecx, 2
test dl, dl
jne 0x44fd35
xor eax, eax
jmp 0x44fd5a
sbb eax, eax
or eax, 1
test eax, eax
je 0x44fd7f
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0044fc40
jmp 0x44fd78
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0044f5a0
add esp, 0xc
test eax, eax
jne 0x44fdac
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44fcd0
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
Function at 0x455090
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 4]
push eax
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov word [esp + 6], ax
push dword [esp + 4]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x49a5fc
push 0x4000
push 0xfffffffffffffff6
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x4c35c4], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x49d068
push 0x4000
push 0xfffffffffffffff5
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x4c35c8], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x49d068
push 0x4000
push 0xfffffffffffffff4
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x4c35cc], eax
call sub.MSVCRT.dll_setvbuf
mov eax, dword [0x4c35c8]
add esp, 0x18
mov dword [0x4d2674], eax
call fcn.00451f00
pop esi
add esp, 0x18
ret
Function at 0x45b350
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
lea eax, [esp + 0x20]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45b3a0
push esi
lea eax, [esp + 4]
push eax
push 0x20
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
neg esi
push 0
push dword [esp + 0x28]
sbb esi, esi
not esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and esi, 1
pop esi
je 0x45b41e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
call fcn.00459e10
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, dword [0x4c55f8]
mov dword [esp + 8], eax
mov eax, dword [0x4bff38]
mov dword [esp + 0x10], eax
mov eax, dword [0x4bff3c]
mov dword [esp + 0x14], eax
mov eax, dword [0x4bff40]
mov dword [esp + 0x18], eax
mov eax, dword [0x4bff44]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + ecx]
xor byte [esp + ecx + 1], al
movzx eax, byte [esp + ecx + 1]
xor byte [esp + ecx + 2], al
movzx eax, byte [esp + ecx + 2]
xor byte [esp + ecx + 3], al
movzx eax, byte [esp + ecx + 3]
xor byte [esp + ecx + 4], al
movzx eax, byte [esp + ecx + 4]
xor byte [esp + ecx + 5], al
movzx eax, byte [esp + ecx + 5]
xor byte [esp + ecx + 6], al
add ecx, 6
cmp ecx, 0x1e
jl 0x45b3e1
lea eax, [esp + 0x34]
push eax
call fcn.00492ebb
push 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004935fd
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00492e55
add esp, 0x18
xor edx, edx
lea ecx, [ecx]
movzx ecx, byte [esp + edx + 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4c5820], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x4c5821], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4c5822], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x4c5823], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4c5824], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x4c5825], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4c5826], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4c5827], al
add edx, 4
cmp edx, 0x10
jl 0x45b450
push 0x20
push 0x4c58a4
lea eax, [esp + 8]
push eax
push 0x4c5638
call fcn.00494df0
add esp, 0x9c
ret