joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010dc
Capabilities:
Set registry value

Disassembly:
jmp 0x4016f0
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40175d
mov edi, dword [esp + 4]
test edi, edi
je 0x40175d
mov edx, dword [esp + 0x18]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401725
sub eax, esi
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push edx
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x401140
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x408990
sub esp, 0x144
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4089d7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
test byte [esp + 4], 0x10
push edi
je 0x4089f8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
je 0x408a1b
test byte [esp + 8], 0x10
jne 0x4089e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040c96a
add esp, 0x144
ret

Function at 0x401181
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4015b0
sub esp, 0x114
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
jne 0x4015ff
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040c96a
add esp, 0x114
ret
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015e6
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push esi
push eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4015e6
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401660
sub eax, edx
cmp dword [esp + 0x130], eax
jb 0x4015e6
lea eax, [esp + 0x14]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401682
mov ecx, dword [esp + 0x118]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c96a
add esp, 0x114
ret
Function at 0x40120d
Capabilities:
Read file on windows

Disassembly:
jmp 0x402aa0
sub esp, 0x130
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov edi, dword [esp + 0x13c]
push 0x103
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call fcn.0040d630
add esp, 0xc
push 0x104
lea ecx, [esp + 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.Current_setup_file:
call fcn.004010d2
lea edx, [esp + 0x34]
push edx
call fcn.004010d2
lea eax, [esp + 0x38]
push 0x437fe0
push eax
call fcn.0040d5c5
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402b3a
push str.Open_setup_file_failed__ignored.
call fcn.004010d2
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
push 0
push 0x48800
push esi
call fcn.0040d47c
add esp, 0xc
test eax, eax
je 0x402b7a
push str.Begin_read_file_failed__ignored.
call fcn.004010d2
push esi
call fcn.0040d379
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
push esi
push 0x14
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.0040d2ec
add esp, 0x10
test eax, eax
push esi
jne 0x402bbc
call fcn.0040d379
push str.Read_info_failed__ignored.
call fcn.004010d2
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
call fcn.0040d379
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push str.DamStp
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call fcn.004010c3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add esp, 0x14
cmp eax, ecx
jb 0x402c03
jne 0x402c2b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
cmp eax, ecx
jae 0x402c29
push str.wrong_version__ignored.
call fcn.004010d2
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
je 0x402c38
push str.higher_version____1.
call fcn.004010d2
add esp, 4
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c96a
add esp, 0x130
ret
Function at 0x40121c
Capabilities:
Read file on windows

Disassembly:
jmp 0x408dc0
push ecx
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408e0f
cmp dword [esp + 8], edi
jne 0x408e0f
xor eax, eax
test edi, edi
jbe 0x408e06
mov dl, byte [eax + esi]
neg dl
mov byte [eax + esi], dl
add eax, 1
cmp eax, edi
jb 0x408df7
pop edi
mov eax, 1
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x40123f
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x408a70
sub esp, 0x144
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408ab7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
test byte [esp + 4], 0x10
push edi
jne 0x408ad8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
je 0x408afb
test byte [esp + 8], 0x10
je 0x408ac5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040c96a
add esp, 0x144
ret

Function at 0x4015b0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4015b0
sub esp, 0x114
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
jne 0x4015ff
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040c96a
add esp, 0x114
ret
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015e6
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push esi
push eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4015e6
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401660
sub eax, edx
cmp dword [esp + 0x130], eax
jb 0x4015e6
lea eax, [esp + 0x14]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401682
mov ecx, dword [esp + 0x118]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c96a
add esp, 0x114
ret
Function at 0x402aa0
Capabilities:
Read file on windows

Disassembly:
jmp 0x402aa0
sub esp, 0x130
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov edi, dword [esp + 0x13c]
push 0x103
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call fcn.0040d630
add esp, 0xc
push 0x104
lea ecx, [esp + 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.Current_setup_file:
call fcn.004010d2
lea edx, [esp + 0x34]
push edx
call fcn.004010d2
lea eax, [esp + 0x38]
push 0x437fe0
push eax
call fcn.0040d5c5
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402b3a
push str.Open_setup_file_failed__ignored.
call fcn.004010d2
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
push 0
push 0x48800
push esi
call fcn.0040d47c
add esp, 0xc
test eax, eax
je 0x402b7a
push str.Begin_read_file_failed__ignored.
call fcn.004010d2
push esi
call fcn.0040d379
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
push esi
push 0x14
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.0040d2ec
add esp, 0x10
test eax, eax
push esi
jne 0x402bbc
call fcn.0040d379
push str.Read_info_failed__ignored.
call fcn.004010d2
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
call fcn.0040d379
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push str.DamStp
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call fcn.004010c3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add esp, 0x14
cmp eax, ecx
jb 0x402c03
jne 0x402c2b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
cmp eax, ecx
jae 0x402c29
push str.wrong_version__ignored.
call fcn.004010d2
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040c96a
add esp, 0x130
ret
je 0x402c38
push str.higher_version____1.
call fcn.004010d2
add esp, 4
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c96a
add esp, 0x130
ret
Function at 0x408990
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x408990
sub esp, 0x144
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4089d7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
test byte [esp + 4], 0x10
push edi
je 0x4089f8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
je 0x408a1b
test byte [esp + 8], 0x10
jne 0x4089e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040c96a
add esp, 0x144
ret

Function at 0x408a70
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x408a70
sub esp, 0x144
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408ab7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
test byte [esp + 4], 0x10
push edi
jne 0x408ad8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
je 0x408afb
test byte [esp + 8], 0x10
je 0x408ac5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040c96a
add esp, 0x144
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040c96a
add esp, 0x144
ret
Function at 0x408b90
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
jmp 0x408b90
sub esp, 0x34c
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
mov esi, dword [esp + 0x358]
push edi
mov edi, dword [esp + 0x360]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x255]
push ebx
push eax
mov byte [esp + 0x25c], bl
call fcn.0040d630
push edi
push esi
lea ecx, [esp + 0x264]
push 0x4383d0
push ecx
call fcn.0040c979
add esp, 0x1c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408c83
push ebp
push 0x103
lea ecx, [esp + 0x155]
push ebx
push ecx
mov byte [esp + 0x15c], bl
call fcn.0040d630
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
test byte [esp + 0x10], 0x10
jne 0x408c6b
lea edx, [esp + 0x3c]
push edx
push esi
lea eax, [esp + 0x158]
push 0x4383d0
push eax
call fcn.0040c979
add esp, 0x10
push 0x80
lea ecx, [esp + 0x154]
push ecx
call ebp
lea edx, [esp + 0x150]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408c30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c96a
add esp, 0x34c
ret

Function at 0x408ef0
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x408ef0
sub esp, 0x358
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x368]
xor ebx, ebx
push 0x104
lea eax, [esp + 0x25d]
push ebx
push eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x264], bl
call fcn.0040d630
push 0x4381f4
push esi
lea ecx, [esp + 0x26c]
push 0x4383d0
push ecx
call fcn.0040c979
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40903b
push 0x104
lea ecx, [esp + 0x155]
push ebx
push ecx
mov byte [esp + 0x15c], bl
call fcn.0040d630
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 0xc
push edi
jmp 0x408f90
test byte [esp + 0x14], 0x10
je 0x409023
mov edi, 0x4388d8
lea esi, [esp + 0x40]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x409023
mov edi, 0x439088
lea esi, [esp + 0x40]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x409023
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x15c]
push 0x4383d0
push eax
call fcn.0040c979
lea ecx, [esp + 0x164]
push ecx
call fcn.0040123f
add esp, 0x14
test eax, eax
je 0x409023
lea edx, [esp + 0x154]
push 0x4381f4
push edx
call fcn.0040104b
lea eax, [esp + 0x15c]
push eax
call fcn.00401019
add esp, 0xc
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [esp + 0x14]
push edx
push ebp
call ebx
test eax, eax
jne 0x408f90
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [esp + 0x360]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c96a
add esp, 0x358
ret
Function at 0x40c96a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f1c0]
jne 0x40c974
repz ret
jmp fcn.0040ed85
Function at 0x40d035
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40d072
cmp dword [ebp + 0x14], edi
je 0x40d072
cmp ecx, edi
jne 0x40d079
call fcn.0040e94e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040e8d6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40d08d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40d0ae
cmp ebx, 0xffffffff
je 0x40d09d
push ebx
push edi
push ecx
call fcn.0040d630
add esp, 0xc
cmp esi, edi
je 0x40d05a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40d05a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40d0ca
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40d0d1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40d1c2
test word [esi + 0xc], 0x10c
je 0x40d125
mov eax, dword [esi + 4]
test eax, eax
je 0x40d125
jl 0x40d223
cmp ebx, eax
mov edi, ebx
jb 0x40d0f6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40d1ca
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040c894
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40d1ba
cmp ebx, dword [ebp - 0xc]
jb 0x40d192
cmp dword [ebp - 0xc], 0
je 0x40d14f
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40d144
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40d14b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40d15a
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40d15a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40d1f6
push eax
push dword [ebp - 8]
push esi
call fcn.004121da
pop ecx
push eax
call fcn.004120dd
add esp, 0xc
test eax, eax
je 0x40d235
cmp eax, 0xffffffff
je 0x40d223
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40d1ba
push esi
call fcn.004119fc
cmp eax, 0xffffffff
pop ecx
je 0x40d227
cmp dword [ebp - 4], 0
je 0x40d1f6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40d0d9
mov eax, dword [ebp + 0x14]
jmp 0x40d074
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d1e1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040d630
add esp, 0xc
call fcn.0040e94e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40d06a
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d20c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040d630
add esp, 0xc
call fcn.0040e94e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40d06a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40d074
or dword [esi + 0xc], 0x10
jmp 0x40d227
Function at 0x413b1b
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 + 0x43f728]
je 0x413b36
inc edi
cmp edi, 0x17
jb 0x413b27
cmp edi, 0x17
jae 0x413cb6
push ebp
push 3
call fcn.004214d5
cmp eax, 1
pop ecx
je 0x413c82
push 3
call fcn.004214d5
test eax, eax
pop ecx
jne 0x413b6a
cmp dword [0x43f1d0], 1
je 0x413c82
cmp ebx, 0xfc
je 0x413cb5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x440bb8
push ebp
call fcn.0040e1b3
add esp, 0xc
test eax, eax
je 0x413ba0
push esi
push esi
push esi
push esi
push esi
call fcn.0040e7a2
add esp, 0x14
push 0x104
mov esi, 0x440bd1
push esi
push 0
mov byte [0x440cd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413be4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040e1b3
add esp, 0xc
test eax, eax
je 0x413be4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e7a2
add esp, 0x14
push esi
call fcn.0040df90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413c29
push esi
call fcn.0040df90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x440ecc
push 0x439e04
sub ecx, eax
push ecx
push eax
call fcn.00421422
add esp, 0x14
test eax, eax
je 0x413c29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040e7a2
add esp, 0x14
jmp 0x413c2b
xor esi, esi
push 0x439e00
push ebx
push ebp
call fcn.004213b1
add esp, 0xc
test eax, eax
je 0x413c4b
push esi
push esi
push esi
push esi
push esi
call fcn.0040e7a2
add esp, 0x14
push dword [edi*8 + 0x43f72c]
push ebx
push ebp
call fcn.004213b1
add esp, 0xc
test eax, eax
je 0x413c6d
push esi
push esi
push esi
push esi
push esi
call fcn.0040e7a2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004211f4
add esp, 0xc
jmp 0x413cb5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x413cb5
cmp ebp, 0xffffffff
je 0x413cb5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43f72c]
push dword [esi]
call fcn.0040df90
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 0x4211f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411390
xor ebx, ebx
cmp dword [0x4411e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4212ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4213aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4213aa
push eax
call fcn.00411322
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4411e4], eax
call esi
push eax
call fcn.00411322
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4411e8], eax
call esi
push eax
call fcn.00411322
mov dword [0x4411ec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00413786
test eax, eax
pop ecx
pop ecx
je 0x421298
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e7a2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4212ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411322
cmp eax, ebx
pop ecx
mov dword [0x4411f4], eax
je 0x4212ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411322
pop ecx
mov dword [0x4411f0], eax
mov eax, dword [0x4411f0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42134f
cmp dword [0x4411f4], ecx
je 0x42134f
push eax
call fcn.00411399
push dword [0x4411f4]
mov esi, eax
call fcn.00411399
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42134f
cmp edi, ebx
je 0x42134f
call esi
cmp eax, ebx
je 0x42131c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42131c
test byte [ebp - 0x18], 1
jne 0x42134f
lea eax, [ebp - 0x10]
push eax
call fcn.00413835
test eax, eax
pop ecx
je 0x421337
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e7a2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x421346
or dword [ebp + 0x10], 0x200000
jmp 0x42138a
or dword [ebp + 0x10], 0x40000
jmp 0x42138a
mov eax, dword [0x4411e8]
cmp eax, dword [ebp - 8]
je 0x42138a
push eax
call fcn.00411399
cmp eax, ebx
pop ecx
je 0x42138a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42138a
mov eax, dword [0x4411ec]
cmp eax, dword [ebp - 8]
je 0x42138a
push eax
call fcn.00411399
cmp eax, ebx
pop ecx
je 0x42138a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4411e4]
call fcn.00411399
cmp eax, ebx
pop ecx
je 0x4213aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4213ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x41400
push 0
call sub.kernel32.dll_GetCurrentProcess
call sub.kernel32.dll_VirtualAlloc
call fcn.004ab77a
ret