joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5505d0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x58e0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x550510
push 0
push 0
call fcn.00559957
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x55063b
lea ecx, [esp + 0x10]
call fcn.00551d61
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040e780
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x55065e
cmp eax, 0xffffffff
je 0x55065e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x551802
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6236f8]
jne 0x55180c
repz ret
jmp fcn.005599f7

Function at 0x568584
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0055bff7
and dword [ebp - 0x14], 0
cmp dword [0x62fb44], 0
mov dword [ebp - 0x18], eax
jne 0x568637
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5686df
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5686df
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5dcb14
push ebx
mov dword [0x62fb44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62fb48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x62fb4c], eax
call edi
push eax
call esi
mov dword [0x62fb54], eax
test eax, eax
je 0x568637
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x62fb50], eax
mov eax, dword [0x62fb50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x568690
cmp dword [0x62fb54], ecx
je 0x568690
push eax
call esi
push dword [0x62fb54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x568690
test ebx, ebx
je 0x568690
call edi
test eax, eax
je 0x568687
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x568687
test byte [ebp - 8], 1
jne 0x568690
or dword [ebp + 0x10], 0x200000
jmp 0x5686c3
mov eax, dword [0x62fb48]
cmp eax, dword [ebp - 0x18]
je 0x5686c3
push eax
call esi
test eax, eax
je 0x5686c3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5686c3
mov eax, dword [0x62fb4c]
cmp eax, dword [ebp - 0x18]
je 0x5686c3
push eax
call esi
test eax, eax
je 0x5686c3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62fb44]
call esi
test eax, eax
je 0x5686df
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5686e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551802
leave
ret
Function at 0x409368
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
jmp 0x409411
cmp dword [esi + 0x10], 0x1000
jne 0x4093fd
test byte [esi + 0x15], 1
jne 0x4093fd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4093bc
cmp eax, 2
je 0x4093bc
cmp eax, 0x10
je 0x4093bc
cmp eax, 0x20
jne 0x4093d1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4093d1
mov bl, 1
xor ebp, ebp
jmp 0x4093e2
mov eax, dword [esi]
add eax, ebp
call fcn.00409360
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4093d5
test bl, bl
je 0x4093fd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409394
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10acd000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x10acd00a
jmp 0x10acf00f
jmp fcn.10857058

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x58400d2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x79524e70
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x411a10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x411a32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411a28
mov eax, 1
add ebx, ebx
jne 0x411a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411a40
jne 0x411a5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411a40
xor ecx, ecx
sub eax, 3
jb 0x411a70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411ae2
mov ebp, eax
add ebx, ebx
jne 0x411a7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411a88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411aac
inc ecx
add ebx, ebx
jne 0x411a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411a8d
jne 0x411aa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411a8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411abd
jmp 0x411a2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411acc
add edi, ecx
jmp 0x411a2e
pop esi
mov edi, esi
mov ecx, 0x1d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411aea
cmp byte [edi], 0xa
jne 0x411aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x411aef
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11054]
or eax, eax
je 0x411b58
mov dword [ebx], eax
add ebx, 4
jmp 0x411b39
call dword [esi + 0x11058]
popal
jmp 0x40231a
Function at 0x4014df
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00410490
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
and byte [ebp - 0x18], 0
lea esi, [ecx + 0x1c]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401ffc
push dword [esi + 4]
mov ebx, str.Languages
push 1
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [edi + 0x5c], eax
jle 0x401592
lea eax, [edi + 0x60]
mov dword [ebp - 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [ebp - 0x24]
push str.0x0009
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040cddf
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], ax
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x40153e
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push str.0x0009
push str.Default
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040cddf
and byte [ebp - 0x424], 0
pop ecx
mov word [edi + 0x58], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401ffc
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x415580
push 0x400
push eax
push edi
push str.RequireExactLangMatch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x424]
test ecx, ecx
lea ebx, [ebp - 0x424]
je 0x40165b
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x40165b
cmp cl, 0x2c
je 0x401636
inc ebx
jmp 0x401657
and byte [ebx], 0
add eax, 2
push eax
call fcn.0040cddf
test eax, eax
pop ecx
je 0x401654
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov word [ecx], ax
inc ebx
mov eax, ebx
test ebx, ebx
jne 0x401628
add eax, 2
push eax
call fcn.0040cddf
test eax, eax
pop ecx
je 0x401677
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
lea eax, [ebp - 0x1424]
push 0x1000
push eax
push edi
push str.cmdline
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1424]
push eax
call fcn.0040116f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0x1f0], 0
jne 0x4028f1
mov eax, dword [ebp + 8]
push 5
push 0x75
mov dword [esi + 0x7c], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4028f9
or eax, 0xffffffff
jmp 0x4029cd
push ebx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and byte [ebp - 0x40], 0
push 0xc
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ax, word [esi + 0xc]
cmp ax, 0x804
jne 0x40292d
push 0x414100
jmp 0x402957
cmp ax, 0x404
jne 0x40293a
push 0x4140f8
jmp 0x402957
and eax, 0xff
cmp ax, 0x11
jne 0x40294c
push str.MS_UI_Gothic
jmp 0x402957
cmp ax, 0x12
jne 0x4029a0
push 0x4140e0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040237b
lea eax, [ebp - 0x40]
push 9
push eax
lea ecx, [ebp - 0xc]
call fcn.00402526
push esi
push 0x402640
push dword [esi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
lea ecx, [ebp - 0xc]
mov dword [esi + 0x78], eax
call fcn.0040240a
jmp 0x4029b5
push esi
push 0x402640
push dword [esi + 8]
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [esi + 0x78], eax
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 5
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 4
Function at 0x402c44
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esi], eax
xor eax, eax
lea edi, [esi + 0x18]
mov dword [esi + 0x14], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x41230c
mov dword [edi + 0x14], 0x412314
call fcn.00401a43
mov ebx, 0x412308
push 0
mov dword [edi], ebx
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [edi + 0xc], 0x41230c
mov dword [edi + 0x14], 0x412314
call fcn.00401a43
mov eax, dword [ebp + 0x18]
mov dword [edi], ebx
and dword [esi + 0x50], 0
lea edi, [esi + 0x58]
mov dword [esi + 0x54], eax
push 0
mov ecx, edi
mov dword [edi + 0xc], 0x41230c
mov dword [edi + 0x14], 0x412314
call fcn.00401a43
mov dword [edi], ebx
xor eax, eax
and byte [esi + 0x80], al
lea edi, [esi + 0x88]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], eax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x41230c
mov dword [edi + 0x14], 0x412314
call fcn.00401a43
lea ecx, [esi + 0xa8]
push 1
mov dword [edi], ebx
call fcn.00403dfd
push 1
lea ecx, [esi + 0xc4]
call fcn.00403dfd
lea eax, [esi + 0x34]
push 0x104
push eax
lea ecx, [ebp - 0x10]
call fcn.00403a9d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004029d2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.00403ab7
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x34]
push eax
call fcn.00404135
push eax
lea ecx, [esi + 0x34]
call fcn.00401ba8
lea ecx, [ebp - 0x28]
call fcn.00401b16
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00403e5b
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00401ba8
lea ecx, [ebp - 0x1c]
call fcn.00401b16
push str.issetup
mov ecx, edi
call fcn.0040481e
push edi
mov ecx, edi
call fcn.00404452
mov ecx, edi
call fcn.00401ffc
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
mov dword [ebp - 0x38], 0x41230c
mov dword [ebp - 0x30], 0x412314
call fcn.0040399e
mov dword [ebp - 0x44], ebx
mov ebx, str.setup.ini
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040481e
lea ecx, [ebp - 0x6c]
call fcn.00402e6f
push 0
lea eax, [ebp - 0x44]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403e2a
lea ecx, [ebp - 0x6c]
call fcn.00402ea6
test al, al
je 0x402e23
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404b36
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x1c]
call fcn.00401b16
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
call fcn.004033c7
push 0x204
call fcn.0040cdc9
test eax, eax
pop ecx
je 0x402e42
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
push dword [ebp + 0xc]
call fcn.0040105a
jmp 0x402e44
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [esi + 4], eax
mov dword [ebp - 0x6c], 0x41234c
call fcn.0040339f
lea ecx, [ebp - 0x64]
call fcn.00401b16
lea ecx, [ebp - 0x44]
call fcn.00401b16
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4033c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402e6f
push 2
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.00403e2a
lea ecx, [ebp - 0x2c]
call fcn.0040348c
test al, al
jne 0x403413
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x41234c
call fcn.0040339f
lea ecx, [ebp - 0x24]
call fcn.00401b16
xor al, al
jmp 0x403485
mov esi, 0x1400
push esi
call fcn.0040cdc9
mov ebx, eax
push esi
push 0
push ebx
call fcn.00410410
add esp, 0x10
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.0040357a
mov edi, eax
test edi, edi
je 0x403460
cmp edi, 0xffffffff
je 0x403460
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push ebx
call fcn.00410410
add esp, 0xc
jmp 0x40342c
lea ecx, [ebp - 0x2c]
call fcn.0040339f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x41234c
call fcn.0040339f
lea ecx, [ebp - 0x24]
call fcn.00401b16
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40372e
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
push ebx
push 0x104
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp byte [eax + esi + 7], 0x5c
jne 0x403767
push ebx
call edi
and byte [eax + esi + 7], 0
lea edi, [esi + 0x10c]
push ebx
push str._s_isdelet.ini
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x403e5b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
and byte [ebp - 0x1fc], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, 0x41230c
mov edi, 0x412314
mov esi, 0x412308
je 0x403fab
cmp dword [ebp - 0xe8], 1
jne 0x403fab
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.0040399e
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.0040481e
lea ecx, [ebp - 0x20]
call fcn.00401ffc
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x403f8b
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00404045
pop ecx
pop ecx
mov ecx, eax
call fcn.00404280
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ba8
lea ecx, [ebp - 0x64]
call fcn.00401b16
lea ecx, [ebp - 0x3c]
call fcn.00401b16
push 0x41418c
lea ecx, [ebp - 0x20]
call fcn.0040481e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403a0d
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x404039
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00401ffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00401b16
cmp byte [ebp - 0x1fc], 0
je 0x403fe4
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.0040399e
push 0x414188
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.0040481e
jmp 0x404008
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.0040399e
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403a0d
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x404030
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00401b16
test byte [ebp - 4], 1
je 0x40403e
lea ecx, [ebp - 0x3c]
call fcn.00401b16
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404045
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x4040c4
lea eax, [ebp - 0x140]
mov edi, 0x412314
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x41230c
mov dword [ebp - 0xc], edi
call fcn.0040399e
mov esi, 0x412308
push 0x414188
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.0040481e
jmp 0x4040f5
lea eax, [ebp - 0x140]
mov edi, 0x412314
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x41230c
mov dword [ebp - 0x28], edi
call fcn.0040399e
mov esi, 0x412308
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x41230c
mov dword [ecx + 0x14], edi
call fcn.00403a0d
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x404121
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00401b16
test byte [ebp - 4], 1
je 0x40412f
lea ecx, [ebp - 0x20]
call fcn.00401b16
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x404452
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.004046f1
mov edi, eax
mov ecx, edi
call fcn.00401ffc
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.0040461b
mov edi, eax
mov ecx, edi
call fcn.00401ffc
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.004029d2
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00401b16
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea ecx, [ebp - 0x14]
call fcn.00403ab7
test bl, bl
jne 0x404559
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4045bd
cmp word [ebp - 4], 3
jge 0x404559
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.004046f1
mov ebx, eax
mov ecx, ebx
call fcn.00401ffc
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040461b
mov ebx, eax
mov ecx, ebx
call fcn.00401ffc
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.004029d2
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x4044b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401ffc
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404578
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.004045d6
jmp 0x4045cd
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4