joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413385
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.00416c20
push esi
push edi
xor edi, edi
cmp dword [0x41db5c], edi
mov esi, ecx
jne 0x41347a
push ebx
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4655
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 0x20]
cmp eax, edi
jne 0x4133d0
xor ebx, ebx
jmp 0x4133d3
mov ebx, dword [eax + 0x20]
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
xor ecx, ecx
cmp dword [0x41da14], edi
push edi
sete cl
push ecx
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
call fcn.00417d4a
cmp eax, edi
mov dword [0x41db5c], eax
pop ebx
jne 0x413416
push edi
push 0x30
push 0x43b0
call sub.MFC42u.DLL_AfxMessageBox_1
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41347a
push 0x824
lea eax, [ebp - 0x1260]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_1326]
lea eax, [ebp - 0x1260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
push dword [0x41dcc4]
call fcn.00417e3e
push edi
push 0x41d91c
add esi, 0xc4
push esi
push dword [0x41dcc8]
call dword [sym.imp.MSO.DLL_Ordinal_3339]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov esi, dword [esi]
cmp esi, edi
je 0x41347a
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [eax + 4]
pop edi
pop esi
leave
ret
Function at 0x413505
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSO.DLL_Ordinal_2814]
test eax, eax
jl 0x4135c5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
test eax, eax
mov eax, dword [ebp - 4]
je 0x4135bb
mov ecx, dword [eax]
push 3
push eax
mov dword [ebp + 8], 1
call dword [ecx + 0xf4]
test eax, eax
jne 0x4135a6
mov dword [ebp + 8], edi
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov edi, 0x436d
push edi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00409064
add esp, 0x10
push edi
push 0x10
lea eax, [ebp - 0x414]
push eax
call sub.MFC42u.DLL_AfxMessageBox
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4135b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x4136b0
cmp eax, edi
je 0x4135c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp eax, 0x15
je 0x4135e1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x4135f4
mov eax, 0x3b0a
push eax
push 0x10
push eax
call sub.MFC42u.DLL_AfxMessageBox_1
jmp 0x4136a9
cmp dword [ebp + 8], 0xffffffff
jne 0x41365b
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x3782
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00409064
add esp, 0x14
push edi
push 0x31
lea eax, [ebp - 0x414]
push eax
call sub.MFC42u.DLL_AfxMessageBox
cmp eax, 2
je 0x4136a9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4136ad
mov eax, 0x3783
jmp 0x4135e6
test byte [ebp + 8], 0x10
jne 0x4136ad
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x3784
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00409064
add esp, 0x10
push edi
push 0x10
lea eax, [ebp - 0x414]
push eax
call sub.MFC42u.DLL_AfxMessageBox
xor eax, eax
jmp 0x4136b0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413f1e
Capabilities:
Delete registry value
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x401fd0
push SysReAllocString
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 8], esi
mov dword [ebp - 0x1c], 4
je 0x413fb1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
mov edi, 0x4044f0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413f9e
push dword [ebp - 0x18]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x413f9e
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4044e0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x4140a2
push 0x4044cc
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4140a2
push esi
lea eax, [ebp - 4]
push eax
push 0x1000002
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
cmp eax, esi
jl 0x4140a2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x530]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x128]
push edx
push eax
call dword [ecx + 0x24]
cmp eax, esi
jl 0x4140a2
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4140af
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x328]
push edx
lea edx, [ebp - 0x28]
push edx
push 0x4044bc
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x14], 0x100
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x10], esi
call fcn.00414539
test eax, eax
je 0x414098
cmp dword [ebp - 0x10], esi
je 0x414089
push 2
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00413c3f
jmp 0x4140c7
push esi
push 0x30
push 0x4365
call sub.MFC42u.DLL_AfxMessageBox_1
jmp 0x4140c7
push 1
lea eax, [ebp - 0x328]
jmp 0x41407e
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4140af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x74]
cmp word [eax], si
jne 0x4140c1
call fcn.0041399e
jmp 0x4140c7
push eax
call fcn.00413db2
cmp ebx, esi
je 0x4140d2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4140da
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
push 0x90
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x330]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00408ad1
mov edi, 0x404308
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0040bc6a
push eax
call fcn.00408b5f
push 0x404500
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0040bc6a
push 0
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x414183
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00416c20
mov ebx, esp
push ebx
push esi
push 0
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414183
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
inc eax
lea esp, [ebp - 0x33c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415f8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor esi, esi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x20e]
xor ebx, ebx
mov word [ebp - 0x210], si
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
inc ebx
cmp edi, esi
mov dword [ebp - 0xc], ebx
je 0x416160
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x416160
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], esi
lea eax, [ebp - 8]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x401d90
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp + 0x14], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 8], esi
je 0x416160
lea eax, [ebp + 0x14]
push eax
mov ebx, 0x2001f
push ebx
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0x14], esi
jne 0x416038
push esi
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x14], esi
je 0x41607b
push 0x7f
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x404700
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.00409064
add esp, 0x10
lea eax, [ebp - 4]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x416082
mov dword [ebp - 0xc], 2
cmp dword [ebp - 4], esi
jne 0x4160c2
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x404700
push 0xff
push eax
call fcn.00409064
add esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], esi
je 0x416130
push 4
pop ebx
push 0x7f
pop ecx
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea eax, [ebp - 0x210]
push eax
mov dword [ebp + 8], ebx
call fcn.00415c53
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x416137
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416137
cmp dword [ebp + 0xc], ebx
jne 0x416137
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0xc], esi
jmp 0x416137
mov dword [ebp - 0xc], 2
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x416147
push dword [ebp - 4]
call edi
cmp dword [ebp + 0x14], esi
je 0x416151
push dword [ebp + 0x14]
call edi
cmp dword [ebp - 8], esi
je 0x41615b
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
jmp 0x416162
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x416169
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x41630f
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x41630f
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov esi, 0x2001f
push esi
push ebx
push ebx
push ebx
push 0x401d90
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 8], ebx
je 0x41630f
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0x14], ebx
jne 0x416205
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x14], ebx
je 0x416246
push 0x7f
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
push 0x404700
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.00409064
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
jne 0x416286
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x404700
push 0xff
push eax
call fcn.00409064
add esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], ebx
je 0x4162e4
push 0x7f
pop ecx
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea eax, [ebp - 0x208]
push eax
call fcn.00415c53
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x4162e4
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x4162e7
push 2
pop esi
cmp dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4162f7
push dword [ebp - 4]
call edi
cmp dword [ebp + 0x14], ebx
je 0x416301
push dword [ebp + 0x14]
call edi
cmp dword [ebp - 8], ebx
je 0x41630b
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x416312
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41691e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x404708
call fcn.00416cf8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x416959
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416959
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x416971
cmp eax, 0x20b
je 0x41695e
mov dword [ebp - 0x1c], edi
jmp 0x416985
cmp dword [ecx + 0x84], 0xe
jbe 0x416959
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41697f
cmp dword [ecx + 0x74], 0xe
jbe 0x416959
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x41dd68], 0xffffffff
or dword [0x41dd6c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41dca8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41dca4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41dd64], eax
call fcn.00416cf2
cmp dword [0x41da00], edi
jne 0x4169e2
push fcn.00416cf2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00416ce0
push 0x4017ec
push 0x4017e8
call sub.msvcrt.dll__initterm
mov eax, dword [0x41dca0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41dc9c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x4017e4
push 0x4017d0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x416a48
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x416b02
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x416a96
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x416a64
cmp ax, 0x22
jne 0x416a51
cmp word [esi], 0x22
jne 0x416a6f
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x416a7d
cmp ax, 0x20
jbe 0x416a6a
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x416aa3
movzx eax, word [ebp - 0x48]
jmp 0x416aa6
cmp word [esi], 0x20
jbe 0x416a6f
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x416a96
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x416ac7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x416afc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00416d31
ret
Function at 0x416d78
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 0x404788
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416dd0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4047c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416dc3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x416dd2
xor eax, eax
pop esi
leave
ret 4
Function at 0x417a8e
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.00416c20
mov eax, dword [ebp + 0x34]
push esi
xor esi, esi
mov dword [eax], esi
cmp dword [0x41dcdc], esi
jne 0x417b10
push 0x41dcdc
call dword [sym.imp.MSO.DLL_Ordinal_425]
cmp eax, esi
jl 0x417c2c
cmp dword [ebp + 0x10], esi
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
je 0x417afb
push esi
push eax
call dword [ecx + 0xc0]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x1c]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x4c]
jmp 0x417b10
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [0x41dcdc]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov eax, dword [0x41dcdc]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
push dword [ebp + 0x24]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
push 0xfffffffffffffff9
push eax
call dword [ecx + 0xb0]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x417b6d
mov ecx, dword [eax]
push esi
push 0xe
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x10], esi
push edi
je 0x417b93
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [0x41dcdc]
call fcn.00417952
cmp eax, esi
jge 0x417bd1
jmp 0x417c2b
push 0x824
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_1326]
cmp dword [ebp + 0x20], esi
jne 0x417bb9
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x417bd1
push dword [ebp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
test eax, eax
jne 0x417bd1
lea eax, [ebp - 0x1050]
push eax
call edi
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
xor edx, edx
cmp dword [ebp + 0xc], esi
sete dl
push edx
push eax
call dword [ecx + 0x14]
mov edi, dword [ebp + 0x30]
mov eax, dword [0x41dcdc]
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc0]
push dword [ebp + 8]
mov eax, dword [0x41dcdc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x88]
cmp eax, esi
jl 0x417c2b
cmp dword [ebp - 8], 2
jne 0x417c28
push dword [ebp + 0x34]
push edi
push dword [0x41dcdc]
call fcn.004179e8
jmp 0x417c2b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x30
Function at 0x418343
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x41dd88], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x418387
call ebx
test eax, eax
jns 0x41837d
push 0x4063c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4063b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41dd8c], eax
mov dword [0x41dd88], 1
mov eax, dword [0x41dd8c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x4183a3
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x4183d3
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x4183c9
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x4183bd
push dword [eax + 8]
call dword [eax]
jmp 0x4183c3
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x4183d2
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x404070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx + 4]
cmp ecx, 0x8664
jne 0x4040ae
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x88]
mov dword [ebp - 0x28], edx
jmp 0x4040be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
je 0x4040f2
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0
je 0x4040f2
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x4040f2
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x20], 0
jne 0x4040f9
xor eax, eax
jmp 0x404181
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x404138
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x40417e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx]
push edx
call fcn.00406eca
add esp, 8
test eax, eax
jne 0x40416a
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x24], eax
jmp 0x40417e
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
jmp 0x40412f
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 8