joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405eb4
and dword [ebp - 4], 0
cmp dword [0x4467a0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4467a0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4467a4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4467a8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4467b0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4467ac], eax
mov eax, dword [0x4467ac]
cmp eax, ebx
je 0x40934f
cmp dword [0x4467b0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x4467b0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x4467a4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x4467a8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4467a0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.0044c1e0
mov eax, dword [0x45d380]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
push eax
push str..PhysicalDrive_d
lea edx, [ebp - 0x10c]
xor esi, esi
call fcn.004024f0
add esp, 8
push esi
push esi
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x37cc], edi
cmp edi, 0xffffffff
je 0x401d8d
xor eax, eax
push 0x2710
push eax
lea edx, [ebp - 0x37bc]
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
push edx
mov dword [ebp - 0x37d0], esi
mov dword [ebp - 0x37c0], eax
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0xc
lea edx, [ebp - 0x37c8]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401d80
mov eax, dword [ebp - 0x37b0]
push esi
lea edi, [ebp - 0x8dc]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37ac]
push esi
lea edi, [ebp - 0xcc4]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37a8]
push esi
lea edi, [ebp - 0x10ac]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37a4]
push 1
lea edi, [ebp - 0x4f4]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
add esp, 0x10
cmp byte [0x45e978], 0
jne 0x401d37
movsx eax, byte [ebp - 0x4f4]
mov edi, dword [sym.imp.MSVCR100.dll_isalnum]
push eax
call edi
add esp, 4
test eax, eax
jne 0x401cb3
movsx ecx, byte [ebp - 0x4e1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x401d37
xor eax, eax
jmp 0x401cc0
mov cl, byte [ebp + eax - 0x8dc]
mov byte [eax + 0x45e578], cl
inc eax
test cl, cl
jne 0x401cc0
xor eax, eax
jmp 0x401ce0
mov cl, byte [ebp + eax - 0xcc4]
mov byte [eax + 0x45e178], cl
inc eax
test cl, cl
jne 0x401ce0
xor eax, eax
jmp 0x401d00
mov cl, byte [ebp + eax - 0x4f4]
mov byte [eax + 0x45e978], cl
inc eax
test cl, cl
jne 0x401d00
xor eax, eax
jmp 0x401d20
mov cl, byte [ebp + eax - 0x10ac]
mov byte [eax + 0x45dd78], cl
inc eax
test cl, cl
jne 0x401d20
mov esi, 1
push 0x2710
lea edx, [ebp - 0x37bc]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x37cc]
add esp, 0xc
push 0
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0
push 0
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37cc]
jmp 0x401d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044bb74
mov esp, ebp
pop ebp
ret 4
Function at 0x402440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x45d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x94
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x4024c3
call fcn.00401830
test eax, eax
jne 0x4024da
push esi
call fcn.00401f60
test eax, eax
jne 0x4024da
push esi
call fcn.00401b50
test eax, eax
jne 0x4024da
push esi
call fcn.004016c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044bb74
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
jne 0x4024d8
mov ecx, esi
call fcn.00401e00
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x4024c5
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bb74
mov esp, ebp
pop ebp
ret

Function at 0x402530
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x45d380]
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 0x4025dd
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 0x4025a0
test dl, dl
je 0x40259c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4025a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402580
xor eax, eax
jmp 0x4025a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4025cb
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x4025cb
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 0x402574
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.0044bb74
mov esp, ebp
pop ebp
ret
Function at 0x402970
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 0x45ed80
push 0x45ed7c
push 0x45f34c
push 0x45fd6c
push 0xff
push 0x45fc68
push 0x459af4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x100
call fcn.0044bb56
mov edx, dword [0x45fd6c]
push edx
mov ebx, eax
push 0x459af8
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 0x402a00
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 0x402a20
Capabilities:
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x45d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
call fcn.00402830
push 0
push 0
push 0
push 0
add eax, 5
push str.Mozilla_5.0__Windows_NT_6.3__
mov dword [0x45fd70], eax
mov dword [0x45fd74], 0x402810
call fcn.00402810
mov ecx, dword [0x459b80]
mov edx, dword [0x459b84]
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 [0x459b88]
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 0x402b3b
push 0x459b8c
push ebx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x402b3b
call fcn.004028d0
add eax, 5
mov dword [0x45fd68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x45f878], 0x402820
call fcn.00402820
test al, al
je 0x402b31
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [ebp - 0x18]
push edi
test eax, eax
je 0x402b4e
push eax
lea edx, [ebp - 0x7c]
push 1
push edx
call ebx
add esp, 0x10
call fcn.004028d0
add eax, 5
mov dword [0x45fd68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x45f878], 0x402820
call fcn.00402820
test al, al
jne 0x402af2
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.0044bb74
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.0044bb74
mov esp, ebp
pop ebp
ret
Function at 0x404760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45d380]
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 0x4048f2
cmp byte [ebx + 0x49], 0
je 0x4048f2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4048e6
lea esi, [ebp - 0x2c]
call fcn.00404550
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4047d3
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 0x40480b
dec eax
je 0x40480f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x4048ed
call fcn.004010c0
xor al, al
jmp 0x4048f4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40481f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40484d
cmp edi, 0x10
jae 0x40482e
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 0x4048de
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4048ea
test esi, esi
jne 0x4047c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40490f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40490f
cmp edi, esi
jae 0x4048c7
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 0x4047c7
mov ecx, eax
cmp edi, 0x10
jae 0x4048a3
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 0x4048be
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4047c1
test esi, esi
jne 0x404899
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4048d6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4047c1
lea esi, [ebp - 0x2c]
call fcn.004010c0
xor al, al
jmp 0x4048f4
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.0044bb74
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 0x405900
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cc28
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x45d380]
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 0x405963
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004056c0
mov ecx, esi
call fcn.00405770
mov ecx, edi
mov ebx, esi
call fcn.00405850
cmp dword [ebp + 0x1c], 0x10
jb 0x405992
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.0044bb74
mov esp, ebp
pop ebp
ret
Function at 0x40faf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0x45d05c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x1c], ecx
jne 0x40fb12
add eax, 0x18c
jmp 0x40fb17
add eax, 0x140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40fb29
mov dword [eax], 0
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9f0], 0
jne 0x40fb3e
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 [0x45d00c]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x40fcd3
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x1fc], 0
je 0x40fba0
mov edx, dword [eax + 0x64]
push edx
call dword [0x45d00c]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40fba8
push ebp
call dword [0x45d004]
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 0x40fbc0
mov eax, dword [eax + 0x4e8]
mov dword [esp + 0x1c], eax
jmp 0x40fbc8
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x78]
test eax, eax
je 0x40fbde
test byte [eax + 4], 0x10
je 0x40fbde
add eax, 0x78
mov dword [esp + 0x14], eax
jmp 0x40fbe8
lea ecx, [edi + 0x9f4]
mov dword [esp + 0x14], ecx
mov ebx, dword [edi + 0x50c]
mov eax, 1
cmp ebx, eax
jbe 0x40fc30
mov ecx, dword [edi + 0x9f0]
lea edx, [eax + 0x6b]
sub ecx, 0xffffff80
cmp dword [ecx - 8], 0
je 0x40fc30
mov ebp, dword [esp + 0x30]
cmp dword [ecx], ebp
jge 0x40fc21
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 0x40fc03
cmp eax, ebx
jne 0x40fc3f
push esi
call fcn.0040e7d0
add esp, 4
jmp 0x40fc4a
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 [0x45d004]
mov ecx, dword [esi + 4]
push ecx
call dword [0x45d004]
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.0040e3b0
add esp, 0x10
test eax, eax
jne 0x40fce0
push edi
call fcn.0040e600
push ebp
mov dword [esi + 0xc], 0
call dword [0x45d004]
push ebx
call dword [0x45d004]
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 0x40fcee
mov dword [eax], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4101c0
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 0x4101ee
movzx eax, byte [esi]
push eax
call fcn.0040b7b0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x4101d1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

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

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x410231
push esi
call fcn.00432250
add esp, 4
test eax, eax
jne 0x410231
lea eax, [esp + 4]
push eax
call fcn.00410160
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.004101c0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4130f0
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 0x41310a
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 0x450e80
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x413157
test edi, edi
je 0x413148
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 0x41317d
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41317d
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 0x413230
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413196
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x413226
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x413226
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4131c4
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x4131e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4131e0
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 0x4131f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41321d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x45d004]
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 [0x45d004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x413240
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x790], 0
je 0x4132d9
cmp dword [esi + 0x1c4], 0
push edi
je 0x413298
push esi
call fcn.00414290
push 1
push esi
mov edi, eax
call fcn.00414260
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.00414260
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x4132d8
cmp eax, 2
jg 0x4132d8
mov edx, dword [esi + 0x170]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x450ea0]
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 0x4132e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x45d380]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x790], 0
jne 0x413312
cmp dword [esi + 0x178], 0
je 0x4133fe
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.004186b0
mov edx, dword [esi + 0x178]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x413364
cmp dword [esi + 0xe84], 0
jne 0x413364
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x413350
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 0x4133fd
cmp dword [esi + 0x1c4], 0
push ebx
je 0x4133d0
push esi
call fcn.00414290
push 1
push esi
mov ebx, eax
call fcn.00414260
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.00414260
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044bb74
add esp, 0x108
ret
mov eax, dword [esi + 0x170]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x450ea0
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.0044bb74
add esp, 0x108
ret
Function at 0x41e650
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x459b00
push eax
call fcn.00413420
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0041d6d0
test eax, eax
jne 0x41e67e
mov ecx, esi
jmp fcn.0041da70
ret