joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4498d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x218], eax
test edi, edi
je 0x4499f2
lea eax, [ebp - 0x210]
push eax
push 0x5fedb4
push 1
push 0
push 0x5ff0a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4499f2
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5ff104
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4499e6
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test esi, esi
jne 0x44995d
push dword [0x63d09c]
jmp 0x44995e
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x218]
test edx, edx
je 0x449979
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x4499a0
mov eax, dword [ebp - 0x210]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test ebx, ebx
je 0x4499bf
push ebx
push edi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0057b722
add esp, 0x10
jmp 0x449a4b
push 0x5c
test esi, esi
je 0x4499c8
push esi
jmp 0x4499ce
push dword [0x63d09c]
call fcn.0057b4ae
add esp, 8
test eax, eax
jne 0x449a05
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00577e97
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0057b722
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x449a24
sub ecx, edx
mov eax, 0x6b
sar ecx, 1
mov dword [ebp + ecx*2 - 0x212], 0x6e006c
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.00577e97
mov esp, ebp
pop ebp
ret
Function at 0x449db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
jmp 0x449de0
movzx eax, word [ecx + 0x606628]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x26], ax
test ax, ax
jne 0x449de0
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x449e3b
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x602665
mov byte [esi], 0
call fcn.00404c00
mov eax, esi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00577e97
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x449e64
xor ecx, ecx
movzx eax, word [ecx + 0x606628]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x26], ax
test ax, ax
jne 0x449e50
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.00425d70
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004044f0
cmp dword [esp + 0x24], 0x10
jb 0x449e9a
push dword [esp + 0x10]
call fcn.0044ffc1
add esp, 4
mov ecx, dword [esp + 0x234]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00577e97
mov esp, ebp
pop ebp
ret

Function at 0x44a870
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x61], 0
jne 0x44a885
cmp byte [ecx + 0x60], 0
je 0x44a885
mov byte [ecx + 0x60], 0
jmp fcn.0044a890
ret
Function at 0x44b550
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8619
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
call fcn.0040a220
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x4e], al
push 4
setne al
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 6
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x602665
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.00404c00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577e97
mov esp, ebp
pop ebp
ret 4
Function at 0x44f950
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x2d], 0
jne 0x44f965
cmp byte [ecx + 0x2c], 0
je 0x44f965
mov byte [ecx + 0x2c], 0
jmp fcn.0044f970
ret
Function at 0x44f970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b9e76
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2d], 0
jne 0x44fbb5
cmp byte [esi + 0x2c], 0
jne 0x44fbb5
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x4c], 0x10
mov word [esp + 0x52], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esi + 0x7c]
push dword [esi + 0x80]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x54]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x52]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x14], eax
test edi, edi
js 0x44fa3b
push eax
mov eax, dword [esi + 4]
push ebx
push edi
push dword [esi + 0x80]
push esi
call eax
add esp, 0x14
jmp 0x44fbab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2746
jne 0x44faef
lea ecx, [esp + 0x60]
call fcn.00405f40
mov dword [esp + 0xb8], 0
lea ecx, [esp + 0x34]
mov edx, edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], edi
mov byte [esp + 0x68], 0
call fcn.004057e0
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.00405a70
add esp, 4
lea ecx, [esp + 0x6c]
push eax
call fcn.00409880
lea ecx, [esp + 0x1c]
call fcn.00404560
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], 0
call fcn.00404560
cmp byte [esi + 0x2d], 0
jne 0x44fae6
cmp dword [esi + 8], 0
je 0x44fae6
push dword [esp + 0x14]
lea eax, [esp + 0x64]
push ebx
sub esp, 0x24
mov ecx, esp
push eax
call fcn.004066e0
mov eax, dword [esi + 8]
push esi
call eax
add esp, 0x30
lea ecx, [esp + 0x60]
jmp 0x44fba6
cmp edi, 0x2733
je 0x44fbab
lea ecx, [esp + 0x84]
call fcn.00405f40
mov dword [esp + 0xb8], 2
lea ecx, [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], edi
mov byte [esp + 0x8c], 1
call fcn.004057e0
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x38]
call fcn.00405a70
add esp, 4
lea ecx, [esp + 0x90]
push eax
call fcn.00409880
lea ecx, [esp + 0x34]
call fcn.00404560
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call fcn.00404560
cmp byte [esi + 0x2d], 0
jne 0x44fb9f
cmp dword [esi + 0xc], 0
je 0x44fb9f
sub esp, 0x24
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.004066e0
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 0x28
lea ecx, [esp + 0x84]
call fcn.004066b0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00577e97
mov esp, ebp
pop ebp
ret
Function at 0x44fbe0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x44fdd3
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44fdca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44fcc2
xor esi, esi
jmp 0x44fc80
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44fdca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44fcc2
inc esi
cmp esi, 0xa
jl 0x44fc80
jmp 0x44fdca
push 0
push 0x602665
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404c00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.004057e0
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00405a70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44fd5e
cmp dword [ebp - 0x14], 0x10
jb 0x44fd43
push dword [ebp - 0x28]
call fcn.0044ffc1
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004045c0
cmp dword [ebp - 0x50], 0x10
jb 0x44fd6f
push dword [ebp - 0x64]
call fcn.0044ffc1
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x44fd96
push dword [ebp - 0x7c]
call fcn.0044ffc1
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x44fdb9
cmp dword [edi + 0xc], 0
je 0x44fdb9
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004066e0
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x44fdca
push dword [ebp - 0x28]
call fcn.0044ffc1
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577e97
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45f426
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x45f46b
call fcn.00469e17
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45f46b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45f487
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00469fb0
mov ebx, eax
test edi, edi
je 0x45f485
test esi, esi
je 0x45f485
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4657e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00469e17
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46581a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0046583b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e050d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0046926f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4e0549
call fcn.004e072c
mov dword [esi + 0xc], 1
jmp 0x4e054e
call fcn.004e072c
cmp dword [esi], 0
je 0x4e0597
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4e0571
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0045f4fb
jmp 0x4e0582
push 0xff
mov ecx, esi
call fcn.0040cef0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0045d35d
jmp 0x4e05bb
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4e05bb
push dword [esi]
push dword [ebp - 4]
call fcn.0046c983
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e0681
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004e072c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4e06c9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045f4fb
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045d35d
jmp 0x4e06d4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046c983
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x543035
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00573c20
call fcn.00469e6b
cmp dword [eax + 0x14], 0
jne 0x543050
mov ecx, esi
pop esi
jmp fcn.0054243b
pop esi
ret

Function at 0x54f83a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057d0
call fcn.00469e6b
cmp dword [eax + 0x14], 0
jne 0x54f855
mov ecx, esi
pop esi
jmp fcn.0054f123
pop esi
ret
Function at 0x5900a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0058266e
mov dword [ebp - 0x14], eax
cmp dword [0x63dca8], esi
jne 0x590198
push 0x800
push esi
push 0x5faee0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x590125
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x590278
push esi
push esi
push 0x5faee0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x590278
push 0x5faef8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x590278
push eax
call ebx
push 0x5faf04
push edi
mov dword [0x63dca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5faf14
push edi
mov dword [0x63dcac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x63dcb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63dcb8], eax
test eax, eax
je 0x590195
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63dcb4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5901bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5901b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5901d2
push 4
pop eax
jmp 0x59027a
cmp dword [ebp - 0x14], esi
je 0x5901d2
push dword [0x63dca8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5901b7
mov eax, dword [0x63dcb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x590230
cmp dword [0x63dcb8], edi
je 0x590230
push eax
call ebx
push dword [0x63dcb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x590230
test eax, eax
je 0x590230
call ecx
test eax, eax
je 0x590225
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x590225
test byte [ebp - 8], 1
jne 0x590230
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x590260
mov eax, dword [0x63dcac]
cmp eax, edi
je 0x59025d
push eax
call ebx
test eax, eax
je 0x59025d
call eax
mov esi, eax
test esi, esi
je 0x59025d
mov eax, dword [0x63dcb0]
cmp eax, edi
je 0x59025d
push eax
call ebx
test eax, eax
je 0x59025d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x63dca8]
call ebx
test eax, eax
je 0x590278
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x59027a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00577e97
mov esp, ebp
pop ebp
ret
Function at 0x59ff1d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebx, edi
in al, dx
pushfd
push esi
mov esi, dword [ebp + 0x1e]
push esi
lea esi, [edx - 0x78]
push 0x26
push eax
push esi
call fcn.0040873b
mov ecx, dword [ebp - 0x12]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push ecx
add dword [eax - 0x2b5397c0], 0x40
add byte [edx - 0x2f], dl
adc eax, 0xea40c180
mov eax, dword [0x1f4102ac]
xor ebp, 0x14
pop ebp
sal byte [edi + ecx + 0x50], 0x68
push esp
add byte [eax], al
call dword [sym.imp.MSVCRT.dll_printf]
insd dword es:[edi], dx
les ecx, [eax]
invalid

Function at 0x40a0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
or dword [edi + 0x34], 0x56
dec edi
xor al, 0x56
push edi
mov edi, dword [ebp + 0x10]
sbb dword [edi - 0x36], eax
test al, al
je 0x40a0e4
push edi
retf

Function at 0x40a2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lahf
xchg esi, eax
add al, 0x85
leave
jne 0x40a2ed
add eax, 0xc
push eax
push edi
clc
cmp byte [eax + eax*2], bl
add byte [edx - 0x40], al
pop ebp
push ds
add al, 0
inc edx
rcr byte [ebp + 0x1e], 4
add dl, bh
cli
inc eax
or byte [ebx + 0x59], al
push eax
call dword [0x40c0c1]
push es
dec esp
xor ch, dl
cmp eax, 0x760080
je 0x40a2e7
cmp eax, 0x102
std
jne 0x40a316
mov eax, 0x11189
pop esi
pop ebp
ret 0xe94e
mov esi, dword [0x240c008]
call esi
test eax, eax
jne 0x40a377
imul ebx, dword [ebp + 0x34], 0xd6d70004
add eax, 0x290afc80
mov dh, 0x5d
ret 4
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40a35f
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, ebp
mov byte [0x4c25d], al
cmp eax, 1
jne 0x40a370
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40a39c
xor eax, 0xbded7580
xor al, 6
push es
push ecx
call dword [0xeb40c034]
movsd dword es:[edi], dword [esi]
adc eax, 0x358bd575
ja 0x40a347
inc eax
add bh, bh
salc
test eax, eax
je 0x40a403
call esi
add eax, 0x3d0afc80
dec ebp
pop ebp
adc al, byte [eax + eax]
nop
nop
dec esi
nop
xor al, 0x55
mov ebp, esp
mov eax, dword [ebp + 8]
push 0xc940a280
push eax
mov eax, dword [eax]
push eax
call 0x2756c0
mov cl, 0xc2
or ah, byte [edx]
pop esi
pop ebp
ret 8
Function at 0x403309
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403334
mov ecx, dword [0x4702d8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403411
cmp eax, esi
jl 0x40340b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.00403411
mov ebx, eax
cmp ebx, esi
jl 0x403409
cmp dword [ebp + 0x10], esi
jne 0x4033d7
cmp dword [ebp + 8], esi
jle 0x403409
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403399
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004060e4
test eax, eax
je 0x4033d3
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403388
jmp 0x403409
push 0xfffffffffffffffe
jmp 0x4033fd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4033e2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403400
push 0xfffffffffffffffd
pop eax
jmp 0x40340b
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a73
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ac4
xor eax, eax
jmp 0x405aeb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405aeb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405ac0
call esi
pop esi
leave
ret 4

Function at 0x405b25
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45e750], 0x44
push eax
xor eax, eax
push 0x45e750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b64
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b68
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c06
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040600d
mov edi, eax
cmp edi, 0xffffffff
je 0x405c47
test byte [esp + 0x10], 1
push esi
je 0x405c29
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c2f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c38
xor eax, eax
inc eax
jmp 0x405c49
test byte [esp + 0x10], 4
jne 0x405c47
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8