joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd70
Capabilities:
Create thread
Inject thread

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp - 8]
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, ebx
push edi
push eax
mov dword [esi], ebx
call fcn.0040b440
mov ebp, eax
test ebp, ebp
je 0x40ce80
push dword [esp + 0x2c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40ce65
sub edi, dword [esp + 0x18]
je 0x40ce65
push 4
push 0x3000
push dword [esp + 0x3c]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 8], eax
test eax, eax
jne 0x40cde4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_allocate_parameter_block___d_
jmp 0x40ce71
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ce57
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], eax
jne 0x40ce57
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esi + 8]
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x40ce3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_create_injected_thread___d_
jmp 0x40ce71
push ebp
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_copy_parameter_block___d_
jmp 0x40ce71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_locate_injected_thread_start_point___d_
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x40ce8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x40cec4
push 0x8000
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x40cec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_free_parameter_block__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40d510
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x28
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push str.GetProcessIdOfThread
push str.kernel32.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [edi + 0xf30c]
mov dword [esp + 0x14], eax
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor ebp, ebp
mov dword [esp + 0x14], eax
mov dword [edi + 0x29c8c], ebp
cmp eax, 0xffffffff
jne 0x40d58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_generate_thread_snapshot____d
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00414600
add esp, 0x28
ret 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x40d5bb
lea esi, [eax + 1]
mov edi, str.Unable_to_get_first_thread____d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x40d6ce
mov ebx, dword [esp + 0x3c]
nop
mov eax, dword [esp + 0x24]
cmp eax, dword [edi + 0xf30c]
jne 0x40d66f
push dword [esp + 0x20]
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d608
push esi
mov ecx, eax
call dword [0x4173b4]
mov eax, dword [esp + 0x14]
call eax
cmp eax, dword [edi + 0xf30c]
je 0x40d608
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d66f
test esi, esi
je 0x40d66f
test ebx, ebx
je 0x40d63c
cmp ebx, 8
je 0x40d62b
cmp ebx, 0x10
jne 0x40d665
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
jmp 0x40d660
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
jmp 0x40d660
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
je 0x40d660
mov eax, dword [edi + 0x29c8c]
mov dword [edi + eax*4 + 0x29c90], esi
inc dword [edi + 0x29c8c]
cmp ecx, 1
je 0x40d66e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d66f
inc ebp
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x40d692
cmp dword [edi + 0x29c8c], 0x1000
jb 0x40d5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40d6c4
cmp dword [edi + 0x29c8c], 0x1000
jae 0x40d6c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_next_thread____d
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
mov esi, 2
mov edi, str.Threads_processed:__d
push ebp
push edi
push esi
push 0x429048
call fcn.00404d90
add esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x28
ret 4
Function at 0x40e500
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp byte [eax + 0xe193], 0
je 0x40e6eb
push str.Watson_Invoke:_Yes
push 2
push 0x429048
mov byte [eax + 0x34c], 1
call fcn.00404d90
mov eax, dword [esi]
add esp, 0xc
cmp byte [eax + 0xdd80], 0
je 0x40e558
push str.Dump_upload_cancelled_because_dump_not_created_because_of_same_stack_signature.
jmp 0x40e6f7
mov eax, dword [eax + 0x2def8]
push dword [eax*4 + 0x418aa8]
push str.DumpUploadMode___ls
push 2
push 0x429048
call fcn.00404d90
mov eax, dword [esi]
add esp, 0x10
cmp dword [eax + 0x2def8], 0
je 0x40e6cc
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
lea ebx, [esi + 0x898]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40e5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitAWDumpPath:_GetModuleFileName_failed_to_get_path_of_sqldumper.exe__error:__d
jmp 0x40e64e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.awdump.exe
lea eax, [esp + 0x14]
push eax
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
test eax, eax
lea eax, [esp + 0x10]
push eax
js 0x40e649
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e63d
lea edi, [esp + 0x10]
mov edx, 0x104
mov ecx, ebx
sub edi, ebx
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40e62e
movzx eax, word [edi + ecx]
test ax, ax
je 0x40e62e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40e610
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x40e668
lea eax, [esp + 0x10]
push eax
push str.InitAWDumpPath:__ls_not_found.
jmp 0x40e64e
push str.InitAWDumpPath:_StringCchCatW_failed_to_save_dumper_path__ls.
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
mov ecx, ebx
call 0x40e080
test al, al
je 0x40e6a4
push ebx
push str.InitAWDumpPath:_Found__ls.
push 2
push 0x429048
call fcn.00404d90
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push dword [eax + 0x2def8]
call 0x40f220
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00414600
add esp, 0x218
ret
push str.InitAWDumpPath:_awdump.exe_not_found.
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
push str.awdump.exe_not_found__revert_to_WERAPI_upload_mode.
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
mov ecx, esi
call fcn.0040e750
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00414600
add esp, 0x218
ret
mov byte [eax + 0x34c], 0
push str.Watson_Invoke:_No
push 2
push 0x429048
call fcn.00404d90
mov ecx, dword [esp + 0x228]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x218
ret
Function at 0x40fdb0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x202c
call fcn.00415f70
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x2028], eax
push ebx
push esi
mov esi, dword [esp + 0x2038]
lea eax, [esp + 0x20]
push edi
push 0
push 0x80
push 3
push eax
push 3
push SysReAllocString
push esi
mov ebx, ecx
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ff40
push 0x2000
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0xffffe000
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
push 2
push eax
push 0xffffe000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x40fe61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [esp + 0x14]
push eax
push 0x2000
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ff1b
push dword [esp + 0x10]
push esi
push str.Read_awdump.exe_output_file__ls_completed_successfully._Bytes_read:__d.
push 2
push 0x429048
call fcn.00404d90
add esp, 0x14
cmp dword [esp + 0x10], 0
jbe 0x40ff37
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov dword [esp + 0x18], 0
push eax
mov eax, dword [ebx]
add eax, 0x57c
push 0x2000
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x14
test eax, eax
jne 0x40fefe
cmp dword [esp + 0x14], eax
je 0x40fefe
mov eax, dword [ebx]
add eax, 0x57c
push eax
push str.awdump.exe_output:_n_ls
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ff5c
push str.mbstowcs_s_failed_to_convert_awdump_output_to_SqlDumperEvent.
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ff5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Read_awdump.exe_output_file__ls_failed._error:__d
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ff5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.OpenFile_failed:__ls__error:__d.
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x202c
ret 4
Function at 0x4110c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x411123
push str.GetFileVersionInfoSize
call fcn.004112c0
jmp 0x41129c
push esi
call fcn.00414c63
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x411155
push ebx
call fcn.00414613
add esp, 4
push str.GetFileVersionInfo
call fcn.004112c0
jmp 0x41129c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0x417704
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x41117a
push edi
push str.Fixed_version_resource_for__ls_is_either_invalid_or_does_not_exist
jmp 0x411284
cmp dword [esp + 0x18], 0
jne 0x41118c
push edi
push str.Fixed_version_resource_for__ls_is_unavailable
jmp 0x411284
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x34]
push edx
push str._u._u:_u._u
push 0x1e
push eax
call fcn.00401fd0
add esp, 0x1c
test eax, eax
js 0x4111da
lea eax, [esp + 0x28]
push eax
push edi
push str.File_version_of_module__ls_:__ls
push 2
push 0x429048
call fcn.00404d90
add esp, 0x14
jmp 0x4111f2
push eax
push str.File_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x429048
lfence
call fcn.00404d90
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
test edx, edx
je 0x411234
movzx esi, bp
mov eax, ebp
push esi
shr eax, 0x10
push eax
movzx eax, cx
push eax
mov eax, ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push 0x1e
push edx
call fcn.00401fd0
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov eax, esi
jmp 0x411237
movzx eax, bp
movzx eax, ax
push eax
movzx eax, cx
shr ebp, 0x10
push ebp
push eax
shr ecx, 0x10
lea eax, [esp + 0x70]
push ecx
push str._u._u:_u._u
push 0x1e
push eax
call fcn.00401fd0
add esp, 0x1c
test eax, eax
js 0x41127b
lea eax, [esp + 0x64]
push eax
push edi
push str.Product_version_of_module__ls_:__ls
push 2
push 0x429048
call fcn.00404d90
add esp, 0x14
jmp 0x411293
push eax
lfence
push str.Product_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
push ebx
call fcn.00414613
add esp, 4
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x94
ret 8
Function at 0x411d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
or edx, 0xffffffff
push ebx
push ebp
push esi
push edi
lea edi, [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov esi, edi
mov dword [esp + 0x18], 0
lea ecx, [eax*8 + 8]
test ecx, ecx
je 0x411d9c
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x418b80]
sub ecx, 1
jne 0x411d82
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp edx, eax
je 0x411dd5
or dword [0x429040], 0x20000400
push eax
push edx
push str.Mismatched_struct_checksum_for_head_slab___computed__X___read__X
push 1
push 0x429048
mov dword [edi], ebp
mov dword [ecx], ebp
call fcn.00404d90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ebx, dword [ecx]
mov dword [ecx], ebp
test ebx, ebx
je 0x411f49
mov esi, dword [esp + 0x3c]
xor edi, edi
nop word [eax + eax]
mov eax, ebp
mov dword [esp + 0x20], 0
inc ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
cmp eax, 0x400
jae 0x411f2a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00405c60
test eax, eax
je 0x411f16
mov eax, dword [esp + 0x28]
cmp eax, esi
ja 0x411ef2
lea esi, [eax*8 + 0x10]
push esi
call fcn.00414c63
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push esi
push edi
push ebx
call fcn.00405c60
test eax, eax
je 0x411edf
mov ecx, dword [edi + 8]
lea edx, [edi + 8]
or eax, 0xffffffff
lea esi, [ecx*8 + 8]
test esi, esi
je 0x411e9a
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x418b80]
sub esi, 1
jne 0x411e80
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x411ebf
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
mov dword [ecx], edi
mov eax, dword [edi]
mov dword [edi], 0
mov edi, eax
mov dword [esp + 0x18], eax
jmp 0x411f16
or dword [0x429040], 0x20000400
push ecx
push eax
push str.Mismatched_struct_checksum_for_intermediate_slab___computed__X___read__X
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
push edi
call fcn.00414613
mov edi, dword [esp + 0x1c]
add esp, 4
mov esi, dword [esp + 0x3c]
jmp 0x411f16
push esi
push eax
push ebx
push str.Slab_at__p_did_not_pass_sanity_check___read__d___max_expected__d
push 1
lfence
or dword [0x429040], 0x20000800
push 0x429048
call fcn.00404d90
add esp, 0x18
mov ebx, edi
test edi, edi
jne 0x411df0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
or dword [0x429040], 0x20000800
push ebp
push str.Slab_list_did_not_pass_sanity_check___list_too_long___stopping_after__d_elements
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x40ff20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x6c2470], eax
xor eax, eax
nop
lea edx, [eax + 1]
mov eax, edx
mov ecx, dword [eax*4 + 0x6c246c]
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
lea edx, [edx + eax]
mov dword [eax*4 + 0x6c2470], edx
cmp eax, 0x26f
jl 0x40ff28
mov dword [0x5d9170], 0x270
ret

Function at 0x40ff60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
lea edx, [eax + 1]
mov eax, edx
mov ecx, dword [eax*4 + 0x6c2474]
mov ebx, dword [eax*4 + 0x6c2470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ecx, ebx
shr ecx, 1
xor ecx, edx
mov edx, dword [eax*4 + 0x6c2aa4]
xor edx, ecx
mov dword [eax*4 + 0x6c2470], edx
cmp eax, 0xe2
jl 0x40ff68
mov eax, 0xe2
mov esi, esi
lea edx, [eax + 1]
mov eax, edx
mov ecx, dword [eax*4 + 0x6c2474]
mov ebx, dword [eax*4 + 0x6c2470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ecx, ebx
shr ecx, 1
xor ecx, edx
mov edx, dword [eax*4 + 0x6c20e4]
xor edx, ecx
mov dword [eax*4 + 0x6c2470], edx
cmp eax, 0x26e
jl 0x40ffb8
mov edx, dword [0x6c2470]
mov ecx, dword [0x6c2e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or edx, ecx
shr edx, 1
xor edx, eax
mov eax, dword [0x6c2aa0]
xor eax, edx
mov dword [0x6c2e2c], eax
mov dword [0x5d9170], 0
pop ebx
ret

Function at 0x410050
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x5d9170]
add dword [0x5d9170], 1
mov eax, dword [0x6c1020]
cmp eax, dword [0x5d88c0]
jne 0x410073
cmp ebx, 0x271
jb 0x410094
mov eax, dword [0x6c1020]
call fcn.0040ff20
not dword [0x6c1020]
mov eax, dword [0x6c1020]
mov dword [0x5d88c0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x4100b0
call fcn.0040ff60
xor ebx, ebx
mov dword [0x5d9170], 1
lea esi, [esi]
mov eax, dword [ebx*4 + 0x6c2470]
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x411c30
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5d8600]
cmp ax, 0xcb
je 0x411d3c
cmp ax, 0xcc
je 0x411d3c
lea esi, [esi]
mov edx, dword [0x6c3070]
test edx, edx
je 0x411c65
mov eax, dword [0x6c2f20]
call edx
mov ebx, eax
jmp 0x411c6a
mov ebx, 0x6c2f24
cmp word [0x6c2f10], 0
jle 0x411c90
mov eax, 0x6c2ef0
call fcn.00411ef0
mov eax, ebx
call fcn.004117d0
mov eax, ebx
call fcn.00411840
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x411cb2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x411cad
mov edx, edi
mov eax, ebx
call fcn.00410c40
jmp 0x411cb0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411c98
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x6c2f10], 0
jle 0x411d3c
mov edx, 0x6c2e30
mov eax, ebx
call fcn.00410d80
mov edi, eax
test edi, edi
je 0x411d0c
mov eax, dword [0x6c2ec4]
mov dword [edi + 0xc], eax
cmp dword [0x6c2ec4], 0
je 0x411d00
mov eax, dword [0x6c2ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x6c2ec4], eax
nop
sub word [0x6c2f10], 1
cmp word [0x6c2f10], 0
sete bl
mov eax, 0x6c2ef0
call fcn.00411f10
test bl, bl
je 0x411d3c
mov eax, 0x6c2ef0
call fcn.00411ee0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413f00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x6c2260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004140e0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x6c2260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403a00
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5d8680], eax
mov ebx, eax
jmp 0x4140a3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413f88
cmp byte [ebx], 0
je 0x4140ac
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x414003
mov al, byte [ebx]
cmp al, 1
jb 0x413ff8
sub al, 0x20
jbe 0x413fc8
sub al, 2
je 0x413fdc
jmp 0x413ff8
mov al, byte [ebp - 0x114]
test al, al
je 0x414008
add dword [ebp - 0x110], 1
jmp 0x414000
cmp byte [ebx + 1], 0x22
je 0x413ff3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414000
add ebx, 1
jmp 0x414000
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413fb8
test dword [ebp - 0x10c], 0xffffffff
je 0x41409c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004140e0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x6c2260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414093
mov al, byte [ebx]
cmp al, 1
jb 0x414088
sub al, 0x20
jbe 0x414058
sub al, 2
je 0x41406c
jmp 0x414088
mov al, byte [ebp - 0x114]
test al, al
je 0x414098
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414090
cmp byte [ebx + 1], 0x22
je 0x414083
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414090
add ebx, 1
jmp 0x414090
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414048
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x413f8b
mov ebx, dword [ebp - 0x10c]
mov dword [0x6c2250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x6c2260
call fcn.00411a60
mov eax, dword [0x6c2260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4216d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4216dc
mov eax, 0x6c22f0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4216ef
and eax, 0x10
sete al
jmp 0x4216f1
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x421700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x42170c
mov eax, 0x6c22f0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42171f
and eax, 0x10
seta al
jmp 0x421721
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x421730
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x42173e
mov eax, 0x6c22f0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x42174c
xor ebx, ebx
jmp 0x421753
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421d30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040e9e0
call fcn.00404380
push eax
test eax, eax
jne 0x421dec
xor ebx, ebx
lea eax, [ebx + 1]
mov ebx, eax
lea eax, [ebx*4 + 0x6c37fc]
xor edx, edx
call fcn.00409190
mov dword [ebx*4 + 0x6c381c], 0xffffffff
cmp ebx, 7
jl 0x421d60
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x421dec
nop
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409b70
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.00416c30
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x421dec
push 4
push ebx
push esi
mov eax, 0x421bf0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x421c90
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
call fcn.0040ec50
lea eax, [ebp - 0x38]
call fcn.00403ec0
pop eax
test eax, eax
je 0x421e03
call fcn.0040ed80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret