joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529e5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x558be0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x529f36
cmp dword [0x558bdc], 0
jne 0x529f36
cmp dword [0x558dc0], 0
je 0x529ef0
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.00529c2c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x529ed6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00529c2c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x529ed6
lea ebx, [ebp - 0x84]
jmp 0x529ed7
inc ebx
call fcn.00529e18
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x529f71
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x558be4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00524448
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x558be7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x529f71
cmp dword [0x558bdc], 0
je 0x529f50
cmp dword [0x558bdc], 0xffffffff
je 0x529f71
push esi
call dword [0x558bdc]
pop ecx
mov eax, dword [0x558be0]
test eax, eax
je 0x529f71
cmp dword [0x558be0], 0xffffffff
je 0x529f71
cmp byte [eax], 0
je 0x529f71
push esi
push eax
call fcn.00529d7c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a708
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x55e048], 0
jne 0x52a789
cmp dword [0x55e068], 0
jne 0x52a738
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x55e068], eax
test eax, eax
jne 0x52a738
push str.GetEnvironmentStrings_failed
call fcn.00529f88
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x55e068]
jmp 0x52a74c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00524448
pop ecx
mov edi, eax
test eax, eax
jne 0x52a744
lea edi, [ebp + 1]
push edi
call fcn.00523d4c
pop ecx
mov ebx, eax
mov dword [0x55e04c], ebx
test ebx, ebx
jne 0x52a776
xor eax, eax
jmp 0x52a84c
push edi
mov edx, dword [0x55e068]
push edx
push ebx
call fcn.005242f8
add esp, 0xc
jmp 0x52a7a9
xor esi, esi
mov ebx, dword [0x55e048]
jmp 0x52a7a3
push eax
call fcn.00524448
pop ecx
test eax, eax
jne 0x52a79f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x52a793
lea ebx, [esi + 4]
push 4
mov dword [0x55e050], ebx
inc ebx
push ebx
call fcn.00523508
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x52a7cc
xor eax, eax
jmp 0x52a84c
cmp dword [0x55e048], 0
jne 0x52a7fd
xor esi, esi
mov ebx, dword [0x55e04c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x52a7ee
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00524448
pop ecx
mov edi, eax
test eax, eax
jne 0x52a7e4
jmp 0x52a82e
xor esi, esi
mov ebx, dword [0x55e048]
mov eax, dword [esp]
mov edi, eax
jmp 0x52a828
push eax
call fcn.00524448
pop ecx
test eax, eax
je 0x52a81d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x52a821
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x52a80c
mov eax, dword [0x55e048]
test eax, eax
je 0x52a83e
push eax
call fcn.00523d5c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x55e048], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40acd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x567b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
jne 0x40acfd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533ace
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, ecx
lea eax, [ebp + 8]
add ecx, 0x18
push eax
call fcn.0040ad50
mov dword [ebp - 0x14], eax
mov ebx, esp
sub esp, 0x14
mov edi, esp
mov word [edi + 0x10], 0x104
mov dword [edi + 8], esi
call fcn.00417ee0
lea edx, [ebp + 8]
mov ecx, dword [edx]
mov dword [edi], ecx
mov dword [edx], 0
mov dword [edi + 4], eax
call fcn.00424a90
add esp, 0x14
mov esp, ebx
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x427200
Capabilities:
Query environment variable

Disassembly:
push esi
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x56970c], edx
mov dword [0x569710], ecx
test al, al
jne 0x42722f
push str.LLVM_DISABLE_CRASH_REPORT
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x427234
call fcn.00429d00
push 0x4270c0
push 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
add esp, 8
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_abort_behavior]
push 1
push 0
call esi
add esp, 8
push 2
push 0
call esi
add esp, 8
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_error_mode]
add esp, 4
call fcn.004270d0
push 0x5692bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
ret
Function at 0x428750
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x438
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x434], eax
test ecx, ecx
je 0x428795
mov esi, edx
mov edi, ecx
mov dword [esp + 8], 0
lea ebx, [esp + 8]
push ebx
push 0
push 0
push 2
push str.DumpFolder
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4287b2
xor ebx, ebx
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00533ace
mov eax, ebx
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, dword [esp + 8]
lea eax, [esp + 0x22c]
mov dword [esp + 0x220], eax
mov dword [esp + 0x228], 0x104
cmp ebp, 0x105
jb 0x428811
mov dword [esp + 0x224], 0
lea ecx, [esp + 0x220]
push 2
push ebp
push eax
call fcn.00424880
mov eax, ebp
add eax, ebp
push eax
push 0
push dword [esp + 0x228]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x220]
jmp 0x42882e
test ebp, ebp
je 0x42882e
mov ecx, eax
mov eax, ebp
add eax, ebp
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x22c]
mov dword [esp + 0x224], ebp
push ebx
push eax
push 0
push 2
push str.DumpFolder
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x428874
xor ebx, ebx
mov eax, dword [esp + 0x220]
lea ecx, [esp + 0x22c]
cmp eax, ecx
je 0x428797
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x428797
push 0
push 0
push dword [esp + 0x228]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42884d
mov edi, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], 0x104
cmp eax, 0x105
jb 0x4288cf
mov dword [esp + 0x10], 0
lea ecx, [esp + 0xc]
push 2
push edi
push ebp
call fcn.00424880
lea eax, [edi + edi]
push eax
push 0
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0xc]
jmp 0x4288e0
lea eax, [edi + edi]
push eax
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebp
mov dword [esp + 0x10], edi
push edi
push eax
push dword [esp + 0x228]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x428914
add edi, 0xffffffff
mov eax, esp
push esi
push edi
push dword [esp + 0x14]
push eax
call fcn.0042fd90
add esp, 0x10
cmp dword [esp], 0
sete bl
jmp 0x428916
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x42884f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x42884f
Function at 0x4299e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x450
mov edi, dword [esp + 0x464]
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x46c]
mov edx, dword [0x567b10]
xor edx, esp
mov dword [esp + 0x44c], edx
lea ebx, [esp + 0x34c]
mov dword [esp + 0x340], ebx
mov dword [esp + 0x344], 0
mov dword [esp + 0x348], 0x80
lea edx, [esp + 0x340]
lea esi, [esp + 0x12c]
push edx
push ecx
push eax
push esi
call fcn.0042fc00
add esp, 0x10
cmp dword [esp + 0x12c], 0
je 0x429a62
mov byte [edi], 0
mov byte [edi + 0x18], 0
jmp 0x429c2b
lea eax, [esp + 0x138]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0x104
mov eax, 0x104
lea edi, [esp + 0x12c]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, 0x104
jmp 0x429adc
push 0
call esi
push dword [esp + 0x134]
push dword [esp + 0x130]
push dword [esp + 0x348]
call ebp
mov ebx, eax
test eax, eax
je 0x429b00
mov eax, dword [esp + 0x134]
cmp ebx, eax
jbe 0x429b27
cmp eax, ebx
jae 0x429ab0
mov ecx, edi
push 2
push ebx
lea eax, [esp + 0x140]
push eax
call fcn.00424880
jmp 0x429ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x429ad1
mov edi, dword [esp + 0x464]
mov byte [edi], 0
mov byte [edi + 0x18], 0
lea ebx, [esp + 0x34c]
jmp 0x429c0f
mov dword [esp + 0x130], ebx
lea ebp, [esp + 0x28]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x104
lea eax, [esp + 0x1c]
lea esi, [esp + 4]
push eax
push ebx
push dword [esp + 0x134]
push esi
call fcn.0042fd90
add esp, 0x10
cmp dword [esp + 4], 0
je 0x429b7e
mov edi, dword [esp + 0x464]
mov byte [edi], 0
mov byte [edi + 0x18], 0
lea ebx, [esp + 0x34c]
jmp 0x429bfd
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0xf
mov dword [esp + 0x14], 0
mov byte [esp + 4], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
cmp eax, 0xf
jbe 0x429bc4
sub esp, 0xc
mov al, byte [esp + 0xc]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
lea ecx, [esp + 0x10]
call fcn.00404140
jmp 0x429bd8
mov dword [esp + 0x14], edi
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esp + edi + 4], 0
mov edi, dword [esp + 0x464]
lea ebx, [esp + 0x34c]
movsd xmm0, qword [esp + 0x14]
movsd qword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 4]
movups xmmword [edi], xmm0
mov byte [edi + 0x18], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x429c0f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x138]
cmp eax, ecx
je 0x429c2b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x340]
cmp eax, ebx
je 0x429c40
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00533ace
mov eax, edi
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x429c70
Capabilities:
Access peb ldr_data
Get system information on windows

Disassembly:
push esi
sub esp, 0x28
mov esi, dword [esp + 0x30]
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x56978c]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x429cbd
and byte [esi + 4], 0xfe
mov eax, dword [0x569788]
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00533ace
mov eax, esi
add esp, 0x28
pop esi
ret
push 0x56978c
call fcn.00533bee
add esp, 4
cmp dword [0x56978c], 0xffffffff
jne 0x429ca0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 4]
mov dword [0x569788], eax
push 0x56978c
call fcn.00533ba4
add esp, 4
jmp 0x429ca0
Function at 0x42ab90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x567b10]
xor eax, ebp
mov dword [esp + 0x28], eax
sub esp, 0x14
movaps xmm0, xmmword [0x5383a0]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42abf0
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov edi, eax
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x42abec
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
jne 0x42ac15
mov eax, dword [0x569794]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x42ac2a
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00533ace
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x569794
call fcn.00533bee
add esp, 4
cmp dword [0x569794], 0xffffffff
jne 0x42ac0d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov eax, dword [0x5691b0]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x42ad14
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], ebx
add ebx, 0xc
adc esi, 0
mov eax, esi
shld eax, ebx, 0x14
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
xor ecx, dword [0x5691a8]
xor ecx, eax
mov edx, 0xeb382d69
mov eax, ecx
mul edx
mov edi, eax
shrd esi, ebx, 0xc
imul eax, ecx, 0x9ddfea08
add eax, edx
mov ecx, dword [0x5691ac]
mov ebx, dword [esp + 8]
xor ecx, ebx
xor ecx, esi
imul ecx, ecx, 0xeb382d69
add ecx, eax
mov eax, ecx
xor ecx, esi
xor edi, dword [esp + 4]
shr eax, 0xf
xor edi, eax
mov eax, edi
mov edx, 0xeb382d69
mul edx
imul esi, edi, 0x9ddfea08
add esi, edx
imul ecx, ecx, 0xeb382d69
add ecx, esi
shr ecx, 0xf
xor ecx, eax
imul eax, ecx, 0xeb382d69
xor eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
push 0x569794
call fcn.00533ba4
add esp, 4
jmp 0x42ac0d
push 0x5691b0
call fcn.00533bee
add esp, 4
cmp dword [0x5691b0], 0xffffffff
jne 0x42ac74
mov eax, dword [0x569844]
mov ecx, dword [0x569840]
mov edx, ecx
or edx, eax
mov edx, 0xed558ccd
cmovne edx, ecx
mov ecx, 0xff51afd7
cmovne ecx, eax
mov dword [0x5691ac], ecx
mov dword [0x5691a8], edx
push 0x5691b0
call fcn.00533ba4
add esp, 4
jmp 0x42ac74
Function at 0x42df30
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x818
mov ebx, dword [esp + 0x830]
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x814], eax
mov dword [ebx + 4], 0
lea ebp, [esp + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x400
mov ecx, 0x400
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, 0x400
nop word cs:[eax + eax]
nop dword [eax]
cmp ecx, eax
jae 0x42dfa3
mov ecx, edi
push 2
push eax
push ebp
call fcn.00424880
mov ecx, dword [esp + 0x10]
push ecx
push dword [esp + 0xc]
push 0x5386ee
call esi
test eax, eax
je 0x42dfdd
mov ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x42df90
mov dword [esp + 0xc], eax
mov ecx, esp
mov edx, 0xfde9
push ebx
push eax
push dword [esp + 0x10]
call fcn.00433320
add esp, 0xc
cmp dword [esp], 0
sete bl
jmp 0x42dfdf
xor ebx, ebx
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x42dff1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test bl, bl
jne 0x42e12b
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x400
mov ecx, 0x400
lea ebx, [esp + 8]
mov eax, 0x400
nop dword [eax + eax]
cmp ecx, eax
jae 0x42e033
mov ecx, ebx
push 2
push eax
push ebp
call fcn.00424880
mov ecx, dword [esp + 0x10]
push ecx
push dword [esp + 0xc]
push str.TEMP
call esi
test eax, eax
je 0x42e073
mov ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x42e020
mov dword [esp + 0xc], eax
mov ecx, esp
mov edx, 0xfde9
push dword [esp + 0x830]
push eax
push dword [esp + 0x10]
call fcn.00433320
add esp, 0xc
cmp dword [esp], 0
sete bl
jmp 0x42e075
xor ebx, ebx
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x42e087
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test bl, bl
jne 0x42e12b
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x400
mov ecx, 0x400
lea ebx, [esp + 8]
mov eax, 0x400
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp ecx, eax
jae 0x42e0d3
mov ecx, ebx
push 2
push eax
push ebp
call fcn.00424880
mov ecx, dword [esp + 0x10]
push ecx
push dword [esp + 0xc]
push str.USERPROFILE
call esi
test eax, eax
je 0x42e113
mov ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x42e0c0
mov dword [esp + 0xc], eax
mov ecx, esp
mov edx, 0xfde9
push dword [esp + 0x830]
push eax
push dword [esp + 0x10]
call fcn.00433320
add esp, 0xc
cmp dword [esp], 0
sete bl
jmp 0x42e115
xor ebx, ebx
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x42e127
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test bl, bl
je 0x42e160
push 2
mov esi, dword [esp + 0x834]
push esi
call fcn.0042c8c0
add esp, 8
push esi
push edi
call fcn.0042ec50
add esp, 8
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00533ace
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x830]
mov eax, dword [esi + 4]
lea edx, [eax + 7]
cmp dword [esi + 8], edx
jae 0x42e183
lea eax, [esi + 0xc]
mov ecx, esi
push 1
push edx
push eax
call fcn.00424880
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ecx + eax + 3], 0x706d6554
mov dword [ecx + eax], 0x545c3a43
add dword [esi + 4], 7
jmp 0x42e147
Function at 0x42edd0
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov esi, dword [esp + 0x22c]
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x214], eax
lea ebx, [esp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x104
mov ecx, 0x104
mov edi, esp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, 0x104
nop dword [eax + eax]
cmp ecx, eax
jae 0x42ee33
mov ecx, edi
push 2
push eax
push ebx
call fcn.00424880
mov ecx, dword [esp + 8]
push dword [esp]
push ecx
call ebp
test eax, eax
je 0x42ee66
mov ecx, dword [esp + 8]
cmp eax, ecx
ja 0x42ee20
mov dword [esp + 4], eax
mov ecx, esi
mov edx, 0xfde9
push dword [esp + 0x230]
push eax
push dword [esp + 8]
call fcn.00433320
add esp, 0xc
jmp 0x42ee76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004295f0
add esp, 8
mov eax, dword [esp]
cmp eax, ebx
je 0x42ee87
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00533ace
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42f2a0
Capabilities:
Create directory

Disassembly:
push edi
push esi
sub esp, 0x110
mov esi, dword [esp + 0x11c]
mov eax, dword [esp + 0x120]
mov ecx, dword [0x567b10]
xor ecx, esp
mov dword [esp + 0x10c], ecx
lea edi, [esp + 0xc]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80
mov ecx, esp
push 0xf8
push ecx
push eax
push esi
call fcn.0042f8a0
add esp, 0x10
cmp dword [esi], 0
jne 0x42f344
push 0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f31a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42f36e
cmp byte [esp + 0x124], 0
je 0x42f36e
mov dword [esi], 0
mov eax, dword [0x568c58]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x42f37a
mov dword [esi + 4], 0x567398
mov eax, dword [esp]
cmp eax, edi
je 0x42f355
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00533ace
mov eax, esi
add esp, 0x110
pop esi
pop edi
ret
push eax
push esi
call fcn.004295f0
add esp, 8
jmp 0x42f344
push 0x568c58
call fcn.00533bee
add esp, 4
cmp dword [0x568c58], 0xffffffff
jne 0x42f33d
push 0x433930
call fcn.00533f00
add esp, 4
push 0x568c58
call fcn.00533ba4
add esp, 4
jmp 0x42f33d
Function at 0x430310
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov edi, edx
mov dword [esp], ecx
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x80
mov ebp, 0x80
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jbe 0x430375
jmp 0x4303b0
call ebx
cmp eax, 0x7a
jne 0x430421
add ebp, ebp
mov eax, dword [esp + 8]
cmp eax, ebp
ja 0x4303b0
jae 0x4303b6
cmp dword [esp + 0xc], ebp
jae 0x430392
lea ecx, [esp + 4]
push 2
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.00424880
mov eax, dword [esp + 8]
mov ecx, ebp
sub ecx, eax
je 0x4303b0
add eax, eax
add eax, dword [esp + 4]
add ecx, ecx
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
nop dword [eax]
mov dword [esp + 8], ebp
mov eax, ebp
push eax
push dword [esp + 8]
push dword [edi]
call esi
test eax, eax
je 0x430360
mov ecx, dword [esp + 8]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0xc]
ja 0x4304c5
mov eax, dword [esp + 4]
mov word [eax + ecx*2], 0
add dword [esp + 8], 1
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov dword [esp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [eax - 4]
cmp ecx, 3
jb 0x430431
cmp eax, 2
je 0x430431
cmp eax, 3
mov esi, dword [esp]
jne 0x430499
mov eax, dword [esp + 0x128]
mov byte [eax], 1
jmp 0x43043e
push eax
mov esi, dword [esp + 4]
push esi
call fcn.004295f0
add esp, 8
jmp 0x430468
mov eax, dword [esp + 0x128]
mov byte [eax], 0
mov esi, dword [esp]
mov dword [esi], 0
mov eax, dword [0x568c58]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x4304df
mov dword [esi + 4], 0x567398
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x43047e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00533ace
mov eax, esi
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5690e4]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x430518
mov dword [esi], 2
mov dword [esi + 4], 0x5673a0
jmp 0x430468
lea ecx, [esp + 4]
push 2
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00424880
mov ecx, dword [esp + 8]
jmp 0x4303d4
push 0x568c58
call fcn.00533bee
add esp, 4
cmp dword [0x568c58], 0xffffffff
jne 0x430461
push 0x433930
call fcn.00533f00
add esp, 4
push 0x568c58
call fcn.00533ba4
add esp, 4
jmp 0x430461
push 0x5690e4
call fcn.00533bee
add esp, 4
cmp dword [0x5690e4], 0xffffffff
jne 0x4304b6
push 0x433420
call fcn.00533f00
add esp, 4
push 0x5690e4
call fcn.00533ba4
add esp, 4
jmp 0x4304b6