joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cf46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x66b876
call fcn.0058d733
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0045b27e
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x46cfa5
call fcn.0045b27e
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46cfb9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x46cfb5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x46cfc1
or eax, 0xffffffff
jmp 0x46d113
mov ecx, edi
call fcn.0046d550
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.00461030
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x46d04d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x46d04d
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46d04d
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0045b388
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x46d04a
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x67e9d0]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x46d04a
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0046736f
test eax, eax
je 0x46d04a
push 0
mov ecx, esi
call fcn.00467142
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.00460ccf
push ebx
call fcn.004623b2
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0046cee9
test eax, eax
jne 0x46d096
cmp dword [edi + 0x9c], eax
jne 0x46d096
call fcn.0045b27e
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.004623b2
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0046cee9
and dword [edi + 0x9c], 0
jmp 0x46d0c1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x46d0d5
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00467142
test esi, esi
je 0x46d0e2
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x46d0f8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x46d0f8
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x67e9d0]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0046d507
mov eax, dword [edi + 0x68]
call fcn.0058d698
ret
Function at 0x46eda2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x46edf8
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x46edd1
call fcn.00469701
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x46ede6
call fcn.00469701
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x46edf8
call fcn.00469701
call fcn.0045b27e
cmp dword [eax + 0x3c], 0
je 0x46ee0d
push esi
mov ecx, ebx
call fcn.0046e4c8
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0046eff3
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x46ee36
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x46ee42
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x474034
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x47417a
mov ecx, 0x6f0450
call fcn.0045abf2
mov esi, eax
test esi, esi
je 0x47416f
xor eax, eax
cmp word [esi + 8], ax
jne 0x474139
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4740f5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4740bb
push 0x6826c0
call fcn.004741b8
pop ecx
test eax, eax
je 0x4740bb
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4740d6
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4740f5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4740fb
push ebx
push edi
push eax
call fcn.004738c0
add esp, 0xc
jmp 0x4740fb
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0044f800
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x474174
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0045bd49
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x47413c
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x47414a
push edi
call fcn.005c04be
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040a1d0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00459cf6
call fcn.00459d10
int3
Function at 0x4836bd
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x66cac2
call fcn.0058d6fd
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x48384e
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x483820
sub eax, 1
je 0x48373c
sub eax, 1
je 0x483714
sub eax, 1
je 0x48373c
push 0x6c5398
mov ecx, edi
call fcn.00409b50
mov eax, edi
call fcn.0058d6ac
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4836fe
lea eax, [ebp - 0x4e8]
push eax
jmp 0x483703
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4836fe
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.00468abe
test eax, eax
je 0x4836fe
lea ecx, [ebp - 0x700]
call fcn.0040a3e0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4837d6
test byte [ebp - 0x428], 0x18
jne 0x4837f8
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x67e9d0]
mov ecx, ebx
call esi
jmp 0x4837f8
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x67e9d0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.004496e0
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.0040a420
jmp 0x48370a
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4836fe
lea eax, [ebp - 0x6f0]
jmp 0x483739
call fcn.00459cf6
int3

Function at 0x4839c6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004d3a0b
call fcn.0045b2cc
cmp dword [eax + 0x14], 0
jne 0x4839e1
mov ecx, esi
pop esi
jmp fcn.00482cca
pop esi
ret

Function at 0x48435c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x6f0f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x4843c6
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x4843ab
lea eax, [ebp - 0x2ac]
push eax
jmp 0x4843b0
push 0x6857c0
call fcn.00409b50
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0058d09a
leave
ret 8
call fcn.00459cf6
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00404d80
call fcn.0045b2cc
cmp dword [eax + 0x14], 0
jne 0x4848c6
mov ecx, esi
pop esi
jmp fcn.00484106
pop esi
ret
Function at 0x48d76d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x48d786
call fcn.0045b27e
mov esi, dword [eax + 0xc]
push 0x686eb4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x48d7c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48d7c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x48d7c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048d7d1
jmp 0x48d7ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52a325
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x52a352
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x52a367
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x52a367
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004623b2
jmp 0x52a438
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004623b2
cmp eax, edi
jne 0x52a442
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x52a3d4
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x52a418
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x52a442
cmp eax, 0x205
je 0x52a442
cmp eax, 0x201
je 0x52a442
cmp eax, 0x204
je 0x52a442
cmp eax, 0x100
jne 0x52a400
cmp dword [ebp - 0x18], 0x1b
je 0x52a442
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x52a438
ja 0x52a431
cmp eax, dword [0x6fe110]
jbe 0x52a438
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x52a389
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x52a81a
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x52a850
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0045b388
test eax, eax
je 0x52a838
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5312e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6f06fc], 0
push esi
push edi
je 0x53136f
cmp dword [0x6f0a38], 0xfffffffe
jne 0x53135c
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x53136f
mov edi, 0x6fe13c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6fe154], 0
jne 0x531373
push 0
push 0
push 0x531379
call fcn.005c38e1
add esp, 0xc
mov dword [0x6fe154], eax
test eax, eax
je 0x53134c
cmp eax, 0xffffffff
je 0x53134c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x6f0a38], esi
jmp 0x531353
and dword [0x6fe154], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x53136f
mov eax, dword [ebp + 8]
mov dword [0x6f0a38], eax
inc eax
neg eax
sbb eax, eax
and dword [0x6fe154], eax
pop edi
pop esi
pop ebp
ret
call fcn.00459cf6
int3
Function at 0x5448d7
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005cdf29
pop ecx
test eax, eax
jne 0x544919
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0044b990
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5448df
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x54c049
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x66c339
call fcn.0058d6ca
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x54c135
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x54c135
cmp esi, 0x43
je 0x54c08b
cmp esi, 0x2d
jne 0x54c135
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x54c135
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040a3e0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x69cf28
push eax
call fcn.00409580
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x54c123
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x54c123
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.0040a420
push ebx
mov ecx, edi
call fcn.005494cf
call fcn.0058d698
ret 4
Function at 0x58e088
Capabilities:
Parse pe header

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

Disassembly:
mov byte [ebp - 0x3e], 0x6b
mov byte [ebp - 0x3d], 0x72
mov byte [ebp - 0x3c], 0x7a
mov byte [ebp - 0x3b], 0x31
mov byte [ebp - 0x3a], 0x66
mov byte [ebp - 0x39], 0x72
mov byte [ebp - 0x38], 0x70
mov byte [ebp - 0x37], 0x32
mov byte [ebp - 0x36], 0x37
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x6f
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x76
mov byte [ebp - 0x30], 0x31
mov byte [ebp - 0x2f], 0x65

Function at 0x5d897d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x5d89af
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in al, dx
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x5d8a89
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x5d8a2b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x5d8a80
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005d894d
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x5d8a7e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x5d8aa7
jmp 0x5d8a22
mov dword [ebp - 0x10], 0
jmp 0x5d8aa4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x5da15b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d9e0c
Function at 0x5da166
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d9f96

Function at 0x5dbc66
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005db8e3

Function at 0x5e3750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5e377d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5e377d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x614f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x6f0f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6ff150]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test eax, eax
je 0x614f50
push eax
push 0x6b775c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.005f7bd0
add esp, 0x10
jmp 0x614ff2
mov eax, dword [0x6ff2e4]
test eax, eax
jne 0x614f82
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x210], 2
sete al
inc eax
mov dword [0x6ff2e4], eax
cmp eax, 2
jne 0x614fa7
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.00659870
jmp 0x614fc5
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.006587d0
mov esi, eax
add esp, 4
test esi, esi
je 0x615121
push esi
push 0x6b775c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.005f7bd0
push esi
call fcn.005bffae
add esp, 0x14
cmp byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
je 0x615007
inc eax
cmp byte [eax], 0
jne 0x615001
lea ecx, [ebp - 0x10c]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x61502b
lea ecx, [ebp + eax - 0x10d]
nop dword [eax]
cmp byte [ecx], 0x5c
jne 0x61502b
dec ecx
sub eax, 1
jne 0x615020
cmp eax, 0x105
jae 0x615136
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push edi
push eax
mov eax, dword [ebp + 8]
push str._setilqs_
add eax, 0xffffffe2
push ebx
push eax
call fcn.005f7bd0
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x615074
cmp byte [ebx], 0
je 0x61506c
inc edi
cmp byte [edi], 0
jne 0x615066
sub edi, ebx
and edi, 0x3fffffff
lea esi, [ebx + edi]
push esi
push 0x14
call fcn.005f7dd0
add esp, 8
mov dword [ebp - 0x318], 0x3e
add esi, 2
mov ecx, 4
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x615094
mov byte [ebx + edi + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058d09a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 7
pop esi
xor ecx, ebp
pop ebx
call fcn.0058d09a
mov esp, ebp
pop ebp
ret
call fcn.0058d96a
int3
Function at 0x631570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
mov esi, ebx
push edi
test ebx, ebx
je 0x63159d
cmp byte [ebx], cl
je 0x631595
nop dword [eax + eax]
inc esi
cmp byte [esi], cl
jne 0x631590
sub esi, ebx
and esi, 0x3fffffff
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 8], edx
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
test edi, edi
jle 0x631664
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
nop dword [eax]
mov eax, edx
xor eax, 1
cmp edx, 2
cmovge eax, edx
add eax, eax
mov edi, dword [ecx + eax*8 + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x63162f
mov edx, dword [ebp + 8]
mov bl, byte [ecx]
mov edx, dword [edx + eax*8]
test bl, bl
je 0x631614
mov edi, ecx
mov al, bl
sub edi, edx
nop dword [eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x6b4890]
cmp al, byte [ecx + 0x6b4890]
jne 0x631611
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x6315f0
mov edi, dword [ebp - 0xc]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x6b4890]
movzx eax, bl
mov ebx, dword [ebp + 0xc]
movzx eax, byte [eax + 0x6b4890]
sub eax, ecx
jne 0x631674
add edi, 0x14
cmp dword [edi + 0xc], 0
je 0x631648
push esi
push ebx
call fcn.00658ff0
xor edx, edx
add esp, 8
div dword [edi]
jmp 0x63164a
xor edx, edx
push edx
push esi
push ebx
push edi
call fcn.00608e10
add esp, 0x10
test eax, eax
je 0x63166d
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x631677
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x631677
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0x10]
jge 0x631664
mov ecx, dword [ebp + 8]
jmp 0x6315c0