joyce8/EMBER2024-capa huggingface dataset:
Function at 0x506a70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd02b78]
xor edx, edx
cmp eax, edx
jne 0x506a96
xor eax, eax
mov byte [eax + 0xd02a78], al
inc eax
cmp eax, 0x100
jl 0x506a7e
mov dword [0xd02b78], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd02a78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x506b27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x506afa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x506ac8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x506b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x506b83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x506b6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50d500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x556b0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0050de20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xbb1364
call fcn.00541544
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x50d593
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00541544
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x50d58c
push 0
mov ecx, eax
call fcn.005046a0
mov dword [esi + 0xc], eax
jmp 0x50d595
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x50d595
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5426e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0054cc9e
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54271a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0054272d
pop edi
pop esi
pop ebx
ret 8

Function at 0x543d04
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x543d3c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00541caa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00541c82
jmp 0x543d48
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5455f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x545636
call fcn.0054cc9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x545636
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54562d
xor eax, eax
jmp 0x54563e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00545644
pop edi
pop esi
pop ebx
ret 4

Function at 0x54d1ce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54d1fc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54d21a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054d134
jmp 0x54d21a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54d21a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054d134
test edi, edi
mov eax, edi
jne 0x54d204
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40102b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401e67
test eax, eax
jne 0x4010c5
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x403148
sub eax, 0x4026e6
mov dword [esp], 0x4026e6
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4010c5
lea ebx, [ebp - 0x88]
mov dword [esp], 0
jmp loc.004637a4
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401e67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4029a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x174
mov dl, byte [0x411d80]
push ebx
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x7c]
mov ebx, 1
push eax
push 0x104
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x184]
push 0
push 2
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402a18
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174
ret
mov al, byte [0x40e088]
push esi
test al, al
je 0x402b35
mov dword [esp + 0x18], 0x40e088
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x64
and ecx, 3
lea edx, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push edx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
mov esi, eax
test esi, esi
je 0x402b2a
cmp esi, 0xffffffff
je 0x402b2a
mov eax, dword [0x40b910]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x402b14
lea ecx, [esp + 0x80]
push 4
lea edx, [esp + 0x20]
push ecx
push edx
push esi
push 0
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupInstallFilesFromInfSectionA]
test eax, eax
je 0x402adc
mov eax, dword [0x40b910]
push edi
push 0x402b60
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueA]
test eax, eax
je 0x402b26
mov ebx, 1
jmp 0x402ade
xor ebx, ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov al, byte [esp + 0x13]
inc dl
add al, dl
mov byte [esp + 0x13], al
movsx eax, al
mov cl, byte [eax + 0x40e088]
lea eax, [eax + 0x40e088]
test cl, cl
mov dword [esp + 0x18], eax
jne 0x402a2e
jmp 0x402b39
push esi
xor ebx, ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402b3d
xor ebx, ebx
jmp 0x402b3d
push ebp
xor ebx, ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402b39
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x174
ret
Function at 0x402e40
Capabilities:
Delete file

Disassembly:
sub esp, 0xa7c
mov dl, byte [0x411d80]
push ebx
push ebp
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x381]
mov byte [esp + 0x380], dl
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0xa90]
mov ebp, dword [esp + 0xa8c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc3
xor eax, eax
lea edi, [esp + 0x74]
push 2
push ebx
push ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x80], 0x30c
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x402fbf
lea eax, [esp + 0x74]
mov dword [esp + 0xc], 0
push eax
push 0
push 2
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoA]
test eax, eax
je 0x402fbf
push esi
push 0
lea ecx, [esp + 0x770]
push 0x31d
lea edx, [esp + 0x80]
push ecx
push edx
push ebx
push ebp
mov dword [esp + 0x784], 0x31d
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailA]
lea edi, [esp + 0x884]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x384]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x384]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x384]
sub ecx, 3
lea edi, [esp + 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40ae7c
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x384]
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x78]
inc eax
push edx
push eax
push 2
push ebx
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoA]
test eax, eax
jne 0x402ed7
pop esi
push 2
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
pop edi
pop ebp
pop ebx
add esp, 0xa7c
ret

Function at 0x402fe0
Capabilities:
Get common file path

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x104
push 0x40b888
mov dword [0x411b84], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [0x411b84]
mov edx, ecx
and edx, 0xff
cmp edx, 4
jb 0x403022
test eax, eax
je 0x403022
and ecx, 0x80000000
neg ecx
sbb cl, cl
add ecx, 2
mov al, cl
ret
mov eax, dword [0x40b910]
push 0x10
push str.Initialize
push str.Windows_version_or_directory_error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x40b910]
push 0x81
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
or al, 0xff
ret
Function at 0x405859
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b090
cmp edx, dword [eax]
je 0x40587b
add eax, 8
inc ecx
cmp eax, 0x40b120
jl 0x40586c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b090]
jne 0x4059a9
mov eax, dword [0x411d8c]
cmp eax, 1
je 0x405983
test eax, eax
jne 0x4058ac
cmp dword [0x40aee4], 1
je 0x405983
cmp edx, 0xfc
je 0x4059a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4058e3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404280
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004065f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405926
lea eax, [ebp - 0x1a4]
push eax
call fcn.004065f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094d4
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404280
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404290
lea eax, [ebp - 0xa0]
push 0x4094b4
push eax
call fcn.00404290
push dword [esi + 0x40b094]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404290
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407724
add esp, 0x2c
pop edi
jmp 0x4059a9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b094]
push 0
push eax
push dword [esi]
call fcn.004065f0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010c0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41cc00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x24]
mov ecx, dword [0x42ad68]
mov edx, dword [0x42ad60]
push eax
push 0
push ecx
push edx
mov byte [esp + 0x2c], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea eax, [esp + 0x10]
inc esi
push esi
push 0x4270c8
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x42ad68]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
mov ecx, dword [0x42ad60]
push edx
push eax
push ecx
call edi
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xc]
push edx
push 0x4270c8
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x42ad64]
push esi
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x18
push eax
mov eax, dword [0x42ad60]
push ecx
push edx
push eax
call edi
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4011f0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop esi
ret
Function at 0x401220
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41cc5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], 0
mov ebx, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x40]
mov ecx, dword [0x42ad68]
mov edx, dword [0x42ad60]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push ecx
push edx
mov byte [esp + 0x44], 6
call ebp
mov edi, eax
test edi, edi
jne 0x4012dd
push 0x4270d0
lea ecx, [esp + 0x1c]
call fcn.00406060
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], ebx
jmp 0x4013a9
mov ecx, dword [0x42ad64]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42ad60]
add esp, 0xc
push eax
push 0x3e8
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x18]
push 0x4270c8
push eax
call sub.MFC42.DLL_CString::Format
mov esi, 2
add esp, 0xc
cmp edi, esi
jl 0x401395
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x42ad64]
push esi
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42ad60]
add esp, 0xc
push eax
push 0x3e8
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x20]
push 0x4270cc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 6
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jle 0x401326
mov esi, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4016a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret

Function at 0x402810
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, 0x1008
call fcn.00406460
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov dword [esp + 0xc], 0
mov word [esi], 0
call fcn.00405150
mov ebx, dword [esp + 0x1018]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push 0
push edx
push 1
push ebx
call dword [eax + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4028ae
call fcn.00405150
push 0
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 1
push ebx
call dword [eax + 0x14]
test eax, eax
jl 0x4028e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4028e9
mov edx, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [esp + 0x20]
add esp, 0xc
and eax, 0xffff
pop edi
mov word [esi + eax*2], 0
pop esi
mov eax, 1
pop ebx
add esp, 0x1008
ret
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0x4027c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
jne 0x4028f5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1008
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405150
push 0
lea edx, [esp + 0x18]
push 0x1000
push edx
push 1
push ebx
call dword [eax + 0x14]
test eax, eax
jl 0x4028e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4028e9
mov ecx, dword [esp + 0x14]
and ecx, 0xffff
push ecx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [esp + 0x20]
add esp, 0xc
and edx, 0xffff
mov eax, 1
pop edi
mov word [esi + edx*2], 0
pop esi
pop ebx
add esp, 0x1008
ret