joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f370
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
xor esi, esi
push edi
call ebp
push 0
push edi
call fcn.00410a1d
add esp, 8
test eax, eax
jne 0x40f3a3
push 0x64
call ebx
inc esi
cmp esi, 0xa
jl 0x40f381
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
call fcn.00409660
add esp, 4
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40f3c0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x228]
push edi
call fcn.00409660
push ebx
call fcn.00409660
push esi
call fcn.00409660
add esp, 0xc
push 0x42cba4
push esi
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f535
push str.Step1_OK
call fcn.00409660
add esp, 4
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40f535
push str.Step2_OK
call fcn.00409660
add esp, 4
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40f535
push str.Step3_OK
call fcn.00409660
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40f535
push str.Step4_OK
call fcn.00409660
mov eax, edi
add esp, 4
lea edx, [eax + 2]
jmp 0x40f490
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f490
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
push ebx
push edi
jne 0x40f4b5
push 0x429328
lea eax, [esp + 0x24]
push eax
jmp 0x40f4bf
push str._s_s
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edi, [esp + 0x18]
mov dword [esp + 0x10], ebp
call fcn.0040f370
push 0x429444
mov edx, edi
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004117a3
add esp, 0xc
test eax, eax
jne 0x40f535
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push 1
push edx
push esi
call fcn.00411285
add esp, 0x10
test eax, eax
je 0x40f519
push str.Step5_OK
mov ebp, 1
call fcn.00409660
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004110a7
add esp, 4
test ebp, ebp
jne 0x40f550
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ff55
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call fcn.00401690
add esp, 8
test eax, eax
je 0x40f584
push str.Step6_OK
call fcn.00409660
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x40f535
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x40f537
Function at 0x40f640
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x84
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
xor esi, esi
call fcn.00409010
push eax
push 0x40
lea eax, [esp + 0xc]
push eax
push 0x429358
push str.Language
push str.Locale
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 4]
push 0x42cbc4
push ecx
call fcn.004124f5
add esp, 8
test eax, eax
jne 0x40f694
mov esi, 0x409
lea edx, [esp + 4]
push 0x42cbbc
push edx
call fcn.004124f5
add esp, 8
test eax, eax
jne 0x40f6af
mov esi, 0x804
lea eax, [esp + 4]
push 0x42cbb4
push eax
call fcn.004124f5
add esp, 8
test eax, eax
jne 0x40f6ca
lea esi, [eax + 0x11]
jmp 0x40f6cf
test si, si
je 0x40f6d9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.0040ff55
add esp, 0x84
ret
Function at 0x40f6f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428670
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x431034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x42cc48
push 1
push esi
push 0x42cc78
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
je 0x40f75e
push 0x42f59c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], esi
call fcn.0041327a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
cmp edi, esi
je 0x40f77d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
cmp dword [ebp + 0x10], esi
je 0x40f801
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x42cc68
push eax
mov eax, dword [ecx]
call eax
cmp eax, esi
jge 0x40f7aa
push 0x42f59c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.0041327a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
cmp eax, esi
jge 0x40f7d1
push 0x42f59c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], esi
call fcn.0041327a
mov eax, dword [ebp - 0x20]
test eax, 0x2000
jne 0x40f801
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
or eax, 0x2000
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
cmp eax, esi
jge 0x40f801
push 0x42f59c
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], esi
call fcn.0041327a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x1c]
push ecx
push 0x42cc58
push eax
call edx
cmp eax, esi
je 0x40f829
push 0x42f59c
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], esi
call fcn.0041327a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
push 0x42f59c
cmp eax, esi
je 0x40f84f
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], esi
call fcn.0041327a
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], 1
call fcn.0041327a
mov eax, dword [ebp - 0x18]
xor esi, esi
cmp eax, esi
je 0x40f870
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f87f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x40f88e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x40f89a
ret
Function at 0x40f8b0
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
xor ebx, ebx
xor edi, edi
test ebx, ebx
jne 0x40f8ee
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.0040f6f0
add esp, 0xc
push 0x64
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x40f8c0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x40fb20
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0xa78
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0xa74], eax
push esi
mov esi, dword [esp + 0xa80]
push edi
mov edi, dword [esp + 0xa88]
push 0x104
lea eax, [esp + 0x670]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40fb79
pop edi
mov eax, 0x2ce
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.0040ff55
add esp, 0xa78
ret
push 0x42cc30
lea ecx, [esp + 0x670]
push 0x104
push ecx
call fcn.0041053f
lea edx, [esp + 0x60]
push edx
push 0x104
call fcn.0040afe0
add esp, 0x14
test eax, eax
jne 0x40fbc2
pop edi
mov eax, 0x2d2
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.0040ff55
add esp, 0xa78
ret
push edi
lea eax, [esp + 0x58]
push esi
push eax
call fcn.0040f3c0
add esp, 0xc
test eax, eax
jne 0x40fc94
push esi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x264]
push 0x429328
push edx
call fcn.0040a9e0
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00410a1d
add esp, 0x18
test eax, eax
jne 0x40fc78
lea ecx, [esp + 0x25c]
push ecx
push str._s_exists.
call fcn.00409660
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x268]
push eax
mov dword [esp + 0x18], 0
call fcn.0040a880
add esp, 0x10
test eax, eax
je 0x40fc78
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
lea edx, [esp + 0x26c]
push edx
push str._s__d._d._d._d_
call fcn.00409660
add esp, 0x18
cmp dword [esp + 8], 6
jge 0x40fc94
pop edi
mov eax, 0x2d1
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.0040ff55
add esp, 0xa78
ret
push str.UsbEnter.lnk
lea eax, [esp + 0x58]
push eax
push 0x429328
lea ecx, [esp + 0x470]
push 0x104
push ecx
call fcn.00410301
push esi
lea edx, [esp + 0x6c]
push edx
push 0x429328
mov edi, eax
lea eax, [esp + 0x894]
push 0x104
push eax
call fcn.00410301
add esp, 0x28
test edi, edi
jle 0x40fd9a
test eax, eax
jle 0x40fd9a
push 0
lea ecx, [esp + 0x670]
push ecx
lea edx, [esp + 0x87c]
push edx
lea eax, [esp + 0x470]
push eax
call fcn.0040f8b0
add esp, 0x10
test eax, eax
je 0x40fd7e
push 0x38
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00411d90
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x464]
lea eax, [esp + 0x54]
push ecx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x38], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea edx, [esp + 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, 0x1f5
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.0040ff55
add esp, 0xa78
ret
pop edi
mov eax, 0x2dc
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.0040ff55
add esp, 0xa78
ret
mov ecx, dword [esp + 0xa7c]
pop edi
pop esi
xor ecx, esp
mov eax, 0x2d0
call fcn.0040ff55
add esp, 0xa78
ret
Function at 0x40fdc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0x104
call fcn.0040afe0
add esp, 8
test eax, eax
je 0x40fe25
cmp eax, 0x104
ja 0x40fe25
push 0x52e9f0
push 0
push 0x42cc38
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
neg eax
sbb eax, eax
and eax, 0x52e9f0
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040ff55
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0040ff55
add esp, 0x20c
ret

Function at 0x40fe40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
lea eax, [esp + 8]
push eax
push 0x104
xor edi, edi
call fcn.0040afe0
add esp, 8
test eax, eax
je 0x40fe8e
push esi
push edi
push 0x42a2dc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
lea eax, [edi + 1]
jne 0x40fe90
mov eax, edi
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.0040ff55
add esp, 0x20c
ret

Function at 0x40ff55
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431034]
jne 0x40ff5f
repz ret
jmp fcn.00413577

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4109c5
call fcn.00414754
mov dword [eax], esi
call fcn.00414741
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004146d9
add esp, 0x14
push 0x16
pop eax
jmp 0x410a1a
test dword [ebp + 0xc], 0xfffffff9
jne 0x4109a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4109f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414767
pop ecx
call fcn.00414741
mov eax, dword [eax]
jmp 0x410a1a
test al, 0x10
jne 0x410a18
test al, 1
je 0x410a18
test byte [ebp + 0xc], 2
je 0x410a18
call fcn.00414754
mov dword [eax], 5
call fcn.00414741
mov dword [eax], 0xd
jmp 0x4109e9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41fe6d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041701c
and dword [ebp - 4], 0
cmp dword [0x52f594], 0
mov ebx, eax
jne 0x41ff1e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ffcf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ffcf
push eax
call fcn.00416faa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x52f594], eax
call esi
push eax
call fcn.00416faa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x52f598], eax
call esi
push eax
call fcn.00416faa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x52f59c], eax
call esi
push eax
call fcn.00416faa
pop ecx
mov dword [0x52f5a4], eax
test eax, eax
je 0x41ff1e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416faa
pop ecx
mov dword [0x52f5a0], eax
mov eax, dword [0x52f5a0]
cmp eax, ebx
je 0x41ff76
cmp dword [0x52f5a4], ebx
je 0x41ff76
push eax
call fcn.00417025
push dword [0x52f5a4]
mov esi, eax
call fcn.00417025
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ff76
test edi, edi
je 0x41ff76
call esi
test eax, eax
je 0x41ff6d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ff6d
test byte [ebp - 0xc], 1
jne 0x41ff76
or dword [ebp + 0x10], 0x200000
jmp 0x41ffaf
mov eax, dword [0x52f598]
cmp eax, ebx
je 0x41ffaf
push eax
call fcn.00417025
pop ecx
test eax, eax
je 0x41ffaf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ffaf
mov eax, dword [0x52f59c]
cmp eax, ebx
je 0x41ffaf
push eax
call fcn.00417025
pop ecx
test eax, eax
je 0x41ffaf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52f594]
call fcn.00417025
pop ecx
test eax, eax
je 0x41ffcf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ffd1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x5d8abd
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x5d87dc
sub esi, 1
inc edi
call fcn.005d8aec
and edi, esi
xor dword [edx], ecx
add esi, esi
add esi, edi
add edx, 2
dec edi
cmp edx, ebx
jl fcn.005d8abd
mov esi, edi
ret
Function at 0x401310
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test esi, esi
jle 0x401327
mov dl, byte [eax + ecx]
sub dl, 0x7a
xor dl, 0x19
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x401316
ret

Function at 0x401330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
call ebp
test eax, eax
jne 0x401390
push esi
push 0x5c
push edi
call fcn.0043a6ca
mov esi, eax
add esp, 8
test esi, esi
je 0x401380
push ebx
movzx ebx, word [esi]
xor eax, eax
push edi
mov word [esi], ax
call ebp
test eax, eax
jne 0x401368
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
push 0x5c
add esi, 2
push esi
call fcn.0043a6ca
mov esi, eax
add esp, 8
test esi, esi
jne 0x401351
pop ebx
push edi
call ebp
pop esi
test eax, eax
jne 0x401390
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x4013a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x45c384
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043a677
mov ecx, dword [esp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x4013ef
test eax, eax
jne 0x4013ef
push eax
push eax
push ecx
call fcn.0043afb6
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 1
push ecx
call fcn.0043aeaa
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043b0b2
add esp, 0x20
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret
Function at 0x4029f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x451881
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x469bb0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.004020e0
mov eax, edi
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402a50
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.00402000
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.004020e0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x402aa5
mov edx, dword [esp + 0x14]
push edx
call fcn.00402fee
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x402b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00417a9c

Function at 0x40d5d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d61b
call fcn.0041cb54
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d61b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d637
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d14c
mov esi, eax
test edi, edi
je 0x40d635
test ebx, ebx
je 0x40d635
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f04c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44f74f
call fcn.0043d023
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f071
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40f0b7
lea ecx, [ebp - 0x10]
call fcn.0040624a
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040da64
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403f59
mov eax, esi
call fcn.0043d0fb
ret 8
Function at 0x412932
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041cb54
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x41295f
xor eax, eax
jmp 0x412a05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x412958
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412958
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402fbf
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4129b6
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4129a5
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00411618
push edi
mov ebx, eax
call fcn.00402fee
pop ecx
test ebx, ebx
je 0x4129f8
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00411ce5
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00411d99
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4160b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4160f9
call fcn.0041cb54
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4160f9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41613c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x416125
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416125
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x416139
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc