joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
sub esp, 0x260
lea eax, [esp + 0x58]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401110
mov al, 0x5c
mov dl, byte [esp + ecx + 0x5f]
dec ecx
cmp dl, al
je 0x40110b
test ecx, ecx
ja 0x4010fc
jmp 0x401110
mov byte [esp + ecx + 0x60], 0
push str.SeDebugPrivilege
call fcn.00401050
add esp, 4
call fcn.00401000
test eax, eax
je 0x40113a
lea ecx, [esp + 0x60]
lea edx, [esp + 0x164]
push ecx
push str.__sx64DPInstx64.exe_
push edx
jmp 0x40114c
lea eax, [esp + 0x60]
lea ecx, [esp + 0x164]
push eax
push str.__sx86DPInst32.exe_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x18], edx
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edx
push eax
push ecx
push edx
push edx
push 0x8000000
push edx
push edx
mov dword [esp + 0x34], edx
push edx
lea edx, [esp + 0x184]
push edx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.MSVCRT.dll_wprintf]
test eax, eax
je 0x4011b3
push str.CreateProcess_succeeded_n
call esi
jmp 0x4011bd
push str.CreateProcess__
call fcn.00401280
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x40125f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4011e2
push str.Process_finished._n
call esi
jmp 0x4011ec
push str.WaitForSingleObject
call fcn.00401280
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401214
mov edx, dword [esp + 8]
push edx
push str.Process_exit_code__0x_X_n
call esi
add esp, 8
jmp 0x401221
push str.GetExitCodeProcess__
call fcn.00401280
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 8]
push edx
push str.Thread_exit_code__0x_X_n
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x260
ret
push str.No_process_created_n
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x260
ret
Function at 0x401450
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x402438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov dword [esp + 0x10], 0
lea ecx, [esp + 8]
mov dword [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404408
lea eax, [esp + 0xc]
push str._sLanSource.ini
push eax
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push str.INSTALL
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0x104
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x128]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.00402086
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00402086
lea ecx, [esp + 0x12c]
mov byte [esp + 0x120], 0
call fcn.00402086
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401d60
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034b0
push 0x4021f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push str.SystemWPAPnP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401dbe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push str.seed
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401e01
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 4], ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x401f19
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 0x8003
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401f19
mov byte [ebp - 0x30], bl
mov al, byte [ebp + 8]
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
push ebx
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
test eax, eax
je 0x401f19
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call esi
test eax, eax
je 0x401f19
mov dword [ebp - 0x28], 0x10
push ebx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
push 2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401f19
lea edx, [ebp - 0x24]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
test eax, eax
jne 0x401ee1
push 0x10
lea eax, [ebp - 0x40]
push eax
push 3
push ebx
push str.PrivateHash
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call esi
test eax, eax
jne 0x401f19
push 1
lea ecx, [ebp + 8]
push ecx
push 3
push ebx
push str.Policy
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401f3f
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x406338
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
jne 0x43e4b2
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10
push 0x406330
push 0x406310
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
pop ebx
add esp, 0x108
ret
mov eax, dword [0x401e88]
push esi
push edi
xor edi, edi
test eax, eax
je 0x43e50d
mov esi, 0x401e88
movzx ecx, word [esi + 8]
push ecx
push eax
push edi
lea edx, [esp + 0x20]
push 0x4062f8
push edx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [esp + 0x28]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43e4e5
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi + 0xc]
add esi, 0xc
inc edi
test eax, eax
jne 0x43e4c4
mov eax, dword [0x401c88]
xor esi, esi
test eax, eax
je 0x43e571
mov ebx, 0x401c88
push ebp
mov edi, edi
push eax
lea eax, [esi + edi]
push eax
lea ecx, [esp + 0x20]
push 0x4062e0
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [esp + 0x28]
add esp, 0x10
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e540
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
sub eax, ebp
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebx + 0xc]
add ebx, 0xc
inc esi
test eax, eax
jne 0x43e520
mov ebx, dword [esp + 0x14]
pop ebp
lea edx, [esi + edi - 1]
push edx
lea eax, [esp + 0x18]
push 0x4062a0
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e592
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
add esp, 0x108
ret

Function at 0x4408a0
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0x10]
test cl, cl
push edi
mov eax, 0xc0000000
mov edi, 4
mov ebx, 2
mov byte [esi], cl
je 0x4408ca
mov edi, ebx
mov eax, 0x80000000
mov ebx, 4
push 0
push 0x80
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x44092d
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push edi
push 0
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x440926
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x440935
mov ecx, esi
call fcn.00440850
pop edi
pop esi
xor al, al
pop ebx
ret 8
pop edi
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x442320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x442379
test al, 0x10
je 0x442379
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442340
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
push edi
je 0x442365
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x442354
mov ax, word [0x4064c8]
mov word [edi], ax
dec esi
mov edi, esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x442368
mov ecx, dword [0x4064c4]
mov dword [edi], ecx
pop edi
pop esi
ret

Function at 0x442b50
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 1
mov ecx, 0x4710c8
call fcn.00441e70
mov ecx, dword [esp + 4]
push ecx
push 0
push 1
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x442b91
push 0x40000
push 0x406698
push 0x40667c
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
jne 0x442bbe
push 0x40000
push 0x406698
push 0x40665c
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ecx
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x4432d0
Capabilities:
Compare security identifiers
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
push eax
mov ax, cs
test al, 4
jne 0x4432ed
mov dword [ebp - 8], 1
pop eax
cmp dword [ebp - 8], ebx
je 0x443406
lea eax, [ebp - 8]
push eax
push ebx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.advapi32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
jne 0x44333d
call esi
cmp eax, 0x3f0
jne 0x4433f4
lea ecx, [ebp - 8]
push ecx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x4433f4
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.advapi32.dll_GetTokenInformation]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x4433f4
call esi
cmp eax, 0x7a
jne 0x4433f4
mov ecx, dword [ebp - 4]
add ecx, 3
and ecx, 0xfffffffc
push ecx
call fcn.00461694
mov ecx, dword [ebp - 8]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x4433eb
lea edx, [ebp - 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [sym.imp.advapi32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4433eb
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x4433eb
lea ebx, [esi + 4]
lea esp, [esp]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x4433fd
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x4433d0
push esi
call fcn.00462416
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00462416
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444330
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebp
or ebp, 0xffffffff
push esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x160]
push 1
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], 0
call fcn.004408a0
test al, al
je 0x4443a6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004533c0
test al, al
jne 0x4443cd
lea ecx, [esp + 8]
call fcn.00440850
lea ecx, [esp + 8]
mov dword [esp + 0x148], ebp
call fcn.00440850
pop esi
pop ebp
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
lea edx, [esp + 0x3c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4443d5
mov eax, dword [esp + 0x15c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4443e8
push edi
lea edi, [esp + 0x40]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4443f7
mov edx, dword [esp + 0x158]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0x28]
call fcn.00453380
push 0
push 0x80
push 4
push 0
push 3
mov edi, eax
push 0xc0000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
jne 0x444466
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x15c]
push 0x10
push 0x406330
push 0x4068fc
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x4444b9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x154]
push 0
lea edx, [esp + 0x24]
push edx
push edi
add eax, ecx
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
push esi
jne 0x4444aa
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x15c]
push 0x10
push 0x406330
push 0x4068e4
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x4444b9
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0xc]
call fcn.00440850
lea ecx, [esp + 0xc]
mov dword [esp + 0x14c], ebp
call fcn.00440850
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x4468d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x160
push ebx
push ebp
mov ebp, dword [0x471b1c]
push esi
push edi
xor eax, eax
test ebp, ebp
mov byte [esp + 0x68], 0
mov ecx, 0x41
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebp
stosw word es:[edi], ax
je 0x446b18
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x470e14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x68]
push edx
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0x406ad4
mov dword [esp + 0x4c], 0x406ac8
mov dword [esp + 0x48], 0x406470
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], 4
mov dword [esp + 0x20], ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x446b18
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446977
sub eax, edx
cmp dword [esp + eax + 0x65], 0x7478742e
je 0x4469a8
lea edi, [esp + 0x68]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446990
mov eax, dword [0x406ac0]
mov cl, byte [0x406ac4]
mov dword [edi], eax
mov byte [edi + 4], cl
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4469f2
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10
push 0x406330
push 0x4068fc
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test ebp, ebp
jle 0x446af5
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
push 0x401e4c
push 0
push ebx
mov ecx, 0x471b18
call fcn.00441fe0
mov ebp, dword [0x401e64]
cmp ebp, 0x10
mov eax, dword [0x401e50]
jae 0x446a29
mov eax, 0x401e50
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446a30
sub eax, ecx
cmp ebp, 0x10
mov ecx, dword [0x401e50]
jae 0x446a49
mov ecx, 0x401e50
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
push 0x406ab8
push esi
call edi
push 0
push 0x406423
mov ecx, 0x401e4c
call fcn.00436410
push 0x401e4c
push 1
push ebx
mov ecx, 0x471b18
call fcn.00441fe0
mov ebp, dword [0x401e64]
cmp ebp, 0x10
mov eax, dword [0x401e50]
jae 0x446a9e
mov eax, 0x401e50
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446aa1
sub eax, ecx
cmp ebp, 0x10
mov ecx, dword [0x401e50]
jae 0x446aba
mov ecx, 0x401e50
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x406ab4
push esi
call edi
push 0
push 0x406423
mov ecx, 0x401e4c
call fcn.00436410
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x446a02
mov edx, dword [0x470e14]
push 0x40000
push 0x406aa8
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452d00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40c
push ebx
mov ebx, dword [esp + 0x414]
cmp dword [ebx + 4], 0x100
push ebp
mov ebp, ecx
ja 0x452d27
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov eax, dword [ebp + 0x838]
push esi
push edi
mov edi, dword [ebp + 0x834]
cmp edi, eax
je 0x452dad
lea esi, [edi + 0x20]
lea esp, [esp]
mov al, byte [esi + 0xc]
test al, al
jne 0x452d9d
mov ecx, dword [esi]
test ecx, ecx
je 0x452d9d
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
test eax, eax
je 0x452d9d
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00437340
cmp dword [esi - 8], 0x10
jb 0x452d6e
mov eax, dword [esi - 0x1c]
jmp 0x452d71
lea eax, [esi - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push eax
sub ecx, 0x100
push ecx
add edx, 0x100
push edx
lea ecx, [esp + 0x20]
call fcn.0043f650
test al, al
jne 0x452dbc
mov eax, dword [ebp + 0x838]
add edi, 0x30
add esi, 0x30
cmp edi, eax
jne 0x452d40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov esi, dword [esp + 0x424]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.00436320
mov eax, dword [esp + 0x10]
add eax, 0x100
pop edi
mov dword [esi + 0x20], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40c
ret 8

Function at 0x4533c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 0x160
push esi
mov esi, ecx
jb 0x4533fd
mov edx, dword [esp + 0xc]
mov dword [esi + 8], edx
cmp word [edx], 0x5a4d
jne 0x4533fd
mov ecx, dword [edx + 0x3c]
lea eax, [ecx + edx]
cmp eax, edx
jb 0x4533fd
add ecx, 0x120
cmp ebp, ecx
jb 0x4533fd
mov dword [esi + 0xc], eax
cmp dword [eax], 0x4550
je 0x453404
pop esi
xor al, al
pop ebp
ret 8
add eax, 4
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add eax, 0x18
mov dword [esi + 0x14], eax
movzx ecx, word [edx + 0x10]
add ecx, eax
push ebx
mov ebx, eax
mov dword [esi + 0x18], ecx
cmp word [ebx], 0x10b
je 0x453431
pop ebx
pop esi
xor al, al
pop ebp
ret 8
push edi
movzx edi, word [edx + 2]
mov edx, dword [esp + 0x14]
sub edx, ecx
add edx, ebp
mov eax, 0xcccccccd
mul edx
shr edx, 5
cmp edi, edx
ja 0x453484
xor edx, edx
test edi, edi
jle 0x45346f
lea eax, [ecx + 0x14]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x453460
cmp dword [eax], ebp
jae 0x453484
mov ecx, dword [esi + 0x10]
movzx ecx, word [ecx + 2]
inc edx
add eax, 0x28
cmp edx, ecx
jl 0x453455
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0x3c]
jb 0x453480
push eax
mov ecx, esi
call fcn.00453280
dec eax
cmp eax, ebp
jb 0x45348d
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret 8
mov edx, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi + 4], ebp
mov dword [esi], edx
pop esi
mov al, 1
pop ebp
ret 8
Function at 0x455150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cf08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov dword [esp + 0x30], 0
jb 0x45519c
mov eax, dword [eax + 4]
jmp 0x45519f
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4551d2
cmp dword [esp + 0x20], edi
jb 0x4551bf
mov eax, dword [esp + 0xc]
push eax
call fcn.00461b2d
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push ebp
push 0x40af40
push esi
call edi
push 0x40af38
push esi
mov ebp, eax
call edi
test eax, eax
mov dword [esp + 0x28], eax
je 0x455259
call ebp
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x455200
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00436410
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x471e1c]
add ecx, 0xfffffff0
call fcn.00454e10
mov edx, dword [0x471e1c]
mov byte [edx - 0x18], 1
cmp dword [esp + 0x24], 0x10
jb 0x455245
mov eax, dword [esp + 0x10]
push eax
call fcn.00461b2d
add esp, 4
pop ebp
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp dword [esp + 0x24], 0x10
jb 0x45526d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00461b2d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop ebp
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret