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

Disassembly:
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
cmp eax, ecx
je 0x43a2eb
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx + 1]
cmp eax, ecx
je 0x43a2eb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x18]
call fcn.0043a206
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + eax]
je 0x43a32a
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + eax]
je 0x43a32a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
and dword [ebp - 0x24], 0
and dword [ebp - 0x38], 0
mov dword [ebp - 8], 4
and dword [ebp - 0x10], 0
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
and dword [ebp - 0x28], 0
and dword [ebp - 8], 0
jmp 0x43a376
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jge 0x43a395
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x43a36d
push dword [ebp - 0x24]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43a3b4
jmp 0x43a460
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x3c]
push 0x6000
push dword [ebp - 0x10]
call dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 8
jmp 0x43a3f9
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x6000
jge 0x43a417
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x43a3f0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push 0x6000
push dword [ebp - 0x10]
call dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x10]
call dword [ebp - 0x44]
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x43d2d0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jl 0x43d318
xor ebx, ebx
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x43d2f1
mov dword [eax + 0x10], ebx
jmp 0x43d2f6
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [edi]
push eax
call fcn.004276f5
push edi
call fcn.004276f5
mov edi, dword [esi + 4]
add esp, 8
cmp edi, ebx
je 0x43d32f
mov eax, dword [edi + 8]
mov ecx, edi
cmp eax, dword [ecx + 4]
jge 0x43d2e2
mov edx, dword [esi + 4]
mov ecx, dword [edx]
movzx eax, byte [ecx + eax]
add dword [esi + 0x2c], 0xffffffff
mov esi, edx
add dword [esi + 8], 1
pop edi
pop esi
pop ebx
ret
push str.Fatal_error__tried_to_read_past_mp_buffer_n
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00425b9c
add esp, 8
push 1
call fcn.00426d23
int3
Function at 0x43db50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, 0x100000
push ebp
push esi
mov esi, dword [esp + 0xc]
je 0x43db77
mov ecx, eax
shr ecx, 0x13
not ecx
and ecx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
jmp 0x43db85
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 1
mov edx, eax
shr edx, 0x11
mov ecx, eax
shr ecx, 0xa
and edx, 3
mov ebp, 4
sub ebp, edx
and ecx, 3
cmp ecx, 3
mov dword [esi + 0x18], ebp
jne 0x43dbc1
push str.Stream_error_n
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00425b9c
add esp, 8
push 1
call fcn.00426d23
mov edx, dword [esi + 0x10]
test edx, edx
push edi
je 0x43dbce
add ecx, 6
jmp 0x43dbd6
mov edi, dword [esi + 0xc]
lea ecx, [ecx + edi*2]
add ecx, edi
mov dword [esi + 0x24], ecx
mov ecx, eax
shr ecx, 0x10
not ecx
and ecx, 1
test edx, edx
mov dword [esi + 0x1c], ecx
je 0x43dbf5
mov edx, eax
shr edx, 0xc
and edx, 0xf
mov dword [esi + 0x20], edx
push ebx
mov ebx, eax
shr ebx, 4
and ebx, 3
mov ecx, eax
mov dword [esi + 0x34], ebx
mov ebx, eax
shr ecx, 8
shr ebx, 3
and ecx, 1
and ebx, 1
mov edx, eax
mov edi, eax
mov dword [esi + 0x2c], ecx
mov ecx, eax
mov dword [esi + 0x38], ebx
mov ebx, eax
and eax, 3
shr ecx, 6
shr edx, 0xc
shr edi, 9
shr ebx, 2
mov dword [esi + 0x40], eax
and ecx, 3
xor eax, eax
and edx, 0xf
and edi, 1
and ebx, 1
cmp ecx, 3
setne al
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], ecx
mov dword [esi + 0x3c], ebx
add eax, 1
mov dword [esi], eax
mov eax, ebp
sub eax, 2
je 0x43dccc
sub eax, 1
je 0x43dc80
push ebp
push str.Sorry__layer__d_not_supported_n
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00425b9c
add esp, 0xc
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
test edx, edx
jne 0x43dc91
pop ebx
pop edi
mov dword [esi + 0x44], edx
pop esi
mov eax, 1
pop ebp
ret
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, edx
mov eax, dword [eax*4 + 0x458ae0]
mov edx, dword [esi + 0x24]
imul eax, eax, 0x23280
mov dword [esi + 0x44], eax
mov ebx, dword [edx*4 + 0x458be0]
shl ebx, cl
cdq
idiv ebx
pop ebx
lea eax, [eax + edi - 4]
pop edi
mov dword [esi + 0x44], eax
pop esi
mov eax, 1
pop ebp
ret
mov eax, dword [esi + 0xc]
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, edx
mov eax, dword [ecx*4 + 0x458aa0]
mov ecx, dword [esi + 0x24]
imul eax, eax, 0x23280
mov dword [esi + 0x44], eax
cdq
idiv dword [ecx*4 + 0x458be0]
pop ebx
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0x20
lea edx, [eax + edi - 4]
pop edi
mov dword [esi + 0x44], edx
pop esi
mov eax, 1
pop ebp
ret
Function at 0x102297e0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x102299cd
pushal
mov esi, section..data
lea edi, [esi - 0xc1000]
push edi
or ebp, 0xffffffff
jmp 0x1022980a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10229811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229800
mov eax, 1
add ebx, ebx
jne 0x10229823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10229834
jne 0x10229853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229853
dec eax
add ebx, ebx
jne 0x10229840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10229818
add ebx, ebx
jne 0x1022984f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x102298a5
xor ecx, ecx
sub eax, 3
jb 0x1022986b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102298da
sar eax, 1
mov ebp, eax
jmp 0x10229876
add ebx, ebx
jne 0x10229876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229844
inc ecx
add ebx, ebx
jne 0x10229884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229844
add ebx, ebx
jne 0x10229891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10229886
jne 0x102298a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10229886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102298c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102298b6
jmp 0x10229806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102298c4
add edi, ecx
jmp 0x10229806
pop esi
mov edi, esi
mov ecx, 0x4327
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102298e2
cmp byte [edi], 0x12
jne 0x102298e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x102298e7
lea edi, [esi + 0x222000]
mov eax, dword [edi]
or eax, eax
je 0x1022995f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x229324]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22943c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10229914
mov ecx, edi
jns 0x10229943
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229440]
or eax, eax
je 0x10229959
mov dword [ebx], eax
add ebx, 4
jmp 0x10229931
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10229990
cmp al, 0xef
ja 0x10229983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10229965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10229972
mov ebp, dword [esi + 0x229444]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x102299c4
sub esp, 0xffffff80
jmp 0x10061afd
Function at 0x10012d1
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1004064]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
and dword [edi], 0
mov dword [ebp - 0x42c], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x10013e4
lea eax, [ebp - 0x420]
push eax
push dword [esi]
call fcn.010011de
test eax, eax
jne 0x1001424
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0x1001468
push dword [ebp - 0x420]
mov dword [ebp - 0x428], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001420
push 2
pop eax
cmp dword [ebp - 0x424], eax
jne 0x1001420
cmp word [ebp - 0x41c], 0
je 0x1001420
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call fcn.010014f2
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.010015ca
test eax, eax
jne 0x10013b8
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100162e
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
push 1
push 0x1001450
push dword [ebp - 0x420]
call fcn.01001592
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 4]
test eax, eax
je 0x1001411
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10013f0
mov ecx, 0x1001444
push edi
push ecx
push eax
call fcn.01001483
push 0
push 0x1001428
mov dword [ebx], eax
push dword [esi + 4]
call fcn.01001483
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010014c8
leave
ret 0x10
mov dword [edi], eax
jmp 0x10013d1
mov dword [edi], eax
jmp 0x10013dd

Function at 0x1001721
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x1004040
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.010011de
test eax, eax
jne 0x100177f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100179c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1001d85
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x1001797
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
cmp dword [ebp - 0x10], 4
jne 0x100177f
cmp dword [ebp - 8], 1
jne 0x100177f
cmp dword [esi + 0xc], ebx
jne 0x100177f
jmp 0x1002a74
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
jmp 0x100177f
Function at 0x10023ca
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10023ed
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.01002809
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x100296d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x1002417
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
pop esi
pop ebp
ret 4
shl esi, 0xa
push esi
jmp 0x1002411
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor ebx, ebx
push 0x417084
mov dword [ebp - 4], ebx
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
cmp byte [esi + 0x52c], bl
lea eax, [esi + 0x52c]
je 0x40102d
mov dword [ebp - 4], eax
lea edi, [esi + 0x428]
push eax
push edi
push 0x417060
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2a], bx
mov dword [ebp - 0x28], ebx
call fcn.00403cd9
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401084
push dword [ebp + 8]
push esi
call fcn.00403ed4
pop ecx
jmp 0x4010b7
push 0x417040
call fcn.00403cd9
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0x103
je 0x40108f
push 0x417030
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4012d5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
movsx eax, word [esi + 0x7d8]
push eax
push dword [esi]
push 0x417384
call fcn.00403cd9
mov eax, dword [esi]
add esp, 0xc
sub eax, 0
je 0x40131f
dec eax
je 0x40131b
dec eax
je 0x401316
dec eax
jne 0x401356
mov ebx, dword [esi + 0x750]
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 7
inc ebx
jmp 0x401359
push 1
pop ebx
jmp 0x401359
push 2
jmp 0x401318
cmp dword [esi + 0x750], 2
jne 0x401352
push esi
call fcn.0040123f
test eax, eax
pop ecx
jne 0x401352
push 0x417350
push 4
push esi
call fcn.00403e44
push 0x41733c
call fcn.00403cd9
add esp, 0x10
jmp 0x40142e
xor ebx, ebx
jmp 0x401359
mov ebx, dword [ebp + 8]
cmp word [esi + 0x7d8], 0
je 0x401366
or ebx, 4
movsx eax, word [esi + 0x7d4]
lea edi, [esi + 0x7d4]
push eax
push 0x417330
call fcn.00403cd9
cmp word [edi], 0
pop ecx
pop ecx
je 0x40139d
push esi
push dword [ebp + 8]
call fcn.0040c3c8
pop ecx
test eax, eax
pop ecx
jne 0x40139d
push 1
pop eax
jmp 0x401430
movsx eax, word [esi + 0x7d6]
lea edi, [esi + 0x7d6]
push eax
push 0x417320
call fcn.00403cd9
cmp word [edi], 0
pop ecx
pop ecx
je 0x4013c8
push esi
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
push esi
call fcn.004010bd
push eax
push 0x417310
push 4
push esi
call fcn.00403e44
add esp, 0x14
cmp word [esi + 0x14], 0
je 0x4013f6
push 0x417300
push dword [ebp + 8]
push esi
call fcn.00403da4
jmp 0x401420
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401413
push dword [ebp + 8]
push esi
call fcn.00403ed4
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x401430
push 0x4172dc
push 4
push esi
call fcn.00403e44
add esp, 0xc
push 0x41733c
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401659
Capabilities:
Connect network resource
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x41759c
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
lea ebx, [esi + 0x130]
push ebx
push esi
call fcn.004010bd
pop ecx
push eax
push 0x417578
push 4
push esi
call fcn.00403e44
xor edi, edi
add esp, 0x14
cmp word [esi + 0x14], di
je 0x4016b0
push 0x417560
push dword [ebp + 8]
push esi
call fcn.00403da4
add esp, 0xc
jmp 0x40178b
movsx eax, word [esi + 0x1fc]
push eax
push 0x417548
call fcn.00403cd9
cmp word [esi + 0x1fc], di
pop ecx
pop ecx
jne 0x401730
cmp byte [ebx], 0x5c
push ebx
je 0x4016da
push 0x41753c
jmp 0x4016df
push 0x417530
lea eax, [ebp - 0x124]
push eax
call fcn.0040c81c
lea eax, [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1fe]
push edi
push eax
lea eax, [esi + 0x1d2]
mov dword [ebp - 0x20], 2
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x401764
push 0x417560
call fcn.00403cd9
xor eax, eax
cmp dword [esi], 1
pop ecx
sete al
push eax
movsx eax, word [esi + 0x7d8]
push eax
lea eax, [esi + 0x258]
push dword [esi + 0x254]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x401774
push dword [ebp + 8]
push esi
call fcn.00403ed4
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x4017bf
cmp word [esi + 0x1fc], di
jne 0x40178b
push edi
lea eax, [ebp - 0x124]
push edi
push eax
call sub.MPR.dll_WNetCancelConnection2A
push 0x417504
push 4
push esi
call fcn.00403e44
add esp, 0xc
cmp word [esi + 0xc], di
je 0x4017b2
push 0x4174ec
push dword [ebp + 8]
push esi
call fcn.00403df2
add esp, 0xc
push 0x4174cc
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cf8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
push ebx
push esi
push edi
push 0x417834
call fcn.00403cd9
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x3e8]
push dword [ebp + 0x14]
push eax
call fcn.0040c9bb
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x1f4]
push 0x417830
push eax
call fcn.0040c81c
mov esi, dword [ebp + 0xc]
add esp, 0x1c
cmp dword [esi + 0x124], 0xffffffff
je 0x401ea6
lea eax, [ebp - 0x1f4]
push eax
push 0x417810
call fcn.00403cd9
pop ecx
xor ebx, ebx
pop ecx
lea eax, [ebp - 0x1f4]
push ebx
push eax
call fcn.0040c940
pop ecx
push eax
lea eax, [ebp - 0x1f4]
push eax
push dword [esi + 0x124]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x401e96
push 0x4177fc
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x1f4]
push ebx
push 0x1f4
push eax
push dword [esi + 0x124]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e96
cmp edi, ebx
jle 0x401e96
lea eax, [ebp - 0x1f4]
push eax
push 0x4177dc
call fcn.00403cd9
lea eax, [ebp - 0x1f4]
mov byte [ebp + edi - 0x1f4], bl
push eax
call fcn.0040c940
add esp, 0xc
test eax, eax
jbe 0x401e3f
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040c940
cmp byte [ebp + eax - 0x1f5], 0xa
pop ecx
je 0x401e1c
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040c940
cmp byte [ebp + eax - 0x1f5], 0xd
pop ecx
jne 0x401e3f
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040c940
mov byte [ebp + eax - 0x1f5], bl
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040c940
pop ecx
pop ecx
jmp 0x401dea
lea eax, [ebp - 0x1f4]
push 0x20
push eax
call fcn.0040c880
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x401e5f
mov byte [esi], bl
inc esi
push esi
call fcn.004081ec
pop ecx
cmp byte [ebp - 0x1f4], 0x32
je 0x401ea6
cmp byte [ebp - 0x1f4], 0x35
jne 0x401e74
push esi
jmp 0x401e79
push 0x4177c0
push dword [ebp + 0x10]
call fcn.0040c6a0
push dword [ebp + 0x10]
push 0x417798
call fcn.00403cd9
add esp, 0x10
push 0xfffffffffffffffe
pop eax
jmp 0x401eb3
push esi
push dword [ebp + 8]
call fcn.0040bf4b
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x401eb3
push 0x417780
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401eb8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x4178ac
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
cmp dword [esi + 0x124], 0xffffffff
je 0x40206d
push 0x417888
call fcn.00403cd9
pop ecx
xor ebx, ebx
push ebx
push 8
push 0x41787c
push dword [esi + 0x124]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40205d
push 0x4177fc
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x204]
push ebx
push 0x1f4
push eax
push dword [esi + 0x124]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x40205d
cmp edi, ebx
jle 0x40205d
lea eax, [ebp - 0x204]
push eax
push 0x4177dc
call fcn.00403cd9
lea eax, [ebp - 0x204]
mov byte [ebp + edi - 0x204], bl
push eax
call fcn.0040c940
add esp, 0xc
test eax, eax
jbe 0x401fbc
lea eax, [ebp - 0x204]
push eax
call fcn.0040c940
cmp byte [ebp + eax - 0x205], 0xa
pop ecx
je 0x401f99
lea eax, [ebp - 0x204]
push eax
call fcn.0040c940
cmp byte [ebp + eax - 0x205], 0xd
pop ecx
jne 0x401fbc
lea eax, [ebp - 0x204]
push eax
call fcn.0040c940
mov byte [ebp + eax - 0x205], bl
lea eax, [ebp - 0x204]
push eax
call fcn.0040c940
pop ecx
pop ecx
jmp 0x401f67
lea eax, [ebp - 0x204]
push 0x20
push eax
call fcn.0040c880
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x401fdc
mov byte [esi], bl
inc esi
push esi
call fcn.004081ec
pop ecx
cmp byte [ebp - 0x204], 0x32
jne 0x40202f
push 0x417780
call fcn.00403cd9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x417870
push esi
call fcn.0040ca0c
mov esi, dword [ebp - 8]
imul esi, esi, 0x64
add esi, dword [ebp - 0x10]
imul esi, esi, 0x64
add esi, dword [ebp - 4]
imul esi, esi, 0x64
add esi, dword [ebp - 0xc]
push esi
push 0x417864
call fcn.00403cd9
add esp, 0x24
jmp 0x402070
cmp byte [ebp - 0x204], 0x35
jne 0x40203b
push esi
jmp 0x402040
push 0x4177c0
push dword [ebp + 0x10]
call fcn.0040c6a0
push dword [ebp + 0x10]
push 0x417798
call fcn.00403cd9
add esp, 0x10
push 0xfffffffffffffffe
pop eax
jmp 0x40207d
push esi
push dword [ebp + 8]
call fcn.0040bf4b
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x40207d
mov esi, dword [ebp + 0x10]
push 0x41784c
call fcn.00403cd9
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40290e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2774
call fcn.0040cb50
push 0x41869c
call fcn.00403cd9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x64]
push dword [ebp + 8]
push eax
call fcn.0040c9bb
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2774]
push 0x418690
push eax
call fcn.0040c81c
lea eax, [ebp - 0x2774]
push 0x417ecc
push eax
call fcn.0040c6b0
lea eax, [ebp - 0x2774]
push 0x417c24
push eax
call fcn.0040c6b0
lea eax, [ebp - 0x2774]
push eax
push 0
push 0
call fcn.00403da4
push 0x417c18
call fcn.00403cd9
add esp, 0x3c
push 0
call fcn.0040ca6d