joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4879b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004877c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004878f0
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x487a2a
add eax, 0x30
jmp 0x487a2d
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x487a3c
add eax, 0x30
jmp 0x487a3f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x487a10
pop esi
add esp, 0x94
ret

Function at 0x487a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x487aeb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x487acf
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x487ad9
cmp ecx, 0x38
jle 0x487ad9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xec85f4
test ecx, ecx
je 0x487b1f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x487b0a
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x487b1f
mov dl, byte [eax + 0xec85f4]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x487b10
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004879b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x487b84
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x487b77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x488750
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x488772
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x488786
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x48879a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x48892d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4888fe
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4887fc
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x488866
mov eax, dword [esp + 0x14]
push eax
call fcn.0049c487
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0049c39e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x488913
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x488913
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x488934
jmp 0x4887ec
push ecx
push str.Illegal_character__c_in_input._n
call fcn.0049d737
add esp, 8
push 1
call fcn.0049d908
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x48a9d8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0d39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0048d490
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.00473ab0
call fcn.004ac10b
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.004ac10b
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.0048d0b0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.0048d0b0
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.004ac10b
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.004ac10b
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.0048d0b0
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.0048d0b0
mov dword [edi], 0xec87b0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.0048d490
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.0048d490
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.0048d490
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.0048d490
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.0048d490
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.0048ad00
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48abc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.0048d660
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.0048d660
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.0048d660
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.0048d660
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.0048d660
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0xec87c0
call fcn.0048d2b0
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0xec87c0
call fcn.0048d2b0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.004ac134
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.004ac134
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xec87c0
call fcn.0048d2b0
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xec87c0
call fcn.0048d2b0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.004ac134
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.004ac134
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0048d660
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48f930
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48f996
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48f996
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48f977
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48fd20
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48fd58
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x490980
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4909c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x490e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004909f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00490a70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00490a70
lea ecx, [esi + 0xc]
call fcn.004adad6
lea ecx, [esi + 0x10]
call fcn.004adad6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00492000
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00492000
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00492000
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004adb4b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004adb4b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4aff94
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4affcc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004adff2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004adfca
jmp 0x4affd8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b175f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b17a1
call fcn.004b8010
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b17a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b1798
xor eax, eax
jmp 0x4b17a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b17af
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b32c9
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4c1cf4
call fcn.0049e974
push ecx
push ecx
push esi
push 0x14
call fcn.004ad88c
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4b331c
mov ecx, esi
call fcn.004ae0be
mov eax, dword [0xeeab98]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004adcd4
jmp 0x4b331e
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0xed7118
push eax
mov dword [ebp - 0x10], esi
call fcn.0049d4ec
pop esi

Function at 0x4b8540
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b856e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b858c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b84a6
jmp 0x4b858c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b858c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b84a6
test edi, edi
mov eax, edi
jne 0x4b8576
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4019b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
call fcn.004016e1
add esp, 0x10
test eax, eax
je 0x401a05
mov eax, dword [ebp + 8]
push 1
push 0
add eax, 0x716
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret 8
Function at 0x403de0
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.00403c39
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x403e6f
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403e58
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 0x403e58
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x403e61
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 0x403e78
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 0x40405c
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x4041cc
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40ebb8], 0
push esi
mov esi, 0x40ebb8
jne 0x4041ec
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x40ecc0], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x40ecc0]
pop ecx
pop ecx
pop esi
ret

Function at 0x4043f4
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40b407
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x404ec6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a310
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40e8b8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40b407
push dword [ebp + 8]
push 0x40e9c0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x404f32
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x404f36
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a310
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x40e8b8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40b407
push dword [ebp + 8]
mov esi, 0x40e9c0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x404f9e
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x404fa0
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x405233
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.0040405c
test eax, eax
pop ecx
je 0x4052a1
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x40e8b8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x40e9c0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x40b98c
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push edi
push 0x3f
dec eax
push 0x40ea10
neg eax
push 0x40b407
sbb eax, eax
push str.charset
inc eax
push esi
mov dword [0x40ea08], eax
mov byte [0x40ea10], 0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
pop edi
pop esi
ret

Function at 0x407a5b
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.KERNEL32.DLL_GetTempPathA]
test eax, eax
jne 0x407a8d
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ebx
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40bc9c
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push 1
lea eax, [ebp - 0x104]
push eax
push 2
pop ebx
call fcn.00407a2f
test eax, eax
pop ebx
je 0x407b08
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407ae5
lea eax, [ebp - 0x104]
push eax
call fcn.00403de0
pop ecx
jmp 0x407aeb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x407afb
push dword [esi + 0x108]
call fcn.00403caf
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret

Function at 0x407c35
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi + 0x374]
lea eax, [ebp - 4]
push eax
call fcn.00405d24
test eax, eax
pop edi
je 0x407c83
push ebx
push 0xb
pop ebx
call fcn.00404a04
mov ecx, dword [esi + 0x108]
push 0x24
push 0x40b3f8
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
pop ebx
jne 0x407c83
mov eax, dword [ebp - 4]
push 5
add eax, 0x611
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret
Function at 0x4095f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040a310
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40964c
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.004044e9
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x409691
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x40b407
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.00404562
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x409694
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x4096b2
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004095ac
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret
Function at 0x409e1d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x409fe9
lea eax, [esi + 0x18]
mov dword [ebp - 0x44], eax
mov byte [eax], bl
lea eax, [esi + 0x118]
mov dword [ebp - 0x2c], eax
mov byte [eax], bl
lea eax, [esi + 0x218]
mov dword [ebp - 0x1c], eax
mov byte [eax], bl
lea eax, [esi + 0x318]
mov dword [ebp - 0x34], eax
mov byte [eax], bl
lea eax, [esi + 0x418]
mov dword [ebp - 0x20], eax
mov byte [eax], bl
lea eax, [esi + 0x518]
mov dword [ebp - 0x28], eax
mov byte [eax], bl
lea eax, [esi + 0x618]
push edi
push dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [eax], bl
lea eax, [esi + 0x718]
mov dword [ebp - 0x38], eax
mov byte [eax], bl
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x40b91c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409ef1
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409f3e
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._4.4X_4.4X
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
push 0x40b407
lea eax, [ebp - 0x18]
push eax
push edi
lea esi, [ebp - 0x144]
call fcn.00409d8c
test eax, eax
jne 0x409f4e
lea eax, [ebp - 0x18]
push str.040904E4
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
push 0x40c2b4
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x2c]
push 0x40c2c0
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x1c]
push 0x40c2d0
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x34]
push 0x40c2dc
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x20]
push 0x40c2ec
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x28]
push 0x40c2f8
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x30]
push 0x40c308
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
mov esi, dword [ebp - 0x38]
push str.OriginalFileName
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00409d8c
xor ebx, ebx
push edi
inc ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4