joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4930ee
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4e579a
call fcn.004d1301
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x4931e0
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x493146
mov eax, dword [eax + 4]
jmp 0x493149
add eax, 4
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x48]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, edi
je 0x493197
cmp esi, 0x50
je 0x493197
cmp esi, 0xb7
je 0x493197
cmp esi, edi
jle 0x49317e
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
call fcn.004d1384
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4931a3
lea eax, [ebp - 0x28]
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4931d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4931d3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x493180
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x493180
mov edi, 0x80070057
jmp 0x493180
Function at 0x493593
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4f1c3c
call fcn.004d1298
mov esi, ecx
call fcn.00402b3f
and dword [ebx], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0048b22a
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4935d5
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d1370
ret
lea eax, [ebp - 0x14]
push str.datakbootnf.dat
push eax
lea ecx, [ebp - 0x10]
call fcn.004062ff
pop ecx
pop ecx
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00402a90
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
xor esi, esi
not eax
inc esi
and eax, esi
mov dword [ebx], eax
jmp 0x4935c2

Function at 0x4946d2
Capabilities:
Read .ini file

Disassembly:
push 0x10
mov eax, 0x4f1bee
call fcn.004d1298
lea eax, [ebp - 0x10]
push eax
call fcn.0048b22a
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
mov dword [esp], str.securityksdedeconfig.ini
push ecx
mov ecx, eax
call fcn.004062ff
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebp - 0x10]
call fcn.00492f26
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
push edi
lea ebx, [ebp - 0x10]
call fcn.00492f37
test eax, eax
je 0x4947d2
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push edi
push str.qdtg
push str.tgmisc
call ebx
cmp eax, 1
jne 0x49474f
lea eax, [esi - 0x10]
jmp 0x4947d8
push esi
push edi
push str.dev_excep
mov esi, str.deviceinfo
push esi
call ebx
cmp eax, edi
mov dword [ebp - 0x18], eax
jle 0x4947d2
mov ebx, str.dev_time
lea edx, [ebp - 0x10]
call fcn.00492f8b
push edi
mov ebx, eax
mov esi, edx
call dword [sym.imp.MSVCR80.dll__time64]
cmp edx, esi
pop ecx
jl 0x4947d2
jg 0x494788
cmp eax, ebx
jb 0x4947d2
sub eax, ebx
sbb edx, esi
cmp edx, edi
jg 0x4947d2
jl 0x494799
cmp eax, 0x15180
ja 0x4947d2
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
push 0x517828
push 0x25
call fcn.004947f2
mov eax, dword [ebp + 8]
call fcn.00494c55
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
jmp 0x4947ea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
call fcn.004d1370
ret 4
Function at 0x496774
Capabilities:
Get disk information

Disassembly:
push 0x2f8
mov eax, 0x4f59a9
call fcn.004d1301
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xd2
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0xe6]
push ebx
push eax
mov word [ebp - 0xe8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x4967c4
xor eax, eax
jmp 0x4968a4
cdq
and edx, 3
add eax, edx
mov esi, eax
push 0x208
lea eax, [ebp - 0x2f6]
push ebx
push eax
sar esi, 2
mov word [ebp - 0x2f8], bx
call sub.MSVCR80.dll_memset
mov word [ebp - 0xf0], bx
mov ebx, dword [ebp - 0x2fc]
add ebx, 4
add esp, 0xc
mov eax, ebx
lea edi, [ebp - 0xe8]
call fcn.00402948
test esi, esi
jle 0x4968a1
and word [edi + 4], 0
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x496897
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00402d09
and dword [ebp - 4], 0
lea eax, [ebp - 0x300]
push eax
mov eax, ebx
call fcn.00440a17
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.004012f9
push edi
lea eax, [ebp - 0x2fc]
push eax
call fcn.00402d09
lea eax, [ebp - 0x2fc]
push eax
mov eax, ebx
mov dword [ebp - 4], 1
call fcn.00440a17
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2fc]
add eax, 0xfffffff0
call fcn.004012f9
add edi, 8
dec esi
jne 0x496810
xor eax, eax
inc eax
call fcn.004d1384
ret 4

Function at 0x4968d2
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x496953
push 0x517900
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x496953
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push 0x51794c
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x49694e
cmp dword [esi + 4], ebx
je 0x49694e
cmp dword [esi + 8], ebx
je 0x49694e
cmp dword [esi + 0xc], ebx
je 0x49694e
cmp eax, ebx
je 0x49694e
xor eax, eax
inc eax
jmp 0x496950
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x496b18
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x528858
call fcn.004d0d54
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x496b9d
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x496b9d
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x496b9d
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00496bb4
mov eax, dword [ebp - 0x20]
call fcn.004d0d99
ret

Function at 0x496bc6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x670
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp edi, ebx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jne 0x496c09
xor eax, eax
mov ecx, dword [esp + 0x674]
pop esi
pop ebx
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x496bf3
push 0x228
lea eax, [esp + 0x20]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov esi, 0x22c
mov dword [esp + 0x20], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x496c58
xor esi, esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x496bf5
push 0x104
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x496c9e
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x20], esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x496c58
jmp 0x496cff
push dword [esp + 0x20]
mov dword [esp + 0x14], 1
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x496cff
push 0x424
lea eax, [esp + 0x250]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x248]
push eax
push esi
mov dword [esp + 0x250], 0x428
call sub.KERNEL32.dll_Module32FirstW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x468]
push eax
push dword [esp + 0x18]
call fcn.00402d46
mov esi, dword [esp + 0x10]
jmp 0x496c4a
Function at 0x496d8b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x244], eax
mov ebx, ecx
mov dword [ebp - 0x240], edi
jne 0x496dc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0736
leave
ret
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x23c], eax
je 0x496db8
push 0x228
lea eax, [ebp - 0x234]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov esi, 0x22c
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x496e24
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x496dba
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x496e66
lea eax, [ebp - 0x230]
push eax
lea edi, [ebp - 0x250]
mov dword [ebp - 0x240], 1
call fcn.00496e9f
push esi
lea eax, [ebp - 0x238]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x496e24
mov esi, dword [ebp - 0x240]
jmp 0x496e14

Function at 0x497849
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4978d2
push ebx
call fcn.004cfd86
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4978c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5091ec
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4978c3
cmp dword [ebp - 0xc], ebx
je 0x4978c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4978d2
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x497af3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x497b56
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x497c0c
mov eax, dword [ebp - 0x98]
dec eax
je 0x497bf8
dec eax
jne 0x497c0c
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x497ba5
cmp dword [ebp - 0xa0], edx
jne 0x497b8f
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x497bf4
cmp dword [ebp - 0xa0], edi
jne 0x497bdd
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x497bf4
cmp eax, 5
jne 0x497bcf
cmp dword [ebp - 0xa0], 2
jne 0x497bb6
push eax
jmp 0x497bd6
cmp dword [ebp - 0xa0], 1
jne 0x497bc3
mov edi, ecx
jmp 0x497c0c
cmp dword [ebp - 0xa0], edi
jne 0x497c0c
push 3
jmp 0x497bd6
cmp eax, 4
ja 0x497bd9
push 4
pop edi
jmp 0x497c0c
cmp eax, ecx
jb 0x497c0c
cmp dword [ebp - 0xa0], 2
jae 0x497bea
cmp eax, ecx
jbe 0x497c0c
cmp byte [ebp + 0x72], dl
jne 0x497c0c
call fcn.00497a38
mov edi, eax
jmp 0x497c0c
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d0736
add ebp, 0x78
leave
ret

Function at 0x499c45
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4f5955
call fcn.004d1298
xor ebx, ebx
lea ecx, [ebp - 0x14]
call fcn.0048afb1
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
push str.data_float_test.ini
push ecx
mov ecx, eax
call fcn.004062ff
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
push 0x1b7740
push str.query_weather
push str.test
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d1370
ret

Function at 0x499ca8
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4f5932
call fcn.004d1298
xor ebx, ebx
lea ecx, [ebp - 0x14]
call fcn.0048afb1
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
push str.data_float_test.ini
push ecx
mov ecx, eax
call fcn.004062ff
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
push 0x1388
push str.query_weather_retry
push str.test
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d1370
ret
Function at 0x499f23
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x4e9db0
call fcn.004d1298
push 0x40
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
or ebx, 0xffffffff
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x550310]
add esp, 0xc
mov ecx, 0x550310
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push str.__s___s
call fcn.00401a57
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov word [ebp - 0x40], si
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x499fc9
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x499fc9
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x499fdc
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], esi
je 0x499fe9
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, ebx
call fcn.004d1370
ret 8

Function at 0x49b049
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp], eax
push ebx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
push esi
jne 0x49b068
push 1
push ebx
lea esi, [edi + 0x1c]
call fcn.0042a446
cmp dword [edi + 0x28], ebx
jne 0x49b078
push 1
push ebx
lea esi, [edi + 0x24]
call fcn.0042a446
cmp dword [edi + 0x30], ebx
jne 0x49b088
push 1
push ebx
lea esi, [edi + 0x2c]
call fcn.0042a446
cmp dword [edi + 0x38], ebx
jne 0x49b098
push 1
push ebx
lea esi, [edi + 0x34]
call fcn.0042a446
cmp dword [edi + 0x3c], ebx
je 0x49b0b0
mov eax, dword [edi + 0x3c]
cmp eax, ebx
je 0x49b0f2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x49b0f2
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
jne 0x49b0c0
xor esi, esi
jmp 0x49b0e1
push ebx
push ebx
push eax
push 0x4c35db
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x49b517
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov esi, eax
mov eax, dword [edi + 0x3c]
cmp eax, ebx
je 0x49b0ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], esi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.004d0736
pop ecx
ret
Function at 0x4b320c
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp], eax
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
call fcn.004b329c
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x4b323c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
cmp ebx, edi
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
je 0x4b324c
mov dword [esi + 4], ebx
jmp 0x4b324f
mov dword [esi + 4], esi
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x4b32bf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi], eax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp]
xor ecx, esp
call fcn.004d0736
pop ecx
ret 4

Function at 0x4b327d
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4b329b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
ret

Function at 0x4b5ea7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x4b5eb2
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x4b5f64
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
sub eax, 8
dec edi
jne 0x4b5ec9
pop edi
test eax, eax
je 0x4b5f7d
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x508378]
inc ecx
dec eax
jne 0x4b5f68
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x4b5f84
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x508378]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x508378]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4b65f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4b6628
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b6623
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4b6650
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4b6639
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret