joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002970
Capabilities:
Create directory
Query environment variable

Disassembly:
sub esp, 0x228
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
mov ebp, dword [esp + 0x230]
push edi
mov edi, ecx
test esi, esi
je 0x10002add
test edi, edi
je 0x10002add
test ebp, ebp
je 0x10002add
push 0x400
push 0x1001aca0
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
mov eax, str.C:Program_Data
je 0x100029ca
mov eax, 0x1001aca0
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jae 0x100029fd
lea eax, [esp + 0xc]
push eax
push str._s_shipin7_update_temp
lea edx, [esp + 0x2c]
call fcn.10003000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCR90.dll__mkdir]
add esp, 0xc
test eax, eax
je 0x10002a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea edx, [esp + 0x28]
push edx
push str._s_s
push edi
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
call edi
push 0x103
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call sub.MSVCR90.dll_memset
mov eax, esi
add esp, 0x1c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a60
sub eax, edx
cmp eax, 4
jae 0x10002a7e
push 0x104
push esi
lea ecx, [esp + 0x130]
push ecx
jmp 0x10002a99
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a83
sub eax, edx
add eax, 0xfffffffc
push eax
push esi
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x28]
push ecx
push str._s_s.tmp
push ebp
call edi
add esp, 0x10
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.10010d80
add esp, 0x228
ret
mov ecx, dword [esp + 0x22c]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.10010d80
add esp, 0x228
ret
Function at 0x100036e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa8
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push 0x94
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10003797
cmp dword [esp + 0x18], 5
jbe 0x10003797
lea edx, [esp + 4]
push edx
push 0x20019
push esi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003797
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000378c
xor ecx, ecx
cmp dword [esp + 8], 1
sete cl
mov esi, ecx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa8]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10010d80
add esp, 0xa8
ret
Function at 0x100037b0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10012d53
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10019024]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
push edi
call fcn.10004200
push 0x10014a30
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 8
mov esi, edi
call fcn.100067a0
lea esi, [esp + 0x14]
call fcn.10001a60
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
cmp eax, ebx
je 0x1000389b
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
ja 0x10003828
call ebp
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x2c]
call fcn.10001a40
push eax
lea ecx, [edi + 0x2c]
mov byte [esp + 0x74], 1
call dword [0x100140f0]
mov ecx, esi
mov byte [esp + 0x70], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
test eax, eax
ja 0x10003861
call ebp
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x48]
call fcn.10001a40
cmp dword [eax + 0x18], 0x10
jb 0x10003879
mov eax, dword [eax + 4]
jmp 0x1000387c
add eax, 4
push eax
push 0x10014a48
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x74], 0xffffffff
call fcn.10001d50
call fcn.100036e0
push eax
push 0x10014a5c
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
push 0x10014a6c
push 2
call fcn.10008cb0
add esp, 8
call fcn.10003e60
call fcn.10006620
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push ebx
push ebx
push edi
push 0x10003430
push ebx
push ebx
mov esi, eax
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov edx, dword [edi + 0xbc]
lea ecx, [edi + 0xbc]
mov dword [edi + 0x64], eax
mov eax, dword [edx + 4]
add esp, 0x18
call eax
mov edx, dword [edi + 0xcc]
mov eax, dword [edx + 4]
lea ecx, [edi + 0xcc]
call eax
mov cl, byte [edi + 8]
test cl, cl
jne 0x10003977
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
call ebp
mov edx, dword [edi + 0xc]
imul edx, edx, 0x3e8
sub eax, esi
cmp eax, edx
jl 0x10003969
push 0x10014a6c
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 8
push edi
call fcn.10004200
call fcn.10003e60
call fcn.10006620
call ebp
mov esi, eax
push 0x3e8
call ebx
mov al, byte [edi + 8]
test al, al
je 0x10003930
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008cb0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1404
call fcn.10011860
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x1400], eax
push 0x13ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x1418]
lea ecx, [esp + 0x141c]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x13fc
push eax
call dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x1c
test eax, eax
jl 0x10008d17
cmp eax, 0x13fc
jae 0x10008d17
mov byte [esp + eax], 0xa
mov byte [esp + eax + 1], 0
jmp 0x10008d32
mov ecx, dword [esp + 0x140c]
push 0x13ff
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x1408]
lea ecx, [esp]
push ecx
push esi
push edx
call dword [sym.imp.hlog.dll_Ordinal_26]
mov ecx, dword [esp + 0x1400]
xor ecx, esp
call fcn.10010d80
add esp, 0x1404
ret

Function at 0x10008fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10011db3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x10019024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.10008e10
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000901d
push 0x1001484e
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x1000905d
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
mov dword [esp + 0x3c], 1
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10010d80
add esp, 0x34
ret
Function at 0x1000a260
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1000a27f
mov dword [edi + 8], ebx
mov dword [edi], 1
mov dword [edi + 4], ebx
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], ebx
call fcn.1000a200
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x1000a2af
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [edi + 8], ebx
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0xc]
mov eax, ebp
cmp ebp, ebx
ja 0x1000a2be
mov eax, 1
push eax
call dword [0x100191b8]
add esp, 4
mov ebx, eax
push esi
test ebx, ebx
jne 0x1000a2ed
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 3
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebp
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp dword [esp + 0xc], ebp
je 0x1000a32a
push ebx
call dword [0x100191bc]
add esp, 4
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 2
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
push ebp
push edi
push ecx
mov eax, ebx
call fcn.1000a4e0
pop esi
pop ebp
mov eax, edi
pop ebx
pop ecx
ret
Function at 0x1000cce0
Capabilities:
Enumerate pe sections

Disassembly:
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.1000cae9
adc al, 0x15
add edx, dword [edi + 0xf]
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.1000cae9
cmp al, 0xa6
jp 0x1000cd86
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x1000cd43
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x1000cd3d
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x1000cd2e
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000cae9
ret
mov ecx, 0xfd5ce8a7
invalid

Function at 0x1000cde0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or al, 0x88
pop ebp
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000cae9
adc eax, 0x8d7b6dd7
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x1000ced0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000caf9
push eax
push esi
push dword [ebp + 8]
call fcn.1000caae
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
loop 0x1000cf94
Function at 0x1000cf40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loop 0x1000cf94
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000caf9
push eax
push esi
push dword [ebp + 8]
call fcn.1000caae
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000cae9
add byte [edi], 0xf4
iretd
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1000cae9
sbb eax, 0x8d0c9e7b
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x10010710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
test eax, eax
je 0x1001082b
mov edx, dword [esp + 0x64]
cmp dword [edx], 0
jle 0x1001082b
test ebx, ebx
je 0x1001082b
push esi
push edi
mov ecx, 0x11
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x24], 0x12345678
je 0x1001078d
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10010d80
add esp, 0x5c
ret
mov esi, dword [esp + 0x34]
lea edi, [esi + 0x44]
or ecx, 0xffffffff
xor edx, edx
test edi, edi
jbe 0x100107bc
push ebp
mov edi, edi
movzx ebp, byte [edx + eax]
xor ebp, ecx
and ebp, 0xff
shr ecx, 8
xor ecx, dword [ebp*4 + 0x1001a3e8]
inc edx
cmp edx, edi
jb 0x100107a0
pop ebp
cmp ecx, dword [eax + esi + 0x44]
je 0x100107d8
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10010d80
add esp, 0x5c
ret
push esi
add eax, 0x44
push eax
push ebx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
add esp, 0xc
cmp dword [esp + 0x38], 0
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
setne dl
mov byte [eax], dl
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], ecx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10010d80
add esp, 0x5c
ret
mov ecx, dword [esp + 0x58]
xor ecx, esp
mov eax, 1
call fcn.10010d80
add esp, 0x5c
ret
Function at 0x10010840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
push ebx
mov ebx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x1001087e
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10010d80
add esp, 0x54
ret
mov eax, dword [ebx]
push ebp
add eax, 0x48
push 0x10019260
push eax
mov dword [ecx], eax
call fcn.10010d8f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100108ae
lea eax, [ebp + 1]
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10010d80
add esp, 0x54
ret
push esi
push edi
push 0x44
lea ecx, [esp + 0x20]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x84]
cmp byte [edx], cl
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
setne cl
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
lea esi, [esp + 0x28]
mov edi, ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 2
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, 0x11
mov dword [esp + 0x30], 0x12345678
mov dword [esp + 0x34], 0
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx]
push edx
push eax
lea ecx, [ebp + 0x44]
push ecx
call sub.MSVCR90.dll_memcpy
mov ebx, dword [ebx]
lea edx, [ebx + 0x44]
add esp, 0x18
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x10010965
mov esi, dword [esp + 0x10]
movzx esi, byte [esi + ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1001a3e8]
inc ecx
cmp ecx, edx
jb 0x10010946
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [ebx + ebp + 0x44], eax
mov eax, dword [edx]
push eax
push ebp
push ecx
call sub.MSVCR90.dll_memcpy
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x70]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10010d80
add esp, 0x54
ret
Function at 0x100109b0
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [esp + 0x1d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 3
push str..pipe_shipin7_update_newpipe_server
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x10010a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_named_pipe_failed__error___d
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.10010d80
mov esp, ebp
pop ebp
ret
mov cl, byte [edi + 8]
test cl, cl
jne 0x10010abc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0x1f4
call esi
mov edx, dword [edi + 0xc]
push 0
push edx
call ebx
test eax, eax
je 0x10010ab5
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x10010aa3
test eax, eax
jbe 0x10010ab5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.10010c00
mov dl, byte [edi + 8]
test dl, dl
je 0x10010a55
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010d80
mov esp, ebp
pop ebp
ret
Function at 0x10010ae0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x49c
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x4a8]
mov dword [esp + 0x10], ebx
cmp byte [edi], bl
je 0x10010bd1
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10010bd1
cmp eax, 0xffffffff
je 0x10010bd1
push 0x3ff
lea eax, [esp + 0xa5]
push ebx
push eax
mov byte [esp + 0xac], bl
call sub.MSVCR90.dll_memset
push 0x84
lea ecx, [esp + 0x29]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], bl
call sub.MSVCR90.dll_memset
push 0x84
push ebp
lea edx, [esp + 0x38]
push 0x85
push edx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov eax, dword [esp + 0x4d8]
push eax
push edi
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x4e0]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x84
mov dword [esp + 0x54], ebx
call fcn.10010840
add esp, 0x40
test eax, eax
jne 0x10010bd1
mov eax, dword [esp + 8]
push ebx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0xc]
push eax
lea ecx, [esp + 0xac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [esp + 0x4a0]
pop ebp
pop ebx
xor ecx, esp
call fcn.10010d80
add esp, 0x49c
ret 0xc

Function at 0x10010d80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10019024]
jne 0x10010d8a
repz ret
jmp fcn.1001139b
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x40f08b]
shl eax, 2
mov dword [0x40f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004058d4
pop edx
call fcn.00404c70
call fcn.004058d8
push 0
call fcn.00406bc4
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a998

Function at 0x401430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x44f37c]
mov edx, dword [0x44f384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44f380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x44f388]
mov dword [0x45367c], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401574
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014df
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405d8c
add esp, 0xc
test eax, eax
je 0x4014f9
xor eax, eax
jmp 0x401576
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401522
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x44f378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x44f378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40156d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
mov eax, 1
jmp 0x401576
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret