joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4552f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp byte [ebx + 0x24154], 0
mov dword [ebx + 0x24164], edx
jne 0x455367
mov edi, edi
cmp si, di
jae 0x455352
movzx ecx, si
push 0
movzx eax, di
sub eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, ecx
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x455371
add esi, eax
cmp byte [ebx + 0x24154], 0
je 0x455320
cmp si, di
jbe 0x455367
mov eax, edi
mov ecx, ebx
sub eax, esi
push eax
movzx eax, si
add eax, dword [ebp + 8]
push eax
call fcn.004551d0
mov ax, di
pop edi
pop esi
pop ebx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45539b
mov ecx, edi
sub ecx, esi
push ecx
movzx ecx, si
add ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.004551d0
mov ax, di
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 4
mov ecx, ebx
call fcn.004550c0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x4578e0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 2]
lea ecx, [ecx]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x457900
mov eax, dword [esi]
mov ecx, 0x38
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
jb 0x457942
mov ecx, 0x78
sub ecx, eax
lea ebx, [esi + 0x58]
push ecx
push ebx
mov ecx, esi
call fcn.00457810
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00457810
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 0xa]
jmp 0x457970
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
dec edi
jne 0x457970
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
xor ecx, ebp
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x50], xmm0
movdqu xmmword [esi + 0x60], xmm0
movdqu xmmword [esi + 0x70], xmm0
movdqu xmmword [esi + 0x80], xmm0
movq qword [esi + 0x90], xmm0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
movdqu xmmword [ebx], xmm0
pop edi
movdqu xmmword [ebx + 0x10], xmm0
pop esi
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.005952cc
mov esp, ebp
pop ebp
ret 4
Function at 0x458130
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
push 3
lea eax, [ebp - 0x134]
mov dword [ebp - 0xac], 0
push ecx
movdqu xmmword [ebp - 0x58], xmm0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0xa8], 0x67452301
mov edi, edx
mov dword [ebp - 0xa4], 0xefcdab89
mov dword [ebp - 0xa0], 0x98badcfe
mov dword [ebp - 0x9c], 0x10325476
movdqu xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x58], 0x80
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x138], eax
movdqu xmmword [ebp - 0x28], xmm0
call fcn.0044f930
mov esi, dword [ebp - 0x138]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea ecx, [ebp - 0xb0]
call fcn.00457810
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004578e0
xor eax, eax
xor esi, esi
mov word [edi], ax
jmp 0x4581f0
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x602610
push edi
call fcn.005975c9
inc esi
add esp, 0xc
add edi, 4
cmp esi, 0x10
jl 0x4581f0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
cmp eax, ecx
je 0x458226
push eax
call fcn.00595a53
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005952cc
mov esp, ebp
pop ebp
ret

Function at 0x458270
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
push 3
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.0044f930
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4582cb
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4582cb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x4582e4
push eax
call fcn.00595a53
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005952cc
mov esp, ebp
pop ebp
ret 4

Function at 0x458300
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x40
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
xor eax, eax
mov ecx, dword [edx]
test ecx, ecx
je 0x458354
push esi
mov esi, dword [ebp + 0xc]
lea esp, [esp]
cmp eax, esi
jae 0x458353
mov ecx, dword [ecx]
add edx, 4
mov dword [edi + eax*4], ecx
inc eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x458340
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005952cc
mov esp, ebp
pop ebp
ret 8
Function at 0x4584c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
push esi
xor eax, eax
movq qword [ebp - 0xe], xmm0
push edi
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], ax
movdqu xmmword [ebp - 0x1e], xmm0
call fcn.00458570
movzx eax, al
add eax, 3
mov dword [ebp - 0x2c], 0x602680
shr eax, 2
movzx ecx, ax
mov dword [ebp - 0x28], 0x602678
mov dword [ebp - 0x24], 0x6026a4
cmp ecx, 3
jae 0x45854e
mov eax, ecx
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x2c]
lea esi, [esi + eax*4]
mov eax, 3
sub eax, ecx
movzx ebx, ax
lea esp, [esp]
push 0
push 0
push 0
push 0
push esi
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add esi, 4
lea edi, [edi + 4]
dec ebx
jne 0x458530
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.00458130
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005952cc
mov esp, ebp
pop ebp
ret
Function at 0x464f40
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b57e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
mov dword [ebx], vtable.IServerListDataSink.0
mov dword [edi], vtable.XToolLogic.0
mov dword [ebx], vtable.XToolLogic.1.0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 0x1a8], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00467de0
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
call fcn.0047a275
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x464fd1
push 0x80004005
call fcn.00415e10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 1
call fcn.0047a275
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x464ffc
push 0x80004005
call fcn.00415e10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 2
call fcn.0047a275
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x465027
push 0x80004005
call fcn.00415e10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00467e10
mov dword [edi + 0x2c], eax
mov eax, dword [0x634d04]
lea esi, [edi + 0x38]
test eax, eax
mov dword [esi], vtable.CGlobalUserInfo.0
push 0x2630
cmove eax, esi
mov dword [0x634d04], eax
lea eax, [esi + 8]
push 0
push eax
call fcn.00598070
push 0x408
lea eax, [esi + 0x2638]
push 0
push eax
call fcn.00598070
add esp, 0x18
lea ecx, [edi + 0x2a78]
mov byte [ebp - 4], 5
call fcn.0043efe0
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 6
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xd
push str.47.6666dw.cn
lea ecx, [edi + 0x1c]
mov dword [edi + 8], 0
call fcn.00415980
mov dword [edi + 0x20], 0x271b
mov eax, edi
mov dword [edi + 0x2b00], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005952cc
mov esp, ebp
pop ebp
ret 4
Function at 0x465890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b5918
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x628040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.00464dd0
mov dword [esp + 0x28], 0
push dword [eax]
push str.__s__OnSocketCloseEvent_Begin_n
call fcn.00464c80
mov dword [esp + 0x30], 0xffffffff
or esi, 0xffffffff
mov edx, dword [esp + 0x18]
add esp, 8
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x465905
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Socket_Close_n
call fcn.00464c80
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00464dd0
mov dword [esp + 0x28], 1
push dword [eax]
push str.__s__OnSocketCloseEvent_End_n
call fcn.00464c80
mov dword [esp + 0x30], 0xffffffff
add esp, 8
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x465955
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xc], 1
je 0x4659aa
mov ecx, dword [edi + 0xc]
push 2
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [edi + 0x28]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00421990
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x30], 2
mov esi, esp
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.00421990
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.00465aa0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x472e4c
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 0x472e91
call fcn.0048272b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x472e91
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x472ead
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047c0ae
mov ebx, eax
test edi, edi
je 0x472eab
test esi, esi
je 0x472eab
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 0x478947
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.0048272b
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 0x47897e
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.0047899f
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 0x47c236
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.004776b0
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 0x47c272
call fcn.0047c49d
mov dword [esi + 0xc], 1
jmp 0x47c277
call fcn.0047c49d
cmp dword [esi], 0
je 0x47c2c0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x47c29a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00470383
jmp 0x47c2ab
push 0xff
mov ecx, esi
call fcn.00415dd0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004707ef
jmp 0x47c2e4
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 0x47c2e4
push dword [esi]
push dword [ebp - 4]
call fcn.00484f39
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c3aa
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.0047c49d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x47c3f2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00470383
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004707ef
jmp 0x47c3fd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00484f39
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4d5efe
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056c5ec
call fcn.0048277f
cmp dword [eax + 0x14], 0
jne 0x4d5f19
mov ecx, esi
pop esi
jmp fcn.004d5304
pop esi
ret

Function at 0x4d7219
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5bbbce
call fcn.00597bda
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00421990
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5c6ea0
call fcn.0043d2d0
cmp eax, 0xffffffff
jne 0x4d72cd
push 0
push 0x5d2634
lea ecx, [ebp - 0x4d0]
call fcn.0043d2d0
cmp eax, 0xffffffff
jne 0x4d72cd
push 0
push 0x5c940c
lea ecx, [ebp - 0x4d0]
call fcn.0043d2d0
cmp eax, 0xffffffff
jne 0x4d72cd
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00421990
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4d72a9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00415c70
jmp 0x4d72fc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00415a40
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00415c70
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4d72f3
mov ebx, dword [ebp - 0x4cc]
jmp 0x4d72fc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00415c70
mov eax, ebx
call fcn.00597b89
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.004155c0
call fcn.0048277f
cmp dword [eax + 0x14], 0
jne 0x51d6a4
mov ecx, esi
pop esi
jmp fcn.0051cf72
pop esi
ret
Function at 0x5abf78
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x628040]
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.0059daa3
mov dword [ebp - 0x14], eax
cmp dword [0x634c48], esi
jne 0x5ac06b
push 0x800
push esi
push 0x5f39b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5abff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5ac14b
push esi
push esi
push 0x5f39b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5ac14b
push 0x5f39c8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5ac14b
push eax
call ebx
push 0x5f39d4
push edi
mov dword [0x634c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f39e4
push edi
mov dword [0x634c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x634c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634c58], eax
test eax, eax
je 0x5ac068
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634c54], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5ac090
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5ac083
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5ac0a5
push 4
pop eax
jmp 0x5ac14d
cmp dword [ebp - 0x14], esi
je 0x5ac0a5
push dword [0x634c48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5ac08a
mov eax, dword [0x634c54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5ac103
cmp dword [0x634c58], edi
je 0x5ac103
push eax
call ebx
push dword [0x634c58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5ac103
test eax, eax
je 0x5ac103
call ecx
test eax, eax
je 0x5ac0f8
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 0x5ac0f8
test byte [ebp - 8], 1
jne 0x5ac103
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5ac133
mov eax, dword [0x634c4c]
cmp eax, edi
je 0x5ac130
push eax
call ebx
test eax, eax
je 0x5ac130
call eax
mov esi, eax
test esi, esi
je 0x5ac130
mov eax, dword [0x634c50]
cmp eax, edi
je 0x5ac130
push eax
call ebx
test eax, eax
je 0x5ac130
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x634c48]
call ebx
test eax, eax
je 0x5ac14b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5ac14d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005952cc
mov esp, ebp
pop ebp
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

Function at 0xcaa0b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xa00015
lea edi, [esi - 0x5ff015]
mov dword [edi + 0x89f42c], 0xdef19343
push edi
jmp 0xcaa0da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcaa0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaa0d0
mov eax, 1
add ebx, ebx
jne 0xcaa0f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcaa104
jne 0xcaa123
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaa123
dec eax
add ebx, ebx
jne 0xcaa110
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcaa0e8
add ebx, ebx
jne 0xcaa11f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcaa175
xor ecx, ecx
sub eax, 3
jb 0xcaa13b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcaa1aa
sar eax, 1
mov ebp, eax
jmp 0xcaa146
add ebx, ebx
jne 0xcaa146
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaa114
inc ecx
add ebx, ebx
jne 0xcaa154
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaa114
add ebx, ebx
jne 0xcaa161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcaa156
jne 0xcaa172
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaa156
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcaa194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcaa186
jmp 0xcaa0d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcaa194
add edi, ecx
jmp 0xcaa0d6
pop esi
mov edi, esi
mov ecx, 0x19f67
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcaa1b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xcaa1b7
lea edi, [esi + 0x8a8000]
mov eax, dword [edi]
or eax, eax
je 0xcaa21f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8ae4cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ae530]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcaa1dd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8ae538]
or eax, eax
je 0xcaa219
mov dword [ebx], eax
add ebx, 4
jmp 0xcaa1fa
call dword [esi + 0x8ae534]
mov ebp, dword [esi + 0x8ae53c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x8aa27a]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xcaa26b
sub esp, 0xffffff80
jmp 0x4012f0