joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61505440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x61505560
cmp eax, 1
je 0x61505494
mov eax, ebx
call fcn.61504400
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.61502fc0
mov ebp, dword [ebx]
test ebp, ebp
je 0x615054a0
cmp ebp, 1
jne 0x61505530
mov dword [esp], edi
call fcn.61503300
test esi, esi
je 0x61505494
mov eax, esi
call fcn.61504710
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x615047d0
mov dword [esp + 0x18], esi
call fcn.61504a80
mov eax, dword [0x615ef020]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x61505598
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x61505580
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x61505570
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x61505481
mov dword [esp], 2
call dword [0x615ef0a4]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x61505481
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.61504b40
test eax, eax
jne 0x61505518
jmp 0x615e30cd
call fcn.61504b40
test eax, eax
jne 0x615054f2
jmp 0x615e30df
call fcn.61504b40
test eax, eax
jne 0x615054cc
jmp 0x615e30d8
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x615057f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x61505868
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.61504310
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x61505844
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x61505844
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.61504360
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.61504b40
mov ebx, eax
jmp 0x6150581b
Function at 0x61505880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x615059a0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.61504310
cmp esi, dword [ebx + 0x28]
jae 0x61505900
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.61504360
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x615059ac
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x615059ac
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x615058c8
call fcn.61504b40
mov ebx, eax
jmp 0x615058b5
mov dword [esp], edi
call fcn.61504360
mov eax, 0xc
jmp 0x615058f0

Function at 0x61505a30
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x61505a58
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.61504b40
test eax, eax
jne 0x61505a4d
add esp, 0x1c
ret

Function at 0x61505ac0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x61505ae8
add eax, 0xc
add esp, 0x1c
ret
call fcn.61504b40
test eax, eax
jne 0x61505add
jmp 0x61505ae0
Function at 0x61505b20
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 fcn.61504c90
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x61505b42
call fcn.61504cc0
test byte [ebx + 0x20], 0x30
jne 0x61505b5c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x61505b9d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x61505bdd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x61505b92
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x61505ba6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.61504a60
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x61505b9d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x61505bf1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x61505bbe

Function at 0x61505c00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x61647074]
test eax, eax
jne 0x61505c10
xor eax, eax
ret
sub esp, 0x1c
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x61505c50
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x61505c40
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x61505c34
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x61505c36
call fcn.61504b40
test eax, eax
jne 0x61505c2d
jmp 0x61505c34

Function at 0x61505c60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x61505ca0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x61505c90
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.61504b40
test eax, eax
jne 0x61505c7d
add esp, 0x1c
ret
Function at 0x61505da0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x61505e10
test byte [ebx + 0x20], 0xc
jne 0x61505dd0
mov eax, dword [0x61647074]
test eax, eax
jne 0x61505de0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.61502fc0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x61505e02
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x61505e02
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x61505e21
mov dword [esp], esi
call fcn.61503300
add esp, 0x14
pop ebx
pop esi
ret
call fcn.61504b40
mov ebx, eax
test eax, eax
jne 0x61505dc1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x61505e41
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.61503300
call fcn.61505cb0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x61505ed0
mov dword [esp], eax
call fcn.61502d00
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x61505f10
call fcn.61504a80
mov eax, dword [0x615ef020]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x61505f70
test edi, edi
je 0x61505eea
call fcn.61505da0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x61505f48
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.61502e10
call fcn.61505da0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.61504a80
mov eax, dword [0x615ef020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x61505f60
call fcn.61505da0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.61505da0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.61504a80
mov eax, dword [0x615ef020]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x61505ea2
call fcn.61504b40
mov ebx, eax
jmp 0x61505ea2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x61505ebe
call fcn.61504b40
jmp 0x61505eea
call fcn.61504b40
mov ebx, eax
jmp 0x61505e9e

Function at 0x61511c20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.61521010
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.61521010
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x61511c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x616470a0]
test esi, esi
jle 0x61511da0
mov eax, dword [0x616470a4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x61511cb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x61511d37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x61511ca0
mov dword [esp], ebx
call fcn.61512470
mov edi, eax
test eax, eax
je 0x61511dc7
mov eax, dword [0x616470a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.615125b0
mov edx, dword [0x616470a4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x61511da7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x61511d30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x61511d40
add dword [0x616470a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x616470a4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x61511d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.61511c20
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x61511cbe
mov eax, dword [0x616470a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.61511c20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.61511c20
lea esi, [esi]
nop

Function at 0x615120e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x616470b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x616470a8]
sub esp, 4
test ebx, ebx
je 0x61512135
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6151212e
test esi, esi
je 0x6151212e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x61512110
mov dword [esp], 0x616470b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61512470
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x61500000], 0x5a4d
jne 0x61512495
mov ecx, dword [0x6150003c]
cmp dword [ecx + 0x61500000], 0x4550
lea edx, [ecx + 0x61500000]
je 0x615124a0
ret
cmp word [ecx + 0x61500018], 0x10b
jne 0x61512495
push esi
movzx eax, word [ecx + 0x61500014]
push ebx
movzx esi, word [ecx + 0x61500006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x61500000
test si, si
je 0x615124e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x615124de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x615124ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x615124d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x61517d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x61517ed0
cmp word [ebx], 0
je 0x61517eb0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x61517ee0
test al, 0x10
je 0x61517eb0
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x615f9540
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x615f9544
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x61517eef
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x61517e68
mov dword [esp], edi
mov dword [esp + 4], 0x615f9544
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x61517e0d
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x61517e0d
mov dword [esp + 4], 0x615f9540
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x61517e0d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x61517ebd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x61517ebd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x61517ebd
Function at 0x6153eaa0
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x6153ead8
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x6153eb00
call fcn.615c4b30
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6159a4c0
cmp al, 2
jne 0x6153eae5
xor eax, eax
jmp 0x6153eaf1
Function at 0x6153f550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x615f5a45
push ebx
sub esp, 0x9c
mov eax, dword [0x615f5a44]
mov dword [ebp - 0x81], eax
mov eax, dword [0x615f5aa9]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.61512740
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.615e4b20
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x615f1970], 0
jne 0x6153f676
mov byte [0x615f1970], 1
call fcn.615df8c0
test eax, eax
je 0x6153f644
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.615118c0
mov dword [esp], 2
mov esi, dword [fcn.61521010]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6153f634
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x615f4745
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x615e3d10
jmp 0x615e3d08
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6153f5fa
mov dword [esp], 2
call dword [0x615ef0a4]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x615e3d03
mov dword [esp], 2
call dword [0x615ef0a4]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x615fd630
call fcn.615d8650
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.615df670
add esp, 0x18
pop ebx
ret
Function at 0x6159a270
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.615971a0
test al, al
je 0x6159a2cb
cmp al, 0xff
je 0x6159a2d8
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6159a4c0
cmp al, 2
je 0x6159a2f0
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x6159a302
mov eax, dword [ebx]
test eax, eax
jne 0x6159a2cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.615c4b20
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x6159a2cb
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x6159a2a1
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x6159a370
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6159a4c0
cmp al, 0xff
je 0x6159a3d8
mov ecx, dword [ebx]
test ecx, ecx
jne 0x6159a3ce
test al, al
jne 0x6159a3f0
mov dword [esp + 8], 3
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x6159a440
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x6159a39c
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call fcn.6159a4c0
mov edx, dword [ebx]
test edx, edx
jne 0x6159a3ce
mov ecx, dword [esp + 0x1c]
cmp cl, 2
je 0x6159a428
cmp al, 2
jne 0x6159a39c
call fcn.615c4b30
mov dword [ebx], 0x14
mov dword [ebx + 4], eax
jmp 0x6159a3ce
cmp al, 2
je 0x6159a39c
call fcn.615c4b30
mov dword [ebx], 0x15
mov dword [ebx + 4], eax
jmp 0x6159a3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x6159a470
call edi
mov dword [eax], 5
call fcn.615c4b30
mov esi, eax
call edi
mov eax, dword [eax]
mov dword [ebx + 4], esi
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call edi
mov dword [eax], 0xd
jmp 0x6159a459
Function at 0x615a1e00
Capabilities:
Get disk size

Disassembly:
push esi
push ebx
sub esp, 0x34
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x615a1ec8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, esi
or eax, ecx
je 0x615a1e7c
mov eax, dword [esp + 0x44]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, esi
or eax, ecx
je 0x615a1e93
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, esi
or eax, ecx
jne 0x615a1eb8
call fcn.615c4b20
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x4c]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x615a1ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.615c4b20
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x615a6900
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x615a6940
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x615a6911
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8