joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa4
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
mov dword [ebp], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0040a088
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a088
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, 0x4f8b588f
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x10
imul eax, eax, 0xfffe7960
and ecx, 0xfff
mov dword [esp + 0x18], ecx
add esi, eax
shl ecx, 0x14
or ecx, esi
push 0x80
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x39]
push ebx
push ecx
mov dword [esp + 0x28], esi
mov dword [ebp + 8], ebx
mov byte [esp + 0x40], bl
call fcn.0040b5c0
mov eax, dword [0x41c120]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0x14
push 0x80
lea edx, [esp + 0x30]
push edx
push eax
call edi
cmp eax, ebx
jne 0x4017b6
mov ecx, dword [0x41c120]
push str.Team_ZWT
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x41c120]
push 0x80
lea edx, [esp + 0x30]
push edx
push eax
call edi
push 0x80
lea ecx, [ebp + 0xc]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ecx, dword [0x41c118]
xor eax, eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
push 0xb
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x2c], bl
call edi
lea edx, [esp + 0x20]
push edx
call fcn.0040a06c
mov esi, eax
add esp, 4
cmp esi, ebx
jle 0x40180b
cmp esi, 0x3b9ac9ff
jle 0x401824
mov eax, dword [0x41c118]
push str.999999999
push ebx
push 0xc
push eax
mov esi, 0x3b9ac9ff
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x41c124]
push 6
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
push edx
mov dword [ebp + 0x20c], esi
mov dword [ebp + 0x22c], 2
mov dword [ebp + 0x230], 0xb0000
mov dword [ebp + 0x234], 0xbffff
mov byte [esp + 0x24], bl
mov dword [esp + 0x25], eax
mov byte [esp + 0x29], al
call edi
lea eax, [esp + 0x18]
push eax
call fcn.0040a06c
mov esi, eax
add esp, 4
cmp esi, ebx
jle 0x401881
cmp esi, 0x1869f
jle 0x40189f
mov ecx, dword [0x41c124]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x416edc
push ebx
push 0xc
push ecx
mov esi, 0x20
call edi
jmp 0x4018a5
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x41c128]
push ebx
push ebx
push 0xf0
mov dword [ebp + 0x238], esi
push edx
mov esi, 1
call edi
cmp eax, esi
jne 0x4018c9
mov esi, 3
mov eax, dword [0x41c110]
push ebx
push ebx
push 0xf0
push eax
call edi
cmp eax, 1
jne 0x4018e0
add esi, 4
mov dword [ebp + 0x23c], esi
lea edi, [ebp + 0x240]
lea esi, [ebp + 0x244]
call fcn.00401520
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
mov dword [ebp + 0x248], 0x60001
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a18c
add esp, 0xa4
ret
Function at 0x402730
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402758
mov eax, 1
pop ebx
ret
push ebp
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x40277d
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 2]
pop ebp
pop ebx
ret
push esi
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4027a8
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebp
call esi
push ebx
call esi
pop esi
pop ebp
mov eax, 3
pop ebx
ret
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.004025d0
mov edi, eax
call fcn.00402590
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
call fcn.00402690
add esp, 0xc
test eax, eax
pop edi
push esi
jne 0x4027ee
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebp
call esi
push ebx
call esi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebp
call esi
push ebx
call esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x402810
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24c], eax
mov dword [esp + 0x250], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x204]
push ecx
push esi
call ebx
mov edi, dword [esp + 0x234]
push 0
push 0
push edi
push esi
call ebp
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
add edi, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x14
lea edx, [esp + 0x20]
push edx
push esi
call ebx
movzx ecx, word [esp + 0x24]
add edi, dword [esp + 0xc]
cmp word [esp + 0x14], 0x14c
push 0
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x124]
je 0x4028c0
lea edx, [esp + 0x34]
push edx
push esi
call ebx
add edi, dword [esp + 0xc]
push 0
push 0
add edi, 0xffffffa0
push edi
push esi
call ebp
push 0
lea eax, [esp + 0x10]
push eax
push 8
lea ecx, [esp + 0x248]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esp + 0x244]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a18c
add esp, 0x240
ret
Function at 0x402910
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x240]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push 0xc0000000
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40295f
lea eax, [ebp + 0x4b]
jmp 0x402a06
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebp
lea eax, [esp + 0x18]
push eax
push 0x40
lea ecx, [esp + 0x20c]
push ecx
push esi
call ebx
mov edi, dword [esp + 0x23c]
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
push esi
call ebp
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call ebx
add edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x14
lea edx, [esp + 0x28]
push edx
push esi
call ebx
movzx ecx, word [esp + 0x2c]
add edi, dword [esp + 0x14]
cmp word [esp + 0x1c], 0x14c
push 0
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x3c]
je 0x4029d6
lea edx, [esp + 0x11c]
push edx
push esi
call ebx
push 0
push 0
add edi, 0x40
push edi
push esi
call ebp
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a18c
add esp, 0x23c
ret
Function at 0x402a20
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x414548
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x41a678]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
xor edi, edi
push eax
mov eax, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
call fcn.00402730
add esp, 4
cmp eax, edi
jne 0x402b9e
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402aa5
lea eax, [edi + 5]
jmp 0x402b9e
mov eax, ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
jmp 0x402ac0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402ac0
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.004034e0
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x30]
add ecx, 0xffffffff
push ecx
push 1
lea edi, [esp + 0x24]
call fcn.004032e0
push eax
mov ecx, edi
call fcn.00403080
push 4
push str..BAK
mov eax, edi
call fcn.00403110
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x402b16
lea eax, [esp + 0x20]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 0x80
push 0x41b558
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call fcn.00402810
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
test eax, eax
je 0x402b79
cmp dword [esp + 0x34], edi
lea esi, [eax + 0x3c]
jb 0x402b9c
mov eax, dword [esp + 0x20]
push eax
jmp 0x402b94
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call fcn.00402910
add esp, 8
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x402b9c
mov edx, dword [esp + 0x20]
push edx
call fcn.0040a323
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040a18c
mov esp, ebp
pop ebp
ret
Function at 0x402bc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4145bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, dword [0x41a678]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.0040b5c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea eax, [esp + 0x2c]
mov dword [esp + 0x240], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402c40
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
call fcn.00403110
push 0x15
push str.driversSscRdBus.sys
lea eax, [esp + 0x18]
call fcn.00403110
push 0xff
lea eax, [esp + 0x139]
push ebx
push eax
mov byte [esp + 0x140], bl
call fcn.0040b5c0
mov ebx, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], 0x10
jae 0x402c96
lea ebx, [esp + 0x14]
call fcn.00402a20
mov esi, eax
test esi, esi
jne 0x402caf
push 0x40
push str.Patch_Succeed_
push str.Patch_has_been_done__nPlease_reboot_your_system_to_take_effect__n
jmp 0x402ce5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.Check_follows:_n1._Run_the_patch_as_an_administrator_n2._Hasnt_been_patched_before_n3._Reinstall_the_application_and_try_again_n
push eax
push esi
push str.Sorry__there_are_some_problems_during_patching_nError_code:__d____d___n__s
lea ecx, [esp + 0x144]
push 0x100
push ecx
call fcn.0040a284
add esp, 0x18
push 0x10
push str.Patch_Failded_
lea edx, [esp + 0x13c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x28], 0x10
jb 0x402d01
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a323
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040a18c
add esp, 0x238
ret
Function at 0x402d30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41457b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x41a678]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a678]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push str.IsWow64Process
push str.kernel32
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
xor ebx, ebx
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x18], ebx
je 0x402daa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call ebp
test eax, eax
je 0x402daa
cmp dword [esp + 0x18], ebx
jne 0x402dc1
push ebx
push str.Patch_Error_
push str.You_must_run_this_patch_on_64_bit_Windows_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402efa
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call esi
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov ebp, eax
call esi
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
mov edi, eax
call ebp
push 0x103
lea edx, [esp + 0x41]
push ebx
push edx
mov byte [esp + 0x48], bl
call fcn.0040b5c0
add esp, 0xc
push 0x104
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea eax, [esp + 0x3c]
mov dword [esp + 0x250], ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402e30
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x28]
call fcn.00403110
push 0x15
push str.driversSscRdBus.sys
lea eax, [esp + 0x28]
call fcn.00403110
push 0xff
lea edx, [esp + 0x149]
push ebx
push edx
mov byte [esp + 0x150], bl
call fcn.0040b5c0
mov ebx, dword [esp + 0x30]
mov ebp, 0x10
add esp, 0xc
cmp dword [esp + 0x38], ebp
jae 0x402e8a
lea ebx, [esp + 0x24]
call fcn.00402a20
mov esi, eax
test esi, esi
jne 0x402ea3
push 0x40
push str.Patch_Succeed_
push str.Patch_has_been_done__nPlease_reboot_your_system_to_take_effect__n
jmp 0x402ed8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.Check_follows:_n1._Run_the_patch_as_an_administrator_n2._Hasnt_been_patched_before_n3._Reinstall_the_application_and_try_again_n
push eax
push esi
push str.Sorry__there_are_some_problems_during_patching_nError_code:__d____d___n__s
lea eax, [esp + 0x154]
push 0x100
push eax
call fcn.0040a284
add esp, 0x18
push ebp
push str.Patch_Failded_
lea ecx, [esp + 0x14c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x1c]
push edx
call edi
cmp dword [esp + 0x38], ebp
jb 0x402efa
mov eax, dword [esp + 0x24]
push eax
call fcn.0040a323
add esp, 4
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0040a18c
add esp, 0x240
ret
Function at 0x4066e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, dword [esi + 4]
push edi
mov edi, dword [esi]
mov eax, edi
shr eax, 5
and eax, 0xf
mov ecx, dword [esi + eax*4 + 0x28]
shl ecx, 8
or ecx, 0x80
mov dword [esi + eax*4 + 0x28], ecx
add dword [esi], 8
jne 0x40670f
add dword [esi + 4], 1
mov dword [esi], 0
test dword [esi], 0x1ff
jne 0x406720
push esi
call fcn.00406320
add esp, 4
mov edx, dword [esi]
and edx, 0x1ff
cmp edx, 0x1c0
je 0x40676b
mov eax, dword [esi]
shr eax, 5
and eax, 0xf
shl dword [esi + eax*4 + 0x28], 8
add dword [esi], 8
jne 0x40674c
add dword [esi + 4], 1
mov dword [esi], 0
test dword [esi], 0x1ff
jne 0x40675d
push esi
call fcn.00406320
add esp, 4
mov eax, dword [esi]
and eax, 0x1ff
cmp eax, 0x1c0
jne 0x406730
push esi
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], edi
call fcn.00406320
add esp, 4
xor edi, edi
lea esp, [esp]
xor edx, edx
mov eax, edi
mov ecx, 4
div ecx
mov ecx, 3
add edi, 1
sub ecx, edx
mov edx, dword [esi + eax*4 + 8]
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr edx, cl
cmp edi, 0x20
mov byte [edi + ebx - 1], dl
jl 0x406780
xor eax, eax
lea edi, [esi + 0x28]
mov ecx, 0x40
rep stosd dword es:[edi], eax
pop edi
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x406ed0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, ecx
mov ebp, dword [edi]
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], eax
jle 0x406efd
pop edi
pop esi
pop ebp
add esp, 8
mov dword [esp + 4], 4
jmp fcn.004037f0
push ebx
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x406f11
push edi
call fcn.00404730
add esp, 4
jmp 0x406f15
mov dword [esp + 0x10], ebp
mov ecx, dword [0x41c12c]
mov dword [ebx], ebp
mov eax, dword [edi + 4]
mov edi, dword [esi + 4]
mov ebx, dword [ebx + 4]
xor esi, esi
xor ebp, ebp
sub edi, eax
sub ebx, eax
cmp dword [ecx], esi
jne 0x406f88
mov ecx, eax
cmp ebp, dword [esp + 0x10]
jl 0x406f42
test esi, esi
jbe 0x406fd4
cmp ebp, dword [esp + 0x14]
jg 0x406f74
mov edx, dword [ecx]
mov eax, edx
sub eax, dword [edi + ecx]
sub eax, esi
cmp eax, edx
jae 0x406f62
xor esi, esi
mov dword [ebx + ecx], eax
add ebp, 1
add ecx, 4
jmp 0x406f34
jbe 0x406f69
mov esi, 1
mov dword [ebx + ecx], eax
add ebp, 1
add ecx, 4
jmp 0x406f34
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
mov dword [esp + 4], 4
jmp fcn.004037f0
mov edx, eax
lea ebx, [ebx]
cmp ebp, dword [esp + 0x10]
jl 0x406f9a
test esi, esi
jbe 0x406fd4
cmp ebp, dword [esp + 0x14]
jg 0x407011
mov ecx, dword [edx + edi]
mov eax, dword [edx]
add ecx, esi
xor esi, esi
cmp eax, ecx
jb 0x406fba
sub eax, ecx
mov dword [edx + ebx], eax
add ebp, 1
add edx, 4
jmp 0x406f90
sub eax, ecx
mov ecx, dword [0x41c12c]
add eax, dword [ecx]
add ebp, 1
mov dword [edx + ebx], eax
mov esi, 1
add edx, 4
jmp 0x406f90
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov esi, eax
and esi, 0x80000000
and eax, 0x7fffffff
jle 0x406fff
mov ecx, dword [edx + 4]
lea ecx, [ecx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x406fff
sub eax, 1
sub ecx, 4
test eax, eax
jg 0x406ff0
test eax, eax
mov dword [edx], eax
jle 0x407009
or eax, esi
mov dword [edx], eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
mov dword [esp + 4], 4
jmp fcn.004037f0

Function at 0x40a18c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a678]
jne 0x40a196
repz ret
jmp fcn.0040d3f2
Function at 0x40c95b
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 + 0x41a5b8]
je 0x40c976
inc edi
cmp edi, 0x17
jb 0x40c967
cmp edi, 0x17
jae 0x40caf6
push ebp
push 3
call fcn.00410380
cmp eax, 1
pop ecx
je 0x40cac2
push 3
call fcn.00410380
test eax, eax
pop ecx
jne 0x40c9aa
cmp dword [0x41a088], 1
je 0x40cac2
cmp ebx, 0xfc
je 0x40caf5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41b808
push ebp
call fcn.0040b9a5
add esp, 0xc
test eax, eax
je 0x40c9e0
push esi
push esi
push esi
push esi
push esi
call fcn.0040b373
add esp, 0x14
push 0x104
mov esi, 0x41b821
push esi
push 0
mov byte [0x41b925], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40ca24
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040b9a5
add esp, 0xc
test eax, eax
je 0x40ca24
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b373
add esp, 0x14
push esi
call fcn.0040a5c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ca69
push esi
call fcn.0040a5c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41bb1c
push 0x415874
sub ecx, eax
push ecx
push eax
call fcn.004102cd
add esp, 0x14
test eax, eax
je 0x40ca69
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b373
add esp, 0x14
jmp 0x40ca6b
xor esi, esi
push 0x415870
push ebx
push ebp
call fcn.0041025c
add esp, 0xc
test eax, eax
je 0x40ca8b
push esi
push esi
push esi
push esi
push esi
call fcn.0040b373
add esp, 0x14
push dword [edi*8 + 0x41a5bc]
push ebx
push ebp
call fcn.0041025c
add esp, 0xc
test eax, eax
je 0x40caad
push esi
push esi
push esi
push esi
push esi
call fcn.0040b373
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041009f
add esp, 0xc
jmp 0x40caf5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40caf5
cmp ebp, 0xffffffff
je 0x40caf5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41a5bc]
push dword [esi]
call fcn.0040a5c0
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 0x41009f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040cf10
xor ebx, ebx
cmp dword [0x41bfa0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x410175
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410255
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x415a3c
push edi
call esi
cmp eax, ebx
je 0x410255
push eax
call fcn.0040cea2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41bfa0], eax
call esi
push eax
call fcn.0040cea2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bfa4], eax
call esi
push eax
call fcn.0040cea2
mov dword [0x41bfa8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ae62
test eax, eax
pop ecx
pop ecx
je 0x410143
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b373
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x410175
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040cea2
cmp eax, ebx
pop ecx
mov dword [0x41bfb0], eax
je 0x410175
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cea2
pop ecx
mov dword [0x41bfac], eax
mov eax, dword [0x41bfac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4101fa
cmp dword [0x41bfb0], ecx
je 0x4101fa
push eax
call fcn.0040cf19
push dword [0x41bfb0]
mov esi, eax
call fcn.0040cf19
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4101fa
cmp edi, ebx
je 0x4101fa
call esi
cmp eax, ebx
je 0x4101c7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4101c7
test byte [ebp - 0x18], 1
jne 0x4101fa
lea eax, [ebp - 0x10]
push eax
call fcn.0040ae99
test eax, eax
pop ecx
je 0x4101e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b373
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4101f1
or dword [ebp + 0x10], 0x200000
jmp 0x410235
or dword [ebp + 0x10], 0x40000
jmp 0x410235
mov eax, dword [0x41bfa4]
cmp eax, dword [ebp - 8]
je 0x410235
push eax
call fcn.0040cf19
cmp eax, ebx
pop ecx
je 0x410235
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410235
mov eax, dword [0x41bfa8]
cmp eax, dword [ebp - 8]
je 0x410235
push eax
call fcn.0040cf19
cmp eax, ebx
pop ecx
je 0x410235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bfa0]
call fcn.0040cf19
cmp eax, ebx
pop ecx
je 0x410255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret