joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f617
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x45a7b0], 0
je 0x40f624
or eax, 0xffffffff
ret
mov eax, dword [0x44a68c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40f662
mov ecx, dword [0x44a688]
jl 0x40f63d
cmp ecx, ebp
ja 0x40f662
or ebx, 0xffffffff
mov dword [0x45a6d0], ebp
add ecx, ebx
mov dword [0x45a6d4], ebp
mov dword [0x44a688], ecx
adc eax, ebx
mov dword [0x44a68c], eax
mov eax, ebx
jmp 0x40f76f
push esi
push edi
mov edi, dword [0x45a6d4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40f6c7
jl 0x40f67d
mov esi, dword [0x45a6d0]
cmp esi, ebp
ja 0x40f6cd
mov esi, 0x2000
push esi
push dword [0x45a6c4]
call fcn.0040f949
cdq
mov ecx, eax
mov dword [0x45a6d0], eax
or ecx, edx
mov dword [0x45a6d4], edx
je 0x40f70c
and eax, edx
cmp eax, ebx
je 0x40f6fd
add dword [0x45a708], esi
mov eax, dword [0x45a6c4]
adc dword [0x45a70c], ebp
mov dword [0x45a6c8], eax
call fcn.0040efc9
mov edi, dword [0x45a6d4]
mov esi, dword [0x45a6d0]
mov eax, dword [0x44a6b8]
test byte [eax + 0x80], 1
je 0x40f74f
cmp byte [0x45a888], 0
mov eax, esi
je 0x40f71c
or eax, edi
je 0x40f74f
push esi
push dword [0x45a6c8]
push 0x45a898
call fcn.0041305d
jmp 0x40f743
push 0x45b1e4
mov ecx, 0x45b4e8
call fcn.00402f83
mov dword [0x45a6d0], ebp
mov eax, ebx
mov dword [0x45a6d4], ebp
jmp 0x40f76d
or eax, edi
mov ebp, dword [0x45a6c8]
je 0x40f74f
add esi, ebx
adc edi, ebx
call fcn.00412e25
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.00412f4f
mov eax, esi
inc ebp
or eax, edi
jne 0x40f726
mov esi, dword [0x45a6d0]
mov edi, dword [0x45a6d4]
mov eax, dword [0x45a6c8]
add esi, ebx
mov dword [0x45a6d0], esi
adc edi, ebx
mov dword [0x45a6d4], edi
movzx eax, byte [eax]
inc dword [0x45a6c8]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412e86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.00412e43
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041d630
add esp, 0xc
xor esi, esi
call fcn.00412e25
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.00412f4f
inc esi
cmp esi, 0xc
jl 0x412eb4
mov eax, dword [0x44a6b8]
movzx edx, byte [ebp - 5]
movzx ecx, byte [0x45a727]
test byte [eax + 0x80], 2
jne 0x412eee
movzx ecx, byte [0x45a72f]
cmp edx, ecx
je 0x412ef7
or eax, 0xffffffff
jmp 0x412f40
cmp byte [ebp + 0x10], 0
je 0x412f3e
mov ecx, dword [0x45a6d0]
mov eax, ecx
cdq
cmp edx, dword [0x44a68c]
jl 0x412f1a
mov esi, dword [0x44a688]
jg 0x412f1c
cmp eax, esi
ja 0x412f1c
mov esi, ecx
push edi
mov edi, dword [0x45a6c8]
test esi, esi
je 0x412f3d
call fcn.00412e25
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00412f4f
inc edi
sub esi, 1
jne 0x412f27
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041c344
leave
ret 0xc

Function at 0x412f4f
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x45a808]
mov eax, dword [esp + 4]
mov edx, dword [0x45a810]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a260]
movzx eax, cl
add eax, dword [0x45a80c]
mov dword [0x45a808], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x45a80c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x44a260]
mov dword [0x45a810], edx
ret 4

Function at 0x413193
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x43e748]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.00413532
test ebp, ebp
je 0x4131e0
cmp byte [esi], 0
je 0x4131e0
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x413204
lea edi, [ebx + 0x60]
push 0x40
mov eax, edi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x4131e8
push ebx
call fcn.004096e1
push 0x40
push edi
push ebx
call fcn.00409712
test ebp, ebp
je 0x413219
cmp byte [esi], 0
jne 0x413219
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00409712
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00413532
cmp dword [esp + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x413251
push dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.0041d630
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041c344
add esp, 0x20
ret 0x14
Function at 0x415bdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x433528
push dword [esp + 0x18]
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x415cf5
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x415cf5
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415cf5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415cf5
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x415ced
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415ce6
push edi
push esi
push eax
call fcn.0041d630
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x415cdf
push ebp
push dword [esp + 0x14]
call fcn.00415b56
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test edi, edi
je 0x415cdf
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x415ccd
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x415ccd
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x415cf7
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4
Function at 0x4169ba
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.00416d91
test al, al
je 0x416a7a
push ebx
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], 0x11060000
xor edi, edi
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp], edi
inc ebx
mov dword [ebp - 0x10], 3
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x416a78
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x416a6a
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x5c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x416a6a
cmp dword [esi + 0x14], 8
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edi
jb 0x416a5f
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x14], edi
je 0x416a78
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0041c344
add ebp, 0x74
leave
ret 4

Function at 0x416c75
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43e6f4], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x416cd0
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x45afa4], ax
xor eax, eax
mov word [0x45afa6], ax
mov dword [0x43e6f4], 0x45afa4
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409ffe
push edi
push esi
xor eax, eax
push 0x43e6e4
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041c344
leave
ret 0x10
Function at 0x41aaf9
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45afcc], 0
push 1
push dword [esp + 8]
mov byte [0x45afb9], 1
mov byte [0x45afba], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004019f8
cmp dword [0x43e690], 0
jne 0x41ab39
cmp byte [0x45afc3], 0
je 0x41ab42
cmp dword [0x45afbc], 0
jne 0x41ab55
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41ac15
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x42fc6f
call fcn.0041c3e8
cmp byte [0x45aacc], 0
mov esi, dword [ebp + 8]
je 0x41acfc
cmp dword [0x45aae0], 0
je 0x41acfc
xor edi, edi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push 0x45aad0
call fcn.00418bcb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41acc1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41ac93
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41ac9f
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push edi
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41acfc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x41acf3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.0041c336
pop ecx
pop ecx
call fcn.0041c397
ret 4
Function at 0x401920
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401a3b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x4019c1
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x4019a9
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x4019b9
cmp ecx, 0x40
je 0x4019b9
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401920
lea esi, [esi]
lea edi, [edi]
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0xa14058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa141a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa1407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1406a
add dl, dl
jne 0xa14089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa140dc
xor eax, eax
add dl, dl
jne 0xa14096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1417d
add dl, dl
jne 0xa140a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa140d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa14075
mov eax, 1
add dl, dl
jne 0xa140ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa140e1
sub eax, ebx
mov ebx, 1
jne 0xa14128
mov ecx, 1
add dl, dl
jne 0xa1410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa14119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa14105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa1413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa14136
cmp eax, 0x7d00
jae 0xa1416d
cmp eax, 0x500
jb 0xa14168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
cmp eax, 0x7f
ja 0xa14170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa1419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa14075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x408933
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.00408969
sub edx, 1
add edi, 0xc6adbc2a
xor dword [ebx], esi
sub edx, 1
mov edi, 0xa31b9c9e
inc ebx
sub edi, edi
dec edi
cmp ebx, eax
jne fcn.00408933
add edx, edx
add edi, 0xf6d3710
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402131
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [0x413bd8]
add esi, 0x94
xor ebx, ebx
cmp dword [esi + 0x4220], 2
jne 0x40215b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], ebx
je 0x4021ff
cmp dword [esi + 0x4008], ebx
je 0x4021ff
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
lea eax, [esi + 0x400c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4021ff
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 2
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [ebp - 8], ebx
jne 0x4021e0
cmp dword [esi + 0x421c], 2
jne 0x4021c9
push 2
push 0x40f720
push dword [ebp - 4]
mov dword [edi + 0x24], 1
call fcn.00404568
add esp, 0xc
jmp 0x4021cc
mov dword [edi + 0x24], ebx
push dword [esi + 0x4218]
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
call dword [eax + 0x84]
push dword [esi + 0x4218]
mov eax, dword [edi]
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 4]
call dword [eax + 0x84]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
leave
ret 4

Function at 0x403b3f
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 0x403cba
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 0x403d17
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 0x403d15
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 0x403ee7
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 0x40406f
Capabilities:
Get common file path

Disassembly:
cmp word [0x414328], 0
push esi
mov esi, 0x414328
jne 0x404090
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x414534], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x414534]
pop ecx
pop ecx
pop esi
ret

Function at 0x4043f7
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40f480
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 0x404a52
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 [0x414538], 0
mov esi, 0x414538
jne 0x404a9a
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x414744], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.00403b63
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 0x404ad4
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x405743
Capabilities:
Read .ini file

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

Function at 0x405768
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040e200
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x413cf8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40f480
push dword [ebp + 8]
push 0x413f08
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4057d7
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 0x4057db
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040e200
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, 0x413cf8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40f480
push dword [ebp + 8]
mov esi, 0x413f08
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405842
cmp dword [ebp + 0x10], 0
jne 0x405842
xor eax, eax
jmp 0x405850
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 0x405bfb
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00403ee7
test eax, eax
pop ecx
je 0x405c82
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x413cf8
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x413f08
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x40fac4
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, 0x413f98
mov dword [0x413f90], eax
call fcn.00405743
push 0x3f
push str.TranslatorName
mov esi, 0x414018
call fcn.00405743
push 0xff
push str.TranslatorURL
mov esi, 0x414098
call fcn.00405743
add esp, 0x18
pop edi
pop esi
ret