joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a710
Capabilities:
Check mutex on windows
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x918
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
call fcn.1002a600
mov edi, str.logdynlibld.log
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push str.MUTEX_XECUREWEB_DYNAMIC_LIBRARY_LOADING_LOG_FILE
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, ebx
je 0x1002a7ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 4
je 0x1002a7b3
mov eax, 2
push ebx
push 0x80
push eax
push ebx
push 3
lea eax, [esp + 0x38]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002a8ec
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1002a8ec
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x92c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x22]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x144]
push str.__04d__02d__02d__02d:_02d:_02d___s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 0x3e8
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x130]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002a8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1002a8de
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x529]
mov byte [esp + 0x528], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x52c]
push str.__lu__Log_Writing_Error__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x528]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x918
ret

Function at 0x1002ae45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004fa70]
jne 0x1002ae4f
repz ret
jmp fcn.10030b7d
Function at 0x1003080e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x1003083b
call fcn.1003220d
mov dword [eax], esi
call fcn.100321fa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1002e8fb
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x10030817
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1003086a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10032220
pop ecx
call fcn.100321fa
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x10030891
test al, 1
je 0x10030891
test byte [esp + 0xc], 2
je 0x10030891
call fcn.1003220d
mov dword [eax], 5
call fcn.100321fa
mov dword [eax], 0xd
jmp 0x10030861
xor eax, eax
pop esi
ret

Function at 0x10031fe6
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 + 0x1004fbd0]
je 0x10032001
inc edi
cmp edi, 0x17
jb 0x10031ff2
cmp edi, 0x17
jae 0x10032181
push ebp
push 3
call fcn.1003914e
cmp eax, 1
pop ecx
je 0x1003214d
push 3
call fcn.1003914e
test eax, eax
pop ecx
jne 0x10032035
cmp dword [0x10054408], 1
je 0x1003214d
cmp ebx, 0xfc
je 0x10032180
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100548e8
push ebp
call fcn.1002c7f0
add esp, 0xc
test eax, eax
je 0x1003206b
push esi
push esi
push esi
push esi
push esi
call fcn.1002e7ff
add esp, 0x14
push 0x104
mov esi, 0x10054901
push esi
push 0
mov byte [0x10054a05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100320af
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1002c7f0
add esp, 0xc
test eax, eax
je 0x100320af
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1002e7ff
add esp, 0x14
push esi
call fcn.1002ae60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100320f4
push esi
call fcn.1002ae60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10054bfc
push 0x1004480c
sub ecx, eax
push ecx
push eax
call fcn.1003909b
add esp, 0x14
test eax, eax
je 0x100320f4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1002e7ff
add esp, 0x14
jmp 0x100320f6
xor esi, esi
push 0x10044808
push ebx
push ebp
call fcn.1002cbb9
add esp, 0xc
test eax, eax
je 0x10032116
push esi
push esi
push esi
push esi
push esi
call fcn.1002e7ff
add esp, 0x14
push dword [edi*8 + 0x1004fbd4]
push ebx
push ebp
call fcn.1002cbb9
add esp, 0xc
test eax, eax
je 0x10032138
push esi
push esi
push esi
push esi
push esi
call fcn.1002e7ff
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10038ede
add esp, 0xc
jmp 0x10032180
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10032180
cmp ebp, 0xffffffff
je 0x10032180
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1004fbd4]
push dword [esi]
call fcn.1002ae60
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 0x10038ede
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10032fdf
xor ebx, ebx
cmp dword [0x10054de0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10038fb4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10039094
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100451b8
push edi
call esi
cmp eax, ebx
je 0x10039094
push eax
call fcn.10032f71
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10054de0], eax
call esi
push eax
call fcn.10032f71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10054de4], eax
call esi
push eax
call fcn.10032f71
mov dword [0x10054de8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10031d93
test eax, eax
pop ecx
pop ecx
je 0x10038f82
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002e7ff
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10038fb4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10032f71
cmp eax, ebx
pop ecx
mov dword [0x10054df0], eax
je 0x10038fb4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10032f71
pop ecx
mov dword [0x10054dec], eax
mov eax, dword [0x10054dec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10039039
cmp dword [0x10054df0], ecx
je 0x10039039
push eax
call fcn.10032fe8
push dword [0x10054df0]
mov esi, eax
call fcn.10032fe8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10039039
cmp edi, ebx
je 0x10039039
call esi
cmp eax, ebx
je 0x10039006
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10039006
test byte [ebp - 0x18], 1
jne 0x10039039
lea eax, [ebp - 0x10]
push eax
call fcn.10031dca
test eax, eax
pop ecx
je 0x10039021
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002e7ff
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10039030
or dword [ebp + 0x10], 0x200000
jmp 0x10039074
or dword [ebp + 0x10], 0x40000
jmp 0x10039074
mov eax, dword [0x10054de4]
cmp eax, dword [ebp - 8]
je 0x10039074
push eax
call fcn.10032fe8
cmp eax, ebx
pop ecx
je 0x10039074
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10039074
mov eax, dword [0x10054de8]
cmp eax, dword [ebp - 8]
je 0x10039074
push eax
call fcn.10032fe8
cmp eax, ebx
pop ecx
je 0x10039074
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10054de0]
call fcn.10032fe8
cmp eax, ebx
pop ecx
je 0x10039094
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10039096
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003e8f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call esi
mov eax, dword [esp + 4]
test eax, eax
jne 0x1003e95e
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea edx, [esp + 0x14]
push edx
call esi
test eax, eax
jne 0x1003e95a
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x1003e95a
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x1003e9f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, ebx
jae 0x1003ea05
pop edi
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1003ea53
mov eax, dword [esp + 0x18]
push ebx
push eax
push esi
call fcn.1002aae0
mov ecx, dword [edi]
mov eax, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
push esi
push 0
push 1
push 0
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1003ea5a
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
mov dword [edi], ecx
jbe 0x1003ea82
mov ecx, dword [esp + 0x20]
lea ebx, [ebx]
mov edx, dword [edi]
sub edx, eax
mov dl, byte [edx + esi - 1]
mov byte [eax + ecx], dl
add eax, 1
cmp eax, dword [edi]
jb 0x1003ea70
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
Function at 0x40e90c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x20
mov eax, 1
mov dword [ebp - 0xc], 1
mov eax, 0x100
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x40e9b1
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0x20
jne 0x40e991
mov al, 0
xchg edx, eax
mov esi, dword [ebp - 0x1c]
mov byte [esi], dl
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0x20
je 0x40e95a
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0
jne 0x40e97c
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x40e991
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
dec edi
mov dword [eax + edi*4], edx
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0x22
jne 0x40e9aa
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0x22
jne 0x40e99a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
cmp al, 0
jne 0x40e949
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [0x42201c]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
dec edi
mov dword [eax + edi*4], edx
mov eax, dword [ebp - 0x14]
xchg edx, eax
mov eax, dword [0x42201c]
mov dword [eax + 4], edx
mov eax, 0
xchg edx, eax
mov eax, dword [0x42201c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x14]
xchg edx, eax
mov eax, dword [0x422048]
mov dword [eax], edx
leave
ret
Function at 0x40ec00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 4
mov eax, 0
mov edx, dword [ebp + 8]
cmp eax, edx
je 0x40ec18
xor eax, eax
jmp 0x40ec1b
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x40efc6
push 0
push 0x425513
push 6
push 0
push dword [ebp + 8]
push 2
push 0
push 0x425516
push 6
push 0
push dword [0x422016]
push 3
push 0x30
lea esi, [esp + 4]
push esi
push 4
call fcn.0040ebbd
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x40ee1e
cmp eax, 2
je 0x40ee28
cmp eax, 3
je 0x40ee32
cmp eax, 4
je 0x40ee3c
cmp eax, 5
je 0x40ee46
cmp eax, 6
je 0x40ee50
cmp eax, 7
je 0x40ee5a
cmp eax, 8
je 0x40ee64
cmp eax, 9
je 0x40ee6e
cmp eax, 0xa
je 0x40ee78
cmp eax, 0xb
je 0x40ee82
cmp eax, 0xc
je 0x40ee8c
cmp eax, 0xd
je 0x40ee96
cmp eax, 0xe
je 0x40eea0
cmp eax, 0xf
je 0x40eeaa
cmp eax, 0x10
je 0x40eeb4
cmp eax, 0x11
je 0x40eebe
cmp eax, 0x12
je 0x40eec8
cmp eax, 0x13
je 0x40eed2
cmp eax, 0x14
je 0x40eedc
cmp eax, 0x15
je 0x40eee6
cmp eax, 0x16
je 0x40eef0
cmp eax, 0x17
je 0x40eef7
cmp eax, 0x18
je 0x40eefe
cmp eax, 0x19
je 0x40ef05
cmp eax, 0x1a
je 0x40ef0c
cmp eax, 0x1b
je 0x40ef13
cmp eax, 0x1c
je 0x40ef1a
cmp eax, 0x1d
je 0x40ef21
cmp eax, 0x1e
je 0x40ef28
cmp eax, 0x1f
je 0x40ef2f
cmp eax, 0x20
je 0x40ef36
cmp eax, 0x21
je 0x40ef3d
cmp eax, 0x22
je 0x40ef44
cmp eax, 0x60
je 0x40ef4b
cmp eax, 0x61
je 0x40ef52
cmp eax, 0x62
je 0x40ef59
cmp eax, 0x63
je 0x40ef60
cmp eax, 0x64
je 0x40ef67
cmp eax, 0x65
je 0x40ef6e
mov eax, 0x425849
jmp 0x40ef73
mov eax, 0x425529
jmp 0x40ef73
mov eax, 0x42553a
jmp 0x40ef73
mov eax, 0x42554c
jmp 0x40ef73
mov eax, 0x425557
jmp 0x40ef73
mov eax, 0x425563
jmp 0x40ef73
mov eax, 0x425573
jmp 0x40ef73
mov eax, 0x425589
jmp 0x40ef73
mov eax, 0x42559e
jmp 0x40ef73
mov eax, 0x4255b3
jmp 0x40ef73
mov eax, 0x4255cb
jmp 0x40ef73
mov eax, 0x4255da
jmp 0x40ef73
mov eax, 0x4255ec
jmp 0x40ef73
mov eax, 0x4255fc
jmp 0x40ef73
mov eax, 0x425613
jmp 0x40ef73
mov eax, 0x425624
jmp 0x40ef73
mov eax, 0x42563b
jmp 0x40ef73
mov eax, 0x425653
jmp 0x40ef73
mov eax, 0x425667
jmp 0x40ef73
mov eax, 0x425681
jmp 0x40ef73
mov eax, 0x425699
jmp 0x40ef73
mov eax, 0x4256ad
jmp 0x40ef73
mov eax, 0x4256b8
jmp 0x40ef73
mov eax, 0x4256c7
jmp 0x40ef73
mov eax, 0x4256d7
jmp 0x40ef73
mov eax, 0x4256ef
jmp 0x40ef73
mov eax, 0x4256fc
jmp 0x40ef73
mov eax, 0x42570e
jmp 0x40ef73
mov eax, 0x42572c
jmp 0x40ef73
mov eax, 0x42574b
jmp 0x40ef73
mov eax, 0x42576d
jmp 0x40ef73
mov eax, 0x42578f
jmp 0x40ef73
mov eax, 0x4257a3
jmp 0x40ef73
mov eax, 0x4257b6
jmp 0x40ef73
mov eax, 0x4257c0
jmp 0x40ef73
mov eax, 0x4257ca
jmp 0x40ef73
mov eax, 0x4257e8
jmp 0x40ef73
mov eax, 0x4257f6
jmp 0x40ef73
mov eax, 0x425807
jmp 0x40ef73
mov eax, 0x425815
jmp 0x40ef73
mov eax, 0x42582e
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebbd
push 0
push dword [0x422016]
push 3
push 0
push 0x42585d
push 6
push 0
push dword [ebp + 0xc]
push 7
push 0
push 0x42585f
push 6
push 0
push dword [0x422016]
push 3
push 0x3c
lea esi, [esp + 4]
push esi
push 5
call fcn.0040ebbd
call fcn.0040ea09
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
leave
ret 8
Function at 0x40f17c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 4
jmp 0x40f199
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.DLL_putwchar]
add esp, 4
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
mov al, byte [esi]
and eax, 0xff
mov dword [ebp - 8], eax
mov eax, 0
mov edx, dword [ebp - 8]
cmp eax, edx
je 0x40f1b6
xor eax, eax
jmp 0x40f1b9
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
jne 0x40f186
leave
ret 4

Function at 0x40fc7b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x20
push 0x10
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
imul edx
pop edx
push eax
call fcn.0040efdb
mov dword [ebp - 0x14], eax
mov eax, dword [0x422054]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
add eax, edx
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
xchg edx, eax
cmp eax, edx
jb 0x40fd76
mov eax, dword [0x422054]
mov eax, dword [eax + 0x20]
mov edx, eax
mov eax, dword [ebp - 0x24]
cmp eax, edx
jl 0x40fd06
mov eax, dword [0x422054]
mov eax, dword [eax + 0x24]
mov edx, eax
mov eax, dword [0x422054]
mov dword [eax + 0x20], edx
mov eax, dword [0x422054]
mov eax, dword [eax + 0x24]
mov edx, eax
mov eax, dword [ebp - 0x24]
cmp eax, edx
jl 0x40fd53
push 0
push 0x425898
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebd9
push 0
push 0x4258b6
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebd9
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
call fcn.0040f811
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg edx, eax
mov eax, dword [0x422054]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x14]
xchg edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0xc]
or eax, 0x80000000
push eax
mov eax, 0x1000000
not eax
pop edx
xchg edx, eax
and eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x40fddd
mov eax, dword [ebp - 0x14]
sar eax, 1
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 0x30000000
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x40fdee
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 0x20000000
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov edx, dword [ebp + 0x10]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
leave
ret 0xc
Function at 0x40ff2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x18
mov eax, 0
mov edx, dword [ebp + 0xc]
cmp eax, edx
je 0x40ff58
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp + 0xc]
cmp eax, edx
jg 0x40ff58
xor eax, eax
jmp 0x40ff5b
xor eax, eax
inc eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x1f
mov dword [ebp - 0x14], eax
mov eax, 0
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x40ffaf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shl eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x200000
jl 0x40ffaf
push 0
push 0x4258da
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebd9
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
push 0
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x14]
mov ecx, edx
cdq
idiv ecx
pop edx
push eax
call fcn.0040fc7b
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
sub eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x1c]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor eax, 0x80000000
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x410eac
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x422114]
cmp eax, edx
jle 0x410ed1
mov eax, dword [ebp - 8]
mov dword [0x422114], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [0x422084]
mov edx, eax
mov eax, dword [ebp - 8]
push edx
mov edx, 0xc
mov ecx, edx
imul ecx
pop edx
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.DLL_strlen]
add esp, 4
dec eax
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
sub eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, 0x3c
je 0x410fb6
push 0
push dword [0x422016]
push 3
push 0
push 0x3c
push 2
push 0
push 0x425980
push 6
push 0
push dword [0x422016]
push 3
push 0
push dword [ebp + 8]
push 2
push 0
push 0x42598f
push 6
push 0
push dword [0x422016]
push 3
push 0
push dword [ebp - 8]
push 2
push 0
push 0x42599b
push 6
push 0x6c
lea esi, [esp + 4]
push esi
push 9
call fcn.0040ebbd
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [ebp - 8]
shl eax, 8
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x410fd8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x410fd8
jmp 0x410fdc
xor eax, eax
jmp 0x410fdf
xor eax, eax
inc eax
cmp eax, 0
je 0x41100d
mov eax, dword [ebp - 0x10]
shl eax, 8
inc eax
push eax
mov eax, 0x3c
mov edx, dword [ebp + 8]
sub eax, edx
pop edx
xchg edx, eax
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x422094]
mov edi, dword [ebp - 0x14]
dec edi
mov eax, dword [eax + edi*4]
jmp 0x411012
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [0x422094]
mov edi, dword [ebp - 0xc]
dec edi
mov dword [eax + edi*4], edx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
mov eax, 0
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x410fc0
leave
pop esi
pop ecx
pop ecx
pop ecx
add esp, ecx
push esi
ret

Function at 0x412224
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0xc
mov eax, 1
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x41226d
push 0
push 0x425aca
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebd9
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
jmp 0x41227f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.0041e381
push eax
call fcn.00411e8b
leave
ret 8