joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d3a5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x390
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x38c], eax
push ebx
push esi
mov bl, dl
mov esi, ecx
call fcn.0050d35c
test al, al
jne 0x50d3ef
cmp dword [esi + 0x14], 8
jb 0x50d3d8
mov eax, dword [esi]
jmp 0x50d3da
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x50d3ef
test bl, bl
jne 0x50d407
xor al, al
jmp 0x50d3f1
mov al, 1
mov ecx, dword [esp + 0x394]
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 4
push esi
push str.CreateDirectory_failed_for_directory:__s
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0050da8b
push 0x6bd4a4
lea eax, [esp + 0xc]
push eax
call fcn.00575c7a
int3

Function at 0x5114bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x5115c3
xor edx, edx
mov dword [esp + 0x14], 3
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], edx
jb 0x511504
mov eax, dword [esi]
jmp 0x511506
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x5115aa
cmp dword [esp + 0x14], 3
jne 0x5115aa
test eax, eax
je 0x51154e
lea eax, [edi + 8]
push eax
push esi
push ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.0051142a
push 0x6bd4a4
lea eax, [esp + 0x1c]
jmp 0x5115d8
push dword [esp + 0x10]
mov ecx, ebx
call fcn.004120cd
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
neg eax
sbb eax, eax
and eax, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x51156e
mov ecx, dword [esi]
jmp 0x511570
mov ecx, esi
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5115a6
lea eax, [edi + 8]
push eax
push esi
push ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.0051142a
push 0x6bd4a4
lea eax, [esp + 0x1c]
jmp 0x5115d8
mov al, 1
jmp 0x5115ac
xor al, al
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 8
push esi
push ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.004aeb99
push 0x6bd4a4
lea eax, [esp + 0x1c]
push eax
call fcn.00575c7a
int3
Function at 0x5124eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 4], 0xffffffff
je 0x51252e
push ebx
call fcn.0050c52a
test al, al
je 0x512586
cmp dword [esi + 4], 0xffffffff
je 0x51252e
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x18]
push eax
push ebx
push edi
push dword [esi + 0x10]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x512568
push str.Failed_to_start_thread.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [esp + 0x1c]
call fcn.0050b68d
push 0x6bd4a4
lea eax, [esp + 0x14]
jmp 0x51259a
mov ecx, dword [esp + 0x39c]
pop edi
mov dword [esi + 0x14], 0x103
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 4
push ecx
push ecx
lea ecx, [esp + 0x18]
call fcn.00512478
push 0x6bd4a4
lea eax, [esp + 0x14]
push eax
call fcn.00575c7a
int3

Function at 0x5126f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 0x20], 0
je 0x5127a7
cmp dword [esi + 0x14], 8
push 4
pop ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jb 0x51273c
mov eax, dword [esi]
jmp 0x51273e
mov eax, esi
lea edx, [esp + 0x14]
push edx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x512784
cmp ecx, 2
je 0x51278e
cmp ecx, 0xea
je 0x51278e
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [esp + 0x2c]
call fcn.004aeafd
push 0x6bd4a4
lea eax, [esp + 0x1c]
jmp 0x5127c0
cmp dword [esp + 0x10], ebx
jne 0x51278e
mov al, 1
jmp 0x512790
xor al, al
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [esp + 0x20]
call fcn.0051267c
push 0x6bd4a4
lea eax, [esp + 0x1c]
push eax
call fcn.00575c7a
int3
Function at 0x5132d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a8
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x3a4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x5133d4
cmp dword [esi + 0x10], 0x3fff
jbe 0x51331e
push ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.00513231
push 0x6bd4a4
lea eax, [esp + 0x24]
jmp 0x5133ed
cmp dword [esi + 0x14], 8
jb 0x513328
mov eax, dword [esi]
jmp 0x51332a
mov eax, esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5133be
mov dword [esp + 0x224], eax
xor eax, eax
push 0xffffffffffffffff
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
mov word [esp + 0x330], ax
lea eax, [esp + 0x230]
push 0x80
push eax
mov dword [esp + 0x30], 0xf
call fcn.00597276
add esp, 0x10
lea eax, [edi + 8]
lea ecx, [esp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.005132a4
cmp dword [eax + 0x14], 8
jb 0x513391
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.00597276
add esp, 0x10
lea ecx, [esp + 8]
push 0
push 1
call fcn.0040968b
push 0x6bd4a4
lea eax, [esp + 0x24]
jmp 0x5133ed
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [esp + 0x28]
call fcn.0051267c
push 0x6bd4a4
lea eax, [esp + 0x24]
push eax
call fcn.00575c7a
int3

Function at 0x518e4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3b0
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x3ac], eax
and dword [esp], 0
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x20], 0xffffffff
je 0x518f3b
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edi
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x518f21
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x22c], eax
xor eax, eax
push 0xffffffffffffffff
push str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
mov word [esp + 0x338], ax
lea eax, [esp + 0x238]
push 0x80
push eax
mov dword [esp + 0x38], 0xf
call fcn.00597276
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00518e23
cmp dword [eax + 0x14], 8
jb 0x518ef4
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x34]
push 0x100
push eax
call fcn.00597276
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push 1
call fcn.0040968b
push 0x6bd4a4
lea eax, [esp + 0x2c]
jmp 0x518f54
mov ecx, dword [esp + 0x3b4]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 0xc
push str.trying_to_read_from_a_file_thats_not_open
push 0x15
lea ecx, [esp + 0x30]
call fcn.0040c7ff
push 0x6bd4a4
lea eax, [esp + 0x2c]
push eax
call fcn.00575c7a
int3
Function at 0x51ca12
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x398
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x394], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x51ca88
and dword [esp + 4], 0
lea ecx, [esp + 4]
push 0
push ecx
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x51ca74
push str.write_to_file_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [esp + 0x14]
call fcn.0050d86a
push 0x6bd4a4
lea eax, [esp + 0xc]
jmp 0x51ca9c
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 8
push ecx
push ecx
lea ecx, [esp + 0x10]
call fcn.0051c99a
push 0x6bd4a4
lea eax, [esp + 0xc]
push eax
call fcn.00575c7a
int3
Function at 0x53aaf3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x53ab19
lea eax, [edi + 0x10]
mov edx, str.Mutex__s_already_created
push eax
push 3
pop ecx
call fcn.0050b8a9
mov al, 1
pop edi
pop esi
pop ebp
ret 8
lea esi, [edi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x53ab26
mov eax, dword [esi]
jmp 0x53ab28
mov eax, esi
push eax
mov eax, dword [ebp + 8]
push 0
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp eax, 0xb7
jne 0x53ab51
push esi
call fcn.0053aa4a
cmp dword [edi + 4], 0
jne 0x53ab11
lea eax, [ebp + 8]
mov edx, str.Failed_to_create_the_mutex__s:_LastError:_0x_x
push eax
push esi
push 3
pop ecx
call fcn.0053aa9c
xor al, al
jmp 0x53ab13

Function at 0x540456
Capabilities:
Get geographical location

Disassembly:
push 0x64
mov eax, 0x5d388d
call fcn.00573e45
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push 1
mov edx, 0x3e8
mov dword [ebp - 0x6c], ebx
call fcn.00540615
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
sete al
test al, al
je 0x54057c
push 1
mov edx, 0xbb9
lea ecx, [ebp - 0x5c]
call fcn.00540615
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
push 0x655240
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00409613
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x5c]
call fcn.0040dc28
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040968b
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
sub eax, ecx
push 0x18
pop edi
cdq
idiv edi
mov dword [ebp - 0x70], edi
cmp eax, 3
jb 0x540566
xor esi, esi
inc esi
dec eax
cmp eax, esi
jbe 0x540566
lea eax, [edi + ecx]
push eax
lea ecx, [ebp - 0x44]
call fcn.00409657
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.0048f5b0
push 0x6e85b8
lea ecx, [ebp - 0x44]
call fcn.0040a36a
test eax, eax
je 0x540542
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040968b
mov eax, dword [ebp - 0x64]
add esi, 2
mov ecx, dword [ebp - 0x68]
add edi, 0x30
sub eax, ecx
cdq
idiv dword [ebp - 0x70]
dec eax
cmp esi, eax
jb 0x5404f0
jmp 0x540566
lea eax, [esi + 1]
imul eax, eax, 0x18
lea ecx, [ebp - 0x2c]
add eax, dword [ebp - 0x68]
cmp ecx, eax
je 0x54055b
push 0xffffffffffffffff
push ebx
push eax
call fcn.00409884
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040968b
lea ecx, [ebp - 0x68]
call fcn.0040da5d
push ebx
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040968b
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x6c]
push 2
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x20000070
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, dword [ebp - 0x6c]
sub eax, ebx
je 0x5405c5
sub eax, 1
je 0x5405c3
sub eax, 1
je 0x5405c5
sub eax, 1
je 0x5405c3
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3413a3
call dword [eax + 4]
jmp 0x5405c5
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040968b
mov al, bl
call fcn.00573def
ret
Function at 0x5435ae
Capabilities:
Create thread

Disassembly:
push 0x390
mov eax, 0x5d3ac8
call fcn.00573e45
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xa4], edi
je 0x5436b2
push 0x2c
call fcn.0056ef3f
pop ecx
mov dword [ebp - 0x39c], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x5435ee
push ecx
push 1
mov ecx, eax
call fcn.00519c18
jmp 0x5435f0
mov eax, edi
or dword [ebp - 4], 0xffffffff
lea ebx, [esi + 0x10c]
push eax
mov ecx, ebx
call fcn.0051cd73
push edi
push edi
push esi
push 0x541379
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x543642
push str.CreateThread_call_failed.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x398]
call fcn.0050b4a0
push 0x6bd4a4
lea eax, [ebp - 0x398]
push eax
call fcn.00575c7a
push 0x14
call fcn.0056ef3f
mov dword [ebp - 0x39c], eax
pop ecx
test eax, eax
je 0x543677
mov dword [eax], vtable.RefCounted.0
mov dword [eax + 4], 0
mov dword [eax], vtable.OHandle.0
mov dword [eax + 8], edi
mov byte [eax + 0xc], 1
mov dword [eax + 0x10], 0x55
jmp 0x543679
xor eax, eax
test eax, eax
je 0x543681
lock inc dword [eax + 4]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0xc4], eax
mov dword [ebp - 4], 1
test ecx, ecx
je 0x54369d
call fcn.0050c47a
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0050c5f7
or edx, 0xffffffff
mov ecx, eax
call fcn.0050c494
call fcn.00573def
ret
Function at 0x5446e5
Capabilities:
Read file on windows

Disassembly:
push 0x738
mov eax, 0x5d3b57
call fcn.00573e45
mov edi, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [edi + 0x20], 0xffffffff
mov dword [ebp - 0x744], ecx
jne 0x54472a
push str.trying_to_read_from_a_file_thats_not_open
push 0x15
lea ecx, [ebp - 0x738]
call fcn.0040c7ff
push 0x6bd4a4
lea eax, [ebp - 0x738]
push eax
call fcn.00575c7a
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
push ecx
lea eax, [ebp - 0x73c]
mov dword [ebp - 4], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push 2
lea eax, [ebp - 0x740]
mov dword [ebp - 0x73c], ecx
push eax
push dword [edi + 0x20]
call ebx
test eax, eax
je 0x5447ba
push 0xa
pop ecx
cmp dword [ebp - 0x73c], 2
jne 0x5447c7
mov eax, dword [ebp - 0x740]
cmp ax, cx
je 0x5447c7
cmp ax, 0xd
je 0x5447e8
mov ecx, 0xfeff
cmp ax, cx
je 0x544795
push eax
push 1
lea ecx, [ebp - 0x28]
call fcn.004094f3
and dword [ebp - 0x73c], 0
lea eax, [ebp - 0x73c]
push 0
push eax
push 2
lea eax, [ebp - 0x740]
push eax
push dword [edi + 0x20]
call ebx
push 0xa
pop ecx
test eax, eax
jne 0x544766
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x26
jne 0x54481e
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004095ee
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040968b
mov eax, esi
call fcn.00573def
ret 4
push 0
lea eax, [ebp - 0x73c]
push eax
push 2
lea eax, [ebp - 0x740]
push eax
push dword [edi + 0x20]
call ebx
test eax, eax
je 0x5447ba
push 0xa
pop eax
cmp word [ebp - 0x740], ax
je 0x5447c7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, edi
call fcn.0050d07f
jmp 0x5447c7
push 0x678f40
call edi
push eax
push 0xf
lea ecx, [ebp - 0x3b0]
call fcn.0040dceb
push 0x6bd4a4
lea eax, [ebp - 0x3b0]
jmp 0x544724

Function at 0x544b33
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.0050d116
test al, al
jne 0x544b4f
xor al, al
jmp 0x544b97
cmp dword [esi + 0x14], 8
jb 0x544b59
mov eax, dword [esi]
jmp 0x544b5b
mov eax, esi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x544b4b
push edi
mov ecx, ebx
call fcn.004120cd
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
neg eax
sbb eax, eax
and eax, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x544b87
mov esi, dword [esi]
push eax
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x544c89
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x544c9a
mov eax, dword [esi]
jmp 0x544c9c
mov eax, esi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x544cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00544e20
xor al, al
jmp 0x544cc4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x544ffd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x398], eax
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x14], 8
jb 0x54502e
mov eax, dword [esi]
jmp 0x545030
mov eax, esi
push ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x54505d
mov ecx, dword [esp + 0x39c]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret
push esi
push str.Failed_to_check_free_space_in_drive___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0050da8b
push 0x6bd4a4
lea eax, [esp + 0x14]
push eax
call fcn.00575c7a
int3
Function at 0x5454bf
Capabilities:
Enumerate files on windows

Disassembly:
push 0x628
mov eax, 0x5d3ce1
call fcn.00573e45
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x634], eax
call fcn.0050d35c
test al, al
jne 0x545505
push esi
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.004f0ede
push 0x6bd4a4
lea eax, [ebp - 0x630]
push eax
call fcn.00575c7a
push dword [edi + 4]
push dword [edi]
call fcn.0040db13
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp eax, esi
je 0x54553b
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
call fcn.00409884
push 0x5eddc4
lea ecx, [ebp - 0x40]
call fcn.00409613
push 1
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004082de
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x40]
push 1
sbb bl, bl
call fcn.0040968b
add bl, 1
je 0x5455a0
push 0x5eddc4
lea ecx, [ebp - 0x40]
call fcn.00409613
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004099be
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040968b
push 0xffffffffffffffff
push 0
push dword [ebp - 0x634]
lea ecx, [ebp - 0x28]
call fcn.004099be
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x634], ebx
cmp ebx, 0xffffffff
jne 0x545608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x545717
cmp eax, 2
je 0x545717
push str.directory_search_failed
push eax
push 0xf
lea ecx, [ebp - 0x630]
call fcn.0050b68d
jmp 0x5454f4
push 0x610fd0
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x5456fa
push 0x6793d0
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x5456fa
test byte [ebp - 0x2a8], 0x10
je 0x5456fa
push esi
lea ecx, [ebp - 0x40]
call fcn.00409657
push 0x5eddc4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00409613
push 1
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004082de
mov bl, al
mov byte [ebp - 4], 3
push 0
neg bl
lea ecx, [ebp - 0x58]
push 1
sbb bl, bl
call fcn.0040968b
add bl, 1
je 0x5456bc
push 0x5eddc4
lea ecx, [ebp - 0x58]
call fcn.00409613
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004099be
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040968b
lea eax, [ebp - 0x27c]
push eax
call fcn.00407b9c
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409919
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00511344
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040968b
mov ebx, dword [ebp - 0x634]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x545608
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040968b
call fcn.00573def
ret 4
Function at 0x54572b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x628
mov eax, 0x5d3ce1
call fcn.00573e45
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x634], eax
call fcn.0050d35c
test al, al
jne 0x545771
push esi
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.00545cf6
push 0x6bd4a4
lea eax, [ebp - 0x630]
push eax
call fcn.00575c7a
push dword [edi + 4]
push dword [edi]
call fcn.0040db13
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp eax, esi
je 0x5457a7
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
call fcn.00409884
push 0x5eddc4
lea ecx, [ebp - 0x40]
call fcn.00409613
push 1
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004082de
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x40]
push 1
sbb bl, bl
call fcn.0040968b
add bl, 1
je 0x54580c
push 0x5eddc4
lea ecx, [ebp - 0x40]
call fcn.00409613
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004099be
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040968b
push 0xffffffffffffffff
push 0
push dword [ebp - 0x634]
lea ecx, [ebp - 0x28]
call fcn.004099be
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x634], ebx
cmp ebx, 0xffffffff
jne 0x54586f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x54594a
cmp eax, 2
je 0x54594a
push ecx
push eax
push ecx
lea ecx, [ebp - 0x630]
call fcn.00544e76
jmp 0x545760
test byte [ebp - 0x2a8], 0x10
jne 0x54592d
push esi
lea ecx, [ebp - 0x40]
call fcn.00409657
push 0x5eddc4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00409613
push 1
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004082de
mov bl, al
mov byte [ebp - 4], 3
push 0
neg bl
lea ecx, [ebp - 0x58]
push 1
sbb bl, bl
call fcn.0040968b
add bl, 1
je 0x5458ef
push 0x5eddc4
lea ecx, [ebp - 0x58]
call fcn.00409613
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004099be
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040968b
lea eax, [ebp - 0x27c]
push eax
call fcn.00407b9c
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409919
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00511344
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040968b
mov ebx, dword [ebp - 0x634]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x54586f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040968b
call fcn.00573def
ret 4