joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40344c
cmp byte [esi + 0x3d], 0
je 0x40344c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40343a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403401
sub eax, 1
je 0x403405
sub eax, 2
jne 0x40343a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ac
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403423
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40343a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ac
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004046ac
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405a6c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0xc]
push 0x1c
call fcn.004046ba
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov ecx, edi
mov dword [esi + 0x14], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x1c], edi
jbe 0x40434a
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
cmp eax, 0x7ffffffe
ja 0x404469
cmp eax, 7
ja 0x404375
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
jmp 0x40440c
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x404390
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x4043b1
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x40446e
add eax, eax
cmp eax, 0x1000
jb 0x4043da
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40446e
push ecx
call fcn.004046ba
add esp, 4
test eax, eax
je 0x4043d4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4043ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test eax, eax
je 0x4043eb
push eax
call fcn.004046ba
add esp, 4
mov ecx, eax
jmp 0x4043ed
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi], ecx
mov dword [esi + 0x14], edi
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0x18], 0x401350
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x20]
add edi, 4
mov dword [ebp - 4], 1
push edi
push 0
push esi
push 0x404510
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x40444c
push 6
mov dword [edi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
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.004046ac
mov esp, ebp
pop ebp
ret 8
call fcn.00401170
call fcn.004010d0
int3

Function at 0x404f4c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404f8b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404f8b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404f8b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404f8b
cmp dword [ecx + 0x74], 0xe
jbe 0x404f8b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4af030]
jne 0x401116
repz ret
jmp fcn.00401d41

Function at 0x40a6cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406ace
and dword [ebp - 4], 0
cmp dword [0x4b1894], 0
mov ebx, eax
jne 0x40a77d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a82e
push eax
call fcn.00406a5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b1894], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b1898], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b189c], eax
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4b18a4], eax
test eax, eax
je 0x40a77d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4b18a0], eax
mov eax, dword [0x4b18a0]
cmp eax, ebx
je 0x40a7d5
cmp dword [0x4b18a4], ebx
je 0x40a7d5
push eax
call fcn.00406ad7
push dword [0x4b18a4]
mov esi, eax
call fcn.00406ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d5
test edi, edi
je 0x40a7d5
call esi
test eax, eax
je 0x40a7cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7cc
test byte [ebp - 0xc], 1
jne 0x40a7d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a80e
mov eax, dword [0x4b1898]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80e
mov eax, dword [0x4b189c]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b1894]
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a82e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x4af030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b6a2d4]
push ebx
mov ebx, dword [0x2b69ff4]
push esi
mov esi, dword [0x4b0060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40ceb1
push str.tiyayejetupoxasowujozizoc
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b6a2d4]
mov dword [0x2b69ff0], esi
cmp eax, 0x114e
jne 0x40ced9
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.Gufut_dawasu_xekewoxocig_luraseno
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b6a2d4]
cmp eax, 0x2f
jne 0x40cf07
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push edi
push ebx
call fcn.0040cd40
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x403cdf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0044cc29
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x403e6d
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00403cad
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x403eff
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403ee8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ee8
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x403ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x403f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x404007
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x4041b9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
call fcn.00404007
test eax, eax
pop ecx
je 0x4041d3
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0044c1cc
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0044cbf9
add esp, 0x10
test eax, eax
je 0x404208
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004041b9
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
leave
ret

Function at 0x40428f
Capabilities:
Get common file path

Disassembly:
cmp word [0x470120], 0
push esi
mov esi, 0x470120
jne 0x4042b0
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x47032c], eax
push esi
push dword [esp + 0xc]
call fcn.0044c1cc
mov eax, dword [0x47032c]
pop ecx
pop ecx
pop esi
ret

Function at 0x404621
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x46002c
push eax
push eax
push dword [esp + 0x14]
push 0x46066c
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret
Function at 0x4056b0
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x46f970
push dword [esp + 0xc]
push esi
push 0x46002c
push dword [esp + 0x14]
push 0x46fb80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x4056d5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0045a220
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call fcn.0044c4b0
add esp, 0xc
push 0x46f970
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x46002c
push dword [ebp + 8]
push 0x46fb80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405744
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call fcn.0044c1cc
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405748
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0045a220
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call fcn.0044c4b0
add esp, 0xc
mov edi, 0x46f970
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x46002c
push dword [ebp + 8]
mov esi, 0x46fb80
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4057af
cmp dword [ebp + 0x10], 0
jne 0x4057af
xor eax, eax
jmp 0x4057bd
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x405b34
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404007
test eax, eax
pop ecx
je 0x405bbb
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x46f970
push edi
call fcn.0044c1cc
push str.general
mov esi, 0x46fb80
push esi
call fcn.0044c1cc
add esp, 0x10
push edi
push 0
push 0x460718
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x46fc08
mov dword [0x46fc04], eax
call fcn.004056b0
push 0x3f
push str.TranslatorName
mov esi, 0x46fc88
call fcn.004056b0
push 0xff
push str.TranslatorURL
mov esi, 0x46fd08
call fcn.004056b0
add esp, 0x18
pop edi
pop esi
ret

Function at 0x406c14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0045a220
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call fcn.0044c4b0
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0044f1a0
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x407d05
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x2ac], edi
je 0x407dcb
cmp dword [esi + 0x2b4], edi
je 0x407d9c
push 0x2b0
lea eax, [esp + 0x230]
push edi
push eax
mov dword [esp + 0x234], edi
call fcn.0044c4b0
push 0x208
lea eax, [esp + 0x2e]
push edi
push eax
mov word [esp + 0x34], di
call fcn.0044c4b0
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2a0], eax
push eax
jmp 0x407dbc
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push edi
push eax
mov dword [esi + 0x2a0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a0]
push 1
push 0x1003
push dword [esi + 0x298]
call ebx
cmp dword [esi + 0x2b0], edi
je 0x407e01
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push edi
push eax
mov dword [esi + 0x2a4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a4]
push edi
push 0x1003
push dword [esi + 0x298]
call ebx
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov dword [esi + 0x29c], eax
call ebp
push 0x1000
push 0x10
push 0x10
push edi
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push 0x10
push 0x10
push edi
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
push dword [esi + 0x29c]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x29c]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x29c]
call ebp
push dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x14]
call ebp
mov eax, dword [esi + 0x29c]
mov esi, dword [esi + 0x298]
push eax
push edi
push 0x1208
push esi
call fcn.00402e90
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x409189
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4091b8
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x460d9c
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x694]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push esi
call fcn.00408c54
test eax, eax
pop edi
je 0x40923d
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409218
lea eax, [ebp - 0x208]
push eax
call fcn.00403e6d
pop ecx
jmp 0x40921e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409230
push dword [esi + 0x208]
mov ecx, eax
call fcn.00403d26
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret

Function at 0x409419
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi + 0x694]
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.004066c7
test eax, eax
je 0x409453
mov eax, dword [ebp - 4]
push 5
push 0
push 0
call fcn.004022e0
push eax
push 0x46066c
push dword [esi + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, edi
call fcn.004060cd
pop edi
leave
ret
Function at 0x40aeb3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0045a220
cmp dword [ebp + 8], 0
je 0x40af18
test esi, esi
je 0x40af06
push 0x22
push esi
call fcn.0044c895
test eax, eax
pop ecx
pop ecx
je 0x40af06
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call fcn.0044c225
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x40af0a
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret

Function at 0x40af30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0045a220
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40af8f
call fcn.0044c4b0
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00404869
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40afd0
call fcn.0044c4b0
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x46002c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.004048f2
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40afd6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40aff4
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ae66
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40b021
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b05a
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40b056
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x40b820
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, eax
xor eax, eax
cmp dword [ebx + 4], eax
mov dword [ebp - 4], eax
je 0x40b8fa
push esi
push edi
push 0x11
pop ecx
mov esi, str.SELECT_receiver_data_FROM_cfurl_cache_receiver_data_WHERE_entry_ID_
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
push 0xba
push eax
lea eax, [ebp - 0xce]
push eax
movsw word es:[edi], word [esi]
call fcn.0044c4b0
xor eax, eax
mov byte [ebp - 0x10], 0
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0044f4d3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0044f510
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 4]
call fcn.0043b69a
mov esi, dword [ebp + 8]
add esp, 0x34
test esi, esi
je 0x40b8f8
push esi
call fcn.00422877
cmp eax, 0x64
pop ecx
jne 0x40b8f8
push 0
push esi
call fcn.00422c2f
push 0
push esi
mov edi, eax
call fcn.00422c09
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00403cc6
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x40b8f8
push edi
push ebx
push esi
call fcn.0040481a
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8

Function at 0x40bb8e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
call fcn.0040bb5f
xor edi, edi
cmp dword [0x46ffa0], edi
je 0x40bbb9
call fcn.00404184
push edi
push 0x1c
push ebx
push edi
call dword [0x46ffa0]
jmp 0x40bc27
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call fcn.0044c4b0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040b007
add esp, 0x18
cmp eax, edi
jne 0x40bc10
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.0040b021
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call fcn.0044c1cc
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
leave
ret

Function at 0x40d710
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
call fcn.0044a195
test eax, eax
jne 0x40d72d
push 0xa
call fcn.0040ddd1
test eax, eax
pop ecx
jne 0x40d732
push 7
pop eax
jmp 0x40d761
push eax
call fcn.0040dfd1
push 0x24
push 0
mov esi, 0x471880
push esi
call fcn.0044c4b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x46d650
call fcn.0040d7f6
pop ecx
pop ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4106e1
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x41070a
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x462300]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x4106ea
pop esi
ret