joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b840
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4dadf4]
test ebx, ebx
je 0x41b870
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41b898
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
mov ebx, eax
jmp 0x41b84e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41b85f

Function at 0x41bd40
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41bd70
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41bd71
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x41bdc5
jmp 0x41bdd3
cmp eax, 0x6a
je 0x41bddd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41bdc0
cmp eax, 0x6a
je 0x41bddd
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]
Function at 0x41bdf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4dadf8]
test eax, eax
je 0x41bf58
cmp dword [eax], 1
je 0x41be0e
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41bf80
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41be40
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x41be2f
test esi, esi
je 0x41be2f
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call sym._replace_spin_keys.constprop.0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41bfb0
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf8], eax
jmp 0x41be04
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41be1b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41bf2e
Function at 0x41da50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41da72
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x41dad4
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41db5b
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41dacb
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41db2b
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41dabe
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x41dae8
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x41db52
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41db81
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x41dacb
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41db3f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
jne 0x41db0b
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41db0b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41da85
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41db14
Function at 0x41f570
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x30]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0040cd00
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x41f664
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x41f6b0
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x41f6d6
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x41f6c8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x41f6ed
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
cmp esi, eax
je 0x41f713
mov dword [esp], esi
call sym._free
jmp 0x41f68a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41f68a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41f68a
Function at 0x401980
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45e6ee
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, ecx
push 0x934
mov dword [esp + 0x20], esi
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x440], 0
test eax, eax
je 0x4019e9
mov ecx, eax
call fcn.00447010
jmp 0x4019eb
xor eax, eax
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push 0x20019
push ecx
mov dword [esi + 4], eax
mov al, byte [eax + 5]
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
lea ebx, [esi + 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x454], 0xffffffff
mov byte [esi + 0x10], al
mov word [ebx], cx
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a7b
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.DriverCachePath
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a70
lea eax, [esp + 0x24]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401a61
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [ebx], 0
jne 0x401acf
lea eax, [esp + 0x22c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401aa1
mov eax, str.Driver_Cache
mov edx, ebx
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401ac0
push str._SystemRoot_
push ebx
call fcn.0044bc75
add esp, 8
test eax, eax
je 0x401b63
xor ecx, ecx
jmp 0x401af0
movzx edx, word [esp + ecx + 0x22c]
mov word [esp + ecx + 0x24], dx
add ecx, 2
test dx, dx
jne 0x401af0
add eax, 0x18
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b10
lea edi, [esp + 0x24]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401b24
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401b50
mov esi, dword [esp + 0x1c]
push ebx
push str.DRIVER_CACHE____s__n
call fcn.0043e2c0
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x104
add esi, 0x228
push esi
push 1
push 0
push 0
mov dword [esp + 0x30], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
xor eax, eax
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0044ac80
add esp, 0x434
ret
Function at 0x403030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x46c
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
push edi
mov edi, dword [esp + 0x478]
push str._DRVAPI::RemoveDriverPackage__n
mov esi, ecx
call fcn.0043e2c0
mov ecx, dword [esi + 4]
add esp, 4
push 0
push edi
call fcn.004421d0
test al, al
je 0x4031a2
push str.____USE_PNPUTIL_to_remove_driver_package_first_n
call fcn.0043e2c0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6e]
push ecx
mov word [esp + 0x70], ax
call fcn.0044ac90
mov esi, dword [esi + 4]
add esp, 0x10
cmp dword [esi], 0x17
jl 0x4030e1
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x272]
push eax
mov word [esp + 0x274], dx
call fcn.0044ac90
add esp, 0xc
lea ecx, [esp + 0x268]
push ecx
push 0
push edi
mov ecx, esi
call fcn.004434c0
lea edx, [esp + 0x268]
push edx
push str.pnputil__f__d__s
lea eax, [esp + 0x68]
push eax
jmp 0x4030ec
push edi
push str.pnputil__f__d__s
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x60]
push edx
push str.____Run___s__n
call fcn.0043e2c0
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044ac90
add esp, 0x14
xor ecx, ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x6c], cx
lea ecx, [esp + 0x80]
push ecx
push 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403194
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 8], 0
push 0x1f4
call esi
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call edi
cmp dword [esp + 8], 0x103
je 0x403175
jmp 0x4031b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateProcessW_Error__d__n
jmp 0x4031a8
push edi
push str.File_does_not_exist:___s__Do_nothing_n
call fcn.0043e2c0
add esp, 8
mov ecx, dword [esp + 0x470]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x46c
ret 4
Function at 0x407140
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push SysReAllocString
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x407197
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileA___File_Open_failed____ld_n
call fcn.0043e1d0
add esp, 8
xor eax, eax
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x1e
jae 0x4071cc
push str.LoadIniFileA___File_size_is_too_small_n
call fcn.0043e1d0
mov ecx, dword [esi + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
pop esi
ret 4
add eax, 4
push eax
call fcn.0044b473
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4071fd
push str.LoadIniFileA___Memory_allocation_error._n
call fcn.0043e1d0
mov edx, dword [esi + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
pop esi
ret 4

Function at 0x407210
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push SysReAllocString
push ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x40726a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileW___File_Open_failed____ld____s__n
call fcn.0043e2c0
add esp, 0xc
pop esi
xor eax, eax
pop ebx
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x1e
jae 0x4072a0
push str.LoadIniFileW___File_size_is_too_small_n
call fcn.0043e2c0
mov eax, dword [esi + 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop esi
xor eax, eax
pop ebx
ret 4
add eax, 4
push eax
call fcn.0044b473
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4072d1
push str.LoadIniFileW___Memory_allocation_error._n
call fcn.0043e2c0
mov ecx, dword [esi + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x4072e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp eax, 0xffffffff
je 0x407328
mov edx, dword [esi + 0x14]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
cmp eax, edi
jbe 0x40731e
mov edx, dword [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov edi, 1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x407330
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp eax, 0xffffffff
je 0x40737a
mov edx, dword [esi + 0x14]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
cmp eax, edi
jbe 0x407370
mov edx, dword [esi + 0x18]
shr eax, 1
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov edi, 1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4073a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [esp + 0x1c]
push str.IsIniUnicodeA_n
call fcn.0043e1d0
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40740b
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsIniUnicodeA___File_Open_failed____ld____s__n
call fcn.0043e1d0
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0044ac80
add esp, 0x10
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 0xfd
cmp byte [esp + 0xc], al
jbe 0x4073f6
cmp byte [esp + 0xd], al
jbe 0x4073f6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0044ac80
add esp, 0x10
ret 4
Function at 0x409e40
Capabilities:
Access peb ldr_data
Get ntdll base address
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ec99
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
lea ecx, [esi + 0x12104]
mov dword [esp + 0x18], esi
call fcn.004031d0
xor ebx, ebx
push 0x934
mov dword [esp + 0x34], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x11df0], ebx
mov byte [esi + 0x12100], bl
mov dword [esi], ebx
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x409eca
mov ecx, eax
call fcn.00447010
jmp 0x409ecc
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov al, byte [eax + 5]
mov byte [esi + 0x24], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], bl
mov dword [esi + 0x28], eax
cmp ecx, ebx
je 0x409eea
mov eax, ecx
push ebp
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.00407210
mov eax, dword [esi + 0x10]
mov byte [esi + 0x1c], bl
cmp eax, 0xffffffff
je 0x409f3f
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 0xfd
cmp byte [esp + 0x1c], al
jbe 0x409f32
cmp byte [esp + 0x1d], al
jbe 0x409f32
mov byte [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
cmp byte [esi + 0x1c], bl
je 0x409f4d
call fcn.00407330
jmp 0x409f52
call fcn.004072e0
push ebx
lea edi, [esi + 0x11ef8]
xor ecx, ecx
push edi
mov word [edi], cx
mov ecx, dword [esi + 0x20]
push ebp
mov byte [esi + 0x11df4], bl
call fcn.004434c0
cmp word [edi], bx
jne 0x409f8f
mov eax, 0x461aa4
sub edi, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
cmp cx, bx
jne 0x409f80
mov ecx, esi
call fcn.00409620
mov edx, dword [esi + 0x12108]
push edx
push 0x4641d4
call fcn.0043e2c0
add esp, 8
mov ecx, esi
call fcn.0040a100
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044ac80
add esp, 0x20
ret 0xc
Function at 0x40d530
Capabilities:
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x870
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x86c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x880]
mov ebp, ecx
cmp byte [ebp + 0xe64], 0
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [esp + 0x888]
push 0
je 0x40d576
push 1
push 0
push edi
push esi
call fcn.0040d290
jmp 0x40d6b5
mov ecx, dword [ebp + 4]
push edi
call fcn.004423b0
test ebx, ebx
je 0x40d591
push 0
push 1
push edi
push 6
mov ecx, ebx
call fcn.0044a5a0
push 0
push 1
push 0
push edi
push esi
mov ecx, ebp
call fcn.0040d290
push str..in2
push edi
lea eax, [esp + 0x67c]
push 0x461a90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40d6b5
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esp + 0x14], 0x10
je 0x40d692
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [esp + 0x474]
push 0x461a90
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
jmp 0x40d610
movzx ecx, word [esp + eax + 0x46c]
mov word [esp + eax + 0x264], cx
add eax, 2
test cx, cx
jne 0x40d610
lea eax, [esp + 0x264]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d632
sub eax, edx
sar eax, 1
mov edx, 0x66
mov word [esp + eax*2 + 0x262], dx
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x470]
push ecx
call esi
test ebx, ebx
je 0x40d679
push 0
push 0
lea edx, [esp + 0x26c]
push edx
push 1
mov ecx, ebx
call fcn.0044a5a0
cmp dword [esp + 0x88c], 0
je 0x40d692
lea eax, [esp + 0x264]
push eax
mov ecx, ebp
call fcn.0040d1c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d5e2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044ac80
add esp, 0x870
ret 0xc