joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x44819c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44819c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4481a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4481a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4481ac], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4481a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x44819c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x4481a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x4481ac], edi
je 0x40d75e
push eax
call ebx
push dword [0x4481ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x4481a0]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x4481a4]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44819c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40144d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401410
test dl, dl
je 0x40140c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401410
add eax, 2
add ecx, 2
test dl, dl
jne 0x4013f0
xor eax, eax
jmp 0x401415
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40143b
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40143b
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4013e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b80
mov esp, ebp
pop ebp
ret
Function at 0x403040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404678
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4031d2
cmp byte [ebx + 0x49], 0
je 0x4031d2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4031c6
lea esi, [ebp - 0x2c]
call fcn.00402da0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4030b3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4030eb
dec eax
je 0x4030ef
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x4031cd
call fcn.004020c0
xor al, al
jmp 0x4031d4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4030ff
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40312d
cmp edi, 0x10
jae 0x40310e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4031be
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4031ca
test esi, esi
jne 0x4030a7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4031ef
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4031ef
cmp edi, esi
jae 0x4031a7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403600
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4030a7
mov ecx, eax
cmp edi, 0x10
jae 0x403183
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40319e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4030a1
test esi, esi
jne 0x403179
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4031b6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4030a1
lea esi, [ebp - 0x2c]
call fcn.004020c0
xor al, al
jmp 0x4031d4
lea esi, [ebp - 0x2c]
call fcn.004020c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403b80
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x403b80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407018]
jne 0x403b8a
repz ret
jmp fcn.00403f9d
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x228]
sub esp, 0x23c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call sym._46
sub esp, 0x10
test eax, eax
jne 0x4015a5
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [ebp - 0x22c], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x22c]
jne 0x40155b
test byte [ebp + 0x10], 1
mov eax, dword [ebp - 0x228]
je 0x401541
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015a5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014e8
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408de1
test eax, eax
push edx
je 0x401596
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015a5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403c0b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x429880]
cmp dword [ebp + 8], 0
je 0x403c36
test eax, eax
je 0x403c2a
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x429880], 0
jmp 0x403ca0
test eax, eax
je 0x403c49
mov dword [esp], 0
call sym._57
push edx
jmp 0x403ca0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x43bac0]
jbe 0x403ca0
mov eax, dword [0x43baec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._9
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x429880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x407938
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c8d0
mov dword [ebp - 0x24], 0x40c8d0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c8c0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
je 0x407995
xor eax, eax
jmp 0x4079c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4079c2
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407991
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4079fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x43a3c0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x43a3c0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407a76
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407a7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407d01
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407d2f
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407d3a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._41
cmp eax, 0xffffffff
push ecx
je 0x407d8f
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407d87
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x407d80
test byte [ebp + 0xc], 4
jne 0x407d8f
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407d8f
mov eax, 1
jmp 0x407d91
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407d64
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x408125
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x30
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x10], 0x800
sbb eax, eax
not eax
and eax, 0x100
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._46
sub esp, 0x10
test eax, eax
je 0x408174
mov word [ebx], 0
jmp 0x4081c9
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push eax
mov word [ebx + 0x7fe], 0
jne 0x40816d
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x40816d
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408745
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov dword [0x438bc0], 0x55004e
mov dword [0x438bc4], 0x4c
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test ebx, ebx
jne 0x40879e
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4383c0
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408993
cmp eax, 0x400
jle 0x4087ef
jmp 0x408993
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._43
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x438bc0
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408993
cmp eax, 0x400
jle 0x40876f
jmp 0x408993
mov dword [esp + 0xc], 0x4383c0
mov dword [esp + 8], 0x438bc0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x437fc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43ba60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4383c0
mov dword [esp + 4], eax
call sym.3
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4383c0
call sym._43
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x408993
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [esp], 0x40
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push ebx
push ebx
mov ebx, eax
je 0x408989
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._
sub esp, 0xc
test eax, eax
je 0x408989
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call sym._39
test eax, eax
push edx
lea ecx, [ebx + esi]
push edx
jne 0x4088e9
add esi, 0xa
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x408929
add eax, 0xa
mov dword [esp + 4], 0x40c6d3
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
call sym._39
test eax, eax
push ecx
mov dword [ebp - 0x20], eax
push ecx
mov edx, esi
je 0x408929
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x408921
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x408912
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x437fc0
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._40
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407ead
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408a18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4393c0
mov dword [esp + 4], eax
call sym._48
push ebx
push ebx
mov dword [esp], 0x4393c0
call sym.1
test eax, eax
push edx
jne 0x408a49
xor eax, eax
jmp 0x408ac5
mov dword [esp], eax
mov ebx, eax
call sym._51
test byte [0x43bac4], 0x80
push ecx
je 0x408a6b
mov ax, word [ebx]
test ax, ax
je 0x408a45
cmp ax, 0x5c
je 0x408a45
sub ebx, 0x4393c0
sar ebx, 1
mov dword [esp], 0x4393c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x4393c0
jge 0x408aaa
call sym._53
test eax, eax
push edx
je 0x408a9b
test byte [eax], 0x10
je 0x408a45
mov dword [esp], 0x4393c0
call fcn.00407b6a
push eax
jmp 0x408a73
call sym._50
push eax
mov dword [esp], 0x4393c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x401003
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0xe0]
mov ebx, edx
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xd2]
push eax
movzx eax, word [ebp - 0xd6]
push eax
movzx eax, word [ebp - 0xd8]
push eax
movzx eax, word [ebp - 0xda]
push eax
movzx eax, word [ebp - 0xde]
push eax
movzx eax, word [ebp - 0xe0]
push eax
lea eax, [ebp - 0xcc]
push str._d__d__d__d:_d:_d:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea ecx, [ebp - 0xd0]
add eax, eax
push 0
push ecx
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401898
leave
ret
Function at 0x40a8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40a8bf
pop dword [ebp - 0x20]
mov eax, 0xeef13d02
add eax, 0x114f6bbd
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x6196650a
add dword [ebp - 0x30], 0xecbbe041
mov dword [ebp - 0x2c], 0xf04d7519
sub dword [ebp - 0x2c], 0xbe1a28d4
mov dword [ebp - 0x28], 0x34a60b
add dword [ebp - 0x28], 0x4c179e23
mov dword [ebp - 0x24], 0x5c17307a
add dword [ebp - 0x24], 0xa3e8cf86
lea eax, [ebp - 0x30]
push eax
mov eax, 0x278b740
sub eax, 0x23766c0
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x1d7787e9
sub dword [ebp - 0x30], 0xa9051e93
mov dword [ebp - 0x2c], 0x1e04d4d2
sub dword [ebp - 0x2c], 0xdc98735d
mov dword [ebp - 0x28], 0xdf47bbc2
sub dword [ebp - 0x28], 0x7bd84f56
mov dword [ebp - 0x24], 0xde07d699
sub dword [ebp - 0x24], 0xde07d699
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3e6f8
push 0
call eax
mov ecx, 0xe8a01c36
add ecx, 0x17603b48
mov esi, eax
mov edi, 0x41f400
add edi, dword [ebp - 0x20]
mov ebx, 0xacd62f84
add dword [ebp - 0x10], ebx
mov edx, dword [edi]
xor dword [ebp - 4], eax
sub edx, ebx
sub dword [ebp - 0x10], eax
mov dword [esi], edx
mov dword [ebp - 4], 0xa172ab9a
add esi, 4
add edi, 4
loop 0x40a9d0
add eax, 0xdc6d2c4f
add eax, 0x2394247c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69cde6
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], ecx
lea ecx, [ebp - 0x120]
call fcn.00401490
mov dword [ebp - 4], 0
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.006665c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x11c]
push edx
push 0x6c0f70
lea eax, [ebp - 0x120]
push eax
call fcn.004017f0
add esp, 0xc
push str.BpaConfig.ini
push 0x5c
lea ecx, [ebp - 0x120]
call fcn.00401220
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x120]
call fcn.00401270
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
push ecx
push 0x6c0f84
lea edx, [ebp - 0x120]
push edx
call fcn.004017f0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.004014d0
lea ecx, [ebp - 0x120]
call fcn.00489570
push eax
push 0xffffffffffffffff
push str.LoopQueryPorlinWnetVer
push str.BpaConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401199
mov eax, dword [ebp - 0x124]
push eax
push str.Get_BpaConfig_LoopQueryPorlinWnetVer_fail.lasterror_d._r_n
call fcn.0066610b
add esp, 8
mov ecx, dword [ebp - 0x12c]
mov byte [ecx + 4], 1
jmp 0x4011bb
cmp dword [ebp - 0x10], 0
jne 0x4011b1
cmp dword [ebp - 0x10], 0
setne dl
mov eax, dword [ebp - 0x12c]
mov byte [eax + 4], dl
jmp 0x4011bb
mov ecx, dword [ebp - 0x12c]
mov byte [ecx + 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004014d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret