joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f923
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x48f9a3
cmp dword [ebp + 0xc], ecx
jne 0x48f9a3
cmp dword [ebx + 0x94], ecx
jne 0x48f9a3
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x48f999
cmp eax, 0xffffffff
je 0x48f999
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0041bc41
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x48f9a3
xor eax, eax
jmp 0x48fae3
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x48f9de
cmp dword [ebp + 0xc], 0
jne 0x48f9de
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0041bc41
test eax, eax
jne 0x48f992
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x48fa04
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x48fa04
cmp eax, 0xffffffff
je 0x48fa04
cmp dword [ebx + 0x90], ecx
jne 0x48fa04
cmp dword [ebx + 0xa8], ecx
je 0x48f992
push dword [ebx + 0x6c]
push 0x574df0
call fcn.004215b9
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x48fa3d
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x48faa3
push edi
jmp 0x48fa9e
push dword [ebx + 0x6c]
push 0x5749a8
call fcn.004215b9
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x48fa69
cmp eax, edi
je 0x48fa69
cmp dword [0x57b684], edi
jne 0x48fa69
push 1
push ebx
mov ecx, eax
call fcn.00473cd3
jmp 0x48fa96
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48fa81
push edi
call fcn.0042e6c1
cmp eax, edi
je 0x48fa81
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x48f992
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48faa3
push ebx
call fcn.00431213
cmp dword [ebx + 0x6c], edi
je 0x48fae0
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00421607
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a3e52
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x528635
call fcn.00507d45
xor edi, edi
cmp dword [0x574888], edi
je 0x4a3f1b
cmp dword [0x575614], 0xfffffffe
jne 0x4a3f08
cmp dword [ebp + 8], 0xffffffff
je 0x4a3f1b
test byte [0x57d3c8], 1
mov esi, 0x57d3a8
jne 0x4a3eb1
or dword [0x57d3c8], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0043ff16
push 0x52ec31
call fcn.005072ec
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0043ff73
cmp dword [0x57d3a4], edi
je 0x4a3ec5
call fcn.00416a1d
push edi
push edi
push 0x4a3dfa
call fcn.0050b500
add esp, 0xc
mov dword [0x57d3a4], eax
cmp eax, edi
jbe 0x4a3ef5
cmp eax, 0xffffffff
je 0x4a3ef5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x575614], eax
jmp 0x4a3efb
mov dword [0x57d3a4], edi
push 0x57d3b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a3f1b
mov eax, dword [ebp + 8]
mov dword [0x575614], eax
cmp eax, 0xffffffff
jne 0x4a3f1b
mov dword [0x57d3a4], edi
call fcn.00507e1d
ret
Function at 0x4de0d5
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x52ab93
call fcn.00507dae
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004e3c00
push 0x15c
call fcn.00412bb8
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4de119
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e5110
jmp 0x4de11b
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e3bd2
call fcn.0041825b
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4de2b5
cmp dword [edi + 4], ebx
jle 0x4de2b5
lea ecx, [ebp - 0x118]
call fcn.00402040
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4de299
lea ecx, [ebp - 0x11c]
call fcn.00402040
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4de1ea
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x54b938
push eax
call fcn.00402f20
add esp, 0xc
jmp 0x4de21c
jge 0x4de20a
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push 0x53b208
push eax
call fcn.00402f20
add esp, 0x10
jmp 0x4de21c
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00402e20
push 0x15c
call fcn.00412bb8
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4de240
mov ecx, eax
call fcn.004b6e6c
mov esi, eax
jmp 0x4de242
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.004164c4
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004e3bd2
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401710
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401710
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4de183
call fcn.00507e31
ret
Function at 0x4e2c94
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 0x4e2cac
mov edi, dword [esi + 0xc]
jmp 0x4e2cec
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e2cc5
call fcn.00419f4d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e2cda
call fcn.00419f4d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e2cec
call fcn.00419f4d
call fcn.0041825b
cmp dword [eax + 0x3c], 0
je 0x4e2d01
push edi
mov ecx, ebx
call fcn.004e1aef
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e2bba
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e2d1f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e2d2b
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e9ef2
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4e9f3c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e9f3c
call fcn.004e97ab
test eax, eax
je 0x4e9f3c
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00412ccf
xor eax, eax
inc eax
jmp 0x4ea154
cmp dword [ebx + 4], 0x100
push edi
jne 0x4ea14b
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4ea039
push 0x11
call edi
test ax, ax
jl 0x4ea039
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea039
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e9fac
cmp eax, 0x20
jbe 0x4ea039
cmp eax, 0x24
jbe 0x4e9f9f
cmp eax, 0x26
je 0x4e9f9f
cmp eax, 0x28
jne 0x4ea039
call fcn.004e97ab
test eax, eax
je 0x4ea039
mov ecx, esi
call fcn.004213a7
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e97ab
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e9fe1
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00412ccf
jmp 0x4ea146
call fcn.0041f0db
test eax, eax
je 0x4ea146
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041f113
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ea00f
xor edi, edi
jmp 0x4ea012
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041f0db
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4ea146
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4ea115
sub eax, 0x12
je 0x4ea0ed
sub eax, 0xb
je 0x4ea05b
dec eax
dec eax
jne 0x4ea14b
push 0x12
call edi
test ax, ax
jl 0x4ea14b
push 0x11
call edi
test ax, ax
jl 0x4ea14b
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea14b
call fcn.004e97ab
test eax, eax
jne 0x4ea146
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e9725
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041dd58
test eax, eax
je 0x4ea146
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041dd58
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4ea146
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea101
push 0
call fcn.004e9725
mov ecx, esi
call fcn.0041e85e
test eax, eax
je 0x4ea14b
mov ecx, esi
call fcn.0041e85e
jmp 0x4ea13f
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041dd58
test eax, eax
je 0x4ea14b
push dword [esi + 0x20]
call edi
push eax
call fcn.0041dd58
push 0
push esi
mov ecx, eax
call fcn.0048e6c1
mov ecx, eax
call fcn.004213a7
xor eax, eax
inc eax
jmp 0x4ea153
push ebx
mov ecx, esi
call fcn.0041bca4
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4ff9a2
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x4ff9e2
test edi, edi
jl 0x4ff9e2
cmp al, 0x20
je 0x4ff9d7
cmp word [ebp + 8], 0x71
jne 0x4ff9e2
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x50534a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x576fe4]
jne 0x505354
repz ret
jmp fcn.0050f05c

Function at 0x51b01e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050d352
and dword [ebp - 4], 0
cmp dword [0x57f0f8], 0
mov ebx, eax
jne 0x51b0cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51b180
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x557da4
push edi
call esi
test eax, eax
je 0x51b180
push eax
call fcn.0050d2e0
mov dword [esp], 0x557d94
push edi
mov dword [0x57f0f8], eax
call esi
push eax
call fcn.0050d2e0
mov dword [esp], 0x557d80
push edi
mov dword [0x57f0fc], eax
call esi
push eax
call fcn.0050d2e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57f100], eax
call esi
push eax
call fcn.0050d2e0
pop ecx
mov dword [0x57f108], eax
test eax, eax
je 0x51b0cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050d2e0
pop ecx
mov dword [0x57f104], eax
mov eax, dword [0x57f104]
cmp eax, ebx
je 0x51b127
cmp dword [0x57f108], ebx
je 0x51b127
push eax
call fcn.0050d35b
push dword [0x57f108]
mov esi, eax
call fcn.0050d35b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51b127
test edi, edi
je 0x51b127
call esi
test eax, eax
je 0x51b11e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51b11e
test byte [ebp - 0xc], 1
jne 0x51b127
or dword [ebp + 0x10], 0x200000
jmp 0x51b160
mov eax, dword [0x57f0fc]
cmp eax, ebx
je 0x51b160
push eax
call fcn.0050d35b
pop ecx
test eax, eax
je 0x51b160
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51b160
mov eax, dword [0x57f100]
cmp eax, ebx
je 0x51b160
push eax
call fcn.0050d35b
pop ecx
test eax, eax
je 0x51b160
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57f0f8]
call fcn.0050d35b
pop ecx
test eax, eax
je 0x51b180
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51b182
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c0d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45c0fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45c11c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045c03a
jmp 0x45c11c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45c11c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0045c03a
test edi, edi
mov eax, edi
jne 0x45c106
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49453c]
test ecx, ecx
je 0x45c1cf
jmp 0x45c0cf
ret 8

Function at 0x4678f2
Capabilities:
Check for vm using instruction vpcext
Encode data using xor

Disassembly:
cdq
ja 0x46793f
pop esi
out 0x1f, al
sbb dh, bh
cmp al, 0x5d
sub byte [edx - 0x55], 0x83
xchg byte [eax - 0x6cd35e86], ch
je 0x467908
stosb byte es:[edi], al
push ss
out 0xe6, eax
and dword [ebp + 0x7b248773], eax
sub esp, dword [ebx - 0x7b]
pop ds
xchg edx, eax
clc
imul esi, dword [ecx], 0x47
push ds
sbb eax, 0x920d1d42
pop ss
ljmp 0xde9f
inc esp
shl byte [ecx - 0x57], cl
fbstp tbyte [ebp + 0x3f761074]
outsd dx, dword [esi]
xor edx, ebx
mov eax, dword [0xc4302ae0]
dec ebp
stosb byte es:[edi], al
cmpxchg dword [eax - 0x53], esi
cmp eax, 0xf1ad823
xchg ecx, eax
out 0x7b, eax
invalid
Function at 0x40cd4c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004087f0
xor eax, eax
push ebp
push 0x40ce0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409864
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a14
mov eax, dword [ebx]
call fcn.0040cbfc
test al, al
jne 0x40cde9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409864
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a14
mov eax, dword [ebx]
call fcn.0040cbfc
test al, al
jne 0x40cde9
mov eax, ebx
call fcn.0040870c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce13
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040876c
lea eax, [ebp - 4]
call fcn.0040870c
ret

Function at 0x40e8c4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41312c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00413118
add esp, 0x208
pop ebx
ret

Function at 0x41f9ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41fa45
test eax, edx
je 0x41fa48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41fa03
movzx eax, word [eax]
sub eax, ecx
jmp 0x41fa2a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41fa2b
add ecx, 4
js 0x41fa1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41fa28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41fa2a
xor eax, eax
ret
test eax, eax
je 0x41fa54
test edx, edx
jne 0x41f9f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420f2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x420f59
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4210cc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004097c0
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421121
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42111b
test ah, 4
je 0x42111b
test al, 0x10
je 0x42111b
mov eax, esi
call fcn.004097c0
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421121
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425394
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4253cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408894
jmp 0x4253d6
mov eax, ebx
mov edx, esi
call fcn.00408aec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4253e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x425402
movzx eax, word [esp]
jmp 0x425404
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426454
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x426579
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042625c
mov esi, eax
mov eax, dword [0x653824]
cmp byte [eax], 0
je 0x426521
mov eax, dword [0x65341c]
call fcn.00405c80
call fcn.00405604
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x426424]
call fcn.0040b8d8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x426594
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42655d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x653380]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x657634]
call fcn.0040bcf8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426580
lea eax, [ebp - 4]
mov edx, dword [0x426424]
call fcn.0040b9fc
Function at 0x46b108
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x46b156
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0046abb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b16f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46b178
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0046abb4
dec esi
jne 0x46b19a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x46d864
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6599d0
cmp dword [edi], 0
jne 0x46d8e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6599cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x650684
mov ecx, 2
call fcn.004056d0
mov edx, 0x46d83c
lea eax, [esi + 5]
call fcn.0046d85c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0046d85c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x46d8b5
mov dword [0x6599cc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x47f824
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x47f833
add esp, 0xfffffff0
call fcn.00406f84
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [edi + 0x10]
mov edx, esi
call fcn.0040d19c
mov eax, edi
test bl, bl
je 0x47f858
call fcn.00406fdc
pop dword fs:[0]
add esp, 0xc
cmp edi, 0x3f574dfd
jl 0x47f862
sub edx, edx
xchg ebx, eax
cmp dword [0x65243c], 0xec527c79
push edx
in al, dx

Function at 0x47f86c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
push edx
in al, dx
jp 0x47f873
shr edx, 0x11
xchg esi, edx
mov ebx, ebx
xor edi, esi
rol edi, 7
not ebx
shl ebx, 0xe
or eax, ecx
ror ebx, 0x17
xor edx, edi
add ebx, 0xa8197a0b
sbb dword [eax - 0x1d3e39d5], ebp
add al, 0x81
cmp eax, 0x651633
push es
invalid
mov cs, eax
jns 0x47f8a4
mov eax, 0xbff24f5d
mov ecx, 0x34824e8d
or eax, edi
add edx, ebp
aad 0x48
xor esi, 0xe57b6647
cmp eax, 0xd608a656
jl 0x47f8c2
xor ebx, 0xef60fff6
or ebx, eax
sub ebx, esp
dec esi
invalid
invalid
invalid
invalid
invalid