joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032346
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x10032389
call fcn.10025ea4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x10032389
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100323a4
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1003fe00
test ebx, ebx
mov esi, eax
je 0x100323a2
test edi, edi
je 0x100323a2
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1003bf37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1003bf57
cmp dword [edi + 0x54], 0
jne 0x1003bf57
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10025ea4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003befe
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1003fe00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1003fe0f
pop dword [ebp - 0x24]
mov eax, 0x1003fe0f
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x43382
push 0
mov eax, 0x34560151
sub eax, 0x244f1f89
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xb3401953
add ecx, 0x4cc0383c
mov edi, eax
mov ebx, 0x1009d000
add ebx, dword [ebp - 0x24]
mov esi, 0x3e1d8ad5
add dword [ebp - 4], 0x226c26ca
mov edx, dword [ebx]
xor edx, esi
mov dword [edi], edx
sub dword [ebp - 0x18], edx
add edi, 0x5e8f18c5
sub edi, 0x5e8f18c1
add ebx, 0x290a9c70
add ebx, 0xd6f56394
loop 0x1003fe5d
add eax, 0x1390f
xor ebx, ebx
add ebx, eax
add eax, 0x1841f994
sub eax, 0x1841f98f
mov ecx, 0xba75691b
sub ecx, 0xaa75691b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x10040165
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008a740]
jne 0x1004016f
repz ret
jmp fcn.100475c4
Function at 0x10048b10
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083341
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x38]
mov byte [ecx], 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x14], ecx
mov byte [ecx + 4], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x68], 0xf
mov dword [esi + 0x64], 0
mov byte [esi + 0x54], 0
mov byte [ebp - 4], 2
xor eax, eax
mov byte [esi + 0x2c], 0
mov byte [esi + 2], 0
mov word [esi], ax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x30], 0x20
mov byte [esi + 0x34], 0xff
push eax
mov byte [ecx], al
add ecx, 4
push 0x100a52da
call fcn.10054950
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100567e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x811c9dc5
test edi, edi
je 0x10056807
mov al, byte [edx]
lea edx, [edx + 1]
movsx eax, al
xor eax, esi
imul esi, eax, 0x1000193
dec edi
jne 0x100567f4
pop edi
mov dword [ecx], esi
mov eax, ecx
pop esi
pop ebp
ret 8

Function at 0x10058a10
Capabilities:
Hash data using fnv

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x811c9dc5
test edx, edx
je 0x10058a3e
lea ecx, [ecx]
mov cl, byte [esi]
lea eax, [ecx - 0x61]
cmp al, 0x19
movsx eax, cl
ja 0x10058a2f
sub eax, 0x20
movsx eax, al
inc esi
xor eax, edi
imul edi, eax, 0x1000193
dec edx
jne 0x10058a20
mov eax, edi
pop edi
pop esi
ret
Function at 0x1005d640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098e8c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.10062a40
test al, al
je 0x1005d7c7
mov byte [ebp - 4], 1
push 0x50
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1005d740
mov ecx, edi
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 3
mov dword [edi], 0x100bb228
push 2
push ecx
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10047d80
mov byte [ebp - 4], 2
jmp 0x1005d742
xor edi, edi
mov byte [ebp - 4], 1
mov dword [esi + 0xc], edi
push 0x60
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov edi, eax
mov dword [ebp + 8], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x1005d779
push 1
push 0
push dword [esi + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [edi + 0x18], 0x100bb3d4
jmp 0x1005d77b
xor edi, edi
mov byte [ebp - 4], 1
mov dword [esi], edi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10062bd0
test al, al
jne 0x1005d7c7
mov ecx, dword [esi]
test ecx, ecx
je 0x1005d7a6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1005d7b3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005ef90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099558
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x1005f11f
cmp byte [edi + 0x45], 0
je 0x1005f11f
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1005eff0
xor al, al
jmp 0x1005f121
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
xor eax, eax
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x1005f031
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov ebx, dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [esp + 0x18]
lea esi, [edi + 0x48]
mov eax, dword [esp + 0x2c]
mov edi, edi
mov edx, ecx
cmp eax, 0x10
jae 0x1005f05d
lea edx, [esp + 0x18]
mov ecx, edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1005f085
dec eax
je 0x1005f089
sub eax, 2
je 0x1005f0e8
xor bl, bl
jmp 0x1005f0ea
mov byte [edi + 0x45], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x1005f09c
lea edx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, edx
je 0x1005f0c5
cmp eax, 0x10
jae 0x1005f0ad
lea ecx, [esp + 0x18]
push dword [edi + 0x50]
push esi
push 1
push ecx
call ebx
add esp, 0x10
cmp esi, eax
jne 0x1005f081
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp byte [edi + 0x45], 0
je 0x1005f0e8
test esi, esi
lea esi, [edi + 0x48]
jne 0x1005f050
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.100548a0
jmp 0x1005f043
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x1005f106
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x1005f121
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10081d64
mov esp, ebp
pop ebp
ret
Function at 0x10060010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
cmp edi, 6
jae 0x10060077
mov edx, ecx
mov ebx, ecx
mov ecx, 6
sub edx, esi
sub ecx, edi
cmp edx, ecx
jbe 0x1006003e
lea ebx, [esi + 6]
mov ecx, ebx
xor edx, edx
sub ecx, esi
cmp ebx, esi
sbb ebx, ebx
not ebx
and ebx, ecx
je 0x10060074
mov edi, edi
mov ecx, eax
inc edx
shl ecx, 6
inc edi
xor eax, ecx
lea ecx, [eax*8]
not ecx
xor eax, ecx
mov dword [ebp + 8], eax
mov al, byte [esi]
inc esi
xor byte [ebp + 8], al
mov eax, dword [ebp + 8]
cmp edx, ebx
jne 0x10060050
mov ecx, dword [ebp + 0xc]
cmp edi, 9
jae 0x100600ca
mov edx, ecx
mov ebx, ecx
mov ecx, 9
sub edx, esi
sub ecx, edi
cmp edx, ecx
jbe 0x10060094
mov ebx, esi
sub ebx, edi
add ebx, 9
mov ecx, ebx
xor edx, edx
sub ecx, esi
cmp ebx, esi
sbb ebx, ebx
not ebx
and ebx, ecx
je 0x100600ca
lea ecx, [eax*4]
inc edx
xor eax, ecx
inc edi
lea ecx, [eax*8]
not ecx
xor eax, ecx
mov dword [ebp + 8], eax
mov al, byte [esi]
inc esi
xor byte [ebp + 8], al
mov eax, dword [ebp + 8]
cmp edx, ebx
jne 0x100600a4
mov ecx, dword [ebp + 0xc]
xor edx, edx
sub ecx, esi
cmp dword [ebp + 0xc], esi
sbb ebx, ebx
not ebx
and ebx, ecx
je 0x100600ff
lea esp, [esp]
lea ecx, [eax*8]
inc edx
not ecx
lea esi, [esi + 1]
xor eax, ecx
mov dword [ebp + 8], eax
mov al, byte [esi - 1]
xor byte [ebp + 8], al
mov eax, dword [ebp + 8]
cmp edx, ebx
jne 0x100600e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10064530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099edb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
call fcn.100656e0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10065a90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x10065aa4
xor al, al
pop esi
pop ebp
ret 4
movzx ecx, byte [edx + 0x19]
movzx eax, byte [edx + 0x18]
push edi
mov edi, 0x100
imul cx, di
add cx, ax
mov word [esi + 0x1a], cx
movzx ecx, byte [edx + 0x1b]
imul cx, di
movzx eax, byte [edx + 0x1a]
add cx, ax
mov word [esi + 0x18], cx
movzx ecx, byte [edx + 0x1f]
imul cx, di
movzx eax, byte [edx + 0x1e]
add cx, ax
mov word [esi + 0x1c], cx
movzx ecx, byte [edx + 0x21]
imul cx, di
movzx eax, byte [edx + 0x20]
add cx, ax
mov word [esi + 0x1e], cx
movzx ecx, byte [edx + 0x2f]
movzx eax, byte [edx + 0x2e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2c]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x20], ecx
movzx ecx, byte [edx + 0x33]
movzx eax, byte [edx + 0x32]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x31]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x30]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x24], ecx
movzx ecx, byte [edx + 0x3b]
movzx eax, byte [edx + 0x3a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x39]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x38]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x28], ecx
movzx ecx, byte [edx + 0x3f]
movzx eax, byte [edx + 0x3e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x3d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x3c]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x2c], ecx
movzx ecx, byte [edx + 0x43]
movzx eax, byte [edx + 0x42]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x41]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x40]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x30], ecx
movzx ecx, byte [edx + 0x47]
movzx eax, byte [edx + 0x46]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x45]
mov edi, 0x6d
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x44]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x34], ecx
movzx ecx, byte [edx + 0x4b]
movzx eax, byte [edx + 0x4a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x49]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x48]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x38], ecx
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
add esi, 0x3c
lea eax, [edx + 0x4e]
lea ecx, [ecx]
movzx edx, byte [eax + 1]
lea eax, [eax + 4]
movzx ecx, byte [eax - 4]
lea esi, [esi + 4]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax - 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax - 6]
shl edx, 8
add edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x10065c40
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10071f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bceb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov byte [esi + 0x16], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi]
push 1
push 0xffffffffffffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
push 0xfffffffffffffffc
mov dword [esi + 0x30], eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov ecx, dword [esi]
lea eax, [ebp + 0xc]
push 0
push 4
push eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [esi]
cmp dword [ecx + 8], 4
jne 0x100720bc
cmp dword [ecx + 0xc], 0
jne 0x100720bc
movzx eax, word [ebp + 0xc]
cmp eax, 6
je 0x10072050
cmp eax, 0x221
je 0x10072049
cmp eax, 0x4bc
jne 0x100720bc
mov eax, 0xa
jmp 0x10072055
mov eax, 0xe
jmp 0x10072055
mov eax, 0x16
mov word [esi + 0x14], ax
movzx eax, ax
sub eax, 2
push 1
cdq
push edx
push eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov ecx, dword [esi]
lea edi, [esi + 0x1c]
push 0
push 2
push edi
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [esi]
cmp dword [ecx + 8], 2
jne 0x100720bc
cmp dword [ecx + 0xc], 0
jne 0x100720bc
mov dx, word [ebp + 0xe]
mov ax, word [ebp + 0xc]
mov word [esi + 0x10], ax
mov word [esi + 0x12], dx
sub dx, word [esi + 0x14]
mov ax, dx
mov word [esi + 0x18], dx
sub ax, word [edi]
mov word [esi + 0x1a], ax
movzx eax, dx
push 1
cdq
push edx
push eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov byte [esi + 0x16], 1
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x571390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x60686b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005faf08
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x571412
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005f8cfc
mov eax, dword [eax]
push 0xc1cd90
push eax
call fcn.005e7544
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005fb193
test bl, bl
je 0x571412
push 0xc1cd90
lea ecx, [esp + 0xc]
call fcn.005fb523
push 0xc1cd9c
lea ecx, [esp + 0xc]
call fcn.005fb523
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x57144e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005fb193
jmp 0x571519
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x5714d2
lea edx, [esp + 0x7c]
push 0xc1cd98
push edx
call fcn.005e7544
add esp, 8
test eax, eax
je 0x5714d2
lea eax, [esp + 0x7c]
push 0xc1cd94
push eax
call fcn.005e7544
add esp, 8
test eax, eax
je 0x5714d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x571462
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005fb193
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x571d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x571d82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x571d90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x6068eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc33a68]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x571ec8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x571df6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005fb193
xor eax, eax
jmp 0x571f3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005fb2d0
push esi
lea ecx, [esp + 0xc]
call fcn.005fb55f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x571f1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00571d20
test eax, eax
jne 0x571f1d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00571d20
test eax, eax
jne 0x571f1d
lea eax, [esp + 0x14]
push 0xc1cdac
push eax
call fcn.005e86b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x571efc
lea ecx, [esp + 0x14]
push 0xc1cda8
push ecx
call fcn.005e8630
mov esi, eax
add esp, 8
test esi, esi
jne 0x571efc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x571eff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005fb280
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x571e0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005fb193
xor eax, eax
jmp 0x571f3f
mov byte [esi], 0
push 0xc1cda4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.005fb193
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x578296
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x5782be
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret