joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4960fd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004962a0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x496275
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x496275
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x496224
jg 0x496156
test eax, eax
je 0x49621a
push 1
push 0x1000
call fcn.0048613c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49617c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x496211
push 0x8000
push ebx
call fcn.0047f051
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4961a8
jg 0x4961a3
cmp ecx, 0x1000
jb 0x4961a8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048cdd6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4961ed
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4961a3
jl 0x4961d4
test ecx, ecx
jne 0x496195
push dword [ebp - 0xc]
push ebx
call fcn.0047f051
push esi
call fcn.0048593d
add esp, 0xc
xor edi, edi
jmp 0x496286
cmp byte [edi + 0x24], 0
je 0x496204
cmp dword [edi + 0x20], 5
jne 0x496204
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49620f
mov edi, dword [edi + 0x18]
jmp 0x496211
xor edi, edi
push esi
call fcn.0048593d
pop ecx
jmp 0x496286
test ecx, ecx
jg 0x4961e6
jl 0x496224
test eax, eax
jae 0x4961e6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004944a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x496247
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4961e6
jmp 0x49627e
push ebx
call fcn.0048c022
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4961e6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x496286
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x496283
mov edi, dword [edi + 0x18]
jmp 0x496286
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004944a0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100127e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
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.10012428
add al, 0xfc
invalid
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.100123dd
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
dec edx
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
dec ecx
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10012428
push eax
push esi
push dword [ebp + 8]
call fcn.100123dd
add esp, 0x30
invalid
test dword [eax - 1], ecx
invalid

Function at 0x100127f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
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.10012428
add al, 0xfc
invalid
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.100123dd
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
dec edx
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
dec ecx
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10012428
push eax
push esi
push dword [ebp + 8]
call fcn.100123dd
add esp, 0x30
invalid
test dword [eax - 1], ecx
invalid

Function at 0x10012b00
Capabilities:
Inspect section memory permissions

Disassembly:
add dword [eax], eax
add byte [ebp + 0xf8c784], cl
add byte [eax], al
Function at 0x10012b40
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10012aef
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10012b0d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add dword [eax], eax
add byte [ebp + 0xf8c784], cl
add byte [eax], al
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10012b6b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10012b52
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10012b5b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10012b65
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10012b47
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10012ad1
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10012bb8
dec eax
je 0x10012baf
sub eax, 3
je 0x10012ba6
mov dword [ebp - 4], 0x40
jmp 0x10012bd5
mov dword [ebp - 4], 4
jmp 0x10012bbb
mov dword [ebp - 4], 0x20
jmp 0x10012bbb
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10012c07
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10012b87
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10012418
leave
inc ecx
mov esi, 0x1475ff99
push 1
push esi
call edi
mov eax, esi
jmp 0x10012c13
Function at 0x10012cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10012428
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100123dd
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
invalid
test dword [esp + edi*8], esp
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x33737cff
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x63ad3d2d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10023af
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x100283d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x100286b
mov eax, 0x8007000e
jmp 0x10029d4
push eax
mov ecx, ebx
call fcn.0100274b
test eax, eax
jge 0x100287e
mov edi, eax
jmp 0x10029c4
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.010025f8
test eax, eax
jne 0x1002898
mov edi, 0x80020009
jmp 0x10029c4
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x10028af
mov edi, 0x8007000e
jmp 0x10029c4
mov ecx, ebx
call fcn.01002729
push esi
mov ecx, ebx
call fcn.0100274b
test eax, eax
jl 0x10029ba
movzx eax, word [ebp - 2]
sub eax, 8
je 0x100299f
sub eax, 9
je 0x1002902
dec eax
dec eax
jne 0x10029ab
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01002395
jmp 0x10029ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x100291a
mov edi, 0x80004005
jmp 0x10029bc
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.010095f0
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x1002910
cmp dword [ebp - 8], edi
jle 0x1002986
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.01002679
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1002950
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10029ab
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.010023af
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.0100274b
test eax, eax
jge 0x10029d2
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x10029d4
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10033e4
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x1003403
xor al, al
jmp 0x100341d
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x10033d6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x1003426
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x100acb8
call fcn.01009690
sub esp, 0x210
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.01002360
cmp eax, esi
jne 0x10034a8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1003471
lea eax, [ebp - 0x21c]
push eax
call fcn.01003426
cmp eax, esi
jne 0x10034a7
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x10]
je 0x1003461
call fcn.010022fb
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.010022fb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10042c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x1004318
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1004303
call esi
mov esi, eax
jmp 0x10043e0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10043e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1004339
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100435e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100434c
call esi
jmp 0x10043d5
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10043d7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x100439d
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.010095f0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax + ebx], 0
mov dword [ebp + 8], eax
mov edi, esp
test edi, edi
jne 0x10043a5
xor eax, eax
jmp 0x10043c9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.010095f0
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.0100217b
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.01003f6f
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100466a
Capabilities:
Accept command line arguments
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.01004236
push esi
push esi
push esi
push 3
push 4
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 0x1001354
push dword [ebp + 8]
mov ebx, 0x100d170
push 0x100d018
mov ecx, ebx
call fcn.01003394
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x1001744
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
mov dword [0x100d1f4], eax
lea eax, [ebp - 8]
movsw word es:[edi], word [esi]
xor edi, edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], edi
jmp 0x1004718
push 0x100172c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100474d
push 0x1001718
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004765
lea eax, [ebp - 8]
push eax
push esi
call fcn.010022b4
mov esi, eax
cmp esi, edi
jne 0x10046f3
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov ecx, ebx
call fcn.010033e4
push 1
push 4
push ebx
call fcn.01002d07
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1004785
push edi
push edi
push 0x64
push ebx
call fcn.0100455e
push edi
push 1
push ebx
call fcn.010041af
mov dword [ebp + 8], eax
jmp 0x10047a8
push edi
push 1
push 0x64
push ebx
call fcn.0100455e
push edi
push 1
push ebx
call fcn.0100410f
jmp 0x1004760
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x38]
push edi
push eax
call esi
test eax, eax
jne 0x100477b
push ebx
call fcn.01002d4c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.WSOCK32.dll_WSACleanup
push ebx
call fcn.01002d8a
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x1c]
call fcn.01002f34
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10056bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100572e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x1005730
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100572a
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100572e
call edi
jmp 0x1005730
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10060d1
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
call fcn.01005851
test eax, eax
jne 0x1006205
push dword [esi + 0x70]
mov ecx, esi
call fcn.01005b49
test eax, eax
mov dword [ebp - 4], eax
jne 0x100610b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006205
push dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x10018d8
lea eax, [ebp - 0x224]
push 0x10018cc
push eax
call edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x430]
push 0x10018b4
push eax
call edi
add esp, 0x1c
push dword [ebp - 4]
mov eax, 0x800
push 0x7530
push eax
push eax
push 1
push 6
push 0x40000003
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [esi + 0x6c]
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x3c], 0xffffffff
je 0x1006100
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1006240
call edi
cmp eax, 0x3e5
jne 0x1006240
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10061ca
and dword [esi + 0x40], 0
jmp 0x10061e6
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
mov dword [esi + 0x40], eax
jne 0x10061e6
call edi
cmp dword [esi + 0x40], 0
je 0x1006205
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, esi
call fcn.01005aac
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea edi, [esi + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x3c], 0xffffffff
je 0x100621c
mov ecx, esi
call fcn.01005524
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
je 0x1006233
push dword [ebp - 4]
mov ecx, esi
call fcn.01005736
push 0
mov ecx, esi
call fcn.010058aa
pop edi
pop esi
leave
ret
call edi
cmp eax, 0x217
jne 0x10061e4
mov dword [esi + 0x40], 1
jmp 0x10061e6