joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004300
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006408f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x100988d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x100043cc
je 0x100043c7
cmp eax, 0x80000000
je 0x100043c7
test eax, eax
jne 0x100043d3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
mov eax, dword [0x10099e0c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000437e
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call sym.ExtendScript.dll_public:_int___thiscall_ScScript::ScriptContainer::compile_class_ScCore::FileSpec_const___bool__bool____cdecl___class_ScCore::FileSpec_const___
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_unsigned_short_int_const__]
mov eax, dword [0x10099e0c]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x100043ac
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100043ef
xorps xmm0, xmm0
jmp 0x100043ea
cmp eax, 0x40000000
je 0x100043df
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100043e6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b1f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066c15
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100988d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScScript::ScopeInfo.0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::SparseArray::constructor_void_]
mov dword [esi + 0x2c], 0
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x10000
mov dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001b5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001b5af
pop dword [ebp - 0x3c]
mov eax, 0xcab6f757
sub eax, 0xbab541a8
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc04aa6ef
add dword [ebp - 0x4c], 0x8e079e5c
mov dword [ebp - 0x48], 0xb0244d0b
sub dword [ebp - 0x48], 0x7df100c6
mov dword [ebp - 0x44], 0xfd670663
sub dword [ebp - 0x44], 0xb11ac235
mov dword [ebp - 0x40], 0xface91dc
add dword [ebp - 0x40], 0x5316e24
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xffc403dc
sub dword [ebp - 0x4c], 0x8b519a86
mov dword [ebp - 0x48], 0x6021f855
add dword [ebp - 0x48], 0xe14a6920
mov dword [ebp - 0x44], 0x72d15f71
add dword [ebp - 0x44], 0xf09e0cfb
mov dword [ebp - 0x40], 0xf8844fd3
sub dword [ebp - 0x40], 0xf8844fd3
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xfa3b280b
add eax, 0x15cbd7fd
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x47f96
push 0
call eax
mov ecx, 0xcbe03bba
add ecx, 0x34201160
mov esi, eax
mov edi, 0x2a5c0cd
sub edi, 0xf29b22cd
add edi, dword [ebp - 0x3c]
mov edx, 0xb03c4948
add edx, 0xceef16fe
sub dword [ebp - 0x1c], eax
mov ebx, dword [edi]
mov dword [ebp - 0x20], 0x8f19bf59
xor ebx, edx
sub dword [ebp - 4], esi
mov dword [esi], ebx
add dword [ebp - 0x28], edi
add esi, 0xe948160
sub esi, 0xe94815c
add edi, 4
loop 0x1001b6cc
add eax, 0xf39c3131
sub eax, 0xf39b09f6
xor ebx, ebx
add ebx, eax
add eax, 0x246be8a9
add eax, 0xdb94175c
mov ecx, 0xc8964186
add ecx, 0x4769be7a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0xfc8420
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00fc8570
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xfc8446
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfc8432
add dl, dl
jne 0xfc8451
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfc84a4
xor eax, eax
add dl, dl
jne 0xfc845e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfc8545
add dl, dl
jne 0xfc846d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc8478
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc8483
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc848e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xfc849a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xfc843d
mov eax, 1
add dl, dl
jne 0xfc84b2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc84bd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfc84a9
sub eax, ebx
mov ebx, 1
jne 0xfc84f0
mov ecx, 1
add dl, dl
jne 0xfc84d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfc84e1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfc84cd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfc843d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfc8507
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfc8512
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfc84fe
cmp eax, 0x7d00
jae 0xfc8535
cmp eax, 0x500
jb 0xfc8530
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfc843d
cmp eax, 0x7f
ja 0xfc8538
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfc843d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xfc8566
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 0xfc843d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x472030
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x4720f7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x4aa988]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x472104
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00472030
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x472104
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x472104
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x47207a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x472120
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x47220f
test edi, edi
je 0x472138
cmp byte [edi], 0
jne 0x472140
test ebp, ebp
je 0x47220f
mov ecx, dword [0x4aa988]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4721e1
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x4721f8
push eax
call fcn.00472030
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4721e1
mov eax, 1
test byte [0x4b03a4], al
jne 0x4721bf
or dword [0x4b03a4], eax
push str.RegDeleteKeyExA
push 0x4a1778
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b03a0], eax
jmp 0x4721c4
mov eax, dword [0x4b03a0]
mov edx, dword [0x4aa988]
mov ecx, dword [edx + 0xb0]
test ecx, ecx
je 0x4721ee
test eax, eax
je 0x4721ee
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x472214
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x472216
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4721df
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4721e1
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4aa988]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042f740
pop esi
pop ebp
pop ecx
ret 8
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401b5a
pop dword [ebp - 0x1c]
mov eax, 0x64630ea5
add eax, 0x9bdd0cb5
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xaab2cf2c
add dword [ebp - 0x2c], 0xa39f761f
mov dword [ebp - 0x28], 0xa3590963
sub dword [ebp - 0x28], 0x7125bd1e
mov dword [ebp - 0x24], 0x8ad4672b
sub dword [ebp - 0x24], 0x3e8822fd
mov dword [ebp - 0x20], 0x543fc764
sub dword [ebp - 0x20], 0x543fc764
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xda19750
sub dword [ebp - 0x2c], 0x992f2dfa
mov dword [ebp - 0x28], 0x8df23551
add dword [ebp - 0x28], 0xb37a2c24
mov dword [ebp - 0x24], 0x6a08d1a6
sub dword [ebp - 0x24], 0x699653a
mov dword [ebp - 0x20], 0xc7ec12e2
add dword [ebp - 0x20], 0x3813ed1e
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37305
push 0
call eax
mov ecx, 0x93c3c237
sub ecx, 0x93c38444
xor edi, edi
add edi, eax
mov ebx, 0xe3892110
sub ebx, 0xe3477110
add ebx, dword [ebp - 0x1c]
mov edx, 0x8c8842f1
add edx, 0xca33ee1f
sub dword [ebp - 0x18], edi
mov esi, dword [ebx]
xor dword [ebp - 8], edx
sub esi, edx
sub dword [ebp - 0x10], edx
mov dword [edi], esi
mov dword [ebp - 0x10], 0x828f5009
add edi, 0xfcff484f
add edi, 0x300b7b5
add ebx, 4
loop 0x401c74
add eax, 0x184f1509
add eax, 0xe7b1d596
mov ebx, eax
add eax, 5
mov ecx, 0xd3a412
sub ecx, 0x93a412
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x4010e9
Capabilities:
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push pe_nt_image_headers32
push dword [esp + 0x20]
mov esi, 0x4aaae8
push esi
mov edi, eax
call fcn.0040138c
add esp, 0xc
nop
nop
nop
nop
push pe_nt_image_headers32
push esi
push esi
mov eax, 0x49b4f0
call fcn.004012f5
add esp, 0xc
nop
nop
nop
nop
cmp byte [esp + 0x20], 0
mov ebx, 0x4aab08
mov ebp, 0x4ab334
jne 0x401173
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 0x10
push 0x20
push ebx
push ebp
call fcn.00457990
push dword [esp + 0x2c]
mov edi, ebx
call fcn.00401259
push 0x20
pop edx
mov ecx, esi
mov eax, ebx
call fcn.0040133c
push 0x20
push ebp
push esi
call fcn.00457990
add dword [esp + 0x3c], 0x30
add esp, 0x1c
dec dword [esp + 0x10]
jne 0x40113a
jmp 0x4011c1
add edi, 0x2d0
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x20], edi
push 0x20
push esi
push ebp
call fcn.00457990
push dword [esp + 0x2c]
mov edi, esi
call fcn.00401259
push 0x20
pop edx
mov ecx, ebx
mov eax, esi
call fcn.0040133c
push 0x20
push ebp
push ebx
call fcn.00457990
sub dword [esp + 0x3c], 0x30
add esp, 0x1c
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0
jge 0x401185
push pe_nt_image_headers32
push esi
push esi
mov eax, 0x49b530
call fcn.004012f5
mov edi, dword [esp + 0x24]
push esi
call fcn.004013bf
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4011e2
Capabilities:
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
nop
nop
nop
nop
push pe_nt_image_headers32
push dword [esp + 0x20]
mov esi, 0x4aaaa8
push esi
call fcn.0040138c
push 0x38
push esi
push esi
mov eax, str.91__
call fcn.004012f5
mov eax, dword [esp + 0x30]
add esp, 0x18
xor ebp, ebp
mov dword [esp + 0x10], eax
lea edi, [ebp + 0x49b628]
movsx ebx, byte [edi]
mov eax, esi
call fcn.00401354
movsx ebx, byte [edi]
mov eax, 0x4aaac4
call fcn.00401354
push 0x30
push esi
push dword [esp + 0x18]
mov eax, 0x49b5f8
call fcn.004012f5
add dword [esp + 0x1c], 0x30
add esp, 0xc
inc ebp
cmp ebp, 0x10
jl 0x401217
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401259
Capabilities:
Encrypt data using des

Disassembly:
push esi
nop
nop
nop
nop
push 0x30
push edi
mov esi, 0x4ab304
push esi
mov eax, 0x49b570
call fcn.004012f5
mov ecx, dword [esp + 0x14]
push 0x30
pop edx
mov eax, esi
call fcn.0040133c
push edi
call fcn.00401298
push 0x20
push edi
push edi
mov eax, 0x49b5a0
call fcn.004012f5
add esp, 0x1c
pop esi
ret

Function at 0x40133c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
nop
nop
nop
nop
test esi, esi
jle 0x401352
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x401349
pop esi
ret
Function at 0x402a37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.SizeofResource
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [esp + 4], 0
jne 0x402a58
xor eax, eax
ret
push edi
push dword [esp + 8]
push 0
call eax
mov edi, eax
test edi, edi
jbe 0x402a94
push 0x67
push str..XPButtonDemo.cpp
push edi
call fcn.00403570
add esp, 0xc
push dword [esp + 8]
mov dword [esi], eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402a94
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
jne 0x402a98
xor eax, eax
pop edi
ret
push edi
push eax
push dword [esi]
call fcn.00457990
add esp, 0xc
mov eax, edi
pop edi
ret
Function at 0x10002470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100024d1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002492
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x4028a5
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 0x402b90
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 0x402cdd
Capabilities:
Get common file path

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

Function at 0x402f12
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40a378
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 0x40320a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x40b630
push 0x6d
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x403248
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x403248
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0xc]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x40324a
xor eax, eax
pop edi
pop esi
ret

Function at 0x4033a4
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 [0x40fd68], 0
mov esi, 0x40fd68
jne 0x4033ec
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x40ff74], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.004028c9
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 0x403426
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x403c65
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x40f540
push dword [esp + 0xc]
push esi
push 0x40a378
push dword [esp + 0x14]
push 0x40f750
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x403c8a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00409260
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40f540
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40a378
push dword [ebp + 8]
push 0x40f750
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x403cf9
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 0x403cfd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00409260
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, 0x40f540
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40a378
push dword [ebp + 8]
mov esi, 0x40f750
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
jne 0x403d6a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x403d6c
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4040bb
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00402b90
test eax, eax
pop ecx
je 0x404142
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x40f540
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x40f750
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x40a884
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, 0x40f7e0
mov dword [0x40f7d8], eax
call fcn.00403c65
push 0x3f
push str.TranslatorName
mov esi, 0x40f860
call fcn.00403c65
push 0xff
push str.TranslatorURL
mov esi, 0x40f8e0
call fcn.00403c65
add esp, 0x18
pop edi
pop esi
ret
Function at 0x40427c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40a32c
push 1
xor edi, edi
push edi
push 0x40a33c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x404344
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], edi
je 0x4042d3
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x14], edi
je 0x4042e4
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40a34c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40433b
push dword [ebp + 0xc]
lea edi, [ebp - 0x214]
call fcn.00402a3d
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push 1
mov edx, edi
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x404e57
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
je 0x404eae
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 4

Function at 0x4053d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.00409260
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x405446
Capabilities:
Write file on windows

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