joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40491f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 2
call fcn.004042de
lea eax, [esp + 0x10]
mov bl, 3
push eax
mov byte [esp + 0x20], bl
call fcn.00401f30
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x14]
push 0x4070b4
push ecx
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.00401b60
add esp, 4
test eax, eax
je 0x401e8f
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x401ee6
lea ecx, [esp + 0x10]
push ecx
call fcn.00401f30
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x4070a8
push eax
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret

Function at 0x401f30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404955
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov edi, 1
push 0x4070c8
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], edi
call fcn.00404308
mov esi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4026d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x404a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, ecx
test edi, edi
jne 0x4026fb
xor eax, eax
jmp 0x4027fe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
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, [ebp + 0x504]
call sub.MFC42.DLL_CStringList::RemoveAll
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
push 0x80
push ebp
mov dword [esp + 0x18], edi
call esi
push 0x407158
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40275e
push edi
push ebp
call esi
xor eax, eax
jmp 0x4027fe
lea esi, [ebp + 0x104]
push ebx
push 0x400
push esi
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4027e7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4027cf
cmp byte [esi], 0x3b
je 0x4027cf
cmp byte [ecx + ebp + 0x103], 0xa
jne 0x4027a0
mov byte [ecx + ebp + 0x103], 0
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [ebp + 0x504]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebx
push 0x400
push esi
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x402778
mov edi, dword [esp + 0x10]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x402d80
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x404b71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
call fcn.004042de
mov ebx, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], ebx
call fcn.004042de
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], 2
call fcn.004042de
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 3
call fcn.004042de
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 4
call fcn.004042de
lea eax, [esp + 0x28]
push 0x104
push eax
mov byte [esp + 0x240], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._nicsSafePC.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x12c]
push ecx
push 0x104
push edx
push 0
push str.SERVER_IP
push str.Server_Infomation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402e8d
mov esi, dword [esp + 0x240]
push 0x407548
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], ebx
jmp 0x402ec9
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
push 0x407050
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x3b
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x240]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x230]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4
Function at 0x403430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
and eax, 0xffff
push 0x407068
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4034bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4034bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
mov edi, eax
mov eax, dword [ecx]
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4034bd
cmp esi, 0xffffffff
je 0x4034bd
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x403530
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404c3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
push esi
push edi
push 0
push 0
mov dword [esp + 0x1c], 0
call ebx
mov ebp, eax
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
call ebx
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov edi, 1
push esi
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
add esp, 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4035e0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404c5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
call fcn.004042de
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push str._s_nmtahwinfo.sys
push edx
mov dword [esp + 0x420], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push str._s_nmtahwinfo_sha.sys
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push str._susersec.sys
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call esi
lea ecx, [esp + 8]
mov dword [esp + 0x414], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x410
ret

Function at 0x4036d0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4036fd
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push esi
push str.MSClient
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x403724
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x403730
Capabilities:
Delete registry value
Persist via ginadll registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403785
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.GinaDLL
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4037b2
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret
lea ecx, [esp + 0x10]
push 0x4072d4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4037dd
mov edx, dword [esp + 8]
push str.GinaDLL
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4037ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x88
ret

Function at 0x403800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0x44
mov dword [esp + 8], eax
pop edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov ax, word [esp + 0x5c]
test ax, ax
jne 0x40383c
mov dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x58]
mov word [esp + 0x40], ax
lea edx, [esp]
mov eax, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403870
add esp, 0x54
ret 0xc
mov eax, dword [esp + 0x60]
test eax, eax
mov eax, dword [esp]
je 0x403892
test eax, eax
je 0x403892
cmp eax, 0xffffffff
je 0x403892
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret 0xc
Function at 0x4038b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x404cd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0
call fcn.00401910
lea ecx, [esp + 8]
mov dword [esp + 0x250], 1
call fcn.004042de
push 0x40734c
lea eax, [esp + 0xc]
push 0x407348
push eax
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, 0x40733c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40733c
lea ecx, [esp + 0x38]
call fcn.00401960
lea ecx, [esp + 0x148]
push 0x100
push ecx
lea ecx, [esp + 0x38]
call fcn.00401a40
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
call fcn.00401000
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 3
call fcn.004042de
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x254], 4
call fcn.004010b0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x407328
push ecx
mov byte [esp + 0x25c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call fcn.00404302
mov byte [esp + 0x250], 6
mov edx, dword [esp + 0xc]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x403a28
lea eax, [esp + 0x148]
push 0x100
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
call fcn.004042de
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push str.__f__s
push edx
mov byte [esp + 0x25c], 7
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x264]
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 4
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 2
call fcn.00401030
lea ecx, [esp + 8]
mov byte [esp + 0x250], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x250], 0
call fcn.00401950
mov ecx, dword [esp + 0x248]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24c
ret 4
Function at 0x403cd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x404d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp + 4]
call fcn.00401000
lea ecx, [esp]
mov dword [esp + 0x14], 0
call fcn.004042de
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x18], 1
call fcn.004010b0
mov ecx, dword [eax]
lea edx, [esp]
push ecx
push 0x407328
push edx
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00401030
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x403eac
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404db6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x407548
lea ecx, [esp + 0x10]
mov dword [esi], 0x405390
mov dword [esi + 0xc], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x407548
lea ecx, [esp + 0x14]
mov dword [esp + 0x220], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x200
push eax
mov byte [esp + 0x224], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
push str.Safeusr_c.dll
push ecx
lea edx, [esp + 0x14]
push str._sNics_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x403f4b
mov dword [esi + 4], ebx
jmp 0x403f52
mov dword [esi + 4], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x21c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x214]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x40354b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x95126fde
push ebp
shl byte [ecx + 0x55520f3], 0xc2
test byte [esi], al
cli
invalid
ror dword [ebp + 0x2006c070], 0xb
cwde
push esi
sbb byte [eax - 0x440f2039], bh
xor al, 0xa
pop eax
jg 0x403502
mov bl, 0xc7
mov ch, 0xfc
cld
add edi, ebx
arpl word [eax - 0x3c51ce78], sp
adc byte [eax - 0x66], al
outsd dx, dword [esi]
sbb ah, 0x88
jbe 0x40355d
mov esi, 0xa19aa364
not dword [edx]
lea ecx, [ecx + 0x61]
lcall 0x6149, 0x8d12f7a1
adc al, 0x87
adc eax, 0xe9132842
push ebp
pop esp
dec byte [edx]
cmp dword [ebx - 0x11abe83b], edi
inc esi
xchg esp, eax
mov bl, 0x8f
jbe 0x40351d
mov ah, 0x91
in eax, dx
mov cl, 0xd6
scasd eax, dword es:[edi]
sbb al, byte [edx + 0x5524e4dd]
sahf
mov esp, dword [ebx - 0x5d]
mov esi, 0x1589f146
scasb al, byte es:[edi]
outsd dx, dword [esi]
or dword [edx + ebx*4], esp
shr ebp, cl
loop 0x4035af
or al, 0xed
jmp 0x4035dd
mov eax, dword [0xad1389b2]
lodsd eax, dword [esi]
test eax, 0xa396063f
stosd dword es:[edi], eax
push esp
adc dl, dl
xor bl, byte [esi + 0x50b6f7f2]
wait
pop ebp
push edi
and dword [esi], esi
pop edi
push edx
add byte [ebp + 0x7e], dh
ja 0x4035b3
lcall 0xe077, 0xaf0ce602
sbb dword [esi + 0x4c], ecx
mov edx, 0x65104431
push 0x33
push 0x33
sti
pushal
retf
Function at 0x40236c
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov esi, dword [edi]
mov dword [ebp + 8], esi
add esi, 2
lea eax, [esi*4 + 4]
push eax
call fcn.0040207c
pop ecx
mov dword [edi], esi
mov esi, 0x408010
push 4
mov dword [ebx], eax
mov edx, esi
pop ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023b5
cmp byte [ecx + 1], 0x4a
jne 0x4023b5
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4023a1
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x4023ea
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023e2
cmp byte [ecx + 1], 0x4a
jne 0x4023e2
add ecx, 2
cmp byte [ecx], 0
je 0x40242f
mov dword [eax], ecx
add eax, ebx
inc edi
add edx, ebx
cmp edi, dword [ebp + 8]
jl 0x4023c9
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023f9
cmp byte [ecx + 1], 0x4a
je 0x4023fd
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4023ec
mov esi, dword [ebp + 8]
test esi, esi
jle 0x402427
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x40241e
cmp byte [ecx + 1], 0x4a
je 0x402422
mov dword [eax], ecx
add eax, ebx
add edx, ebx
dec esi
jne 0x402411
and dword [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push 0x4089ec
call fcn.00403335
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402445
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push 0x408a24
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x40249d
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
push ebx
push 0x408a30
push edi
call esi
push 0
push edi
call fcn.0040178c
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040308e
pop ecx
test al, al
pop ecx
jne 0x4024c7
push 1
push 0x408a44
call fcn.00403335
pop ecx
xor al, al
pop ecx
jmp 0x4025eb
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x408a68
push edi
call esi
push 0
push edi
call fcn.0040178c
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, 0x408020
lea edx, [edx + ecx + 1]
jl 0x402511
inc edx
push edx
call fcn.0040207c
mov edx, eax
mov esi, 0x408a80
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x408020
rep movsb byte es:[edi], byte [esi]
jl 0x40254b
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.0040178c
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret