joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a270
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0040a050
add esp, 4
test eax, eax
jne 0x40a289
mov eax, 1
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x40a2a0
Capabilities:
Delete file
Move file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x424
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
mov ebx, dword [esp + 0x42c]
push ebx
call fcn.0040a050
add esp, 4
test eax, eax
jne 0x40a2e4
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00419ef2
add esp, 0x424
ret
push esi
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00408f80
test eax, eax
je 0x40a3bd
cmp eax, 1
je 0x40a3bd
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x16]
mov eax, 0x66666667
imul ecx
movzx eax, word [esp + 0x12]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movzx edx, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x230]
push str.._02d_02d_02d_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
call esi
test eax, eax
jne 0x40a39b
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00419ef2
add esp, 0x424
ret
push 4
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00419ef2
add esp, 0x424
ret
push edi
push 0xfffe
call fcn.0040b28c
add esp, 4
push str.WININIT.INI
push 0x7fff
mov edi, eax
push edi
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [edi], 0
mov esi, edi
je 0x40a400
jmp 0x40a3f0
mov dx, word [esi]
add esi, 2
test dx, dx
jne 0x40a3f0
cmp word [esi], dx
jne 0x40a3f0
push 0x432718
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40a414
push str.WININIT.INI
push edi
xor ecx, ecx
push str.Rename
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
test eax, eax
jne 0x40a45c
push edi
call fcn.0040b281
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00419ef2
add esp, 0x424
ret
push str.WININIT.INI
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
call fcn.0040b281
mov ecx, dword [esp + 0x430]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00419ef2
add esp, 0x424
ret
Function at 0x40a620
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
push edx
mov word [ebx], ax
call fcn.0040a4a0
add esp, 8
test eax, eax
jne 0x40a64d
mov eax, 1
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push str.UserEntrySubPath
push edx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x40a703
mov eax, dword [esp + 8]
test eax, eax
je 0x40a703
push esi
push eax
call fcn.0040b28c
mov edx, dword [esp + 0x20]
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.UserEntrySubPath
push edx
call edi
test eax, eax
je 0x40a6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0040b281
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040b281
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x40a720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
mov esi, dword [esp + 0x624]
push edi
mov edi, dword [esp + 0x62c]
lea eax, [esp + 0x210]
push eax
call fcn.00409a00
add esp, 4
test eax, eax
je 0x40a803
mov edx, dword [0x4422ec]
lea ecx, [esp + 0x418]
push ecx
push edx
lea eax, [esp + 0x218]
push eax
call fcn.0040a130
push 0x104
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0041a8c0
mov ecx, dword [0x442284]
add esp, 0x18
lea edx, [esp + 0x418]
push edx
mov edx, dword [0x44227c]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40a803
cmp word [esp + 8], 0
je 0x40a803
mov eax, dword [esp + 0x630]
push 0x11f
push eax
push edi
call fcn.004094b0
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00419ef2
add esp, 0x61c
ret
mov ecx, dword [esp + 0x620]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00419ef2
add esp, 0x61c
ret
Function at 0x40a820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0xc], ecx
mov word [ecx], dx
lea ecx, [esp + 4]
push ecx
push eax
call fcn.0040a4a0
add esp, 8
test eax, eax
jne 0x40a865
mov eax, 1
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00419ef2
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
push str.PrnID
push ecx
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x40a96a
mov eax, dword [esp + 4]
test eax, eax
je 0x40a96a
push edi
push eax
call fcn.0040b28c
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 8]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.PrnID
push ecx
call esi
test eax, eax
je 0x40a901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.0040b281
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00419ef2
add esp, 0x1c
ret
xor esi, esi
cmp dword [esp + 8], esi
jle 0x40a940
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
movzx eax, byte [esi + edi]
push eax
lea ecx, [esp + 0x24]
push str._02X
push ecx
call ebx
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push eax
call ebp
inc esi
cmp esi, dword [esp + 0x10]
jl 0x40a917
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0040b281
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00419ef2
add esp, 0x1c
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00419ef2
add esp, 0x1c
ret

Function at 0x40b13e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b196
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x432c0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b189
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40b198
xor eax, eax
pop esi
leave
ret 4
Function at 0x40b7f7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x43d838]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40b88f
push 0x432fb4
push 4
push eax
call fcn.0041ae11
push eax
call fcn.00404dc0
add esp, 0x10
push ebx
push edi
call fcn.0041c1c5
mov edi, dword [eax]
call fcn.0041c1c5
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041c162
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0041c1c5
cmp dword [eax], ebx
je 0x40b8a6
call fcn.0041c1c5
push dword [eax]
call fcn.0040b772
pop ecx
jmp 0x40b8ad
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40b83a
jmp 0x40b934
call fcn.0041c1c5
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x40b930
cmp dword [ebp - 0x234], esi
jae 0x40b930
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0041a8c0
add esp, 0xc
push 0x432d14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40b91f
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40b91f
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40b91f
push ebx
push ebx
push esi
jmp 0x40b928
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40b932
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419ef2
leave
ret

Function at 0x40e16c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40e190
cmp dword [edi + 0x54], 0
jne 0x40e190
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040fb12
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e12d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4150ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4150f3
call fcn.0040fb12
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4150f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41510f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414c24
mov esi, eax
test edi, edi
je 0x41510d
test ebx, ebx
je 0x41510d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x419ef2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d838]
jne 0x419efc
repz ret
jmp fcn.004204dc

Function at 0x426356
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041f150
and dword [ebp - 4], 0
cmp dword [0x444fc8], 0
mov ebx, eax
jne 0x426407
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4264b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4264b8
push eax
call fcn.0041f0de
mov dword [esp], 0x435724
push edi
mov dword [0x444fc8], eax
call esi
push eax
call fcn.0041f0de
mov dword [esp], 0x435710
push edi
mov dword [0x444fcc], eax
call esi
push eax
call fcn.0041f0de
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444fd0], eax
call esi
push eax
call fcn.0041f0de
pop ecx
mov dword [0x444fd8], eax
test eax, eax
je 0x426407
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f0de
pop ecx
mov dword [0x444fd4], eax
mov eax, dword [0x444fd4]
cmp eax, ebx
je 0x42645f
cmp dword [0x444fd8], ebx
je 0x42645f
push eax
call fcn.0041f159
push dword [0x444fd8]
mov esi, eax
call fcn.0041f159
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42645f
test edi, edi
je 0x42645f
call esi
test eax, eax
je 0x426456
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426456
test byte [ebp - 0xc], 1
jne 0x42645f
or dword [ebp + 0x10], 0x200000
jmp 0x426498
mov eax, dword [0x444fcc]
cmp eax, ebx
je 0x426498
push eax
call fcn.0041f159
pop ecx
test eax, eax
je 0x426498
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426498
mov eax, dword [0x444fd0]
cmp eax, ebx
je 0x426498
push eax
call fcn.0041f159
pop ecx
test eax, eax
je 0x426498
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444fc8]
call fcn.0041f159
pop ecx
test eax, eax
je 0x4264b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4264ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x515b4661
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2e7c061d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44763b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x248], esi
push 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x248], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025c0
sub ecx, edx
lea eax, [ebp - 0x214]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00406c90
mov dword [ebp - 4], 0
lea edi, [ebp - 0x22c]
cmp dword [ebp - 0x218], 0x10
mov ebx, dword [ebp - 0x21c]
cmovae edi, dword [ebp - 0x22c]
cmp ebx, 3
jbe 0x40261c
lea eax, [ebx - 3]
push eax
lea eax, [edi + 3]
push 0x5c
push eax
call fcn.00421760
add esp, 0xc
test eax, eax
je 0x40261c
sub eax, edi
jmp 0x40261f
or eax, 0xffffffff
lea ecx, [eax - 7]
mov dword [ebp - 0x244], 0
cmp ebx, ecx
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0xf
cmovb ecx, ebx
mov byte [ebp - 0x244], 0
cmp dword [ebp - 0x218], 0x10
push ecx
cmovae eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x244]
push eax
call fcn.00406c90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x230], 0x10
cmovae eax, dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x110]
push 0x4565a8
push eax
call fcn.00401090
lea ecx, [ebp - 0x110]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
add esp, 0xc
mov byte [esi], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026c0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00406c90
mov edx, dword [ebp - 0x230]
cmp edx, 0x10
jb 0x40270e
mov ecx, dword [ebp - 0x244]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402704
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40277d
push edx
push ecx
call fcn.0041ffac
add esp, 8
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
cmp edx, 0x10
jb 0x40275f
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402755
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40277d
push edx
push ecx
call fcn.0041ffac
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
call fcn.00429c86
int3
Function at 0x402790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447680
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x240], ebx
mov edi, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push 0x4565ac
push eax
call fcn.00401090
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x230], 0
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402835
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00406c90
mov esi, ebx
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x402860
mov edx, dword [ebp - 0x220]
mov eax, SysReAllocString
sub esi, ecx
sub eax, edx
cmp eax, esi
jb 0x4029ee
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ebx, 0xf
mov dword [edi], 0
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x23c], eax
lea eax, [edx + esi]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 0x238], eax
cmp eax, ebx
jbe 0x402956
mov ebx, eax
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4028d6
mov ebx, SysReAllocString
jmp 0x4028e0
mov eax, 0x16
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x40292b
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4029f3
push eax
call fcn.0041ff7c
add esp, 4
test eax, eax
je 0x4029f8
mov edx, dword [ebp - 0x220]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x234]
mov dword [eax], edi
jmp 0x40295c
test ecx, ecx
je 0x40294a
push ecx
call fcn.0041ff7c
mov edx, dword [ebp - 0x220]
mov edi, eax
mov eax, dword [ebp - 0x234]
add esp, 4
mov dword [eax], edi
jmp 0x40295c
mov eax, dword [ebp - 0x234]
xor edi, edi
mov dword [eax], edi
jmp 0x40295c
mov eax, dword [ebp - 0x234]
push edx
push dword [ebp - 0x23c]
lea ecx, [edx + esi]
mov dword [eax + 0x14], ebx
push edi
mov dword [eax + 0x10], ecx
call fcn.00421810
mov eax, dword [ebp - 0x220]
push esi
push dword [ebp - 0x240]
add eax, edi
push eax
call fcn.00421810
mov eax, dword [ebp - 0x238]
add esp, 0x18
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x4029cc
mov edx, dword [ebp - 0x230]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4029c2
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029f8
push ecx
push edx
call fcn.0041ffac
add esp, 8
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
call fcn.004012a0
call fcn.004011d0
call fcn.00429c86
int3