joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ed910
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10c]
test edi, edi
je 0x5edb87
fld dword [edi + 0x174]
fcomp dword [esi + 0x13c]
fnstsw ax
test ah, 0x40
je 0x5ed94f
fld dword [edi + 0x178]
fcomp dword [esi + 0x140]
fnstsw ax
test ah, 0x40
jne 0x5edb87
fld dword [edi + 0x174]
push ebx
push ebp
call fcn.0061318c
mov word [esi + 0x12e], ax
fld dword [edi + 0x178]
call fcn.0061318c
movsx ecx, word [esi + 0x12e]
mov dword [esp + 0x10], ecx
mov word [esi + 0x130], ax
fild dword [esp + 0x10]
movsx edx, ax
fsubr dword [edi + 0x174]
mov eax, dword [edi + 0x174]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsubr dword [edi + 0x178]
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [edi + 0x178]
cdq
fstp dword [esp + 0x14]
sub eax, edx
mov dword [esi + 0x140], ecx
fmul dword [0x634598]
mov edi, eax
mov eax, dword [esi + 0x18]
fld dword [esp + 0x14]
cdq
fmul dword [0x634598]
sub eax, edx
mov cx, word [esi + 0x11a]
movsx edx, word [esi + 0x114]
mov dword [esp + 0x14], edx
mov ebx, eax
fild dword [esp + 0x14]
sar edi, 1
add di, word [esi + 0x90]
fld st(0)
sub di, word [esi + 0x118]
fmul st(2)
fxch st(1)
fmul st(3)
sar ebx, 1
add bx, word [esi + 0x94]
mov word [esi + 0x126], di
faddp st(1)
sub ebx, ecx
mov word [esi + 0x128], bx
call fcn.0061318c
mov bp, ax
movsx eax, word [esi + 0x116]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
neg ebp
fld st(0)
fmul st(2)
fxch st(1)
fmul st(3)
fsubp st(1)
call fcn.0061318c
mov cx, word [esi + 0x11a]
mov edx, dword [esi + 0x110]
add eax, ecx
add edi, ebp
movsx ecx, word [esi + 0x130]
fstp st(0)
fstp st(0)
neg eax
add ebx, eax
mov word [esi + 0x126], di
mov dword [esp + 0x14], ebx
mov word [esi + 0x128], bx
mov ebx, dword [edx + 0xa214]
mov edx, dword [esp + 0x10]
shl edx, 5
mov ecx, dword [ebx + ecx*4]
add ecx, edx
xor ebx, ebx
movsx edx, di
movsx edi, word [ecx]
sub edi, edx
movsx edx, word [esi + 0x11c]
mov dword [esi + 0xf8], edi
mov bl, byte [ecx + 6]
movsx ecx, word [ecx + 2]
imul edx, ebx
add edx, ecx
movsx ecx, word [esp + 0x14]
sub edx, ecx
mov dword [esi + 0xfc], edx
mov edx, edi
mov dword [0x7912c8], edx
mov ecx, dword [esi + 0xfc]
mov dword [0x7912cc], ecx
mov cx, word [esi + 0x12e]
mov dx, word [esi + 0x130]
mov di, word [esi + 0x118]
add dx, cx
mov bx, word [esi + 0x11a]
imul edx, edi
add edx, ebp
pop ebp
mov word [esi + 0x12a], dx
mov dx, word [esi + 0x130]
sub dx, cx
imul edx, ebx
add edx, eax
mov ax, word [esi + 0x130]
mov word [esi + 0x138], ax
mov word [esi + 0x12c], dx
movsx eax, word [esi + 0x122]
cdq
sub eax, edx
sar eax, 1
add eax, 2
sub word [esi + 0x138], ax
imul edi, eax
sub ecx, eax
movsx eax, word [esi + 0x124]
cdq
mov word [esi + 0x136], cx
mov cx, word [esi + 0x126]
sub eax, edx
mov dx, word [esi + 0x128]
shl edi, 1
sar eax, 1
sub cx, di
inc eax
imul ebx, eax
add word [esi + 0x136], ax
sub word [esi + 0x138], ax
shl ebx, 1
sub dx, bx
mov word [esi + 0x132], cx
mov word [esi + 0x134], dx
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x5fe500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
push edi
mov dword [0x791970], 0
mov ecx, 0xd
xor eax, eax
mov edi, 0x791938
mov dword [ebp + 0x11c], 0xffffffff
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push 4
push eax
push edi
call fcn.0061467f
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
call fcn.0061467f
lea edx, [esp + 0x28]
push 8
push edx
push edi
call fcn.004c5a20
push 4
push 0x680264
push edi
call fcn.004c5a20
add esp, 0x30
mov esi, str.VER_9.4
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5fe596
test cl, cl
je 0x5fe592
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5fe596
add eax, 2
add esi, 2
test cl, cl
jne 0x5fe572
xor eax, eax
jmp 0x5fe59b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5fe5e0
mov esi, str.VER_9.3
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5fe5cc
test cl, cl
je 0x5fe5c8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5fe5cc
add eax, 2
add esi, 2
test cl, cl
jne 0x5fe5a8
xor eax, eax
jmp 0x5fe5d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5fe5e0
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xc
ret 4
mov eax, dword [ebp]
push 0
push edi
mov ecx, ebp
call dword [eax + 0xe0]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0xc
ret 4
Function at 0x61dbe9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x681648
cmp edx, dword [eax]
je 0x61dc0b
add eax, 8
inc ecx
cmp eax, 0x6816d8
jl 0x61dbfc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x681648]
jne 0x61dd39
mov eax, dword [0x7919ec]
cmp eax, 1
je 0x61dd13
test eax, eax
jne 0x61dc3c
cmp dword [0x680a94], 1
je 0x61dd13
cmp edx, 0xfc
je 0x61dd39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x61dc73
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0061b450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006169d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x61dcb6
lea eax, [ebp - 0x1a4]
push eax
call fcn.006169d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65f8c4
push edi
call fcn.00613360
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0061b450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0061b460
lea eax, [ebp - 0xa0]
push 0x67292c
push eax
call fcn.0061b460
push dword [esi + 0x68164c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0061b460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0061efbf
add esp, 0x2c
pop edi
jmp 0x61dd39
lea eax, [ebp + 8]
lea esi, [esi + 0x68164c]
push 0
push eax
push dword [esi]
call fcn.006169d0
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 0x402b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call section..text
push 0x404f1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00403920
test eax, eax
je 0x402bb1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp loc.0045f000
Function at 0x950980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9509ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9509ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40185b
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x184]
push edi
call fcn.004335a0
test eax, eax
pop ecx
je 0x401884
push edi
call fcn.00433570
and byte [edi], 0
pop ecx
lea eax, [ebp - 0x108]
push str.write.exe
push eax
call fcn.00433480
pop ecx
lea eax, [ebp - 0x20c]
pop ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea eax, [ebp - 0x20c]
push 0x4552d4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x2e
push edi
call fcn.00433220
pop ecx
test eax, eax
pop ecx
je 0x4018d9
push str..rtf
push eax
call fcn.00433480
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00433490
push 0x4552c8
push edi
call fcn.0043346d
mov ebx, eax
mov eax, dword [esi + 0x494]
mov esi, dword [esi + 0x48c]
add esp, 0x10
mov ecx, eax
dec eax
test ecx, ecx
je 0x401923
inc eax
mov dword [ebp - 4], eax
push ebx
mov eax, esi
push 1
push 1
push eax
inc esi
call fcn.00433303
add esp, 0x10
dec dword [ebp - 4]
jne 0x40190d
push ebx
call fcn.00433286
mov dword [esp], 0x100
push edi
call fcn.00433247
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jae 0x401965
push 0
call fcn.00406be4
push eax
push dword [0x455224]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x4021a7
Capabilities:
Create process on windows

Disassembly:
push 1
push 0x4554e0
push 0
push str.http:__www.reallegal.com_binderpull.asp
push str.open
call fcn.00406bea
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x4021c7
Capabilities:
Create process on windows

Disassembly:
push esi
lea esi, [ecx + 0x4b0]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4021de
mov esi, dword [esi]
jmp 0x4021e3
mov esi, str.http:__www.deposchedule.com_
push 1
push 0x4554e0
push 0
push esi
push str.open
call fcn.00406bea
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret
Function at 0x40542b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40543e
xor al, al
jmp 0x40544d
mov edx, dword [esp + 8]
mov ecx, eax
shr ecx, 4
mov al, 1
and cl, al
mov byte [edx], cl
ret 8
Function at 0x4067d7
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x390], ebx
jne 0x4068bb
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x200
call fcn.00433b6e
pop ecx
mov dword [esi + 0x390], eax
push eax
push ebx
lea eax, [ebp - 0x108]
push 0x455c6c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esi + 0x390]
call fcn.00433570
push 0x5c
push dword [esi + 0x390]
call fcn.00433220
add esp, 0xc
mov byte [eax], bl
push str._viewhelp.hlp
push dword [esi + 0x390]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x455c54
push 0xfb7
push dword [0x45fb8c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x45fb8c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 4], eax
push dword [0x45fb8c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x4068bb
push ebx
push dword [esi + 0x390]
call dword [sym.imp.KERNEL32.dll__lcreat]
push dword [ebp - 4]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__hwrite]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esi + 0x390]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4078f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
lea eax, [ebp - 0x408]
push 0
mov edi, SysReAllocStringLen
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4079bb
lea eax, [ebp - 0x408]
push str.ptxfile_shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
lea eax, [ebp - 0x208]
neg esi
sbb esi, esi
push 0x25
push eax
inc esi
call fcn.00433220
pop ecx
test eax, eax
pop ecx
je 0x407978
and byte [eax - 1], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.00433220
pop ecx
test eax, eax
pop ecx
je 0x4079aa
inc eax
push str.pnxbndr.exe
push eax
call fcn.00436330
mov esi, eax
pop ecx
neg esi
sbb esi, esi
pop ecx
inc esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00433480
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4079c1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0
push dword [ebp + 8]
call fcn.00433b28
pop ecx
test eax, eax
pop ecx
jne 0x407ac9
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.00442636
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x114]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov esi, 0x4554e0
push esi
push dword [ebp - 4]
call fcn.00434901
pop ecx
test eax, eax
pop ecx
je 0x407abb
push eax
call fcn.0043486b
mov ecx, dword [ebp + 0xc]
push esi
push 0
mov dword [ecx], eax
call fcn.00434901
add esp, 0xc
test eax, eax
je 0x407a87
push eax
call fcn.0043486b
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push esi
push 0
call fcn.00434901
pop ecx
test eax, eax
pop ecx
je 0x407aa1
push eax
call fcn.0043486b
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push esi
push 0
call fcn.00434901
pop ecx
test eax, eax
pop ecx
je 0x407abb
push eax
call fcn.0043486b
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push edi
call fcn.0044265f
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x407dd6
Capabilities:
Get common file path

Disassembly:
sub esp, 0x518
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x520]
push ebp
push esi
mov esi, 0x104
push edi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00406bf0
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [edx + 0x10]
test eax, eax
je 0x407f85
lea eax, [esp + 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x11c]
push str.etrnview.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407acd
pop ecx
test eax, eax
pop ecx
je 0x407fa5
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, 0x45fbb4
push 0x40
push ebp
push 1
push ebx
call edi
mov esi, 0x45fbf4
push 0x400
push esi
push 2
push ebx
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x43
push ebp
push esi
push 0
call ebx
cmp eax, 2
je 0x407f85
xor ecx, ecx
cmp eax, 6
lea eax, [esp + 0x18]
push 0x45f884
sete cl
push eax
mov dword [esp + 0x1c], ecx
call fcn.00406bf0
mov ecx, eax
call fcn.004123cc
lea eax, [esp + 0x424]
mov dword [esp + 0x10], 1
push eax
call fcn.004078f1
test eax, eax
pop ecx
jne 0x407efa
push eax
lea eax, [esp + 0x1c]
push str.application_x_etranscript
push eax
push str.E_Transcript_File
push str.ptxfile
push str..ptx
call fcn.00407b65
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407efa
push 0x400
push esi
push 0xe
jmp 0x407f74
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x224]
push eax
call fcn.00433480
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.00433220
add esp, 0x10
test eax, eax
je 0x407f25
and byte [eax], 0
lea eax, [esp + 0x324]
push 0xff
push eax
push 0x10
push dword [esp + 0x538]
call edi
push 0
lea eax, [esp + 0x328]
push dword [esp + 0x18]
push 1
push eax
lea eax, [esp + 0x230]
push eax
push dword [esp + 0x540]
call fcn.0040766d
mov ecx, dword [esp + 0x28]
add esp, 0x18
test ecx, eax
push 0x400
push esi
jne 0x407f92
push 0x13
push dword [esp + 0x538]
call edi
push 0x10
push ebp
push esi
push 0
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 3
push dword [esp + 0x538]
call edi
push 0x40
push ebp
push esi
push 0
call ebx
push 1
pop eax
jmp 0x407f87
Function at 0x40d0b7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x449aa4
call fcn.00433058
sub esp, 0x164
push esi
lea eax, [ebp - 0x170]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x170]
push str.pnxetkey.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x170]
push 0x11
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d118
lea eax, [ebp - 0x170]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d189
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x6c]
call fcn.00415490
and dword [ebp - 4], 0
push str.Invalid_password.
lea ecx, [ebp - 0x6c]
call fcn.004154af
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00415606
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00415606
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004154a5
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d196
Capabilities:
Get common file path

Disassembly:
mov eax, 0x449ab8
call fcn.00433058
sub esp, 0x164
push edi
lea eax, [ebp - 0x170]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x170]
push str.pnxetkey.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x170]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d1e8
xor eax, eax
jmp 0x40d2a0
push esi
lea ecx, [ebp - 0x6c]
call fcn.00415490
and dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call esi
cmp eax, 0x10
jne 0x40d288
push str.Invalid_password.
lea ecx, [ebp - 0x6c]
call fcn.004154af
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041561d
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041561d
and byte [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
jne 0x40d24e
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00412e52
jmp 0x40d25a
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.0040d08b
pop ecx
test eax, eax
pop ecx
jne 0x40d269
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
jmp 0x40d202
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp + 0xc], 0
je 0x40d283
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop esi
jmp 0x40d291
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004154a5
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e99d
Capabilities:
Read .ini file

Disassembly:
lea eax, [ecx + 4]
push eax
mov eax, dword [ecx]
push dword [esp + 0x10]
push dword [esp + 0xc]
call dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
ret 0xc

Function at 0x4123cc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x449c20
call fcn.00433058
sub esp, 0x260
push ebx
mov dword [ebp - 0x10], ecx
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.00415490
push 0x20
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x412537
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0xfffffffffffffff4
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x18]
push 4
push eax
push edi
call ebx
cmp dword [ebp - 0x18], 0xe79a45c9
jne 0x412489
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x412469
and byte [ebp - 0x26c], al
push eax
push eax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call fcn.0040d196
add esp, 0x10
test eax, eax
jne 0x412489
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004154a5
xor eax, eax
jmp 0x412545
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x18]
test eax, eax
jne 0x412489
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
xor esi, esi
jmp 0x412537
push 2
push 0xfffffffffffffffc
push edi
call esi
lea eax, [ebp - 0x14]
push 4
push eax
push edi
call ebx
cmp eax, 4
jne 0x4124f1
xor ebx, ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0x168]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x168]
push str.etrnview.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x168]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4124f4
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0041223e
test eax, eax
jne 0x412517
jmp 0x4124f4
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push edi
call esi
cmp ebx, 0xffffffff
je 0x412482
push ebx
call esi
lea eax, [ebp - 0x168]
push eax
call fcn.00433570
pop ecx
jmp 0x412482
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push edi
call esi
push ebx
call esi
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 8]
call fcn.00433480
pop ecx
pop ecx
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004154a5
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8