joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x112]
mov ebp, ecx
add edi, 4
mov dword [esp + 0x14], ebp
push 1
lea eax, [edi + 1]
push eax
call fcn.0058c2e0
movzx ecx, byte [ebx + 0x105]
add esp, 8
mov esi, eax
mov ebp, dword [ebp + ecx*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x59a8a6
push 0
push 0x31c
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.0058a690
add esp, 0x10
push 0
push 0
push dword [ebx + 0x10a]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], edi
je 0x59a8fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_read_failed__d_n
call fcn.0058a1c0
push esi
call fcn.0058c320
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0x10a], eax
movzx eax, cl
mov byte [ebx + 0x105], cl
mov ebp, dword [ebp + eax*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x59a93b
push 0
push 0x32d
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.0058a690
add esp, 0x10
push 0
push 0
push dword [ebx + 0x10a]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
je 0x59a97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_write_failed__d_n
jmp 0x59a8e1
push esi
call fcn.0058c320
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x59b3e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dbe7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x18]
push 0x730f24
call fcn.0058c4c0
mov esi, dword [esp + 0x130]
mov dword [esp + 0x128], 0
cmp byte [esi], 0
je 0x59b453
cmp byte [esi + 0x104], 0
je 0x59b453
cmp byte [esi + 0x105], 0xff
je 0x59b453
cmp dword [esi + 0x10a], 0xffffffff
je 0x59b453
cmp dword [esi + 0x106], 0xffffffff
je 0x59b453
cmp dword [esi + 0x112], 0xffffffff
jne 0x59b46c
push 0
push 0x1b8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.IsValid__
call fcn.0058a690
add esp, 0x10
mov ebx, dword [esp + 0x138]
cmp dword [esi + 0x112], ebx
je 0x59b494
push 0
push 0x1b9
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.csize__csize
call fcn.0058a690
add esp, 0x10
movzx eax, byte [esi + 0x105]
mov edi, dword [ebp + eax*4 + 0x338]
cmp edi, 0xffffffff
jne 0x59b507
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00599ee0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59b4f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push str.cant_open__s_for_writing___d_n
call fcn.00589de0
add esp, 0xc
xor bl, bl
jmp 0x59b59f
movzx eax, byte [esi + 0x105]
mov dword [ebp + eax*4 + 0x338], edi
push 0
push 0
push dword [esi + 0x10a]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, dword [esi + 0x10a]
je 0x59b536
call ebp
push eax
push str.SetFilePointer_failed__d
call fcn.00589de0
add esp, 8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x69737573
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x59b56f
call ebp
push eax
push str.WriteFile_failed__d
call fcn.00589de0
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x140]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x59b59d
push ebx
push eax
push esi
push str.failed_to_write__s__d_vs__d_n
call fcn.00589de0
add esp, 0x10
mov bl, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0xffffffff
call fcn.0057e930
mov ecx, dword [esp + 0x120]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc
Function at 0x59b5d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dbe98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ecx, [esp + 0x24]
push 0x730f24
call fcn.0058c4c0
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x4c], 0
test eax, eax
jne 0x59b629
push eax
push 0xf8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.IsValid__
call fcn.0058a690
add esp, 0x10
mov ebp, dword [esp + 0x54]
test ebp, ebp
jne 0x59b649
push ebp
push 0xf9
push str.SourceFileSystem_r3dFileSystem.cpp
push 0x65f1fc
call fcn.0058a690
add esp, 0x10
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
imul edi, eax, 0x128
push 1
mov dword [esp + 0x2c], 0x31737573
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], edi
lea eax, [edi + 1]
push eax
call fcn.0058c2e0
mov ecx, dword [ebx + 8]
add esp, 8
sub ecx, dword [ebx + 4]
mov esi, eax
sar ecx, 2
xor edx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x59b6c0
mov ebp, esi
mov esi, dword [ebx + 4]
mov edi, ebp
mov ecx, 0x4a
add ebp, 0x128
mov esi, dword [esi + edx*4]
inc edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
cmp edx, eax
jb 0x59b691
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x13]
call fcn.0058ae50
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
lea ecx, [esp + 0x23]
call fcn.0058ae60
test eax, eax
jne 0x59b6ef
push str.failed_to_compres_file_list_n
call fcn.00589de0
add esp, 4
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push edi
push esi
mov dword [esp + 0x48], eax
call fcn.0058b160
push ebp
push 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.005b11f3
push ebp
push 0x14
lea eax, [esp + 0x50]
push 1
push eax
call fcn.005b11f3
push ebp
push 1
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.005b11f3
push esi
call fcn.0058c320
push dword [esp + 0x54]
call fcn.0058c320
add esp, 0x40
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0057e930
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x5a45c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a45e1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x224
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a463b
jmp 0x5a4600
lea eax, [esp + 0x28]
push 0x663e84
push eax
call fcn.005a2890
add esp, 8
test eax, eax
jne 0x5a4637
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a4600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5a6f10
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x5a8537
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5a8537
cmp dword [ecx + 0xc], 0
je 0x5a8537
cmp dword [ecx], 0
jne 0x5a6f48
cmp dword [ecx + 4], 0
jne 0x5a8537
cmp dword [edi], 0xb
jne 0x5a6f53
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x5a78b8
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x5a6fa0
jmp dword [eax*4 + 0x5a8544]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x5a9090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5a90c4
mov al, byte [ecx]
test al, al
je 0x5a90c4
mov edx, 0x811c9dc5
movsx eax, al
lea ecx, [ecx + 1]
or eax, 0x20
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x5a90a3
xor edx, 0x2a
imul eax, edx, 0x1000193
ret
xor eax, eax
ret
Function at 0x5c35d1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
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.005bc352
mov dword [ebp - 0x14], eax
cmp dword [0x74ce94], esi
jne 0x5c36c4
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c3651
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c37a4
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c37a4
push 0x66e2b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c37a4
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74ce94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74ce98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationA
push edi
mov dword [0x74ce9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea4], eax
test eax, eax
je 0x5c36c1
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c36e9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c36dc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], esi
je 0x5c36fe
push 4
pop eax
jmp 0x5c37a6
cmp dword [ebp - 0x14], esi
je 0x5c36fe
push dword [0x74ce94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c36e3
mov eax, dword [0x74cea0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c375c
cmp dword [0x74cea4], edi
je 0x5c375c
push eax
call ebx
push dword [0x74cea4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c375c
test eax, eax
je 0x5c375c
call ecx
test eax, eax
je 0x5c3751
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 0x5c3751
test byte [ebp - 8], 1
jne 0x5c375c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c378c
mov eax, dword [0x74ce98]
cmp eax, edi
je 0x5c3789
push eax
call ebx
test eax, eax
je 0x5c3789
call eax
mov esi, eax
test esi, esi
je 0x5c3789
mov eax, dword [0x74ce9c]
cmp eax, edi
je 0x5c3789
push eax
call ebx
test eax, eax
je 0x5c3789
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74ce94]
call ebx
test eax, eax
je 0x5c37a4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c37a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af2c3
mov esp, ebp
pop ebp
ret
Function at 0x5c7d4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
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.005bc352
mov dword [ebp - 0x14], eax
cmp dword [0x74cf04], esi
jne 0x5c7e42
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c7dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c7f22
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c7f22
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c7f22
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74cf04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74cf08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x74cf0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf14], eax
test eax, eax
je 0x5c7e3f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c7e67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c7e5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5c7e7c
push 4
pop eax
jmp 0x5c7f24
cmp dword [ebp - 0x14], esi
je 0x5c7e7c
push dword [0x74cf04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c7e61
mov eax, dword [0x74cf10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c7eda
cmp dword [0x74cf14], edi
je 0x5c7eda
push eax
call ebx
push dword [0x74cf14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c7eda
test eax, eax
je 0x5c7eda
call ecx
test eax, eax
je 0x5c7ecf
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 0x5c7ecf
test byte [ebp - 8], 1
jne 0x5c7eda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c7f0a
mov eax, dword [0x74cf08]
cmp eax, edi
je 0x5c7f07
push eax
call ebx
test eax, eax
je 0x5c7f07
call eax
mov esi, eax
test esi, esi
je 0x5c7f07
mov eax, dword [0x74cf0c]
cmp eax, edi
je 0x5c7f07
push eax
call ebx
test eax, eax
je 0x5c7f07
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74cf04]
call ebx
test eax, eax
je 0x5c7f22
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c7f24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af2c3
mov esp, ebp
pop ebp
ret
Function at 0x405160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x4052ff
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x4051b6
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x4051c9
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x4051dd
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x40522b.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x4051fc
mov dword [esp + eax*4 + 0x14], edx
jmp 0x405204
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x4051f0
cmp word [esp + 0x10], dx
je case.0x40522b.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x40522b.3
movzx eax, byte [eax + 0x40531c]
jmp dword [eax*4 + 0x405308]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x40522b.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x405240
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x40522b.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x405280
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x40522b.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4052a2
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x40522b.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4052c6
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40f3a0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40f3a7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0040f3b0
Function at 0x4114b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4114dd
cmp dword [ebp - 4], 1
jg 0x4114e2
jmp 0x41158c
cmp dword [ebp - 4], 5
jl 0x41158c
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
je 0x41153c
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x41153c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00410490
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410490
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00411460
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.004107a0
lea ecx, [ebp - 0xc]
call fcn.004107a0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x41158c
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x41158c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410490
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.00410490
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00411460
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.004107a0
lea ecx, [ebp - 0x14]
call fcn.004107a0
mov esp, ebp
pop ebp
ret
Function at 0x412d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x47fa30]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.004125d0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00415af0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00413000
lea ecx, [ebp - 0x438]
call fcn.00415af0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412a00
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x412d8e
call fcn.00412630
mov dword [ebp - 0x444], eax
jmp 0x412ee3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x412dbf
call fcn.00412630
mov dword [ebp - 0x444], eax
jmp 0x412ee3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x412def
call fcn.00412630
mov dword [ebp - 0x444], eax
jmp 0x412ee3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x412e3f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00415b40
lea ecx, [ebp - 0x2c]
call fcn.00415720
mov eax, dword [ebp - 0x44c]
jmp 0x412f18
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00415b10
lea ecx, [ebp - 0x438]
call fcn.0043a170
test eax, eax
jne 0x412e6c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x412ee3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0043a170
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.004125d0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x412eae
call fcn.00412630
mov dword [ebp - 0x444], eax
jmp 0x412ee3
lea ecx, [ebp - 0x438]
call fcn.0043a170
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.0043a170
push eax
lea ecx, [ebp - 0x18]
call fcn.00413030
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x412ef3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00415b40
lea ecx, [ebp - 0x2c]
call fcn.00415720
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00450655
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4147e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47fa30]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00417bf0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00414780
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41484b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.004145e0
mov eax, dword [ebp - 0x224]
jmp 0x4148dc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4148b1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004147e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4148a8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.004145e0
mov eax, dword [ebp - 0x228]
jmp 0x4148dc
mov dword [ebp - 4], 0x100
jmp 0x414852
lea ecx, [ebp - 0x14]
call fcn.004146c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00414660
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.004145e0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00450655
mov esp, ebp
pop ebp
ret 4