joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x405a12
pop dword [ebp - 0xc]
mov eax, 0x88b61ee0
sub eax, 0x8875c4ce
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x5eeef018
sub dword [ebp - 0x1c], 0x109caacd
mov dword [ebp - 0x18], 0xc718fcab
sub dword [ebp - 0x18], 0x94e5b066
mov dword [ebp - 0x14], 0xf9b36dc
add dword [ebp - 0x14], 0x3cb10d52
mov dword [ebp - 0x10], 0x7e5578e6
add dword [ebp - 0x10], 0x81aa871a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x105fe023
add eax, 0xefe0a0e1
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xfa342bfb
sub dword [ebp - 0x1c], 0x85c1c2a5
mov dword [ebp - 0x18], 0x2c5e42cf
add dword [ebp - 0x18], 0x150e1ea6
mov dword [ebp - 0x14], 0x6b6151a4
add dword [ebp - 0x14], 0xf80e1ac8
mov dword [ebp - 0x10], 0x64d13a52
sub dword [ebp - 0x10], 0x64d13a52
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x829989cd
add eax, 0x7da6f733
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3628c
push 0
call eax
mov ecx, 0x7a91d78
sub ecx, 0x7a8d8c1
xor esi, esi
add esi, eax
mov edi, 0xb4bd8f46
add edi, 0x4b8954ba
add edi, dword [ebp - 0xc]
mov ebx, 0x1129d2b3
xor dword [ebp - 8], esi
mov edx, dword [edi]
xor dword [ebp - 4], 0x48eee976
xor edx, ebx
add dword [ebp - 8], 0x4a85e2d9
mov dword [esi], edx
mov dword [ebp - 8], 0x760ff7b9
add esi, 4
add edi, 4
loop 0x405b30
add eax, 0x6cabf4ba
add eax, 0x935510f5
mov ebx, eax
add eax, 5
mov ecx, 0xb2aaa7a6
add ecx, 0x4d95585a
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4461e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x44620e
xor eax, eax
jmp 0x446229
test byte [ebp - 4], 0x10
je 0x446222
mov eax, 1
jmp 0x446224
xor eax, eax
jmp 0x446229
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460f40
Capabilities:
Terminate process

Disassembly:
cmp dword [0x478cb4], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x460f5e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x478cb0], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x478cac], bl
jne 0x460fb8
cmp dword [0x7b7148], 0
je 0x460fa6
mov edi, dword [0x7b7144]
sub edi, 4
cmp edi, dword [0x7b7148]
jb 0x460fa6
mov eax, dword [edi]
test eax, eax
je 0x460f9b
call eax
sub edi, 4
cmp edi, dword [0x7b7148]
jae 0x460f93
push 0x471040
push 0x471038
call fcn.00460ff0
add esp, 8
push 0x471048
push 0x471044
call fcn.00460ff0
add esp, 8
test ebx, ebx
jne 0x460fdf
mov dword [0x478cb4], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x462d10
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x462d2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x462d3d
push eax
call fcn.00469c80
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x463490
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x4634ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4634bf
push eax
call fcn.00469c80
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x463590
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x4635af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4635c2
push eax
call fcn.00469c80
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x463e10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x478fe0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x463e37
add eax, 8
inc ecx
cmp eax, 0x479070
jb 0x463e28
cmp dword [ecx*8 + 0x478fe0], edx
lea ebx, [ecx*8]
jne 0x463ffb
cmp dword [0x478f48], 1
je 0x463fb7
cmp dword [0x478f48], 0
jne 0x463e6e
cmp dword [0x478f4c], 1
je 0x463fb7
cmp edx, 0xfc
je 0x463ffb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x463eab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x463eef
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x470374
push ebp
call fcn.00462540
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47036c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x478fe4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00467f20
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x7b6030], 0
je 0x463fcd
mov eax, dword [0x7b6030]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x463fd7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x478fe4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x464480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4644a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00469c80
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x4644ca
test byte [esp + 8], 2
je 0x4644ca
mov dword [0x478c6c], 0xd
mov dword [0x478c70], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4645a0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x7b6130], edx
push ebx
push esi
push edi
push ebp
jbe 0x4647a7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x7b6030
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4647a7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x464609
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x46461a
push 2
push 0
push edx
call fcn.00464010
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4646b6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4646ef
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x46467d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x46466b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x464652
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4646e5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x46463d
jmp 0x4646ef
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4646e5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4646ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x464796
cmp dword [esp + 0x10], 0
je 0x464748
cmp dword [esp + 0x10], 5
jne 0x46472b
mov dword [0x478c6c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x478c70], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00469c80
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x464772
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x464772
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x478c6c], 0x1c
mov dword [0x478c70], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x478c6c], 9
mov dword [0x478c70], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4650c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00463930
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x7b6130], esi
jbe 0x46520d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x7b6030]
test byte [edx + ecx*8 + 4], 1
je 0x46520d
push 1
push ebx
push esi
call fcn.00464010
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4651fd
push 2
push ebx
push esi
call fcn.00464010
add esp, 0xc
cmp eax, 0xffffffff
je 0x4651fd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4651a3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00464dd0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x465166
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004645a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x465182
sub ebp, eax
test ebp, ebp
jg 0x46515b
jmp 0x465197
cmp dword [0x478c70], 5
jne 0x465195
mov dword [0x478c6c], 0xd
mov ebx, eax
push edi
push esi
call fcn.00464dd0
add esp, 8
jmp 0x4651e0
jge 0x4651e0
push 0
push ecx
push esi
call fcn.00464010
add esp, 0xc
push esi
call fcn.00464430
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4651e0
mov dword [0x478c6c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x478c70], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00464010
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x478c6c], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4678b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x479bc0], ebx
jne 0x4678ff
call esi
cmp eax, ebx
mov edi, eax
je 0x4678dd
mov dword [0x479bc0], 1
jmp 0x4678ff
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4678f5
mov dword [0x479bc0], 2
jmp 0x4678ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x479bc0], 1
jne 0x4679ae
test edi, edi
jne 0x467922
call esi
mov edi, eax
test edi, edi
jne 0x467922
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x46793c
add esi, 2
cmp word [esi], 0
jne 0x46792a
add esi, 2
cmp word [esi], 0
jne 0x46792a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x46799d
push ebp
call fcn.00461140
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x46799d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x46798c
push ebx
call fcn.004611f0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x479bc0], 2
jne 0x467a32
test ebx, ebx
jne 0x4679d1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4679d1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4679e6
inc ebp
cmp byte [ebp], 0
jne 0x4679d8
inc ebp
cmp byte [ebp], 0
jne 0x4679d8
sub ebp, ebx
inc ebp
push ebp
call fcn.00461140
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x467a0b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x46c980
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x46cbbe
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0046bd10
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x46cbbe
cmp ebp, dword [esp + 0x18]
je 0x46cbbe
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x478c94]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x478c98], ecx
jne 0x46c9dd
push ecx
call fcn.0046cc30
add esp, 4
mov dword [0x478c94], eax
cmp dword [0x478c94], 0
jne 0x46ca8d
cmp dword [esp + 0x1c], 0
je 0x46ca14
cmp dword [0x478c9c], 0
je 0x46ca14
call fcn.00469bb0
test eax, eax
je 0x46ca8d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x46ca25
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x478c94], 0
jne 0x46ca59
push 4
call fcn.00461140
add esp, 4
mov dword [0x478c94], eax
test eax, eax
jne 0x46ca4e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x478c94]
mov dword [eax], 0
cmp dword [0x478c9c], 0
jne 0x46ca8d
push 4
call fcn.00461140
add esp, 4
mov dword [0x478c9c], eax
test eax, eax
jne 0x46ca82
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x478c9c]
mov dword [eax], 0
mov esi, dword [0x478c94]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0046cbd0
add esp, 8
mov edi, eax
test edi, edi
jl 0x46caf5
cmp dword [esi], 0
je 0x46caf5
cmp dword [esp + 0x10], 0
je 0x46caec
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004611f0
add esp, 4
cmp dword [ebx], 0
je 0x46cad9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x46caca
shl edi, 2
push edi
push esi
call fcn.00461240
add esp, 8
test eax, eax
je 0x46cb3d
jmp 0x46cb38
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x46cb3d
cmp dword [esp + 0x10], 0
jne 0x46cbb4
test edi, edi
jge 0x46cb06
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00461240
add esp, 8
test eax, eax
jne 0x46cb28
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x478c94], eax
cmp dword [esp + 0x1c], 0
je 0x46cbaa
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00461140
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x46cbaa
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004611f0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x46ef70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x46efe3
push ebx
call fcn.0046f0a0
add esp, 4
test eax, eax
jne 0x46efb1
xor eax, eax
pop edi
mov dword [0x478c70], 0xf
mov dword [0x478c6c], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x46eff3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x46f092
inc eax
cmp eax, 0x104
ja 0x46f092
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x46f044
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x46f01f
mov ecx, eax
push ecx
call fcn.00461140
add esp, 4
mov edx, eax
test edx, edx
jne 0x46f063
xor eax, eax
pop edi
mov dword [0x478c6c], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x46f063
xor eax, eax
pop edi
mov dword [0x478c6c], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x46f0a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x46f0b4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x46f0e6
cmp eax, 1
je 0x46f0e6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x46f3a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x46f3d6
cmp byte [esp + 5], 0x3a
jne 0x46f3d6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00463050
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x403b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4474ba
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45fce8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x34]
push eax
push 0x67
call fcn.0040cbc0
lea edi, [esi + 0x94]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x20], ebp
mov dword [esi], vtable.COptionDlg.0
call fcn.00417667
mov dword [edi], vtable.CBitmapButton.0
mov dword [edi + 0x58], ebp
mov ebx, vtable.CBitmap.0
mov dword [edi + 0x54], ebx
mov dword [edi + 0x60], ebp
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x68], ebp
mov dword [edi + 0x64], ebx
mov dword [edi + 0x70], ebp
mov dword [edi + 0x6c], ebx
lea edi, [esi + 0x108]
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00417667
mov dword [edi], vtable.CBitmapButton.0
mov dword [edi + 0x58], ebp
mov dword [edi + 0x54], ebx
mov dword [edi + 0x60], ebp
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x68], ebp
mov dword [edi + 0x64], ebx
mov dword [edi + 0x70], ebp
mov dword [edi + 0x6c], ebx
mov byte [esp + 0x20], 2
call fcn.0041c933
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x403bf2
push 0x80004005
call fcn.004014e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x17c], eax
mov dword [esi + 0x18c], ebp
mov dword [esi + 0x188], ebx
lea edi, [esi + 0x2a8]
mov ecx, edi
mov byte [esp + 0x20], 4
call fcn.00417667
mov dword [edi], vtable.CBitmapButton.0
mov dword [edi + 0x58], ebp
mov dword [edi + 0x54], ebx
mov dword [edi + 0x60], ebp
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x68], ebp
mov dword [edi + 0x64], ebx
mov dword [edi + 0x70], ebp
mov dword [edi + 0x6c], ebx
lea edi, [esi + 0x31c]
mov ecx, edi
mov byte [esp + 0x20], 5
call fcn.00401dc0
mov dword [edi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x330]
mov ecx, edi
mov byte [esp + 0x20], 6
mov dword [esi + 0x328], ebp
mov dword [esi + 0x32c], ebp
call fcn.00417667
mov dword [edi], vtable.CComboBox.0
push ebp
push 0x44bd98
lea ecx, [esi + 0x17c]
mov byte [esp + 0x28], 7
call fcn.00401fa0
mov cl, byte [esp + 0x28]
mov dl, byte [esp + 0x2c]
mov eax, 1
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], eax
mov al, byte [esp + 0x30]
mov byte [esi + 0x2a4], cl
mov ecx, esi
mov dword [esi + 0x198], 2
mov byte [esi + 0x2a5], dl
mov byte [esi + 0x2a6], al
call fcn.00403200
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10