joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c95
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x6d68c0
sub esp, 0x50
push ebx
mov ebx, ecx
mov eax, 9
push ebp
push esi
push edi
mov ebp, dword [ebx + 8]
sub eax, ebp
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x24], eax
mov eax, 8
sub eax, ebp
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x28], eax
mov eax, 7
sub eax, ebp
mov ecx, dword [ebx + eax*4]
test ecx, ecx
je 0x6d6912
lea eax, [esp + 0x58]
push eax
call fcn.0040335f
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
jmp 0x6d6922
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, 5
mov ecx, ebx
sub eax, ebp
mov esi, 6
mov edi, 4
sub esi, ebp
sub edi, ebp
mov eax, dword [ebx + eax*4]
mov esi, dword [ebx + esi*4]
mov edi, dword [ebx + edi*4]
mov dword [esp + 0x2c], eax
mov eax, 3
sub eax, ebp
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x4c], eax
lea eax, [ebp*4]
sub ecx, eax
cmp byte [ebx], 0xf
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
jne 0x6d696f
mov dword [esp + 0x20], ebx
jmp 0x6d6975
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, 2
sub eax, ebp
mov ecx, dword [ebx + eax*4]
test ecx, ecx
je 0x6d699f
lea eax, [esp + 0x58]
push eax
call fcn.0040335f
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x1c], ecx
jmp 0x6d69af
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
movzx eax, word [ebx + 2]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x10]
mov ebp, eax
sar eax, 1
and ebp, 0xfffffffc
test al, 1
je 0x6d69c8
mov ebp, dword [ebp]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6d6a0c
xor ebx, ebx
jmp 0x6d6a1c
push eax
push dword [esp + 0x18]
push ebp
call fcn.0040812a
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6d6a32
push eax
push dword [esp + 0x20]
push ebp
call fcn.0040812a
add esp, 0xc
push 1
push 2
push dword [esp + 0x2c]
push dword [esp + 0x34]
push ebx
push esi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push edi
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x68]
push dword [esp + 0x70]
push dword [esp + 0x78]
push dword [esp + 0x80]
push dword [esp + 0x88]
push dword [esp + 0x90]
push dword [esp + 0x98]
push dword [esp + 0x68]
push eax
push dword [esp + 0xa8]
push ebp
call fcn.00401479
mov ecx, dword [esp + 0xbc]
add esp, 0x58
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x50
ret 4
Function at 0x415316
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x624630
sub esp, 0x60
push ebx
push esi
mov dword [esp + 8], 0
mov esi, dword [esp + 0x70]
push edi
mov ax, word [esi + 0xe]
mov ch, al
mov cl, ah
movzx ecx, cx
cmp ecx, 0xffff
jne 0x624786
sub esi, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
sar esi, 4
cmp esi, eax
jb 0x624707
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x74]
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x34]
mov word [esp + 0x48], 0x103
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x44], str.__is_past_the_end_of_the_SHT_SYMTAB_SHNDX_section_of_size
lea ecx, [esp + 0x2c]
mov word [esp + 0x58], 0x103
push eax
mov dword [esp + 0x54], str.extended_symbol_index__
mov word [esp + 0x68], 0x109
mov word [esp + 0x74], 0x109
mov dword [esp + 0x24], str.extended_symbol_index__
mov dword [esp + 0x28], esi
mov word [esp + 0x2c], 0x903
mov dword [esp + 0x34], str.__is_past_the_end_of_the_SHT_SYMTAB_SHNDX_section_of_size
mov word [esp + 0x38], 0x302
mov dword [esp + 0x3c], ecx
mov word [esp + 0x44], 0x902
mov dword [esp + 0x80], 3
call fcn.00402b1c
mov bl, byte [esp + 0x20]
add esp, 0xc
mov esi, dword [esp + 0xc]
or bl, 1
jmp 0x62471a
mov eax, dword [esp + 0x80]
mov bl, byte [esp + 0x14]
and bl, 0xfe
mov esi, dword [eax + esi*4]
bswap esi
mov al, bl
not al
test al, 1
jne 0x624760
and bl, 1
je 0x62472f
mov dword [esp + 0x74], esi
xor esi, esi
jmp 0x624735
xor eax, eax
mov dword [esp + 0x74], eax
mov edi, dword [esp + 0x70]
xor ecx, ecx
mov eax, dword [esp + 0x74]
or byte [edi + 4], 1
mov dword [edi], eax
test bl, bl
je 0x62477b
test esi, esi
je 0x62477b
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x60
ret 0x18
mov edi, dword [esp + 0x70]
and byte [edi + 4], 0xfe
mov dword [edi], esi
test bl, 1
je 0x62477b
test esi, esi
je 0x62477b
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x60
ret 0x18
test ecx, ecx
je 0x6247a5
cmp ecx, 0xff00
jae 0x6247a5
mov eax, dword [esp + 0x70]
and byte [eax + 4], 0xfe
mov dword [eax], ecx
pop edi
pop esi
pop ebx
add esp, 0x60
ret 0x18
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebx
and byte [eax + 4], 0xfe
mov dword [eax], 0
add esp, 0x60
ret 0x18
Function at 0x41532f
Capabilities:
Create directory

Disassembly:
jmp 0x45ddb0
sub esp, 0x118
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x120]
lea ecx, [esp + 0x14]
push esi
mov esi, dword [esp + 0x120]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push 0xf8
push ecx
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0x80
call fcn.004095cf
mov eax, dword [esp + 0x14]
add esp, 0x10
test eax, eax
je 0x45de16
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x45de57
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45de49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45de3d
cmp byte [esp + 0x128], 0
jne 0x45de49
push eax
push esi
call fcn.00409de0
add esp, 8
jmp 0x45de57
mov dword [esi], 0
call fcn.0040ab32
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x45de6d
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004087b5
add esp, 0x118
ret
Function at 0x4154f1
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
jmp 0x48a120
sub esp, 8
lea eax, [esp]
push esi
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x48a17a
mov esi, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x48a16d
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x48a165
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
test esi, esi
je 0x48a17a
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.0048a0a0
pop esi
add esp, 8
ret
Function at 0x4155cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x6e7420
sub esp, 0x7c
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xc], eax
push esi
push edi
test ecx, ecx
jne 0x6e7466
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004087b5
add esp, 0x7c
ret
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x44]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
lea edi, [esi + ecx*8]
mov dword [esp + 0x40], 8
cmp esi, edi
je 0x6e7573
mov ebx, dword [esi]
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], eax
xor edx, edx
mov dword [esp + 0x20], edx
mov eax, 4
mov dword [esp + 0x24], eax
cmp esi, edi
je 0x6e74f1
cmp dword [esi], ebx
jne 0x6e74f1
cmp edx, eax
jb 0x6e74d1
push 4
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.00405e1b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
add esi, 8
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
cmp esi, edi
je 0x6e74f1
mov eax, dword [esp + 0x24]
jmp 0x6e74b3
mov eax, dword [esp + 0x1c]
sub esp, 8
mov ecx, esp
push dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
lea eax, [esp + 0x24]
push eax
call fcn.0040fcd1
mov ecx, dword [esp + 0x4c]
add esp, 0x10
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x40]
jb 0x6e7538
push 8
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x44]
call fcn.00405e1b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [eax + ecx*8], ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x28]
inc dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x6e7567
push eax
call ebx
add esp, 4
cmp esi, edi
jne 0x6e7496
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
sub esp, 8
mov ecx, esp
push dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
push esi
mov dword [ecx + 4], eax
call fcn.004039c2
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x54]
add esp, 0x10
cmp eax, ecx
je 0x6e75a4
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x7c
ret
Function at 0x442b05
Capabilities:
Terminate process

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x442b6d
push edi
push 0xa17628
call fcn.0040d57b
mov edi, eax
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
jne 0x442b34
push 0x448ea0
push 0x448c80
mov ecx, 0xa17628
call fcn.00413494
mov eax, dword [edi]
pop edi
mov ecx, dword [eax + 0x54]
sub ecx, dword [eax + 0x58]
cmp ecx, 1
jbe 0x442b5e
mov eax, 0xff9f
and word [0xa172b6], ax
mov ecx, dword [esi + 4]
call fcn.0044b790
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [esi]
call fcn.0044b790
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
ret 4
Function at 0x45d190
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x1000
call fcn.0040877e
mov ebx, eax
xor edi, edi
push 0x1000
push ebx
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x45d1f0
push ebp
mov ebp, dword [esp + 0x1c]
nop
push esi
push ebx
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x45d1ef
sub esi, edi
jne 0x45d1c0
push 0x1000
push ebx
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x45d1c0
pop ebp
push ebx
call fcn.0040dae4
add esp, 4
test esi, esi
js 0x45d219
test edi, edi
js 0x45d219
mov esi, dword [esp + 0x10]
mov dword [esi], 0
call fcn.0040ab32
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
call fcn.00415dfc
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x45d740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov ebp, 0x80
push dword [esp + 0x68]
push ebx
push dword [esp + 0x64]
call fcn.0040b7ad
mov eax, dword [esp + 0x7c]
add esp, 0xc
sub eax, 0
je 0x45d82b
sub eax, 1
mov eax, dword [ebx]
je 0x45d7cd
mov word [esp + 0x38], 0x101
cmp byte [eax], 0
je 0x45d78a
mov dword [esp + 0x30], eax
mov byte [esp + 0x38], 3
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040a542
add esp, 0xc
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov dword [esp + 0x24], edi
call fcn.00415dfc
mov ecx, dword [edi + 4]
mov edx, dword [eax + 4]
cmp ecx, edx
jne 0x45d7bf
cmp esi, 2
je 0x45d894
cmp ecx, edx
mov eax, esi
cmovne eax, esi
test eax, eax
jmp 0x45d878
mov word [esp + 0x44], 0x101
cmp byte [eax], 0
je 0x45d7e2
mov dword [esp + 0x3c], eax
mov byte [esp + 0x44], 3
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push dword [esp + 0x78]
push 3
push 1
push dword [esp + 0x70]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040fd58
mov esi, dword [esp + 0x2c]
add esp, 0x1c
mov edi, dword [esp + 0x14]
test esi, esi
je 0x45d894
call fcn.00415dfc
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
jne 0x45d883
cmp esi, 0x11
je 0x45d87a
cmp esi, 0xd
jmp 0x45d878
mov eax, dword [ebx]
mov word [esp + 0x50], 0x101
cmp byte [eax], 0
je 0x45d842
mov dword [esp + 0x48], eax
mov byte [esp + 0x50], 3
push 0x1f8
push 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0041532f
add esp, 0x10
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x24], edi
test esi, esi
je 0x45d894
call fcn.00415dfc
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
jne 0x45d883
cmp esi, 0x11
jne 0x45d883
dec ebp
test ebp, ebp
jg 0x45d750
mov eax, dword [esp + 0x58]
mov dword [eax + 4], edi
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov esi, dword [esp + 0x58]
mov dword [esi], 0
call fcn.0040ab32
pop edi
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x45f5e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x1c], eax
movups xmm0, xmmword [esp + 0x24]
push esi
mov esi, dword [esp + 0x38]
lea eax, [esp + 4]
push eax
push 0
push 0x8000
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
movups xmmword [esp + 0x20], xmm0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x45f631
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004087b5
add esp, 0x20
ret
mov edx, dword [esp + 4]
mov eax, edx
push ebx
push edi
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f640
sub eax, edi
sar eax, 1
push esi
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004020e5
add esp, 0x10
cmp dword [eax], 0
push dword [esp + 0xc]
sete bl
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x28]
mov al, bl
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.004087b5
add esp, 0x20
ret
Function at 0x45fa40
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x68
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
cmp ebx, 0xffffffff
je case.default.0x45fa6d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
jmp dword [eax*4 + 0x45fc44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45fa84
push eax
jmp 0x45fc24
push 9
lea ecx, [esp + 0x10]
call fcn.0040aa88
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + 0x20], xmm0
mov dword [edi], 0
call fcn.0040ab32
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004087b5
add esp, 0x68
ret
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x45fa6d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
push ecx
mov dword [esp + 0x24], eax
call fcn.0045f2e0
push ecx
mov dword [esp + 0x2c], eax
call fcn.00462a10
movups xmm0, xmmword [esp + 0x14]
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
movups xmmword [esi], xmm0
mov dword [esp + 0x30], eax
movups xmm0, xmmword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
jmp 0x45faa1
push 6
jmp 0x45fa86
push 7
jmp 0x45fa86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x45fba9
cmp ebx, 3
je 0x45fba9
lea ecx, [esp + 0xc]
cmp ebx, 0x20
jne 0x45fba5
push 9
call fcn.0040aa88
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
jmp 0x45fc1f
push 0
jmp 0x45fb8c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
movups xmm0, xmmword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
movups xmmword [esi], xmm0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0xffff
movups xmm0, xmmword [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esi + 0x20], xmm0
push ebx
push edi
call fcn.00409de0
mov ecx, dword [esp + 0x78]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x68
ret
Function at 0x45fda0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x818
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x814], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x824]
mov dword [esp + 0xc], eax
mov eax, 0x400
push esi
mov esi, dword [esp + 0x824]
mov ecx, eax
mov dword [esp + 0x18], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ecx
jae 0x45fdff
push 2
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00405e1b
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x18]
push esi
call edi
mov ecx, eax
test ecx, ecx
je 0x45fe34
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jb 0x45fdea
push ebx
push ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
push eax
call fcn.004020e5
add esp, 0x10
cmp dword [eax], 0
sete bl
jmp 0x45fe36
xor bl, bl
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x45fe4c
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x820]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x818
ret
Function at 0x461010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x80
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x10], edx
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp esi, eax
jb 0x4610a0
jbe 0x4610a6
cmp ecx, esi
jae 0x461083
push 2
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00405e1b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [edx + esi*2]
lea eax, [edx + eax*2]
cmp eax, ecx
je 0x4610a0
nop dword [eax]
xor edx, edx
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x461090
mov edx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x18], eax
push eax
push edx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x4610db
call ebx
cmp eax, 0x7a
jne 0x4610cc
mov ecx, dword [esp + 0x1c]
add esi, esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x461060
push eax
push edi
call fcn.00409de0
add esp, 8
jmp 0x461171
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x1c]
jb 0x4610fb
push 2
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00405e1b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [esp + 0x14]
mov ecx, edx
inc dword [esp + 0x18]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461112
sub ecx, esi
sar ecx, 1
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x461134
jmp dword [eax*4 + 0x4611a4]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
mov dword [edi], 0
call fcn.0040ab32
jmp 0x46116e
mov eax, dword [esp + 0x10]
mov byte [eax], 0
mov dword [edi], 0
call fcn.0040ab32
jmp 0x46116e
mov dword [edi], 2
call fcn.00415dfc
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x461187
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x114
ret
Function at 0x46eb10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
lea eax, [esp]
push 2
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push eax
call fcn.00412891
push dword [esp + 0x78]
lea eax, [esp + 0x44]
push dword [esp + 0x78]
push eax
call fcn.0041009b
push 2
push dword [esp + 0x90]
lea eax, [esp + 0x3c]
push dword [esp + 0x90]
push eax
call fcn.00412891
push dword [esp + 0x9c]
lea eax, [esp + 0x78]
push dword [esp + 0x9c]
push eax
call fcn.0041009b
add esp, 0x38
lea eax, [esp + 0x30]
lea ecx, [esp]
push eax
call fcn.004046ec
test al, al
jne 0x46ebd4
nop
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.004046ec
test al, al
jne 0x46ebd4
mov eax, dword [esp + 0x24]
cmp dword [esp + 0xc], eax
jne 0x46ebe8
push eax
push dword [esp + 0x24]
push dword [esp + 0x10]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x46ebe8
lea ecx, [esp]
call fcn.0040bd25
lea ecx, [esp + 0x18]
call fcn.0040bd25
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 4]
call fcn.004046ec
test al, al
je 0x46eb80
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 4]
call fcn.004046ec
add esp, 0x60
ret 0x10
xor al, al
add esp, 0x60
ret 0x10