joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401600
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa4
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push edi
mov edi, dword [ebp + 0x7c]
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], ebx
je 0x4016fc
push esi
push 0x27
lea eax, [ebp + 0x49]
push ebx
push eax
mov byte [ebp + 0x48], bl
call fcn.0040c620
add esp, 0xc
push str.33D55E00_1916_4656_A942_92D420609FC0
push 0x27
lea eax, [ebp + 0x48]
push eax
call fcn.0040127e
lea eax, [ebp + 0x48]
push eax
call fcn.00401000
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push ebx
push ebx
push edi
call esi
push 0x27
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1b]
push ebx
push eax
mov byte [ebp - 0x1c], bl
call fcn.0040c620
push 0x3c
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.0040c620
mov eax, dword [ebp - 0x20]
add eax, 0xffffff9c
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x24], ebx
jbe 0x4016f3
mov eax, dword [ebp - 0x20]
add eax, 0xffffff9c
mov dword [ebp - 0x28], eax
push 0x64
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0040c620
add esp, 0xc
push ebx
push ebx
push dword [ebp - 0x28]
push edi
call esi
cmp eax, 0xffffffff
je 0x4016e2
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x64
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4016e2
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp + 0xb], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401710
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x24]
dec dword [ebp - 0x28]
add eax, 0xffffff9c
cmp dword [ebp - 0x24], eax
jb 0x401698
push ebx
push ebx
push dword [ebp - 0x20]
push edi
call esi
pop esi
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x74
leave
ret
mov dword [ebp - 0x2c], 1
jmp 0x4016fb
Function at 0x401ab2
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x4a0]
sub esp, 0x520
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x49c], eax
push ebx
mov ebx, dword [ebp + 0x4a8]
push esi
push edi
mov esi, 0x40f
push esi
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.0040c620
mov edi, 0x104
push edi
lea eax, [ebp + 0x395]
push 0
push eax
mov byte [ebp + 0x394], 0
call fcn.0040c620
or dword [ebp - 0x80], 0xffffffff
push ebx
push str._s_setup.exe
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004012ea
add esp, 0x28
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401bcd
xor ebx, ebx
inc ebx
push ebx
push edi
lea eax, [ebp + 0x394]
push eax
call fcn.004019ef
test eax, eax
je 0x401b96
push str.__Cmd
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004012ae
lea eax, [ebp + 0x394]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004012ae
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
test edi, edi
je 0x401b96
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b96
push 0x4152e4
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004012ae
push edi
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004012ae
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push eax
call fcn.00402526
test eax, eax
je 0x401bca
mov ecx, dword [0x419870]
test ecx, ecx
je 0x401bca
mov eax, dword [0x419868]
test eax, eax
je 0x401bca
push dword [0x41986c]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x80], ebx
mov ecx, dword [ebp + 0x49c]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x4a0
leave
ret
Function at 0x401be8
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2ac]
sub esp, 0x32c
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x2a8], eax
mov eax, dword [ebp + 0x2bc]
push ebx
mov ebx, dword [ebp + 0x2b4]
push esi
push edi
mov edi, 0x104
push edi
mov dword [ebp - 0x7c], eax
xor esi, esi
lea eax, [ebp + 0x1a1]
push esi
push eax
mov byte [ebp + 0x1a0], 0
call fcn.0040c620
push edi
lea eax, [ebp + 0x99]
push esi
push eax
mov byte [ebp + 0x98], 0
call fcn.0040c620
push edi
lea eax, [ebp - 0x6f]
push esi
push eax
mov byte [ebp - 0x70], 0
call fcn.0040c620
add esp, 0x24
push str.EAC_ARCHIVEDATA00
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test ebx, ebx
mov esi, eax
je 0x401cb5
cmp dword [ebp - 0x7c], 0
je 0x401cb5
lea eax, [esi + 0x140]
cmp dword [ebp + 0x2b8], eax
jbe 0x401cb5
lea eax, [esi + 1]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str.EAC_ARCHIVEDATA00
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401dbe
mov eax, dword [ebp + 0x2b8]
add ebx, esi
sub eax, esi
mov dword [ebp - 0x74], eax
jne 0x401cd3
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x2a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x2ac
leave
ret
mov eax, dword [ebp - 0x74]
push dword [ebp + 0x2b8]
lea ecx, [ebx + 0x2c]
push eax
push ecx
mov esi, ebx
call fcn.00401992
lea eax, [ebx + 0x2c]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1a0]
push str._s_s
push edi
push eax
call fcn.004012ea
add esp, 0x20
lea eax, [ebp + 0x1a0]
push eax
push edi
lea eax, [ebp + 0x98]
push eax
call fcn.0040127e
push 0x5c
push 0
lea eax, [ebp + 0x98]
push eax
call fcn.004024ea
test eax, eax
je 0x401d38
mov byte [eax], 0
lea eax, [ebp + 0x98]
push eax
call fcn.00402618
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
je 0x401db8
push 0
lea ecx, [ebp - 0x80]
push ecx
push dword [esi + 0x20]
add ebx, 0x140
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esi + 0x20]
mov eax, 0xfffffec0
sub eax, esi
add ebx, esi
add dword [ebp - 0x74], eax
jne 0x401cd0
jmp 0x401cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x401cb8
Function at 0x401dc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x9c]
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, 0x104
push esi
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.0040c620
add esp, 0xc
test edi, edi
je 0x401e79
test ebx, ebx
je 0x401e79
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401e79
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x401e47
cmp byte [edi], 0x5c
jne 0x401e2e
cmp al, 0x5c
je 0x401e47
push 0
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004019ef
push edi
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.004012ae
jmp 0x401e52
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401e79
push dword [ebp + 0xa0]
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x90
leave
ret 0xc

Function at 0x401e96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 0x14]
cmp esi, eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jne 0x401eb9
mov esi, ebx
imul esi, esi, 5
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea eax, [ebx + 0x14]
push eax
call edi
push esi
mov dword [ebp + 0x14], eax
call edi
cmp dword [ebp + 0x14], 0
mov edi, eax
je 0x401f63
test edi, edi
je 0x401f63
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f63
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.00402ab0
add esp, 0x10
test eax, eax
je 0x401f47
and dword [ebp - 8], 0
cmp eax, 0xfffffffb
jne 0x401f5f
add esi, esi
cmp esi, 0x20000000
ja 0x401f63
push esi
push edi
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov edi, eax
test edi, edi
je 0x401f63
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.00402ab0
add esp, 0x10
test eax, eax
jne 0x401f12
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.00401be8
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x401f63
and dword [ebp - 8], 0
push dword [ebp + 0x14]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push edi
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f79
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1bc]
push ebx
push esi
mov esi, dword [ebp + 0x1b8]
push edi
xor ebx, ebx
mov edi, 0x104
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x9d]
push ebx
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp + 0x9c], bl
call fcn.0040c620
push edi
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.0040c620
xor eax, eax
mov byte [ebp + 0x1a4], bl
lea edi, [ebp + 0x1a5]
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x18
cmp esi, ebx
stosb byte es:[edi], al
je 0x40210d
cmp dword [ebp - 0x70], ebx
je 0x40210d
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x105
push edi
lea eax, [ebp + 0x9c]
push eax
push esi
call fcn.00401dc5
test eax, eax
je 0x40210d
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
push dword [ebp - 0x70]
call fcn.00401719
test eax, eax
je 0x40210d
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x70], esi
je 0x40210d
push ebx
lea eax, [ebp - 0x7c]
push eax
push 7
lea eax, [ebp + 0x1a4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push esi
call edi
push dword [ebp - 0x70]
call fcn.00401600
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x70]
call fcn.00401535
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x80], esi
je 0x402104
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
neg esi
push ebx
lea eax, [esi - 0x64]
push eax
push dword [ebp - 0x70]
call edi
cmp eax, 0xffffffff
je 0x402104
cmp eax, ebx
jne 0x4020e0
push 0x415308
lea eax, [ebp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402104
mov dword [ebp - 0x74], 1
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call fcn.00401e96
add esp, 0x10
push 1
push ebx
push esi
push dword [ebp - 0x70]
call edi
cmp dword [ebp - 0x74], 1
jne 0x402085
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040c69a
add ebp, 0x1b0
leave
ret 8
Function at 0x40246c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x4024be
cmp dword [ebp + 0xc], esi
je 0x4024be
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4024be
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4024b5
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x18

Function at 0x402526
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4f4]
sub esp, 0x574
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x4f0], eax
mov eax, dword [ebp + 0x4fc]
push ebx
push esi
mov esi, dword [ebp + 0x504]
push edi
xor ebx, ebx
push 0x40
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.0040c620
or dword [ebp - 0x28], 0xffffffff
push 0x513
lea eax, [ebp - 0x23]
push ebx
push eax
mov byte [ebp - 0x24], bl
call fcn.0040c620
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x18
cmp dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
je 0x4025fb
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, ebx
jne 0x4025a8
mov dword [ebp - 0x80], 0x44
lea esi, [ebp - 0x80]
lea eax, [ebp - 0x3c]
push eax
push esi
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4025fb
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x500]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4025f6
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4025f6
or dword [ebp - 0x28], 0xffffffff
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x4f0]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x4f4
leave
ret 0xc
Function at 0x402618
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x98]
push 0x103
lea eax, [ebp - 0x77]
push 0
push eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x78], 0
call fcn.0040c620
add esp, 0xc
test ebx, ebx
je 0x402755
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40274e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jae 0x402755
push esi
push edi
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [ebp - 0x78]
push 0x5c
push edi
call fcn.004024c5
mov esi, eax
test esi, esi
jne 0x4026ae
push 0x2f
push edi
call fcn.004024c5
mov esi, eax
test esi, esi
je 0x402722
lea eax, [ebp - 0x78]
cmp esi, eax
jbe 0x4026f5
movsx eax, byte [esi - 1]
cmp eax, 0x81
jl 0x4026c7
cmp eax, 0x9f
jle 0x4026d5
cmp eax, 0xe0
jl 0x4026f5
cmp eax, 0xef
jg 0x4026f5
mov al, byte [esi]
cmp al, 0x40
jl 0x4026df
cmp al, 0x7e
jle 0x4026f0
movsx eax, al
cmp eax, 0x80
jl 0x4026f5
cmp eax, 0xfc
jg 0x4026f5
lea edi, [esi + 1]
jmp 0x402692
mov bl, byte [esi]
lea eax, [ebp - 0x78]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402715
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], bl
mov ebx, dword [ebp - 0x80]
lea edi, [esi + 1]
jmp 0x402692
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x78]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402744
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call esi
cmp eax, 0xffffffff
pop edi
pop esi
je 0x402755
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x90
leave
ret 4
Function at 0x4027e8
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x2dc]
sub esp, 0x35c
mov eax, dword [0x4187e0]
xor eax, ebp
mov dword [ebp + 0x2d8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2e4]
xor ebx, ebx
push 0x13c
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], ebx
call fcn.0040c620
mov esi, 0x103
push esi
lea eax, [ebp + 0xd1]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov byte [ebp + 0xd0], bl
call fcn.0040c620
push esi
lea eax, [ebp + 0x1d5]
push ebx
push eax
mov byte [ebp + 0x1d4], bl
call fcn.0040c620
add esp, 0x24
cmp edi, ebx
je 0x4029c3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x100
jge 0x4029c3
push edi
lea eax, [ebp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
push esi
lea eax, [ebp + 0xd0]
push eax
call fcn.00402770
push 0x4154d0
lea eax, [ebp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x74], eax
je 0x4029c3
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x4154cc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402974
push 0x4154c8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402974
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x78]
lea eax, [ebp + 0x1d4]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test dword [ebp - 0x70], 0x10
lea eax, [ebp + 0x1d4]
push eax
je 0x40292f
call fcn.004027e8
jmp 0x402974
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402974
call ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x1d4]
push eax
call esi
cmp eax, 0xffffffff
je 0x402974
mov eax, dword [ebp - 0x7c]
add eax, 0x3a98
mov dword [ebp - 0x7c], eax
call ebx
cmp eax, dword [ebp - 0x7c]
jae 0x402974
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x1d4]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402957
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x4028d2
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call ebx
push dword [ebp - 0x78]
mov edi, eax
call esi
cmp eax, 0xffffffff
je 0x4029c3
add edi, 0x3a98
call ebx
cmp eax, edi
jae 0x4029c3
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x78]
call esi
cmp eax, 0xffffffff
jne 0x4029ab
mov ecx, dword [ebp + 0x2d8]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c69a
add ebp, 0x2dc
leave
ret 4
Function at 0x40c69a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4187e0]
jne 0x40c6a4
repz ret
jmp fcn.0040e360
Function at 0x410c9f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x419488]
je 0x410cba
inc edi
cmp edi, 0x17
jb 0x410cab
cmp edi, 0x17
jae 0x410e3a
push ebp
push 3
call fcn.00413fd8
cmp eax, 1
pop ecx
je 0x410e06
push 3
call fcn.00413fd8
test eax, eax
pop ecx
jne 0x410cee
cmp dword [0x4187f4], 1
je 0x410e06
cmp ebx, 0xfc
je 0x410e39
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41b748
push ebp
call fcn.00413279
add esp, 0xc
test eax, eax
je 0x410d24
push esi
push esi
push esi
push esi
push esi
call fcn.0040ded0
add esp, 0x14
push 0x104
mov esi, 0x41b761
push esi
push 0
mov byte [0x41b865], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410d68
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00413279
add esp, 0xc
test eax, eax
je 0x410d68
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040ded0
add esp, 0x14
push esi
call fcn.00412950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410dad
push esi
call fcn.00412950
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41ba5c
push 0x415f5c
sub ecx, eax
push ecx
push eax
call fcn.004131c6
add esp, 0x14
test eax, eax
je 0x410dad
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040ded0
add esp, 0x14
jmp 0x410daf
xor esi, esi
push 0x415f58
push ebx
push ebp
call fcn.0041310b
add esp, 0xc
test eax, eax
je 0x410dcf
push esi
push esi
push esi
push esi
push esi
call fcn.0040ded0
add esp, 0x14
push dword [edi*8 + 0x41948c]
push ebx
push ebp
call fcn.0041310b
add esp, 0xc
test eax, eax
je 0x410df1
push esi
push esi
push esi
push esi
push esi
call fcn.0040ded0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00413e1b
add esp, 0xc
jmp 0x410e39
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x410e39
cmp ebp, 0xffffffff
je 0x410e39
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41948c]
push dword [esi]
call fcn.00412950
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x413e1b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ef01
xor ebx, ebx
cmp dword [0x41bbb8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x413ef1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413fd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4169bc
push edi
call esi
cmp eax, ebx
je 0x413fd1
push eax
call fcn.0040ee93
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41bbb8], eax
call esi
push eax
call fcn.0040ee93
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bbbc], eax
call esi
push eax
call fcn.0040ee93
mov dword [0x41bbc0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c8dd
test eax, eax
pop ecx
pop ecx
je 0x413ebf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ded0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x413ef1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ee93
cmp eax, ebx
pop ecx
mov dword [0x41bbc8], eax
je 0x413ef1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ee93
pop ecx
mov dword [0x41bbc4], eax
mov eax, dword [0x41bbc4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x413f76
cmp dword [0x41bbc8], ecx
je 0x413f76
push eax
call fcn.0040ef0a
push dword [0x41bbc8]
mov esi, eax
call fcn.0040ef0a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x413f76
cmp edi, ebx
je 0x413f76
call esi
cmp eax, ebx
je 0x413f43
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413f43
test byte [ebp - 0x18], 1
jne 0x413f76
lea eax, [ebp - 0x10]
push eax
call fcn.0040c914
test eax, eax
pop ecx
je 0x413f5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ded0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x413f6d
or dword [ebp + 0x10], 0x200000
jmp 0x413fb1
or dword [ebp + 0x10], 0x40000
jmp 0x413fb1
mov eax, dword [0x41bbbc]
cmp eax, dword [ebp - 8]
je 0x413fb1
push eax
call fcn.0040ef0a
cmp eax, ebx
pop ecx
je 0x413fb1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413fb1
mov eax, dword [0x41bbc0]
cmp eax, dword [ebp - 8]
je 0x413fb1
push eax
call fcn.0040ef0a
cmp eax, ebx
pop ecx
je 0x413fb1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bbb8]
call fcn.0040ef0a
cmp eax, ebx
pop ecx
je 0x413fd1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413fd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret