joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x110], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x114], eax
test edi, edi
je 0x48ee88
mov edi, edi
cmp word [edi + edx*2], bx
je 0x48ee88
mov al, byte [edi + edx*2]
mov byte [edx + esi + 0xc], al
inc edx
lea eax, [edx + 1]
cmp eax, 0x80
jb 0x48ee70
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0xc]
mov byte [edx + esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x48ef56
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x48eee3
push eax
mov ecx, esi
call fcn.0048efc0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043d250
cmp eax, 2
jg 0x48ef34
mov ebx, 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xcc
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reportermodule_info_impl.cc
lea ecx, [ebp - 0xbc]
call fcn.0043c9b0
test edi, edi
mov ecx, 0x4c7aa8
cmovne ecx, edi
add eax, 0x10
push ecx
push str.MapViewOfFile_failed_for
push eax
call fcn.00405c42
add esp, 8
push eax
call fcn.0043ce20
add esp, 8
test bl, 1
je 0x48ef44
lea ecx, [ebp - 0xbc]
call fcn.0043cc50
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043d250
cmp eax, 2
jg 0x48efa6
mov ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0xd1
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reportermodule_info_impl.cc
lea ecx, [ebp - 0xbc]
call fcn.0043c9b0
test edi, edi
mov ecx, 0x4c7aa8
cmovne ecx, edi
add eax, 0x10
push ecx
push str.CreateFileMappingFailed_for
push eax
call fcn.00405c42
add esp, 8
push eax
call fcn.0043ce20
add esp, 8
test bl, 2
je 0x48efb6
lea ecx, [ebp - 0xbc]
call fcn.0043cc50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x490cd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
test ecx, ecx
je 0x490d13
cmp word [ecx], 0
jne 0x490d01
xor ecx, ecx
jmp 0x490d13
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490d04
sub ecx, ebx
sar ecx, 1
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
mov ecx, esi
call fcn.004401d0
push eax
mov ecx, esi
call fcn.0043ffa0
lea ecx, [ebp - 0x1c]
call fcn.0043ff00
push esi
call fcn.00442bc0
add esp, 4
test al, al
jne 0x490d5c
push esi
call fcn.00448d00
add esp, 4
test al, al
jne 0x490d5c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10], 0
jne 0x490d75
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.00490db0
mov bl, al
add esp, 8
test bl, bl
jne 0x490d94
cmp dword [esi + 0x14], 8
jb 0x490d8d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x491080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x20], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
and edi, 0x8000000f
jns 0x4910cc
dec edi
or edi, 0xfffffff0
inc edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push ecx
inc eax
movzx eax, ax
push eax
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x491162
call fcn.0043d250
cmp eax, 2
jg 0x491123
mov ebx, 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x29
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindows_rc_l10n_handler_rc_l10n_handler.cc
lea ecx, [ebp - 0xdc]
call fcn.0043c9b0
add eax, 0x10
push str.Failed_to_find_string
push eax
call fcn.00405c42
add esp, 8
test bl, 1
je 0x491133
lea ecx, [ebp - 0xdc]
call fcn.0043cc50
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00405425
cmp dword [ebp - 8], 8
jb 0x49114f
push dword [ebp - 0x1c]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4911b0
call fcn.0043d250
cmp eax, 2
jg 0x4911a8
mov ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x2f
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindows_rc_l10n_handler_rc_l10n_handler.cc
lea ecx, [ebp - 0xdc]
call fcn.0043c9b0
add eax, 0x10
push str.Failed_to_load_string
push eax
call fcn.00405c42
add esp, 8
test bl, 2
jmp 0x491126
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
jne 0x4911ff
call fcn.0043d250
cmp eax, 2
jg 0x4911f7
mov ebx, 4
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x35
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindows_rc_l10n_handler_rc_l10n_handler.cc
lea ecx, [ebp - 0xdc]
call fcn.0043c9b0
add eax, 0x10
push str.Failed_to_lock_string
push eax
call fcn.00405c42
add esp, 8
test bl, 4
jmp 0x491126
test edi, edi
jle 0x49120f
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
dec edi
jne 0x491203
movzx eax, word [ecx]
push eax
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040576a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x491133
push 0
push ecx
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043f510
add esp, 0x10
jmp 0x49113e
Function at 0x491250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x4d9d84
push 0x86
push 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 1
mov dword [ebp - 0x20], eax
sub esp, 8
mov eax, esp
mov dword [eax], 0x4c8324
mov dword [eax + 4], 1
lea eax, [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push eax
call fcn.0044b290
add esp, 4
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4912d1
mov ecx, dword [eax]
jmp 0x4912d3
mov ecx, eax
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
push ebx
mov dword [edx + 4], eax
call fcn.00450fe0
add esp, 0x1c
cmp dword [ebp - 8], 8
jb 0x4912f5
push dword [ebp - 0x1c]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret

Function at 0x4932d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00498640
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x493ea0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x88], edi
push eax
push 5
push edi
mov byte [ebp - 0x75], 0
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x493f53
push 0xa
lea eax, [ebp - 0x44]
mov byte [ebp - 0x75], 1
push 0
push eax
call fcn.0049dcf8
mov esi, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x84], eax
cmp esi, eax
ja 0x493f53
cmp dword [ebp - 0x48], eax
je 0x493f53
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404be6
test al, al
je 0x493f53
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
cmovae eax, dword [ebp - 0x5c]
mov byte [eax + esi], 0
xor eax, eax
push eax
push eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ebx, eax
test ebx, ebx
je 0x493ffa
nop
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x49402d
cmp esi, 0xffffffff
ja 0x4940ae
push esi
call fcn.00492cd0
mov edi, eax
add esp, 4
test edi, edi
je 0x4940a9
push esi
push 0
push edi
call fcn.00498640
mov esi, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
add esp, 0xc
push eax
push dword [ebp - 0x80]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x494020
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x494020
add dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x5c]
push eax
push edi
call fcn.00405567
push edi
call fcn.00492cb0
add esp, 4
lea eax, [ebp - 0x80]
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ebx, eax
test ebx, ebx
jne 0x493f70
xor bl, bl
cmp dword [ebp - 0x48], 0x10
jb 0x49400d
push dword [ebp - 0x5c]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x49402d
push edi
call fcn.00492cb0
add esp, 4
test ebx, ebx
je 0x493ffa
cmp byte [ebp - 0x75], 0
je 0x494042
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x84]
jne 0x493ffa
mov edi, dword [ebp - 0x94]
mov bl, 1
test edi, edi
je 0x493ffc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004944e0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x49408f
cmp dword [edi + 0x14], 8
jb 0x494074
push dword [edi]
call fcn.00492cb0
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov word [edi], ax
call fcn.00405609
cmp dword [ebp - 0x60], 8
jb 0x493ffc
push dword [ebp - 0x74]
call fcn.00492cb0
add esp, 4
jmp 0x493ffc
call fcn.004b5f4b
push str.vector_T__too_long
call fcn.004b5f7c
int3
Function at 0x495da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push 0x100000
mov dword [ebp - 0xc], 0
call fcn.00492cd0
mov esi, eax
add esp, 4
test esi, esi
je 0x495e1b
push 9
push 8
push 0
push 0
push 0
push 0
push 0
push 0
push str.crashlog.txt
push dword [ebp + 0xc]
call fcn.004bcbd0
add esp, 0x28
test eax, eax
jne 0x495e1b
push 0x4c497c
push dword [ebp + 8]
call fcn.0049d332
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x495e1b
push ebx
call fcn.00495cd0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x495e32
push ebx
call fcn.0049ac7a
add esp, 4
xor bl, bl
test esi, esi
je 0x495e2a
push esi
call fcn.00492cb0
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test eax, eax
je 0x495e98
mov ecx, 0x100000
push edi
mov edi, edi
push dword [ebp - 4]
mov edi, eax
sub edi, ebx
cmp edi, 0x100000
cmova edi, ecx
push edi
push 1
push esi
call fcn.0049b14f
add esp, 0x10
cmp eax, edi
jne 0x495e97
mov eax, dword [ebp - 0xc]
test al, 1
je 0x495e78
and eax, 0xfffffffe
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc], eax
call fcn.0043c9e0
push edi
push esi
push dword [ebp + 0xc]
call fcn.004bd230
add esp, 0xc
test eax, eax
jne 0x495e97
mov eax, dword [ebp - 8]
add ebx, edi
mov ecx, 0x100000
cmp ebx, eax
jb 0x495e40
pop edi
push dword [ebp - 4]
call fcn.0049ac7a
add esp, 4
cmp ebx, dword [ebp - 8]
sete bl
jmp 0x495e1d
Function at 0x4ae02a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049f42a
mov dword [ebp - 0x14], eax
cmp dword [0x4e64d8], esi
jne 0x4ae11d
push 0x800
push esi
push 0x4cd8a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ae0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ae1fd
push esi
push esi
push 0x4cd8a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ae1fd
push 0x4cd8b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ae1fd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4e64d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4e64dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4e64e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e64e8], eax
test eax, eax
je 0x4ae11a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e64e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ae142
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ae135
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ae157
push 4
pop eax
jmp 0x4ae1ff
cmp dword [ebp - 0x14], esi
je 0x4ae157
push dword [0x4e64d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ae13c
mov eax, dword [0x4e64e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ae1b5
cmp dword [0x4e64e8], edi
je 0x4ae1b5
push eax
call ebx
push dword [0x4e64e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ae1b5
test eax, eax
je 0x4ae1b5
call ecx
test eax, eax
je 0x4ae1aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ae1aa
test byte [ebp - 8], 1
jne 0x4ae1b5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ae1e5
mov eax, dword [0x4e64dc]
cmp eax, edi
je 0x4ae1e2
push eax
call ebx
test eax, eax
je 0x4ae1e2
call eax
mov esi, eax
test esi, esi
je 0x4ae1e2
mov eax, dword [0x4e64e0]
cmp eax, edi
je 0x4ae1e2
push eax
call ebx
test eax, eax
je 0x4ae1e2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4e64d8]
call ebx
test eax, eax
je 0x4ae1fd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ae1ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x4b7dd0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x4b7e83
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4b7e83
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040576a
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4b7e3b
mov eax, dword [esi]
jmp 0x4b7e3d
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x4b7e70
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4b7e70
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040576a
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret

Function at 0x4b8550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0x2c
push 0
lea esi, [edi + 0xa0]
push esi
call fcn.00498640
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
jne 0x4b85c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b85c9
push dword [edi + 0x9c]
mov dword [edi + 0x84], 0xa
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4b85d3
mov dword [edi + 0x84], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x84], 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8df0
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
jne 0x4b8e94
push 0
push 1
push 0
mov dword [esi + 0x84], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x4b8e94
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x4b8e94
push 4
push 0xffffffffffffffff
push esi
push 0x4b8ca0
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x4b8e94
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4b8e59
mov eax, dword [eax]
push dword [esi + 0x38]
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x4b8e94
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4b8e98
mov dword [esi + 0x84], 1
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4bb5f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4bb670
push esi
push edi
mov edi, dword [eax + 4]
mov esi, 0x34567890
mov edi, edi
mov edx, dword [eax]
lea ebx, [ebx + 1]
mov eax, dword [ebp + 0x10]
movsx ecx, cl
xor ecx, edx
shr edx, 8
and ecx, 0xff
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
and ecx, 0xff
xor esi, dword [edx + ecx*4]
mov dword [eax + 8], esi
mov cl, byte [ebx]
test cl, cl
jne 0x4bb620
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bb680
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x100b4], ebx
je 0x4bb73a
cmp dword [esi + 0x80], ebx
jbe 0x4bb73a
mov eax, 0xffffff54
lea ebx, [esi + 0xac]
sub eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d8]
xor eax, ecx
mov edx, dword [esi + 0x100e4]
and eax, 0xff
mov edi, dword [esi + 0x100e0]
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov dword [esi + 0x100d8], eax
movzx eax, al
add eax, dword [esi + 0x100dc]
imul ecx, eax, 0x8088405
mov eax, dword [esi + 0x100e0]
inc ecx
mov dword [esi + 0x100dc], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 0x100e0], eax
mov eax, edi
xor eax, 1
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
add eax, ebx
cmp eax, dword [esi + 0x80]
jb 0x4bb6b3
xor ebx, ebx
mov edi, dword [esi + 0x80]
lea eax, [esi + 0xac]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x80], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c8], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100cc], 0
add dword [esi + 0x100d0], ecx
pop edi
adc dword [esi + 0x100d4], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
pop ebp
ret
Function at 0x4bf9a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 0x8c]
mov edi, 0x1505
add eax, dword [ebp + 0xc]
cmp esi, 0x102
jae 0x4bfad5
test esi, esi
je 0x4bfad5
xor edx, edx
test esi, esi
je 0x4bf9ec
mov ebx, eax
movzx ecx, byte [edx + ebx]
mov eax, edi
shl eax, 5
inc edx
add edi, eax
add edi, ecx
cmp edx, esi
jb 0x4bf9d7
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
and edi, 0xff
mov edx, dword [ebx + edi*4 + 0xb4]
mov dword [ebx + edi*4 + 0xb4], eax
mov dword [ebp + 0x10], edx
mov dword [ebx + 0x4c8], 0
test edx, edx
je 0x4bfad5
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jbe 0x4bfad5
mov eax, dword [ebx + 0x80]
sub eax, 0x106
cmp ecx, eax
jae 0x4bfad5
cmp esi, dword [ebx + 0x4cc]
ja 0x4bfad5
xor edi, edi
test esi, esi
je 0x4bfa99
mov eax, dword [ebx + 0x8c]
mov ebx, edx
mov ecx, dword [ebp + 0xc]
add ecx, eax
sub eax, ecx
add eax, edx
sub ecx, edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add ecx, ebx
mov al, byte [ecx]
cmp al, byte [ecx + edx]
jne 0x4bfad5
mov eax, dword [ebp + 8]
mov edx, ebx
shr edx, 3
mov cl, bl
and cl, 7
mov eax, dword [eax + 0xb0]
mov al, byte [edx + eax]
shr al, cl
test al, 1
je 0x4bfad5
mov ecx, dword [ebp - 4]
inc edi
inc ebx
cmp edi, esi
jb 0x4bfa62
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x8c]
lea ecx, [edx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x4bfac6
mov eax, dword [ebx + 0xb0]
lea ecx, [edx + esi]
mov edx, ecx
and cl, 7
shr edx, 3
mov al, byte [edx + eax]
shr al, cl
test al, 1
jne 0x4bfad5
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
mov dword [ebx + 0x4c8], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c0630
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c063c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004c06c0