joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a0c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xffffff94
mov esi, edx
mov ebx, eax
mov eax, esi
mov ecx, 0x48a17c
mov edx, ebx
call fcn.00404e30
mov dword [esp + 4], 0x64
push esp
mov eax, ebx
call fcn.00404fa8
push eax
push SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x48a16b
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x48a16b
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
push esp
lea eax, [esp + 0xc]
push eax
push SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x48a16b
mov dword [esp + 4], 0x64
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x48a16b
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, esi
lea eax, [esp + 8]
call fcn.00409c1c
add esp, 0x6c
pop esi
pop ebx
ret

Function at 0x48ab04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d88
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x48ab43
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x48ab58
mov eax, ebx
mov edx, 0x48ab68
call fcn.00404de4
add esp, 0x10c
pop ebx
ret
Function at 0x48b7a8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x48b7b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f98
mov eax, dword [ebp - 8]
call fcn.00404f98
xor eax, eax
push ebp
push 0x48b969
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
call fcn.00409624
test al, al
jne 0x48b825
mov eax, dword [ebp - 8]
call fcn.00409624
test al, al
je 0x48b81c
push 0
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
mov eax, dword [ebp - 8]
call fcn.00404fa8
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x48b825
mov byte [ebp - 0xd], 0
jmp 0x48b941
mov dl, 1
mov eax, dword [0x417700]
call fcn.00403be8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x48b93a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x48b888
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0048ade8
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x48b85f
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, 0x48b984
call fcn.004050f4
dec eax
je 0x48b90e
mov eax, dword [ebp - 8]
call fcn.00409624
test al, al
je 0x48b90e
push 0
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
mov eax, dword [ebp - 8]
call fcn.00404fa8
push eax
call sub.kernel32.dll_CopyFileA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x48b90e
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0048ade8
mov ecx, dword [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x48b8e5
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00404b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b941
mov eax, dword [ebp - 0x14]
call fcn.00403c18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b970
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404b3c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b3c
ret
Function at 0x48b98c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d88
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x48b9cb
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x48b9e0
mov eax, ebx
mov edx, 0x48b9f0
call fcn.00404de4
add esp, 0x10c
pop ebx
ret

Function at 0x48c254
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x48c394
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x48c3ac
mov edx, dword [0x49cd0c]
call fcn.00404e30
lea eax, [ebp - 4]
mov ecx, 0x48c3c0
mov edx, dword [0x49cd0c]
call fcn.00404e30
push 0x48c3d0
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48c35e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x48c2db
push 0x48c3e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd74], eax
push 0x48c3f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd78], eax
cmp dword [0x49cd74], 0
jne 0x48c354
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
call sub.kernel32.dll_DeleteFileA
push 0
mov eax, dword [ebp - 4]
call fcn.00404fa8
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x48c3c0
mov edx, dword [ebp - 8]
pop eax
call fcn.00404e30
mov eax, dword [ebp - 0x10]
call fcn.00404fa8
push eax
call sub.kernel32.dll_CopyFileA
push ebx
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48c354
push 0x48c3e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd74], eax
push 0x48c3f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48c371
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c39b
lea eax, [ebp - 0x10]
call fcn.00404b18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b3c
ret

Function at 0x48c518
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404d88
add esp, 0x104
pop ebx
ret

Function at 0x48c54c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d88
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x48c58b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x48c5a0
mov eax, ebx
mov edx, 0x48c5b0
call fcn.00404de4
add esp, 0x10c
pop ebx
ret
Function at 0x48c5b4
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x48c6f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x48c708
mov edx, dword [0x49cd0c]
call fcn.00404e30
lea eax, [ebp - 4]
mov ecx, 0x48c71c
mov edx, dword [0x49cd0c]
call fcn.00404e30
push 0x48c72c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48c6bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x48c63b
push 0x48c73c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd6c], eax
push 0x48c750
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd70], eax
cmp dword [0x49cd6c], 0
jne 0x48c6b2
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
call sub.kernel32.dll_DeleteFileA
push 0
mov eax, dword [ebp - 4]
call fcn.00404fa8
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
mov ecx, 0x48c768
mov edx, dword [ebp - 8]
call fcn.00404e30
mov eax, dword [ebp - 0x10]
call fcn.00404fa8
push eax
call sub.kernel32.dll_CopyFileA
push ebx
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48c6b2
push 0x48c73c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd6c], eax
push 0x48c750
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49cd70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48c6cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c6f9
lea eax, [ebp - 0x10]
call fcn.00404b18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b3c
ret
Function at 0x48ef14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x49cd14], 0
jne 0x48efcf
push 0x49cd18
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x48efcf
mov eax, dword [0x49cd18]
test al, al
je 0x48efc4
mov eax, 8
call fcn.00402ec0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48efbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], 1
mov eax, dword [ebp - 8]
mov edx, dword [0x49cd18]
mov dword [eax], edx
mov eax, dword [ebp - 8]
push eax
push 1
push 0x401
push 0xffffffffffffffff
push 0xff
push ebx
call sub.Shell32.dll_SHChangeNotifyRegister
mov dword [0x49cd14], eax
mov eax, dword [0x49cd14]
neg al
sbb eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48efcf
mov eax, dword [ebp - 8]
call fcn.00402edc
ret
mov eax, dword [0x49cd18]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x48fb20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 8]
call fcn.00404f98
xor eax, eax
push ebp
push 0x48fca2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 2
call fcn.00467ec8
mov esi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.00467ee8
mov edi, eax
jmp 0x48fc6e
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d88
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409808
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408be0
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp + 8]
call fcn.00408be0
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00404f40
je 0x48fc41
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d88
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408be0
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp + 8]
call fcn.00408be0
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00404f40
jne 0x48fc5f
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.00467f08
mov edi, eax
test edi, edi
jne 0x48fb9c
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fca9
lea eax, [ebp - 0x144]
mov edx, 7
call fcn.00404b3c
lea eax, [ebp + 8]
call fcn.00404b18
ret
Function at 0x490724
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d88
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x49075f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x490774
mov eax, ebx
mov edx, 0x490784
call fcn.00404de4
add esp, 0x10c
pop ebx
ret

Function at 0x4915d8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x15]
call fcn.00409c1c
mov esp, ebp
pop ebp
ret 4
Function at 0x4923ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4925b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
xor edx, edx
push ebp
push 0x492585
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x496b64]
cmp byte [eax], 0
jne 0x492444
call sub.ejet_en.dll_init
dec eax
je 0x49243c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x492591
mov eax, dword [0x496b64]
mov byte [eax], 1
call sub.ejet_en.dll_SetCall
dec eax
je 0x49245b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x492591
call sub.ejet_en.dll_IdClearPrivate
call sub.ejet_en.dll_IdClearPublic
lea eax, [ebp - 4]
mov ecx, 0x4925d4
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
call sub.ejet_en.dll_IdPrivate
test al, al
je 0x4924d8
lea eax, [ebp - 8]
mov ecx, 0x4925e8
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov eax, dword [ebp - 8]
call fcn.00404fa8
push eax
call sub.ejet_en.dll_IdPublic
test al, al
je 0x4924d8
lea eax, [ebp - 0xc]
mov ecx, 0x4925fc
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov eax, dword [ebp - 0xc]
call fcn.00404fa8
push eax
call sub.ejet_en.dll_IdPublic
test al, al
jne 0x492574
lea eax, [ebp - 0x10]
mov ecx, 0x4925d4
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
call fcn.00404fa8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x18]
mov ecx, 0x4925e8
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
call fcn.00404fa8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x1c]
mov ecx, 0x4925fc
mov edx, dword [0x49cd0c]
call fcn.00404e30
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
call fcn.00404fa8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, 0x492614
mov eax, esi
call fcn.0048ec48
mov byte [0x49cd21], 0
jmp 0x49257b
mov byte [0x49cd21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x492591
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404b3c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b3c
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.0041fc9f
mov edx, dword [0x43a5b4]
lea ebp, [edi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], edx
lea esi, [edi + 0x6c]
mov byte [esp + 0x1c], 1
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CButton.0
lea esi, [edi + 0xa8]
mov byte [esp + 0x1c], 2
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
lea esi, [edi + 0xe4]
mov byte [esp + 0x1c], 3
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
lea esi, [edi + 0x120]
mov byte [esp + 0x1c], 4
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
lea esi, [edi + 0x15c]
mov byte [esp + 0x1c], 5
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
lea esi, [edi + 0x198]
mov byte [esp + 0x1c], 6
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
lea esi, [edi + 0x1d4]
mov byte [esp + 0x1c], 7
mov ecx, esi
call fcn.0042024e
mov dword [esi], vtable.CComboBox.0
mov eax, dword [0x43a5b4]
mov dword [edi + 0x210], eax
lea esi, [edi + 0x214]
mov eax, 0x42f6d8
mov dword [esp + 0x24], esi
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 0xd
call fcn.004011b0
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 0xe
call fcn.004011b0
mov ecx, dword [0x43a5b4]
lea esi, [edi + 0x274]
mov dword [esi], ecx
push 0x43e4b0
lea ecx, [edi + 0x210]
mov byte [esp + 0x20], 0x10
mov dword [edi], method.CDialog.virtual_0
call fcn.004237f6
mov ecx, ebp
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], ebx
call fcn.0042363c
mov ecx, esi
call fcn.0042363c
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4012b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d6a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x274]
mov dword [esp + 0x18], 0xa
call fcn.004236b1
lea edi, [esi + 0x214]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 0xf
call fcn.00402150
lea ecx, [edi + 0x40]
mov byte [esp + 0x18], 0xe
call fcn.00402150
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0xd
call fcn.00402150
lea ecx, [edi + 0x20]
mov byte [esp + 0x18], 0xc
call fcn.00402150
lea ecx, [edi + 0x10]
mov byte [esp + 0x18], 0xb
call fcn.00402150
mov ecx, edi
mov byte [esp + 0x18], 9
call fcn.00402150
lea ecx, [esi + 0x210]
mov byte [esp + 0x18], 8
call fcn.004236b1
lea ecx, [esi + 0x1d4]
mov byte [esp + 0x18], 7
call fcn.004276b0
lea ecx, [esi + 0x198]
mov byte [esp + 0x18], 6
call fcn.004276b0
lea ecx, [esi + 0x15c]
mov byte [esp + 0x18], 5
call fcn.004276b0
lea ecx, [esi + 0x120]
mov byte [esp + 0x18], 4
call fcn.004276b0
lea ecx, [esi + 0xe4]
mov byte [esp + 0x18], 3
call fcn.004276b0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x18], 2
call fcn.004276b0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 1
call fcn.0042752e
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 0
call fcn.004236b1
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0041fa32
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x402a00
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x408
test eax, eax
push esi
push edi
je 0x402a7a
call fcn.00429eed
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x210]
lea eax, [esp + 0x310]
push edx
lea ecx, [esp + 0x114]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00410aab
push 0x43e4b0
lea ecx, [esp + 0x128]
push 0x43e4b0
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00410a1a
add esp, 0x28
lea edi, [esp + 0xc]
jmp 0x402a8e
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x414]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x408
ret 8
Function at 0x403ac0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x403af9
cmp dword [esp + 8], 0x33
jne 0x403bc7
mov eax, 8
add esp, 0x94
ret
cmp eax, 4
jne 0x403b8f
mov eax, dword [esp + 8]
test eax, eax
jne 0x403b60
mov eax, dword [esp + 0xc]
cmp eax, 0x3b6
jne 0x403b21
mov eax, 1
add esp, 0x94
ret
cmp eax, 0x457
jne 0x403b34
mov eax, 2
add esp, 0x94
ret
cmp eax, 0x4bc
jne 0x403b47
mov eax, 3
add esp, 0x94
ret
jb 0x403bc7
mov eax, dword [esp + 0x10]
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfb
add eax, 9
add esp, 0x94
ret
cmp eax, 0xa
jne 0x403b7e
mov eax, dword [esp + 0xc]
mov ecx, 0x7ce
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 5
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x403bc7
mov eax, 7
add esp, 0x94
ret
cmp eax, 5
jne 0x403bb9
mov eax, dword [esp + 8]
test eax, eax
jne 0x403ba8
mov eax, 0xa
add esp, 0x94
ret
cmp eax, 1
jb 0x403bc7
mov eax, 0xb
add esp, 0x94
ret
jbe 0x403bc7
mov eax, 0xb
add esp, 0x94
ret
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x415c05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43bcb0
cmp edx, dword [eax]
je 0x415c27
add eax, 8
inc ecx
cmp eax, 0x43bd40
jl 0x415c18
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43bcb0]
jne 0x415d55
mov eax, dword [0x440ac4]
cmp eax, 1
je 0x415d2f
test eax, eax
jne 0x415c58
cmp dword [0x43b314], 1
je 0x415d2f
cmp edx, 0xfc
je 0x415d55
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415c8f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412040
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415cd2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412040
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x432b54
push edi
call fcn.00410d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417a90
lea eax, [ebp - 0xa0]
push 0x432b34
push eax
call fcn.00417a90
push dword [esi + 0x43bcb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004191d2
add esp, 0x2c
pop edi
jmp 0x415d55
lea eax, [ebp + 8]
lea esi, [esi + 0x43bcb4]
push 0
push eax
push dword [esi]
call fcn.00412040
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret