joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40aaeb
cmp dword [ebx + 4], 0xffffffff
jne 0x40aaeb
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa76
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40aaae
cmp eax, 0x2f
je 0x40aaae
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40aa9a
mov edi, esi
mov esi, 0x42109c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c5b3
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.00409ed9
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40aaf0
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40bf64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40bf6e
repz ret
jmp fcn.00410a61
Function at 0x41c4c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004116f6
and dword [ebp - 0x14], 0
cmp dword [0x428294], 0
mov dword [ebp - 0x18], eax
jne 0x41c576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c61e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fd4
push ebx
call edi
test eax, eax
je 0x41c61e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428294], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428298], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42829c], eax
call edi
push eax
call esi
mov dword [0x4282a4], eax
test eax, eax
je 0x41c576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4282a0], eax
mov eax, dword [0x4282a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c5cf
cmp dword [0x4282a4], ecx
je 0x41c5cf
push eax
call esi
push dword [0x4282a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c5cf
test ebx, ebx
je 0x41c5cf
call edi
test eax, eax
je 0x41c5c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c5c6
test byte [ebp - 8], 1
jne 0x41c5cf
or dword [ebp + 0x10], 0x200000
jmp 0x41c602
mov eax, dword [0x428298]
cmp eax, dword [ebp - 0x18]
je 0x41c602
push eax
call esi
test eax, eax
je 0x41c602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c602
mov eax, dword [0x42829c]
cmp eax, dword [ebp - 0x18]
je 0x41c602
push eax
call esi
test eax, eax
je 0x41c602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428294]
call esi
test eax, eax
je 0x41c61e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x5e801d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e8038
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ad25d]
pop edx
test eax, eax
je 0x5e810a
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e80f9
test dword [ebp - 0x2a8], 1
jne 0x5e80f9
and dword [ebp - 0x2a8], 0x100
jne 0x5e80f9
push esi
push edx
push 4
push esi
call dword [edx + 0x122d384a]
pop edx
pop esi
test eax, eax
je 0x5e809c
jmp 0x5e80f9
cmp word [esi], 0x5a4d
jne 0x5e80f9
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e80f9
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3836]
pop edx
test eax, eax
je 0x5e80f9
lea eax, [ebp - 0x28c]
push eax
call fcn.005e7f79
test eax, eax
jne 0x5e80f2
jmp 0x5e80f9
mov eax, esi
jmp 0x5e810a
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e8038
pop esi
leave
ret 4
Function at 0x405080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4a7584]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4a80f4]
mov ecx, dword [0x4a80f8]
mov edx, eax
add edx, 0xa171ba70
sub edx, 1
sub edx, 0xa171ba70
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
and bl, 1
mov byte [ebp - 0x12], bl
cmp ecx, 0xa
setl bl
and bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0x5bfe9b6b
mov eax, dword [ebp - 0x18]
mov ecx, eax
sub ecx, 0xabb61762
mov dword [ebp - 0x1c], eax
je 0x4051cb
jmp 0x4050ed
mov eax, dword [ebp - 0x1c]
sub eax, 0x2758584
je 0x4051b7
jmp 0x405100
mov eax, dword [ebp - 0x1c]
sub eax, 0x2b6a58e8
je 0x405151
jmp 0x405113
mov eax, dword [ebp - 0x1c]
sub eax, 0x5bfe9b6b
je 0x40512b
jmp 0x405126
jmp 0x4051eb
mov al, byte [ebp - 0x12]
mov cl, byte [ebp - 0x11]
mov dl, al
and dl, cl
xor al, cl
or dl, al
test dl, 1
mov esi, 0x2b6a58e8
mov edi, 0xabb61762
cmovne edi, esi
mov dword [ebp - 0x18], edi
jmp 0x4051eb
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4a8088], eax
mov eax, dword [0x4a80f4]
mov ecx, dword [0x4a80f8]
mov edx, eax
add edx, 0xb63392ff
sub edx, 1
sub edx, 0xb63392ff
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
cmp ecx, 0xa
setl bh
mov al, bl
and al, bh
xor bl, bh
or al, bl
test al, 1
mov ecx, 0x2758584
mov edx, 0xabb61762
cmovne edx, ecx
mov dword [ebp - 0x18], edx
jmp 0x4051eb
mov eax, dword [ebp - 0x10]
xor eax, ebp
mov ecx, eax
call fcn.00487d26
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4a8088], eax
mov dword [ebp - 0x18], 0x2b6a58e8
jmp 0x4050d4
Function at 0x48908a
Capabilities:
Parse pe header

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

Function at 0x48f400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48f42d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48f42d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x48f77d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49dba8
push 0x49dba0
push str.FlsAlloc
push 0x1f
call fcn.0048fa60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f7b1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48f7b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48f7fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49dbb8
push 0x49dbb0
push str.FlsGetValue
push 0x21
call fcn.0048fa60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f832
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48f83a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49dbc0
push 0x49dbb8
push str.FlsSetValue
push 0x22
call fcn.0048fa60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f874
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x49414f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4941ec
push ebx
push esi
call fcn.004941ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00494053
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x494199
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4941eb
push edi
push eax
call fcn.0049160d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4941b9
call fcn.00490c62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4941ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00494053
add esp, 0x20
test eax, eax
jne 0x4941d8
push edi
call fcn.00490c62
jmp 0x4941e0
push ebx
call fcn.00490c62
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x52ea01fc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x3fa47e7c
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401e86
Capabilities:
Query environment variable

Disassembly:
push edi
call fcn.00405abe
push 0x2e
push edi
call sub.msvcrt.dll_wcsrchr
add esp, 0xc
test eax, eax
je 0x401e9f
and word [eax], 0
push esi
push str..cfg
push edi
call sub.msvcrt.dll_wcscat
mov eax, dword [0x417b3c]
mov esi, dword [eax + 0x1ba8]
pop ecx
pop ecx
push str._cfg
call fcn.00406e24
test eax, eax
pop esi
jl 0x401ee7
lea ecx, [eax + 1]
mov eax, dword [0x417b3c]
mov eax, dword [eax + 0x1ba8]
push 0x104
push edi
call fcn.00406e14
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
ret
Function at 0x402eb6
Capabilities:
Enumerate files on windows
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x790
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x232]
push ebx
push eax
mov word [ebp - 0x234], bx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x234]
add esp, 0xc
push eax
call fcn.00405abe
pop ecx
lea eax, [ebp - 0x234]
push 0x2e
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x402f04
mov word [eax], bx
lea eax, [ebp - 0x234]
push str..cfg
push eax
call sub.msvcrt.dll_wcscat
mov eax, dword [0x417b3c]
mov esi, dword [eax + 0x1ba8]
pop ecx
pop ecx
push str._cfg
call fcn.00406e24
cmp eax, ebx
jl 0x402f56
push 0x104
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [eax + 1]
mov eax, dword [0x417b3c]
mov eax, dword [eax + 0x1ba8]
call fcn.00406e14
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push 0x24c
lea eax, [ebp - 0x488]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x234]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4030f3
cmp word [ebp - 0x760], 0x2e
jne 0x402fad
lea eax, [ebp - 0x78c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402f8d
jmp 0x402fc3
mov ecx, 0x94
lea esi, [ebp - 0x78c]
lea edi, [ebp - 0x48c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp esi, ebx
je 0x4030f3
mov edi, dword [ebp - 0x46c]
cmp edi, 0xa
jbe 0x4030f3
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x1388
call fcn.00406f68
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x234]
push eax
push edi
push esi
push ebx
push ebx
push ebx
mov word [esi], bx
mov word [esi + 2], bx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [esi], bx
mov dword [ebp - 8], esi
je 0x4030eb
mov esi, dword [ebp - 8]
push 7
push esi
push 0x4134e8
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x4030d1
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
lea ebx, [esi + 0xe]
lea esi, [ebp - 0x14]
stosb byte es:[edi], al
call fcn.00406658
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.00402d3b
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
mov edi, eax
je 0x4030d1
and dword [edi + 0x540], 0
inc ebx
push ebx
push 0
mov dword [edi + 0x320], ebx
call fcn.00401ee8
lea eax, [ebp - 0x53c]
push eax
lea eax, [edi + 0x10]
push eax
mov esi, 0x4182dc
mov byte [ebp - 0x53c], 0
mov byte [ebp - 0x43c], 0
mov byte [ebp - 0x33c], 0
call fcn.0040b205
test eax, eax
je 0x4030c9
push 0xff
lea eax, [edi + 0x11c]
push eax
lea eax, [ebp - 0x53c]
push eax
call fcn.0040653e
add esp, 0xc
mov dword [edi + 0x544], ebx
xor ebx, ebx
mov esi, dword [ebp - 8]
push esi
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax*2 + 2]
cmp word [eax], bx
pop ecx
mov dword [ebp - 8], eax
jne 0x403020
lea esi, [ebp - 0x20]
call fcn.00406f53
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405635
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 0x4057bc
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 0x405819
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 0x405817
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 0x405824
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.00405603
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x4058b6
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 0x40589f
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 0x40589f
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 0x4058a8
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 0x4058bf
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 0x405a8f
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 0x405c4b
Capabilities:
Get common file path

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

Disassembly:
push 5
mov eax, 0x4134d0
push eax
push eax
push dword [esp + 0x14]
push str.open
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 0x40625c
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 0x414aac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x406751
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 [0x418508], 0
mov esi, 0x418508
jne 0x406799
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x418714], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.00405659
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 0x4067d3
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x407057
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4070a0
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.IcmpCreateFile
push eax
call edi
push str.IcmpCloseHandle
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.IcmpSendEcho
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Icmp6SendEcho2
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.Icmp6CreateFile
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
ret

Function at 0x40804a
Capabilities:
Read .ini file

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

Function at 0x40806f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412050
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x417c68
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4134d0
push dword [ebp + 8]
push 0x417e78
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4080de
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 0x4080e2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412050
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, 0x417c68
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4134d0
push dword [ebp + 8]
mov esi, 0x417e78
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408149
cmp dword [ebp + 0x10], 0
jne 0x408149
xor eax, eax
jmp 0x408157
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 0x4084aa
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00405a8f
test eax, eax
pop ecx
je 0x408531
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x417c68
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x417e78
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x414790
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, 0x417f00
mov dword [0x417efc], eax
call fcn.0040804a
push 0x3f
push str.TranslatorName
mov esi, 0x417f80
call fcn.0040804a
push 0xff
push str.TranslatorURL
mov esi, 0x418000
call fcn.0040804a
add esp, 0x18
pop edi
pop esi
ret

Function at 0x409777
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412050
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