joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401528
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x2c]
call fcn.00402030
mov ecx, esi
lea edx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.004013d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x40155f
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x84]
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], eax
mov eax, esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401581
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x64]
call fcn.00402030
mov ecx, esi
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004013d0
cmp dword [ebp - 0x50], 0x10
jb 0x4015b7
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [0x421dfc]
mov edi, 8
cmp dword [0x421e10], edi
jae 0x4015cf
mov edx, 0x421dfc
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4015da
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x4015e5
lea eax, [ebp - 0x80]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp dword [ebp - 0x34], edi
jb 0x401603
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], edi
jb 0x401625
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004068fb
mov esp, ebp
pop ebp
ret 4
Function at 0x4068fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x406905
repz ret
jmp fcn.00406d14

Function at 0x408f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x40906b
test edi, edi
je 0x40906b
test esi, esi
je 0x40906b
push 2
push esi
lea eax, [ebp - 4]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 2
je 0x408fb0
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5a4d
cmp word [ebp - 4], cx
jne 0x408fa6
push 4
lea edx, [esi + 0x3c]
push edx
lea eax, [ebp - 8]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 4
jne 0x408fa6
mov eax, dword [ebp + 8]
add esi, dword [ebp - 8]
test eax, eax
je 0x408fdf
mov dword [eax], esi
push 2
lea edx, [esi + 4]
push edx
lea eax, [ebp - 4]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 2
jne 0x408fa6
movzx eax, word [ebp - 4]
cmp eax, 0x14c
je 0x409038
cmp eax, 0x8664
jne 0x408fa6
push 0x108
push esi
push ebx
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 0x108
jne 0x408fa6
mov eax, dword [ebx]
sub eax, 0x4550
neg eax
sbb eax, eax
and eax, 0x80003fc5
add eax, 0x40
pop esi
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
push ebx
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 0xf8
jne 0x408fa6
mov eax, dword [ebx]
sub eax, 0x4550
neg eax
sbb eax, eax
and eax, 0x80003fe5
add eax, 0x20
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43cfe0
Capabilities:
Create pipe
Create process on windows
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.0044c740
mov eax, dword [0x46413c]
mov ecx, dword [0x463bc8]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x43d114
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x46413c], 0x959
jne 0x43d0fe
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push 0x43b8d4
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x1c08]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.0043cd60
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x43d01e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43edd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45185b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x43babc
call fcn.0043fa34
push 4
mov dword [ebp - 4], 0
call fcn.00440d7c
mov edi, eax
add esp, 4
test edi, edi
je 0x43ee43
push ebx
call fcn.0043f7e8
mov dword [edi], eax
call fcn.0043f5a7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043f9f5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43ee38
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
pop ebx
jmp 0x43ee45
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x441404
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4545e0]
jne 0x44140e
repz ret
jmp fcn.004461bc
Function at 0x44be74
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4545e0]
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.00444d2a
and dword [ebp - 0x14], 0
cmp dword [0x45b238], 0
mov dword [ebp - 0x18], eax
jne 0x44bf27
push 0x403f78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44bfcf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f6c
push ebx
call edi
test eax, eax
je 0x44bfcf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f5c
push ebx
mov dword [0x45b238], eax
call edi
push eax
call esi
push 0x403f48
push ebx
mov dword [0x45b23c], eax
call edi
push eax
call esi
push 0x403f2c
push ebx
mov dword [0x45b240], eax
call edi
push eax
call esi
mov dword [0x45b248], eax
test eax, eax
je 0x44bf27
push 0x403f14
push ebx
call edi
push eax
call esi
mov dword [0x45b244], eax
mov eax, dword [0x45b244]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44bf80
cmp dword [0x45b248], ecx
je 0x44bf80
push eax
call esi
push dword [0x45b248]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44bf80
test ebx, ebx
je 0x44bf80
call edi
test eax, eax
je 0x44bf77
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44bf77
test byte [ebp - 8], 1
jne 0x44bf80
or dword [ebp + 0x10], 0x200000
jmp 0x44bfb3
mov eax, dword [0x45b23c]
cmp eax, dword [ebp - 0x18]
je 0x44bfb3
push eax
call esi
test eax, eax
je 0x44bfb3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44bfb3
mov eax, dword [0x45b240]
cmp eax, dword [ebp - 0x18]
je 0x44bfb3
push eax
call esi
test eax, eax
je 0x44bfb3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45b238]
call esi
test eax, eax
je 0x44bfcf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44bfd1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441404
leave
ret
Function at 0x4ac1d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c000]
push edi
or ebp, 0xffffffff
jmp 0x4ac1f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ac1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac1e8
mov eax, 1
add ebx, ebx
jne 0x4ac20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ac21c
jne 0x4ac23b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac23b
dec eax
add ebx, ebx
jne 0x4ac228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ac200
add ebx, ebx
jne 0x4ac237
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ac28d
xor ecx, ecx
sub eax, 3
jb 0x4ac253
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ac2c2
sar eax, 1
mov ebp, eax
jmp 0x4ac25e
add ebx, ebx
jne 0x4ac25e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac22c
inc ecx
add ebx, ebx
jne 0x4ac26c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac22c
add ebx, ebx
jne 0x4ac279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ac26e
jne 0x4ac28a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ac26e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ac2ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ac29e
jmp 0x4ac1ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ac2ac
add edi, ecx
jmp 0x4ac1ee
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ac2ca
cmp byte [edi], 0x4c
jne 0x4ac2ca
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 0x4ac2cf
lea edi, [esi + 0xa8000]
mov eax, dword [edi]
or eax, eax
je 0x4ac347
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb0884]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb09d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ac2fc
mov ecx, edi
jns 0x4ac32b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb09dc]
or eax, eax
je 0x4ac341
mov dword [ebx], eax
add ebx, 4
jmp 0x4ac319
call dword [esi + 0xb09ec]
mov ebp, dword [esi + 0xb09e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4ac37b
sub esp, 0xffffff80
jmp 0x417770
Function at 0x40392a
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.__p__EmptyClipboard]
push dword [ebp + 8]
call fcn.00403779
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x4039b9
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.ir_rtl___tr__td__GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.ir_rtl___tr__td__GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4039a2
push ebx
call dword [sym.imp.ir_rtl___tr__td__GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ir_rtl___tr__td__ReadFile]
test eax, eax
je 0x4039a2
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.ir_rtl___tr__td__GlobalUnlock]
push ebx
push 1
call dword [sym.imp.__p__SetClipboardData]
jmp 0x4039ab
call dword [sym.imp.ir_rtl___tr__td__GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ir_rtl___tr__td__CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x4039c2
call dword [sym.imp.ir_rtl___tr__td__GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.__p__CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

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

Function at 0x403c0f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00403a86
test eax, eax
pop ecx
je 0x403c29
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub..net___target_newwin___s__a___h4__p__strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub..net___target_newwin___s__a___h4__p___mbsrchr
add esp, 0x10
test eax, eax
je 0x403c5d
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00403c0f
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.ir_rtl___tr__td__CreateDirectoryA]
leave
ret

Function at 0x403ce2
Capabilities:
Get common file path

Disassembly:
cmp byte [0x410ce8], 0
push esi
mov esi, 0x410ce8
jne 0x403d02
push 0x104
push esi
call dword [sym.imp.ir_rtl___tr__td__GetWindowsDirectoryA]
mov dword [0x410df0], eax
push esi
push dword [esp + 0xc]
call sub..net___target_newwin___s__a___h4__p__strcpy
mov eax, dword [0x410df0]
pop ecx
pop ecx
pop esi
ret

Function at 0x4040ad
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40d3e0
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.___s__a___h4__p__ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret
Function at 0x405517
Capabilities:
Read .ini file

Disassembly:
push 0x410950
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x40d3e0
push dword [esp + 0x14]
push 0x410a58
call dword [sym.imp.ir_rtl___tr__td__GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x40553b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040bf50
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub..net___target_newwin___s__a___h4__p__memset
add esp, 0xc
push 0x410950
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40d3e0
push dword [ebp + 8]
push 0x410a58
call dword [sym.imp.ir_rtl___tr__td__GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x4055a7
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub..net___target_newwin___s__a___h4__p__strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4055ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040bf50
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub..net___target_newwin___s__a___h4__p__memset
add esp, 0xc
mov edi, 0x410950
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40d3e0
push dword [ebp + 8]
mov esi, 0x410a58
push esi
call dword [sym.imp.ir_rtl___tr__td__GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x405613
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.ir_rtl___tr__td__WritePrivateProfileStringA]
jmp 0x405615
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4058f9
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00403a86
test eax, eax
pop ecx
je 0x405980
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x410950
push edi
call sub..net___target_newwin___s__a___h4__p__strcpy
push str.general
mov esi, 0x410a58
push esi
call sub..net___target_newwin___s__a___h4__p__strcpy
add esp, 0x10
push edi
push 0
push 0x40d8d4
push esi
call dword [sym.imp.ir_rtl___tr__td__GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x410aa0
mov dword [0x410a9c], eax
call fcn.00405517
push 0x3f
push str.TranslatorName
mov esi, 0x410ae0
call fcn.00405517
push 0xff
push str.TranslatorURL
mov esi, 0x410b20
call fcn.00405517
add esp, 0x18
pop edi
pop esi
ret
Function at 0x408b19
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3a4]
push edi
xor ebx, ebx
cmp dword [eax + 0x250], ebx
push 0x104
push ebx
je 0x408c2b
lea eax, [ebp - 0x20f]
push eax
mov byte [ebp - 0x210], bl
call sub..net___target_newwin___s__a___h4__p__memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov eax, edi
call fcn.00401dd0
push eax
lea esi, [ebp - 0x210]
call fcn.00401abd
mov eax, esi
push eax
call sub..net___target_newwin___s__a___h4__p__strlen
cmp byte [ebp - 0x210], bl
pop ecx
pop ecx
jne 0x408b85
add edi, 0x3d
push edi
jmp 0x408b9c
cmp eax, ebx
jle 0x408bab
cmp byte [ebp + eax - 0x211], 0x5c
jne 0x408bab
lea ecx, [edi + 0x3d]
call fcn.00403b21
push eax
lea edi, [ebp - 0x210]
call fcn.00404262
mov edi, dword [ebp + 0xc]
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub..net___target_newwin___s__a___h4__p__memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.004089af
push esi
lea eax, [ebp - 0x317]
push ebx
push eax
mov byte [ebp - 0x318], bl
call sub..net___target_newwin___s__a___h4__p__memset
lea eax, [ebp - 0x108]
push eax
lea esi, [ebp - 0x318]
call fcn.00403b3a
mov eax, esi
push eax
call fcn.00403c0f
add esp, 0x14
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 0x3d]
push eax
call dword [sym.imp.ir_rtl___tr__td__CopyFileA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3a4]
jmp 0x408c71
lea eax, [ebp - 0x107]
push eax
mov byte [ebp - 0x108], bl
call sub..net___target_newwin___s__a___h4__p__memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [edi + 0x3d]
call fcn.00403b21
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.004089af
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 0x3d]
push eax
call dword [sym.imp.ir_rtl___tr__td__CopyFileA]
mov eax, dword [esi + 0x3a4]
cmp dword [eax + 0x254], ebx
je 0x408c90
cmp dword [edi + 0x10], ebx
je 0x408c90
add edi, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00404383
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408da8
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.ir_rtl___tr__td__GetTempPathA]
test eax, eax
jne 0x408dda
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ir_rtl___tr__td__GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40dba8
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 0x104], 0
call dword [sym.imp.ir_rtl___tr__td__GetTempFileNameA]
mov eax, dword [esi + 0x3a8]
push 1
push 2
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0040896c
test eax, eax
je 0x408e59
push dword [esi + 0x108]
call dword [sym.imp.__p__OpenClipboard]
test eax, eax
je 0x408e36
lea eax, [ebp - 0x104]
push eax
call fcn.0040392a
pop ecx
jmp 0x408e3c
call dword [sym.imp.ir_rtl___tr__td__GetLastError]
test eax, eax
je 0x408e4c
push dword [esi + 0x108]
call fcn.004037ef
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ir_rtl___tr__td__DeleteFileA]
pop edi
pop esi
leave
ret

Function at 0x408ef1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 0x174]
push 0x40d3e0
call fcn.004046f2
push 0x9c63
push dword [esi + 0x3a8]
push esi
call fcn.00408cfa
mov eax, edi
call fcn.004046e6
push dword [esi + 0x108]
mov ebx, eax
call dword [sym.imp.__p__OpenClipboard]
test eax, eax
je 0x408f81
call dword [sym.imp.__p__EmptyClipboard]
test ebx, ebx
je 0x408f78
push ebx
call sub..net___target_newwin___s__a___h4__p__strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2000
call dword [sym.imp.ir_rtl___tr__td__GlobalAlloc]
mov esi, eax
test esi, esi
je 0x408f78
push esi
call dword [sym.imp.ir_rtl___tr__td__GlobalLock]
push edi
push ebx
push eax
call sub..net___target_newwin___s__a___h4__p__memcpy
add esp, 0xc
push esi
call dword [sym.imp.ir_rtl___tr__td__GlobalUnlock]
push esi
push 1
call dword [sym.imp.__p__SetClipboardData]
pop edi
pop esi
pop ebx
jmp dword [sym.imp.__p__CloseClipboard]
pop edi
pop esi
pop ebx
ret

Function at 0x409252
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [edi + 0x3a8]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
call fcn.004064d1
test eax, eax
je 0x4092bc
push esi
push 0x104
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub..net___target_newwin___s__a___h4__p__memset
mov eax, dword [ebp - 8]
add eax, 0x3d
push eax
lea esi, [ebp - 0x110]
call fcn.00403b3a
add esp, 0x10
push 5
push 0
push 0
mov eax, esi
push eax
push str.open
push dword [edi + 0x108]
call dword [sym.imp.___s__a___h4__p__ShellExecuteA]
pop esi
mov eax, dword [ebp - 4]
call fcn.00405de7
leave
ret