joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ed0c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x51ed9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a7f94
push 0x202
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x51ed85
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040bfe8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov eax, 0x51edb0
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x1c]
push eax
push 2
mov ecx, dword [0x532de8]
mov dl, 1
mov eax, dword [0x51e4fc]
call fcn.0040c918
call fcn.004040c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51eda2
lea eax, [ebp - 0x20]
call fcn.00404684
ret

Function at 0x51f418
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [0x51f494]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
je 0x51f44a
mov dword [ebp - 8], 0x401
mov eax, dword [ebp - 4]
call fcn.0051f5d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov al, byte [0x51f494]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
jne 0x51f48d
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
mov esp, ebp
pop ebp
ret

Function at 0x51f544
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0051f418
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x51f5c8
mov eax, dword [ebp - 4]
call fcn.0051ec40
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x28], 0x10
jne 0x51f5ba
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
pop esi
pop ecx
pop ebp
ret
Function at 0x51f608
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b44
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.00403178
cmp dword [ebp - 0x10], 0
je 0x51f677
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 1]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x51f780
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x51f7b2
mov ecx, dword [0x532c18]
mov dl, 1
mov eax, dword [0x51e4fc]
call fcn.0040c8dc
call fcn.004040c0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x51f7e3
mov ecx, dword [0x532b50]
mov dl, 1
mov eax, dword [0x51e4fc]
call fcn.0040c8dc
call fcn.004040c0
xor eax, eax
push ebp
push 0x51f861
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
cmp byte [ebp + 8], 0
je 0x51f83c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051f6d4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0051f544
jmp 0x51f857
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051efa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f87e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51faa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0051f27c
xor eax, eax
push ebp
push 0x51fc1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x51fc08
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x51faeb
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x51faf5
call fcn.0040416c
jmp 0x51fc25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aed4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x51fbfd
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x51fbab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2733
je 0x51fb98
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b30
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0051fa58
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x51fc30]
cmp dl, byte [eax + 0x28]
je 0x51fc04
call fcn.0040c7f4
jmp 0x51fc04
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aef4
jmp 0x51fc04
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x51fbcc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aef4
jmp 0x51faf5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aed4
cmp edx, dword [esp + 4]
jne 0x51fbec
cmp eax, dword [esp]
pop edx
pop eax
jne 0x51faf5
push ebp
call fcn.0051fa58
pop ecx
jmp 0x51fc04
push ebp
call fcn.0051fa58
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fc25
mov eax, dword [ebp - 4]
call fcn.0051f294
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51fca4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51fdf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0051f27c
xor eax, eax
push ebp
push 0x51fdda
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x51fd0c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x51fd0c
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x51fdc4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x51fd1f
call fcn.0040416c
jmp 0x51fde1
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x51fdc4
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x51fdc4
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b30
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x51fdc4
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040bfe8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x51fe10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x532de8]
mov dl, 1
mov eax, dword [0x51e4fc]
call fcn.0040c918
call fcn.004040c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fde1
mov eax, dword [ebp - 4]
call fcn.0051f294
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fdfe
lea eax, [ebp - 0x30]
call fcn.00404684
ret

Function at 0x520cfc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b34
xor eax, eax
push ebp
push 0x520d8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004092cc
test al, al
je 0x520d78
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404b44
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404b44
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x520d78
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520d95
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x401064
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov byte [ebp - 1], 0
call fcn.00401024
cmp eax, 2
jne 0x40107a
jmp 0x401083
mov byte [ebp - 1], 1
jmp 0x4011c6
call sub.kernel32.dll_GetCurrentProcess
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401094
jmp 0x401099
jmp 0x4011c6
lea edi, [ebp - 0x18]
push edi
push 0x20008
push dword [ebp - 0x10]
call sub.advapi32.dll_OpenProcessToken
mov byte [ebp - 0x11], al
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 0x11]
test al, al
je 0x4010be
jmp 0x4010c3
jmp 0x4011c6
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 0
push 2
push dword [ebp - 0x18]
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x4010e3
jmp 0x4010f4
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x4010ef
jmp 0x4010f4
jmp 0x4011c6
push dword [ebp - 0x1c]
lea edi, [ebp - 0x20]
push edi
call fcn.00402674
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 2
push dword [ebp - 0x18]
call sub.advapi32.dll_GetTokenInformation
or eax, eax
jne 0x40111d
jmp 0x4011ba
mov edi, dword [0x406028]
mov dword [ebp - 0x28], edi
mov di, word [0x40602c]
mov word [ebp - 0x24], di
lea edi, [ebp - 0x2c]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
or eax, eax
jne 0x401159
jmp 0x4011ba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
dec eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
ja 0x4011b2
nop
nop
nop
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
push dword [eax + edx*8 + 4]
push dword [ebp - 0x2c]
call sub.advapi32.dll_EqualSid
or eax, eax
jne 0x40118c
jmp 0x4011a5
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + edx*8 + 8]
and eax, 4
test eax, eax
jne 0x40119f
jmp 0x4011a5
mov byte [ebp - 1], 1
jmp 0x4011b2
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jae 0x4011b2
inc dword [ebp - 0x30]
jmp 0x401174
push dword [ebp - 0x2c]
call sub.advapi32.dll_FreeSid
push dword [ebp - 0x1c]
lea edi, [ebp - 0x20]
push edi
call fcn.00402694
mov al, byte [ebp - 1]
leave
ret
Function at 0x405564
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x4055a4
call sub.kernel32.dll_GetLastError
mov dword [0x407ba0], eax
call fcn.004058d4
jmp 0x4055cd
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4055cd
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405578
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x4055d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call sub.kernel32.dll_GetFileType
cmp eax, 2
jne 0x405625
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x40568b
call sub.kernel32.dll_GetLastError
mov dword [0x407ba0], eax
call fcn.004058d4
jmp 0x40568b
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x405662
call sub.kernel32.dll_GetLastError
mov dword [0x407ba0], eax
cmp eax, 0x6d
jne 0x40565b
mov dword [0x407ba0], 0
jmp 0x40568b
call fcn.004058d4
jmp 0x40568b
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40568b
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405625
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x59a78b2f
Capabilities:
Encode data using xor

Disassembly:
sub byte [ebx], bh
adc dh, byte [esi + 0x1a]
call [eax - 3]
pop ds
xor edx, dword [ebp + esi*2 + 0x31ce7c52]
stosd dword es:[edi], eax
mov bh, 0
mov esp, 0xe8406521
and byte [edi + 0x58], ah
add dword [esi - 0x6f48f4c7], esi
or esi, dword [edi - 0xc357f70]
or esi, dword [edi - 0xc357f70]
xor ah, bl
adc byte [ebx - 0x6f4d8a0a], bh
lcall 0xbf36, 0xd7579409
mov edi, 0xa3297e63
dec esi
add al, byte [ecx - 0x45]
mov byte [esi + 0x5f1fa748], ch
fnstsw word [edx + 0x22]
scasd eax, dword es:[edi]
push ds
push ss
push edi
jbe 0x59a78b11
or ecx, edi
invalid

Function at 0x59a828f0
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4bd0057e
leave
adc dword [ebx + 0x67], esi
salc
and ecx, dword ss:[edi - 0x50]
dec ebp
popfd
jl 0x59a82928
push esi
dec edx
sub dh, byte [esi + 4]
std
cmp dh, byte [edx + 0x16e86114]
mov dl, 0xc4
ror bl, 0xb1
add byte [ebx - 0x4f481c2], bl
adc dword [esi + 0xf21fb29], 0x94dd4f01
pop eax
das
sbb al, 0xd5
stc
dec edi
out 0xab, eax
jae 0x59a8293e
add al, 0x78
invalid
fiadd dword [edx + 0x5eabb7d6]
xchg ecx, eax
push ds
call 0x4a7dbc5
dec esi
dec ecx
adc al, 0xb4
aad 0xd0
adc byte [eax], 0x74
invalid

Function at 0x59a82fa5
Capabilities:
Encode data using xor

Disassembly:
sbb dword [edx], edi
pop ebx
sbb al, 0x10
dec ebx
popal
cmc
invalid
Function at 0x401250
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x114]
sub esp, 0x114
push 0xffffffffffffffff
push 0x402270
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x404048]
xor eax, ebp
mov dword [ebp + 0x110], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
lea eax, [ebp + 0x88]
mov ebx, ecx
push eax
mov esi, edx
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call sub.LZ32.dll_LZOpenFileW
mov edi, eax
test edi, edi
jge 0x4012df
call fcn.004011d0
push edi
push ebx
push str.LZOpenFile__s_OF_READ__failed:__ld
push 1
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__wchar_t_const__]
add esp, 0x14
push 0x403690
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0
call sub.MSVCR90.dll__CxxThrowException
push 0x1001
lea edx, [ebp]
push edx
push esi
call sub.LZ32.dll_LZOpenFileW
mov esi, eax
test esi, esi
jge 0x401324
call fcn.004011d0
mov ecx, dword [ebp - 0x14]
push esi
push ecx
push str.LZOpenFile__s_OF_WRITE__OF_CREATE__failed:__ld
push 1
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__wchar_t_const__]
add esp, 0x14
push 0x403690
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0
call sub.MSVCR90.dll__CxxThrowException
push esi
push edi
call sub.LZ32.dll_LZCopy
push edi
mov dword [ebp - 0x2c], eax
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
mov esi, dword [ebp - 0x2c]
call fcn.004011d0
mov ecx, dword [ebp - 0x14]
test esi, esi
jge 0x401372
push esi
push ecx
push ebx
push str.LZCopy__s__s__failed:__ld
push 1
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__wchar_t_const__]
add esp, 0x18
push 0x403690
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0
call sub.MSVCR90.dll__CxxThrowException
push ecx
push ebx
push str.ExpandWithLZCopy:_Done_expand_from__s_to__s
push 8
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__wchar_t_const__]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.0040187c
add ebp, 0x114
mov esp, ebp
pop ebp
ret
Function at 0x401510
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
xor esi, esi
push edi
cmp ebp, esi
jne 0x401534
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], esi
push esi
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401561
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40164a
mov edi, dword [sym.imp.MSVCRT.dll__strupr]
push ebp
call edi
lea ecx, [esp + 0x38]
mov esi, eax
push ecx
call edi
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4015b5
test cl, cl
je 0x4015b1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4015b5
add eax, 2
add esi, 2
test cl, cl
jne 0x401591
xor eax, eax
jmp 0x4015ba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401609
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401645
push ebp
call edi
lea ecx, [esp + 0x38]
mov esi, eax
push ecx
call edi
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401600
test cl, cl
je 0x4015fc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401600
add eax, 2
add esi, 2
test cl, cl
jne 0x4015dc
xor eax, eax
jmp 0x401605
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015be
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x13c]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x401660
Capabilities:
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x401673
xor eax, eax
pop esi
add esp, 0x54
ret
lea eax, [esp + 0x5c]
push str.EXPLORER.EXE
push eax
call fcn.00401510
add esp, 8
test eax, eax
jne 0x40168e
pop esi
add esp, 0x54
ret
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push 0x10
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x84]
push esi
push eax
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x4c], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0x60]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop edi
je 0x4016f1
push str.CreateProcessAsUser_ok__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
add esp, 0x54
ret
push str.CreateProcessAsUser_false__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
add esp, 0x54
ret