joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40157a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4360c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0041b3d0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4015cf
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
jne 0x4015cf
xor eax, eax
jmp 0x401667
movzx eax, word [ebp + 0x6c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x401664
dec eax
je 0x401624
dec eax
jne 0x4015c8
cmp dword [ebp - 0x24], 6
jne 0x4015f2
push 0xb
pop eax
jmp 0x401667
cmp dword [ebp - 0x24], 5
jne 0x401616
cmp dword [ebp - 0x20], 2
jne 0x401602
push 0xa
jmp 0x4015ef
cmp dword [ebp - 0x20], 1
jne 0x40160c
push 9
jmp 0x4015ef
cmp dword [ebp - 0x20], 0
jne 0x401620
push 8
jmp 0x4015ef
cmp dword [ebp - 0x24], 4
ja 0x401620
push 7
jmp 0x4015ef
push 0xc
jmp 0x4015ef
cmp dword [ebp - 0x24], 4
jne 0x401662
cmp dword [ebp - 0x20], 0
jne 0x401644
cmp byte [ebp - 0x13], 0x43
je 0x401640
cmp byte [ebp - 0x13], 0x42
je 0x401640
push 2
jmp 0x4015ef
push 3
jmp 0x4015ef
cmp dword [ebp - 0x20], 0xa
jne 0x401658
xor eax, eax
cmp byte [ebp - 0x13], 0x41
sete al
add eax, 4
jmp 0x401667
cmp dword [ebp - 0x20], 0x5a
jne 0x401664
push 6
jmp 0x4015ef
ja 0x401620
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004197af
add ebp, 0x78
leave
ret

Function at 0x401acc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4360c8]
xor eax, ebp
mov dword [ebp + 0x90], eax
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x401b43
lea eax, [ebp - 0x7c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401b3a
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x7c]
test eax, eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
je 0x401b37
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x78]
push eax
jmp 0x401b48
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x42ee6b
mov ecx, esi
call fcn.004032b4
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
mov eax, esi
call fcn.004197af
add ebp, 0x94
leave
ret
Function at 0x402302
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4360c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402e45
cmp dword [ebp - 0xc], 0
jne 0x402344
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040313e
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004197af
leave
ret 4
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x402350
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402361
mov bl, 1
jmp 0x402327
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40235d
jmp 0x402325
Function at 0x402370
Capabilities:
Create process on windows

Disassembly:
push 0x100
mov eax, 0x426e5a
call fcn.0041afbc
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x40], eax
cmp dword [esi + 0x14], ebx
jne 0x402396
xor al, al
call fcn.0041b03f
ret
push esi
lea ecx, [ebp - 0x30]
call fcn.00402e45
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], vtable.NekoGameSDK4th::Base::File::CFindFile.0
mov dword [ebp - 0x38], ebx
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00406ccb
test al, al
je 0x402468
xor edi, edi
mov eax, esi
call fcn.00402d8e
cmp byte [eax], 0x22
je 0x402468
push 0x42febc
lea ecx, [ebp - 0xa4]
call fcn.004032b4
mov edi, eax
push 0x42fec0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.004032b4
push esi
push eax
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 3
call fcn.00402c36
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00402c36
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00402f3b
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040313e
push ebx
push esi
lea ecx, [ebp - 0xc0]
call fcn.0040313e
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.0040313e
push ebx
push esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.0040313e
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.004141cc
cmp dword [ebp - 0x18], 0x10
mov esi, eax
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x402481
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.0041b3d0
mov dword [ebp - 0x10c], edi
xor eax, eax
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jne 0x4024b8
xor eax, eax
jmp 0x4024c6
cmp dword [eax + 0x18], 0x10
jb 0x4024c3
mov eax, dword [eax + 4]
jmp 0x4024c6
add eax, 4
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call fcn.0041aaca
pop ecx
cmp edi, ebx
jne 0x40250a
mov byte [ebp - 0x31], bl
lea ecx, [ebp - 0x3c]
call fcn.00406c7f
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040313e
mov al, byte [ebp - 0x31]
jmp 0x402390
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
mov byte [ebp - 0x31], 1
jmp 0x4024ef
Function at 0x402520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426df3
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4360c8]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x4360c8]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], ebx
jne 0x402597
xor al, al
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.004197af
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [esp + 0xf0]
call fcn.00402e45
mov dword [esp + 0x118], ebx
mov dword [esp + 0x1c], vtable.NekoGameSDK4th::Base::File::CFindFile.0
mov dword [esp + 0x20], ebx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x11c], 1
call fcn.00406ccb
test al, al
je 0x40268c
xor edi, edi
mov eax, esi
call fcn.00402d8e
cmp byte [eax], 0x22
je 0x40268c
push 0x42fec4
lea ecx, [esp + 0x38]
call fcn.004032b4
mov edi, eax
push 0x42fec8
lea ecx, [esp + 0x8c]
mov byte [esp + 0x11c], 2
call fcn.004032b4
push esi
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x124], 3
call fcn.00402c36
add esp, 0xc
push edi
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x124], 4
call fcn.00402c36
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x124], 5
call fcn.00402f3b
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x74]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x90]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 1
call fcn.0040313e
mov eax, dword [esp + 0x100]
inc eax
push eax
call fcn.004141cc
cmp dword [esp + 0x108], 0x10
mov esi, eax
mov eax, dword [esp + 0xf4]
pop ecx
jae 0x4026b5
lea eax, [esp + 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44
pop edi
push edi
lea eax, [esp + 0xa8]
push ebx
push eax
call fcn.0041b3d0
mov dword [esp + 0xb0], edi
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jne 0x4026f0
xor eax, eax
jmp 0x4026fe
cmp dword [eax + 0x18], 0x10
jb 0x4026fb
mov eax, dword [eax + 4]
jmp 0x4026fe
add eax, 4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xa8]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x2c]
mov edi, eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push esi
call fcn.0041aaca
pop ecx
cmp edi, ebx
jne 0x402755
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x1c]
call fcn.00406c7f
push ebx
push 1
lea ecx, [esp + 0xf4]
call fcn.0040313e
mov al, byte [esp + 0x17]
jmp 0x402573
cmp byte [ebp + 0xc], bl
je 0x402766
push 0xffffffffffffffff
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x17], 1
jmp 0x402734
Function at 0x40276d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0041b3d0
and dword [ebp - 0x34], 0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
call fcn.0040156c
cmp eax, 0xb
mov dword [ebp - 0x30], 0x42fed4
jge 0x4027ad
mov dword [ebp - 0x30], 0x42eec5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4027bb
mov eax, dword [eax + 4]
jmp 0x4027be
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x4027cf
mov eax, dword [eax + 4]
jmp 0x4027d2
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4027e3
mov eax, dword [eax + 4]
jmp 0x4027e6
add eax, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402802
xor al, al
leave
ret
cmp byte [ebp + 0xc], 0
je 0x402813
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x402820
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4360c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x402841
mov ecx, dword [eax + 4]
jmp 0x402844
lea ecx, [eax + 4]
lea edx, [ebp - 0x114]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40284a
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40289f
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x114]
push ecx
call eax
test eax, eax
je 0x4028e2
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
jmp 0x4028e6
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4028e2
mov eax, dword [ebp - 0x11c]
imul eax, dword [ebp - 0x120]
imul eax, dword [ebp - 0x118]
jmp 0x4028e4
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197af
leave
ret

Function at 0x4028f2
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
xor edx, edx
cmp dword [eax + 0x14], edx
jne 0x402901
xor eax, eax
jmp 0x40290f
cmp dword [eax + 0x18], 0x10
jb 0x40290c
mov eax, dword [eax + 4]
jmp 0x40290f
add eax, 4
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x18], 0x10
jb 0x40291e
mov ecx, dword [ecx + 4]
jmp 0x402921
add ecx, 4
push 1
push edx
push edx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
setg al
ret
Function at 0x4046dc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4278bb
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4360c8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4360c8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x194]
push eax
lea ecx, [esp + 0x20]
call fcn.004010a4
xor edi, edi
push str.WaffleSetupInformation
lea ecx, [esp + 0x2c]
mov dword [esp + 0xac], edi
call fcn.004032b4
mov dword [esp + 0x14], eax
lea esi, [esp + 0x44]
mov byte [esp + 0xa8], 1
call fcn.00401acc
mov byte [esp + 0xa8], 2
push dword [esp + 0x14]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00402c36
add esp, 0xc
xor esi, esi
push edi
inc esi
push esi
lea ecx, [esp + 0x4c]
call fcn.0040313e
push edi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 5
call fcn.0040313e
push str.Information.reg
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00404a81
add esp, 0xc
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xb0], 6
call fcn.0040148e
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 7
call fcn.00402f3b
push edi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 6
call fcn.0040313e
lea edi, [esp + 0x60]
lea ecx, [esp + 0x13]
call fcn.004021e7
xor edi, edi
mov dword [esp + 0x14], vtable.NekoGameSDK4th::Base::File::CFindFile.0
mov dword [esp + 0x18], edi
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x18]
call fcn.00406ccb
test al, al
lea ecx, [ebx + 0x188]
lea eax, [esp + 0x7c]
je 0x40488e
push edi
call fcn.00407316
test al, al
jne 0x4048d1
lea ecx, [esp + 0x14]
call fcn.00406c7f
push edi
push esi
lea ecx, [esp + 0x84]
call fcn.0040313e
push edi
push esi
lea ecx, [esp + 0x68]
call fcn.0040313e
or dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004010f9
xor al, al
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004197af
mov esp, ebp
pop ebp
ret
push esi
call fcn.00407316
test al, al
jne 0x4048d1
xor bl, bl
lea ecx, [esp + 0x14]
call fcn.00406c7f
push edi
push esi
lea ecx, [esp + 0x84]
call fcn.0040313e
push edi
push esi
lea ecx, [esp + 0x68]
call fcn.0040313e
or dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004010f9
mov al, bl
jmp 0x40486a
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x4048e0
lea eax, [esp + 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp dword [esp + 0x78], 0x10
mov ecx, dword [esp + 0x64]
jae 0x4048f8
lea ecx, [esp + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, 2
push eax
push ecx
call edi
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x40491d
lea eax, [esp + 0x80]
push eax
call ebx
cmp dword [esp + 0x94], 0x10
mov ecx, dword [esp + 0x80]
jae 0x404938
lea ecx, [esp + 0x80]
or eax, 2
push eax
push ecx
call edi
mov bl, 1
xor edi, edi
jmp 0x40489a
Function at 0x404ec3
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x404eda
mov eax, dword [eax + 4]
jmp 0x404edd
add eax, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
pop esi
test eax, eax
je 0x404f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
inc ecx
mov eax, ecx
ret 4

Function at 0x404f3b
Capabilities:
Set current directory

Disassembly:
push 0x20
mov eax, 0x4286af
call fcn.0041af53
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NekoGameSDK4th::Base::AppFrame::CAppInitializer.0
mov dword [edi + 0x10], eax
call fcn.00405a6b
and dword [ebp - 4], 0
mov dword [edi + 0x34], vtable.NekoGameSDK4th::Base::Auxiliary::CPerformanceCounter.0
lea eax, [edi + 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.00406aed
push edi
mov byte [ebp - 4], 2
call fcn.0040578d
call fcn.0040506c
mov dword [0xc50c00], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00406965
mov ebx, eax
call fcn.004056b4
call fcn.0040cc0b
call fcn.00408547
lea eax, [ebp - 0x2c]
push eax
call fcn.00401763
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x404fd0
mov eax, dword [eax + 4]
jmp 0x404fd3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040313e
mov eax, edi
call fcn.0041b02b
ret 0x10
Function at 0x406b76
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x4360c8]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 0x54
mov eax, 0x42722b
call fcn.0041af53
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x406baa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp]
push eax
push ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x28]
call fcn.004032b4
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.00401440
push eax
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401389
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x406bf2
mov eax, dword [eax + 4]
jmp 0x406bf5
add eax, 4
push eax
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [edi + 4], eax
call fcn.0040313e
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0040313e
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040313e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [edi + 8], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.004197af
add ebp, 0x10c
leave
ret

Function at 0x407316
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.004073f8
cmp dword [edi + 0x18], 0x10
jb 0x40732d
mov edi, dword [edi + 4]
jmp 0x407330
add edi, 4
movzx eax, byte [esi + 8]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x80000000
push ebx
or eax, 0x80
push eax
xor eax, eax
cmp byte [esp + 0x18], bl
sete al
lea eax, [eax + eax + 2]
push eax
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esi + 4], ecx
cmp ecx, 0xffffffff
jne 0x407373
mov dword [esi + 4], ebx
xor al, al
jmp 0x4073ab
cmp byte [esp + 0x10], bl
je 0x407382
mov ecx, esi
call fcn.0040760b
jmp 0x4073a5
mov eax, esi
call fcn.00407621
test al, al
je 0x4073a5
cmp byte [esi + 9], bl
je 0x40739b
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4073a5
push 2
push ebx
mov ecx, esi
call fcn.004075b9
mov byte [esi + 9], 1
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x40742e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edi
call fcn.00407621
test al, al
je 0x40750a
push ebx
mov ecx, edi
call fcn.004075e4
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
push esi
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4074e3
cmp dword [ebp - 4], esi
je 0x40750e
mov ecx, edi
call fcn.004075e4
mov ecx, edi
mov esi, eax
call fcn.0040740f
cmp esi, eax
je 0x4074fb
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x407506
jmp 0x4074be
mov eax, dword [ebp - 4]
add eax, esi
cmp eax, dword [ebp + 0xc]
je 0x40750e
mov ecx, edi
call fcn.004075e4
mov ecx, edi
mov ebx, eax
call fcn.0040740f
cmp ebx, eax
je 0x4074e1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x407506
add esi, dword [ebp - 4]
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407496
jmp 0x4074e3
xor ebx, ebx
push ebx
push dword [ebp - 8]
mov ecx, edi
call fcn.004075b9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xa
jl 0x407454
push ebx
push dword [ebp - 8]
mov ecx, edi
call fcn.004075b9
xor al, al
pop esi
pop ebx
leave
ret 8
mov al, 1
jmp 0x407508

Function at 0x407512
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edi
call fcn.00407621
test al, al
je 0x4075b1
push ebx
mov ecx, edi
call fcn.004075e4
and dword [ebp - 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
push esi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call ebx
test eax, eax
je 0x40758c
mov esi, dword [ebp - 4]
test esi, esi
je 0x40758c
jmp 0x407568
mov eax, dword [ebp - 4]
test eax, eax
je 0x40758c
add esi, eax
cmp esi, dword [ebp + 0xc]
je 0x4075b5
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi + 4]
call ebx
test eax, eax
jne 0x40755f
push 0
push dword [ebp - 0xc]
mov ecx, edi
call fcn.004075b9
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jl 0x40753d
push 0
push dword [ebp - 0xc]
mov ecx, edi
call fcn.004075b9
xor al, al
pop esi
pop ebx
leave
ret 8
mov al, 1
jmp 0x4075af
Function at 0x40770a
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x42785c
call fcn.0041af53
mov esi, ecx
lea eax, [esi + 0x6c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004010a4
and dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea edi, [esi + 0x10]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], 0
lea ebx, [esi + 8]
mov byte [esi + 0xc], 1
push ebx
jne 0x407785
push 0
push esi
push 0x407a16
push 0x100000
push 0
call fcn.0041acfc
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x4077c8
and dword [ebx], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004010f9
xor al, al
call fcn.0041b02b
ret 4
push 4
push esi
push 0x407a16
push 0x100000
push 0
call fcn.0041acfc
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x4077b7
and dword [ebx], eax
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004010f9
mov al, bl
jmp 0x40777d
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 8]
mov bl, 1
jmp 0x4077a7