joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fd0
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Get startup folder

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov ebx, ebp
mov esi, dword [esp + 0x124]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x10]
push eax
push ebp
push esi
call edi
test eax, eax
je 0x40301d
mov ebx, ebp
lea ecx, [esp + 0x10]
sub ebx, 0x18
push ecx
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 7
push ebx
push esi
call edi
test eax, eax
jne 0x403143
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403060
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
test esi, esi
jne 0x403143
mov eax, dword [esp + 0x128]
test eax, eax
je 0x403143
mov edi, 0x413040
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 0x18
rep movsb byte es:[edi], byte [esi]
je 0x4030dd
cmp ebp, 7
jne 0x403138
mov edi, str..lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403143
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403143
cmp ebx, 0x18
jne 0x403143
cmp ebp, ebx
jne 0x403143
mov ebp, 7
jmp 0x402fe3
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 0xc
Function at 0x403160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
mov dword [esp + 4], 0
push eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4031cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
add esp, 0x74
ret 0x10
mov eax, dword [esp + 0x88]
push ebx
push ebp
push esi
test eax, eax
je 0x403280
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x403254
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebp, 0x12
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 0
push eax
push 1
call ebx
sub eax, 0
je 0x403266
dec eax
jne 0x403205
push 1
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
call esi
test eax, eax
je 0x403205
cmp dword [esp + 0x28], ebp
je 0x403266
lea edx, [esp + 0x24]
push edx
call edi
push 1
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call esi
test eax, eax
jne 0x403232
jmp 0x403205
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x403278
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x403280
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x74
ret 0x10
Function at 0x403470
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
test eax, eax
push ebp
push esi
mov esi, ecx
jne 0x40348c
mov eax, dword [esi + 4]
mov dword [esp + 0x118], eax
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x4034c3
mov edx, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4034cd
pop esi
xor al, al
pop ebp
add esp, 0x10c
ret 8
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 8], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x403510
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00403470
test al, al
jne 0x4034d4
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
cmp eax, ecx
pop edi
jne 0x403525
mov ecx, esi
call fcn.00403450
jmp 0x40352c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x118]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
add esp, 0x10c
ret 8
Function at 0x404530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
push edi
push str.TEXT
push 0x69
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
lea eax, [esp + 8]
push 0x100
push eax
push 9
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 8]
push 0x40
push ecx
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4067c0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x4068b3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4068b3
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push ebp
or ebp, 0xffffffff
test eax, eax
push esi
jne 0x4067f8
mov ebp, 1
jmp 0x4067ff
cmp eax, 1
jne 0x4067ff
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0
push str.Completed
mov dword [eax], 0xffffffff
push str.Status
mov dword [ecx], 0
call esi
push ebx
push ebp
push str.ResultCode
push str.ResponseResult
mov edi, eax
call esi
test eax, eax
jne 0x4068a4
cmp edi, 1
jne 0x40686c
push ebx
push eax
push str.RebootRequired
push str.Status
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
dec eax
neg eax
sbb eax, eax
and eax, 0xfffff43e
add eax, 0xbc2
mov dword [ecx], eax
jmp 0x406882
jg 0x40687c
test edi, edi
je 0x40687c
mov dword [esp + 0x14], 0xffffffff
jmp 0x406882
mov edx, dword [esp + 0x1c]
mov dword [edx], edi
push ebx
push 0
push str.ExitErrCode
push str.Status
call esi
test eax, eax
je 0x4068aa
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop ebx
ret
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop edi
pop ebx
ret
pop edi
mov eax, 0x57
pop ebx
ret

Function at 0x4068c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x210
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x110]
push 1
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x110]
push 0x105
push eax
call fcn.00407ae0
add esp, 8
test eax, eax
je 0x4069b4
or ecx, 0xffffffff
lea edi, [esp + 0x110]
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.sqlsut.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ebx
pop edi
pop esi
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret
Function at 0x4069c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x324]
push 0x105
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push 0x105
push ecx
call fcn.00407ae0
add esp, 8
lea edx, [esp + 0x21c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x21c]
push 0x5c
push eax
call fcn.00409540
mov ecx, 2
lea edx, [esp + 0x224]
sub ecx, edx
add esp, 8
add eax, ecx
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, str...Binn_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407760
add esp, 4
test eax, eax
je 0x406b91
mov ebx, dword [esp + 0x430]
lea ecx, [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
push edx
push str.sqlsut.dll
push ebx
call fcn.00406ec0
add esp, 0x10
test eax, eax
je 0x406af4
cmp eax, 0xbc2
jne 0x406b97
lea eax, [esp + 0x114]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.sqdedev.dll
push ebx
call fcn.00406ec0
add esp, 0x10
test eax, eax
je 0x406b1a
cmp eax, 0xbc2
jne 0x406b97
mov edi, str...Binn_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str...System_
push ebp
mov byte [edx + ecx], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push str.sqlunirl.dll
push ebx
call fcn.00406ec0
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x420
ret
Function at 0x407760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x218
mov ax, word [0x413040]
push ebx
push esi
push edi
mov edi, dword [esp + 0x228]
mov word [esp + 0xe], ax
test edi, edi
mov dword [esp + 0x10], 1
jne 0x40779b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x218
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4077e3
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x218
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0xe]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x120]
push edx
push eax
call fcn.0040934b
add esp, 8
test eax, eax
je 0x4078b3
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
jne 0x407885
lea ecx, [esp + 0x18]
push 0
push ecx
call ebp
test eax, eax
je 0x4078ab
lea edx, [esp + 0x12]
push edx
push 0
call fcn.0040934b
add esp, 8
test eax, eax
jne 0x407815
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret
Function at 0x407ae0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x118]
push edi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ebp, ebp
test ebx, ebx
stosb byte es:[edi], al
je 0x407b93
lea eax, [esp + 0x10]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x407b93
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x10]
mov cl, byte [str.SqlSetupBin]
test cl, cl
je 0x407b4e
mov edx, str.SqlSetupBin
sub edx, eax
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
inc esi
test cl, cl
jne 0x407b42
mov ecx, dword [esp + 0x120]
dec ecx
cmp ecx, esi
jb 0x407b88
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
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
pop ebp
pop ebx
add esp, 0x108
ret
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x407c00
Capabilities:
Check os version
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x19c
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
dec eax
push edi
je 0x407d06
dec eax
je 0x407c63
dec eax
jne 0x407d16
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00409540
add esp, 8
test eax, eax
je 0x407d16
mov byte [eax], bl
jmp 0x407d16
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x114]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x124], 2
jne 0x407cf4
cmp dword [esp + 0x118], 5
jb 0x407cf4
lea eax, [esp + 0xc]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x105
lea ecx, [esp + 0x10]
push str.kernel32.dll
push ecx
call fcn.00407ba0
add esp, 0xc
test al, al
je 0x407cf4
lea edx, [esp + 0xc]
push edx
call esi
test eax, eax
je 0x407cf4
push str.GetSystemWindowsDirectory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407cf4
lea ecx, [esp + 0xc]
push 0x105
push ecx
call eax
jmp 0x407d16
lea edx, [esp + 0xc]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x407d16
lea eax, [esp + 0xc]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esp + 0x1b0]
push 0x105
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00407ba0
add esp, 0xc
test al, al
je 0x407d45
lea eax, [esp + 0xc]
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x19c
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x19c
ret
Function at 0x40c66e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413ed8
cmp edx, dword [eax]
je 0x40c690
add eax, 8
inc ecx
cmp eax, 0x413f68
jl 0x40c681
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413ed8]
jne 0x40c7be
mov eax, dword [0x41628c]
cmp eax, 1
je 0x40c798
test eax, eax
jne 0x40c6c1
cmp dword [0x413804], 1
je 0x40c798
cmp edx, 0xfc
je 0x40c7be
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c6f8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a550
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c73b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a550
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4116ec
push edi
call fcn.00408160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b9a0
lea eax, [ebp - 0xa0]
push 0x4116cc
push eax
call fcn.0040b9a0
push dword [esi + 0x413edc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b9a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f395
add esp, 0x2c
pop edi
jmp 0x40c7be
lea eax, [ebp + 8]
lea esi, [esi + 0x413edc]
push 0
push eax
push dword [esi]
call fcn.0040a550
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
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x47d5494f
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xc7d0858
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xabf370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xabf38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xae8074
push ecx
mov edi, eax
call fcn.00ad3198
mov esi, eax
add esp, 8
test esi, esi
jne 0xabf3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ad302e
push esi
call fcn.00ad2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xac2850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xac28ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xaed720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xac28ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ad31e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xac28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xaed720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xac292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ad4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xac2957
mov word [eax], si
add eax, 2
push eax
call fcn.00ad4030
add esp, 4
jmp 0xac2959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xac28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xac28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xac2ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret