joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d75dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x5d780c
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x5d765f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x5d780c
push reloc.WINIO32.DLL_Ordinal_2
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x5d765f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x5d7828
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x5d76e8
xor eax, eax
push ebp
push 0x5d76e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.005d7424
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x5d76c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x5d7848
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x5d76c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d76e8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x5d7802
cmp byte [ebp - 0xd], 0
jne 0x5d772f
cmp byte [ebp - 0x12], 0
je 0x5d7802
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x5d7748
dec ebx
cmp byte [ebx], 0x2e
je 0x5d7757
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x5d7747
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x5d7802
inc ebx
cmp byte [ebp - 0x12], 0
je 0x5d7794
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5d7802
cmp byte [ebp - 0xd], 0
je 0x5d7802
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5d7802
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d7f9c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x788ff4], 1
jae 0x5d8022
mov byte [0x66af08], 2
mov dword [0x788a44], 0x623398
mov dword [0x788a48], 0x6233b6
mov byte [0x788a82], 2
mov dword [0x788a30], 0x5d6b04
call fcn.005d499c
test al, al
je 0x5d7fdf
call fcn.005d49cc
call fcn.005d4a90
mov word [0x788a88], 0xd7b0
mov word [0x788c54], 0xd7b0
mov word [0x788e20], 0xd7b0
call fcn.005d6964
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x788a74], eax
call fcn.005d253c
mov dword [0x788a70], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x788a68], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5dafd8
call fcn.005dcbb0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x5daff4
test bl, 1
je 0x5daff4
call fcn.005e167c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5db1d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.005dc74c
test byte [ebp + 0xd], 0xc0
jne 0x5db1fc
mov eax, dword [0x66d1d4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x5db209
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x5db236
je 0x5db248
sub ecx, 0x100
je 0x5db256
sub ecx, 0x100
je 0x5db25d
sub ecx, 0x100
je 0x5db24f
jmp 0x5db264
sub ecx, 0x600
je 0x5db25d
sub ecx, 0x100
je 0x5db248
jmp 0x5db264
mov edi, 1
jmp 0x5db269
mov edi, 2
jmp 0x5db269
mov edi, 4
jmp 0x5db269
mov edi, 5
jmp 0x5db269
mov edi, 3
test byte [ebp + 0xd], 1
je 0x5db290
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x66cc30]
test al, 0x80
je 0x5db289
mov ebx, 0x80
jmp 0x5db2a2
mov ebx, 1
jmp 0x5db2a2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5db2a2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x5db2b4
je 0x5db2bd
dec eax
je 0x5db2c6
jmp 0x5db2cf
mov dword [ebp - 4], Ordinal_3
jmp 0x5db2de
mov dword [ebp - 4], 0x40000000
jmp 0x5db2de
mov dword [ebp - 4], 0xc0000000
jmp 0x5db2de
push 1
call fcn.005dcb44
pop ecx
mov ebx, eax
jmp 0x5db3ce
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x5db2fa
sub eax, 0x10
je 0x5db301
sub eax, 0x10
je 0x5db30a
sub eax, 0x10
je 0x5db313
jmp 0x5db313
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x5db31a
mov dword [ebp - 8], 1
jmp 0x5db31a
mov dword [ebp - 8], 2
jmp 0x5db31a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x5db387
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x5db37c
test byte [ebp + 0xd], 1
je 0x5db377
mov ebx, 0x50
jmp 0x5db37c
mov ebx, 2
push ebx
call fcn.005dcb44
pop ecx
mov ebx, eax
jmp 0x5db3ce
mov edi, esi
push edi
call fcn.005db13c
pop ecx
test eax, eax
je 0x5db39b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x5db3a7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.005dc86c
add esp, 8
mov ebx, eax
inc eax
jne 0x5db3ce
push 4
call fcn.005dcb44
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.005dc780
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5dbc30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x7897ec
call fcn.005dc62c
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x7897ec
call fcn.005dbf48
add esp, 0x14
push 0x66d1cc
lea ecx, [ebp - 8]
push ecx
call fcn.005d9d50
add esp, 8
mov byte [0x7897ec], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x7897ec
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x5dbca3
mov eax, 0x7897ec
jmp 0x5dbca5
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x5dbd5c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x5dbd81
cmp dword [ebx + 4], 0xfffffffe
jne 0x5dbd81
or eax, 0xffffffff
jmp 0x5dbeb9
test byte [ebx + 8], 8
je 0x5dbdee
cmp dword [ebx + 4], 0xffffffff
jne 0x5dbdee
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.005dbc30
pop ecx
mov edi, eax
test edi, edi
je 0x5dbdd6
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x5dbeb9
call fcn.005dcb90
test eax, eax
jne 0x5dbde6
xor eax, eax
jmp 0x5dbeb9
or eax, 0xffffffff
jmp 0x5dbeb9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x5dbdfb
cmp eax, 0xfffffffe
jne 0x5dbe22
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x5dbe32
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x5dbe48
call fcn.005dcb90
test eax, eax
jne 0x5dbe43
xor eax, eax
jmp 0x5dbeb9
or eax, 0xffffffff
jmp 0x5dbeb9
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x5dbe5c
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x5dbdee
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5dc568
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x66d0e8]
jb 0x5dc58c
push 6
call fcn.005dcb44
pop ecx
jmp 0x5dc623
push ebx
call fcn.005dc790
pop ecx
mov esi, dword [ebx*4 + 0x789724]
push 0x24
push 0
push edi
call fcn.005d9cac
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x5dc5c0
dec eax
je 0x5dc5b8
dec eax
je 0x5dc612
jmp 0x5dc618
mov word [edi + 4], 0x2000
jmp 0x5dc618
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x5dc5de
call fcn.005dcbb0
mov esi, eax
jmp 0x5dc61a
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x66d0ed], 1
je 0x5dc601
xor eax, eax
jmp 0x5dc606
mov eax, 1
push eax
push edi
call fcn.005e30b0
add esp, 0x18
jmp 0x5dc618
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.005dc824
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5dc62c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.005d8868
pop ecx
mov ebx, eax
test eax, eax
jne 0x5dc650
xor eax, eax
jmp 0x5dc6f9
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x5dc671
cmp esi, 0x104
jb 0x5dc67c
push ebx
call fcn.005d8878
pop ecx
xor eax, eax
jmp 0x5dc6f9
cmp byte [ebx + 1], 0x3a
jne 0x5dc6ac
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x5dc6ac
push ebx
call fcn.005d8878
pop ecx
xor eax, eax
jmp 0x5dc6f9
inc esi
test edi, edi
je 0x5dc6ef
cmp esi, dword [ebp + 0x10]
jbe 0x5dc6c1
push ebx
call fcn.005d8878
pop ecx
xor eax, eax
jmp 0x5dc6f9
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.005d8878
pop ecx
mov eax, edi
jmp 0x5dc6f9
push esi
push ebx
call fcn.005d8888
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5e1614
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x5e1676
call fcn.005e15c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.005d9d8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.005d9d8c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x5e16f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x66e22c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x5e17ce
cmp dword [0x66e228], 0
jne 0x5e17ce
cmp dword [0x66e40c], 0
je 0x5e1788
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.005e14c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5e176e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.005e14c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5e176e
lea ebx, [ebp - 0x84]
jmp 0x5e176f
inc ebx
call fcn.005e16b0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x5e1809
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x66e230
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.005d9d8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x66e233
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x5e1809
cmp dword [0x66e228], 0
je 0x5e17e8
cmp dword [0x66e228], 0xffffffff
je 0x5e1809
push esi
call dword [0x66e228]
pop ecx
mov eax, dword [0x66e22c]
test eax, eax
je 0x5e1809
cmp dword [0x66e22c], 0xffffffff
je 0x5e1809
cmp byte [eax], 0
je 0x5e1809
push esi
push eax
call fcn.005e1614
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e2004
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x789b40], 0
jne 0x5e2085
cmp dword [0x789b60], 0
jne 0x5e2034
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x789b60], eax
test eax, eax
jne 0x5e2034
push str.GetEnvironmentStrings_failed
call fcn.005e1820
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x789b60]
jmp 0x5e2048
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.005d9d8c
pop ecx
mov edi, eax
test eax, eax
jne 0x5e2040
lea edi, [ebp + 1]
push edi
call fcn.005d8868
pop ecx
mov ebx, eax
mov dword [0x789b44], ebx
test ebx, ebx
jne 0x5e2072
xor eax, eax
jmp 0x5e2148
push edi
mov edx, dword [0x789b60]
push edx
push ebx
call fcn.005d9c3c
add esp, 0xc
jmp 0x5e20a5
xor esi, esi
mov ebx, dword [0x789b40]
jmp 0x5e209f
push eax
call fcn.005d9d8c
pop ecx
test eax, eax
jne 0x5e209b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5e208f
lea ebx, [esi + 4]
push 4
mov dword [0x789b48], ebx
inc ebx
push ebx
call fcn.005d8024
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x5e20c8
xor eax, eax
jmp 0x5e2148
cmp dword [0x789b40], 0
jne 0x5e20f9
xor esi, esi
mov ebx, dword [0x789b44]
mov eax, dword [esp]
mov ebp, eax
jmp 0x5e20ea
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.005d9d8c
pop ecx
mov edi, eax
test eax, eax
jne 0x5e20e0
jmp 0x5e212a
xor esi, esi
mov ebx, dword [0x789b40]
mov eax, dword [esp]
mov edi, eax
jmp 0x5e2124
push eax
call fcn.005d9d8c
pop ecx
test eax, eax
je 0x5e2119
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x5e211d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5e2108
mov eax, dword [0x789b40]
test eax, eax
je 0x5e213a
push eax
call fcn.005d8878
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x789b40], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5ea730
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x5ea75e
mov eax, ebx
call fcn.005eb1e8
cmp dword [ebx + 0x3c], 0
je 0x5ea757
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x5ea7cf
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x5ea7c1
cmp dword [ebx + 8], 0
je 0x5ea780
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x5ea792
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5ea7c1
cmp dword [ebx + 8], 0
je 0x5ea773
cmp eax, 3
je 0x5ea7a5
dec eax
jne 0x5ea773
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5ea773
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x5ea773
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5ea7ed
cmp dword [ebx + 0x10], 0xcc
je 0x5ea7ed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005ea7f8
pop ebx
ret
Function at 0x5fc1d4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call fcn.005dd110
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret

Function at 0x5fdaf4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
lea ebx, [ebp + 8]
mov eax, 0x6723f8
call fcn.005da0b4
mov word [ebp - 0x14], 8
mov edx, 0x67260c
mov ecx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x14], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x1c], edx
mov ecx, dword [ebx]
add ecx, 0x20
push ecx
call fcn.00622ed4
pop ecx
inc dword [ebp - 8]
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x24], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x28], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x2c], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x30], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x34], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x38], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x3c], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x40], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x44], ecx
mov eax, dword [ebx]
add eax, 0x4c
push eax
call fcn.005fcd8c
pop ecx
add dword [ebp - 8], 4
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60149c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x6014c5
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x6014c5
xor eax, eax
jmp 0x6014c8
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x6014cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, 0x672ed0
push ebx
mov ebx, dword [ebp + 8]
call fcn.005da0b4
mov dword [ebx], 0xffffffff
xor edx, edx
mov dword [ebx + 8], edx
mov byte [ebx + 0xc], 0
mov byte [ebx + 0xd], 0
cmp dword [0x672ecc], 0
jne 0x60150d
lea ecx, [ebp - 0x48]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x44]
mov dword [0x672ecc], eax
xor edx, edx
mov dword [ebx + 4], edx
cmp dword [0x672ecc], 0
ja 0x601525
mov dword [0x672ecc], 0x1000
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60171c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ReadFile
test byte [esi + 8], 4
jne 0x6017ec
cmp dword [ebp - 4], 0
je 0x6017ec
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
dec eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
jmp 0x6017c1
mov al, byte [ebx]
movsx edx, al
cmp edx, 0xd
je 0x601773
mov byte [edi], al
inc edi
jmp 0x6017c0
cmp ebx, dword [ebp - 8]
jae 0x601787
movsx ecx, byte [ebx + 1]
cmp ecx, 0xa
je 0x6017c0
mov byte [edi], 0xd
inc edi
jmp 0x6017c0
mov byte [ebp - 9], 0x20
lea eax, [ebp - 0x10]
push 0
push eax
lea edx, [ebp - 9]
push 1
push edx
mov ecx, dword [esi]
push ecx
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 0x10], 0
je 0x6017b3
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_SetFilePointer
movsx edx, byte [ebp - 9]
cmp edx, 0xa
je 0x6017c0
mov byte [edi], 0xd
inc edi
inc ebx
cmp ebx, dword [ebp - 8]
ja 0x6017ce
movsx ecx, byte [ebx]
cmp ecx, 0x1a
jne 0x601764
cmp ebx, dword [ebp - 8]
ja 0x6017e6
push 1
push 0
mov eax, dword [ebp - 8]
inc eax
sub eax, ebx
push eax
mov edx, dword [esi]
push edx
call sub.KERNEL32.DLL_SetFilePointer
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret