joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054c2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421ce8], 0x44
push eax
xor eax, eax
push 0x421ce8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054fd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405587
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040597b
mov edi, eax
cmp edi, 0xffffffff
je 0x4055c8
test byte [esp + 0x10], 1
push esi
je 0x4055aa
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055b0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055b9
xor eax, eax
inc eax
jmp 0x4055ca
test byte [esp + 0x10], 4
jne 0x4055c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055cf
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40560e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f68], eax
jmp 0x405798
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405628
test eax, eax
je 0x405746
test bl, 2
je 0x405746
mov esi, 0x4214e8
push edi
push esi
call fcn.00405cf2
cmp dword [ebp + 8], 0
je 0x405647
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40564d
push edi
call fcn.004057e6
cmp byte [edi], 0
jne 0x40565b
cmp byte [0x4214e8], 0x5c
jne 0x405666
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40573c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057ca
cmp byte [eax], 0
je 0x4056ac
cmp byte [ebp - 0x1c], 0
je 0x4056ac
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056c2
mov al, byte [esi + 1]
test al, al
je 0x40571b
cmp al, 0x2e
jne 0x4056c2
cmp byte [esi + 2], 0
je 0x40571b
push esi
push ebx
call fcn.00405cf2
test byte [ebp - 0x14c], 0x10
je 0x4056e7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40571b
push dword [ebp + 0xc]
push edi
call fcn.004055cf
jmp 0x40571b
push dword [ebp - 4]
push edi
call fcn.00405587
test eax, eax
jne 0x405713
cmp dword [ebp - 4], eax
je 0x40570b
push edi
push 0xfffffffffffffff1
call fcn.00404fff
push 0
push edi
call fcn.00405ba6
jmp 0x40571b
inc dword [0x423f68]
jmp 0x40571b
push edi
push 0xfffffffffffffff2
call fcn.00404fff
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40568a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405746
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405798
cmp dword [ebp - 0xc], esi
jne 0x40575a
inc dword [0x423f68]
jmp 0x405798
push edi
call fcn.00405ff6
test eax, eax
je 0x405798
push edi
call fcn.0040579f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405587
test eax, eax
jne 0x405790
cmp dword [ebp - 4], esi
je 0x405752
push edi
push 0xfffffffffffffff1
call fcn.00404fff
push esi
push edi
call fcn.00405ba6
jmp 0x405798
push edi
push 0xffffffffffffffe5
call fcn.00404fff
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40588d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218e8
push esi
call fcn.00405cf2
push esi
call fcn.00405838
mov edi, eax
test edi, edi
jne 0x4058ae
xor eax, eax
jmp 0x405900
push edi
call fcn.00405f5d
test byte [0x423ef8], 0x80
je 0x4058c7
mov al, byte [edi]
test al, al
je 0x4058aa
cmp al, 0x5c
je 0x4058aa
sub edi, esi
jmp 0x4058df
call fcn.00405ff6
test eax, eax
je 0x4058d9
test byte [eax], 0x10
je 0x4058aa
push esi
call fcn.004057e6
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058cb
call fcn.0040579f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40597b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4059a0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409380]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a14
test edi, edi
jne 0x4059da
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a0e
Function at 0x405a18
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x422270
push 0x40939c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a67
push 1
push 0
push esi
call fcn.004059a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405ba0
cmp eax, ebx
jg 0x405ba0
mov esi, 0x422670
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405ba0
cmp eax, ebx
jg 0x405ba0
push esi
push edi
push str._s_s_r_n
push 0x421e70
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d14
push 4
push 0xc0000000
push esi
call fcn.004059a0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405ba0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405b99
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b99
cmp edi, dword [esp + 0x10]
jne 0x405b99
push str._Rename__r_n
push esi
call fcn.00405905
test eax, eax
jne 0x405b2f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b64
add eax, 0xa
push 0x409384
push eax
call fcn.00405905
mov ebp, eax
test ebp, ebp
je 0x405b60
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b51
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b4b
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b66
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421e70
push eax
call fcn.0040595b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405bd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c4a
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c39
cmp dword [ebp + 0x14], 1
je 0x405c3b
cmp dword [ebp + 0x14], 2
je 0x405c3b
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40608f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a74], 0
push esi
jne 0x4060c6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4060a0
mov dword [ecx*4 + 0x422a70], eax
inc ecx
cmp ecx, 0x100
jl 0x40609b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060f7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a70]
xor eax, esi
inc ecx
dec edx
jne 0x4060d9
pop edi
not eax
pop esi
ret 0xc

Function at 0xb31754
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xb31c18
call fcn.00b31a18
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0xb317b4
cmp eax, 0xffffffff
je 0xb317b4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0xb317ad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0xb317ad
cmp edx, 0x10000000
jae 0xb317ad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0xb317aa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0xb31820
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0xb3185e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0xb31856
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0xb31860
inc edx
add eax, 0x28
cmp edx, ebx
jb 0xb31846
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xb31930
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0xb31961
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xb31961
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0xb31961
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401bc8
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
je 0x401bd2
xor eax, eax
inc eax
ret
push 0x4165ac
call fcn.00405862
test eax, eax
pop ecx
mov dword [esi + 4], eax
je 0x401c3c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RoGetActivationFactory
push eax
call edi
push str.WindowsCreateString
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.WindowsCreateStringReference
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.WindowsDeleteString
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.RoInitialize
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.RoUninitialize
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
ret

Function at 0x4023c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a18
call fcn.004154c0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
push ebx
push esi
jne 0x40253e
add eax, 0x43e0
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
je 0x40253e
push 0x7fe
lea eax, [ebp - 0xa16]
push ebx
push eax
mov word [ebp - 0xa18], bx
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, 2
push esi
push str._sProperties
lea eax, [ebp - 0xa18]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20119
push ebx
lea eax, [ebp - 0xa18]
push eax
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40253e
push 0x1fe
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1fff
lea eax, [ebp - 0x2a17]
push ebx
push eax
mov byte [ebp - 0x2a18], bl
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2a18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x14], ebx
push ebx
jmp 0x40251e
push 0x26
lea eax, [ebp - 0x218]
push str.a45429a4_aa63_4480_b7f8_3f2552daee93
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x4024fd
cmp dword [ebp - 4], 0x318
jb 0x4024fd
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2a10]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x402547
inc dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2a18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ebp - 0x10], 0xff
mov dword [ebp - 4], 0x2000
call esi
test eax, eax
je 0x4024ba
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x2710]
push eax
mov eax, dword [ebp + 8]
call fcn.00402558
jmp 0x402541
Function at 0x404956
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 0x404b06
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 0x404b63
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 0x404b61
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 0x404b6e
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.00404924
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404c00
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 0x404be9
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 0x404be9
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 0x404bf2
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 0x404c09
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 0x404cca
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 0x404e5d
Capabilities:
Get common file path

Disassembly:
cmp word [0x41ce18], 0
push esi
mov esi, 0x41ce18
jne 0x404e7e
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x41d024], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x41d024]
pop ecx
pop ecx
pop esi
ret
Function at 0x40515c
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x416594
push eax
push eax
push dword [esp + 0x14]
push 0x416e94
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 0x405750
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp - 0x22e]
push ebx
push eax
mov word [ebp - 0x230], bx
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x43a]
push ebx
push eax
mov word [ebp - 0x43c], bx
call sub.msvcrt.dll_memset
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x24], bx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
mov esi, 0x104
lea eax, [ebp - 0x230]
push esi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00405584
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push 0xf
push eax
mov eax, dword [ebp + 8]
call fcn.00405584
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__wtoi
add esp, 0x34
mov edi, eax
push esi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push eax
neg edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40581a
push 0x200
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40581f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x416f44
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret

Function at 0x405862
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 [0x41d028], 0
mov esi, 0x41d028
jne 0x4058aa
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x41d234], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.0040497a
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 0x4058e4
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x40653e
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x41bf50
push dword [esp + 0xc]
push esi
push 0x416594
push dword [esp + 0x14]
push 0x41c160
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x406563
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004154c0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41bf50
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x416594
push dword [ebp + 8]
push 0x41c160
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4065d2
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 0x4065d6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004154c0
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, 0x41bf50
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x416594
push dword [ebp + 8]
mov esi, 0x41c160
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40663d
cmp dword [ebp + 0x10], 0
jne 0x40663d
xor eax, eax
jmp 0x40664b
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 0x4069c2
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404cca
test eax, eax
pop ecx
je 0x406a49
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x41bf50
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x41c160
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x416fc8
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, 0x41c1e8
mov dword [0x41c1e4], eax
call fcn.0040653e
push 0x3f
push str.TranslatorName
mov esi, 0x41c268
call fcn.0040653e
push 0xff
push str.TranslatorURL
mov esi, 0x41c2e8
call fcn.0040653e
add esp, 0x18
pop edi
pop esi
ret