joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e53
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
je 0x1002009
cmp eax, esi
je 0x1002009
push eax
mov dword [0x100a3c4], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 8], eax
test al, 2
jne 0x1001ea7
xor eax, eax
mov word [0x100a3d0], ax
mov word [0x100a3c8], ax
mov word [0x100a3c0], ax
pop esi
leave
ret
lea eax, [ebp - 0x28]
push eax
push dword [0x100a3c4]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x20]
mov word [0x100a3d0], ax
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x100a3c8], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x100a3c0], ax
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x100125c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1001f89
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001248
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1001f89
mov edx, dword [ebp - 8]
mov ecx, 0xff
cmp edx, ecx
jne 0x1001f5a
mov ecx, dword [ebp - 0x20]
mov edx, ecx
or edx, 8
mov ax, cx
and ecx, 0xf0
mov word [0x100a3d8], dx
mov edx, ecx
or edx, 0xc
or ecx, 8
mov word [0x100a3d4], dx
mov word [0x100a3dc], cx
jmp 0x1001f9e
push edi
mov edi, edx
shr edi, 8
and edi, ecx
mov word [0x100a3d4], di
mov edi, edx
shr edi, 0x10
movzx eax, dl
and edi, ecx
shr edx, 0x18
and edx, ecx
mov word [0x100a3d8], di
mov word [0x100a3dc], dx
pop edi
jmp 0x1001f9e
mov eax, dword [ebp - 0x20]
mov word [0x100a3d4], ax
mov word [0x100a3d8], ax
mov word [0x100a3dc], ax
mov ecx, dword [0x100a3dc]
shr cl, 4
xor cl, byte [0x100a3dc]
mov word [0x100a3e0], ax
test cl, 0xf
jne 0x1001fbe
mov word [0x100a3dc], ax
mov ecx, dword [0x100a3d8]
shr cl, 4
xor cl, byte [0x100a3d8]
test cl, 0xf
jne 0x1001fd8
mov word [0x100a3d8], ax
mov ecx, dword [0x100a3d4]
shr cl, 4
xor cl, byte [0x100a3d4]
test cl, 0xf
jne 0x1001ff2
mov word [0x100a3d4], ax
cmp dword [ebp - 4], esi
je 0x1001ea4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1002431
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a3a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x100249c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1002495
and eax, edi
or eax, esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10024ce
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10024c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10024bc
and eax, edi
or eax, esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10024ce
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x10024df
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01008013
leave
ret 4
Function at 0x10027fb
Capabilities:
Write file on windows

Disassembly:
push 0x14
push 0x1008560
call fcn.01007f80
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x1002945
xor ebx, ebx
cmp esi, ebx
je 0x1002945
xor eax, eax
cmp ax, word [0x100a3d0]
je 0x1002841
push dword [ebp + 8]
push dword [0x100a3c4]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 0x10]
push eax
push 0x1000
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp + 8], ebx
je 0x1002905
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x100288f
push edi
push dword [ebp + 8]
push esi
call fcn.01001b5f
jmp 0x10028e5
lea eax, [edi + edi + 2]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10028e5
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x10028d6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10028bd
sub eax, edx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x10028e5
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.01002237
test eax, eax
je 0x10028fc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xfffffffe
xor ecx, ecx
mov ax, word [0x100a3d0]
cmp cx, ax
je 0x1002929
movzx eax, ax
push eax
push dword [0x100a3c4]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x1c]
jmp 0x1002947
xor eax, eax
call fcn.01007fc5
ret 0xc
Function at 0x10034aa
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.01008050
mov eax, dword [0x100a3a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0xc04]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x100c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1001438
mov dword [ebp - 0x1008], eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.010025dc
cmp dword [ebp - 0x1008], esi
jbe 0x1003660
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0xc04]
push eax
push 2
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov dword [ebp - 0x1008], eax
cmp eax, esi
jbe 0x1003660
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x100365f
push ebx
push dword [ebp - 0x1008]
lea eax, [ebp - 0xc04]
push esi
push eax
push 2
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x1003650
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0x1001404
push ebx
mov dword [ebp - 0x1010], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x1010]
cmp eax, esi
je 0x1003618
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10013e4
push ecx
push eax
mov esi, 0x10013ac
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.010026fa
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x1010]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001388
push ecx
push eax
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.010026fa
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
cmp dword [ebp - 0x100c], esi
je 0x1003650
cmp dword [ebp - 0x1014], esi
je 0x1003650
push dword [ebp - 0x1014]
lea eax, [ebp - 0x1004]
push dword [ebp - 0x100c]
push eax
movzx eax, word [0x100a3e0]
push 0x1001358
push eax
call fcn.01002954
add esp, 0x14
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01008013
leave
ret
Function at 0x1004070
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x100a3a8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa68], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
mov dword [ebp - 0xa6c], ebx
test esi, esi
je 0x1004242
push edi
mov edi, 0x100
jmp 0x10040af
mov ebx, dword [ebp - 0xa6c]
cmp word [esi], 0
je 0x100421f
push edi
lea eax, [ebp - 0x614]
push eax
push edi
lea eax, [ebp - 0x814]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10041cb
mov ecx, 0x1001490
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100412a
test dx, dx
je 0x1004126
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100412a
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004104
xor eax, eax
jmp 0x100412f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10041ab
mov ecx, 0x1001488
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004164
test dx, dx
je 0x1004160
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004164
add eax, 4
add ecx, 4
test dx, dx
jne 0x100413e
xor eax, eax
jmp 0x1004169
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10041ab
push 0x1001244
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll__wmakepath_s
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.0100310f
lea eax, [ebp - 0xa64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x10040f9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10041f4
mov ebx, dword [sym.imp.msvcrt.dll_wcschr]
push 0x2a
push esi
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10041f4
push 0x3f
push esi
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10041f4
push esi
lea eax, [ebp - 0xa68]
push eax
call fcn.0100310f
cmp dword [ebp + 0xc], 0
je 0x1004219
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10041ff
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
test esi, esi
jne 0x10040a9
mov ebx, dword [ebp - 0xa6c]
mov esi, dword [ebp - 0xa68]
pop edi
test esi, esi
je 0x1004242
mov eax, dword [ebx]
test eax, eax
je 0x1004240
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01008013
leave
ret 8
Function at 0x1004954
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x100a3a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], 0x2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x82c], 0
and dword [ebp - 0x828], 0
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x824]
push eax
push 0x21
push edi
call ebx
test eax, eax
jle 0x10049cb
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x82c], eax
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1e
push edi
call ebx
test eax, eax
jle 0x10049ef
lea eax, [ebp - 0x824]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.010025dc
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1d
push edi
call ebx
test eax, eax
jle 0x1004a13
lea eax, [ebp - 0x824]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.010025dc
movzx eax, word [esi + 2]
mov edi, dword [ebp + 8]
test ax, ax
je 0x1004a83
mov ecx, dword [ebp - 0x82c]
sub ecx, 0
je 0x1004a5a
dec ecx
je 0x1004a45
dec ecx
jne 0x1004a83
movzx ecx, word [esi + 6]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi]
jmp 0x1004a6e
movzx ecx, word [esi]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi + 6]
jmp 0x1004a6e
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx ecx, word [esi + 6]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push eax
push 0x10014fc
push edi
call fcn.01002954
add esp, 0x1c
mov dword [ebp - 0x828], eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 8]
push eax
push 0x10014c0
push edi
call fcn.01002954
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x828]
add esp, 0x1c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008013
leave
ret 8
Function at 0x1007326
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], edi
jne 0x10073ad
cmp dword [esi + 0x94], edi
je 0x10073ad
mov eax, dword [esi + 0x28]
cmp eax, edi
jne 0x1007355
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10073b9
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10073b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, 0x3e8
mov dword [esi + 0x1c], ecx
cmp ecx, eax
jae 0x1007379
mov dword [esi + 0x1c], eax
or dword [esi + 0x18], 1
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10072bf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x89c], eax
cmp eax, edi
jne 0x10073b0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10073b0
push 4
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x10073c4
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x89c], ebx
je 0x100742b
push dword [esi + 0x28]
and dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1388
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1007418
push ebx
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1007418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x89c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x1007f6e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1008600
call fcn.01007f80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100a750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007d83
cmp eax, esi
jne 0x1007d76
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1007d86
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1007d5d
xor esi, esi
inc esi
mov eax, dword [0x100a74c]
cmp eax, esi
jne 0x1007d99
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1007dd4
mov eax, dword [0x100a74c]
test eax, eax
jne 0x1007dce
mov dword [0x100a74c], esi
push 0x1001210
push 0x1001204
call fcn.01007cda
pop ecx
pop ecx
test eax, eax
je 0x1007dd4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1007e9e
mov dword [0x100a414], esi
mov eax, dword [0x100a74c]
cmp eax, esi
jne 0x1007df8
push 0x1001200
push 0x10011f8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100a74c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1007e05
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a754], ebx
je 0x1007e26
push 0x100a754
call fcn.010081a9
pop ecx
test eax, eax
je 0x1007e26
push ebx
push 2
push ebx
call dword [0x100a754]
push dword [0x100a3fc]
push dword [0x100a400]
push dword [0x100a3f8]
call fcn.010067b3
add esp, 0xc
mov dword [0x100a410], eax
cmp dword [0x100a404], ebx
jne 0x1007e84
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100a414], ebx
jne 0x1007e92
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a410]
call fcn.01007fc5
ret
call fcn.010082f6
jmp 0x1007d3b
Function at 0x1015a47
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x10a6b34], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x1015a8d
call ebx
test eax, eax
jns 0x1015a83
push 0x1002d98
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x1002d8c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10a6b30], eax
mov dword [0x10a6b34], 1
mov eax, dword [0x10a6b30]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1015aa9
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1015ad9
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x1015acf
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x1015ac4
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x1015ac9
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x1015ad8
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x101651a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1016573
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1016565
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1016561
cmp esi, eax
jae 0x1016565
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1016553
cmp esi, eax
jb 0x1016569
xor eax, eax
jmp 0x1016572
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x101df15
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 2
mov esi, ecx
jne 0x101e071
mov al, byte [edi + 0x20]
cmp al, 1
jne 0x101e02e
mov eax, dword [edi]
cmp eax, dword [esi + 0xa0]
jne 0x101dfb4
call fcn.01016a18
cmp al, 1
jne 0x101e071
mov ecx, esi
call fcn.01040a13
mov eax, dword [0x10a60d0]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xfc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x108]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x104]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp byte [esi + 0x100], al
push 0
sete al
push 1
mov ecx, esi
add eax, 0xfffd
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0103f52b
jmp 0x101e071
cmp dword [edi + 0x28], 1
ja 0x101e011
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [esi + 0x10c]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp dword [ebp + 8], eax
jb 0x101e011
cmp dword [edi + 0x28], 1
jne 0x101e071
mov ecx, esi
call fcn.01040a13
mov eax, dword [0x10a60cc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xd8]
push 0
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0103f52b
call ebx
mov dword [esi + 0x10c], eax
jmp 0x101e06d
mov ecx, esi
call fcn.01040a13
mov eax, dword [0x10a60c8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
jmp 0x101e061
cmp al, 2
jne 0x101e071
call fcn.01040a13
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x10a60d4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push 0
push 1
push eax
mov ecx, esi
call fcn.0103f52b
mov byte [edi + 4], 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1020093
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ebp + 8], 0
push esi
je 0x10200a9
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10200b3
mov esi, 0x80004003
jmp 0x102025f
and dword [eax], 0
push ebx
push edi
push dword [ecx + 0xbc]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
neg esi
sbb esi, esi
mov edi, 0x7fffbffb
and esi, edi
mov ebx, 0x80004005
add esi, ebx
mov dword [ebp - 4], eax
js 0x102025d
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
add esi, ebx
mov dword [ebp - 8], eax
js 0x1020252
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push dword [ebp - 4]
call edi
push 0xa
push dword [ebp - 4]
mov ebx, eax
call edi
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
test ecx, ecx
jge 0x1020120
and dword [ebp - 0xc], 0
jmp 0x1020123
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jge 0x1020130
and dword [ebp + 8], 0
jmp 0x1020133
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 8]
cmp ecx, ebx
jle 0x102013c
mov ecx, ebx
mov edx, dword [edx + 0xc]
cmp edx, eax
jg 0x1020145
mov eax, edx
sub eax, dword [ebp + 8]
sub ecx, dword [ebp - 0xc]
push eax
mov ebx, ecx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
je 0x1020249
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 8]
call edi
push 0xcc0020
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0x18
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp word [ebp - 0x2a], 0x20
jne 0x10201bc
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x1020249
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x1020239
push ebx
push edi
call fcn.01019308
mov edi, eax
cmp edi, ebx
je 0x102021b
mov ecx, edi
call fcn.010191a4
test eax, eax
jbe 0x102021b
mov ecx, edi
call fcn.010191d0
test eax, eax
jbe 0x102021b
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
xor esi, esi
mov dword [ebp - 0x14], ebx
call fcn.0101934e
test eax, eax
je 0x1020220
mov esi, 0x80004005
cmp edi, ebx
je 0x102022c
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp + 8]
call sub.gdiplus.dll_GdiplusShutdown
mov edi, dword [ebp - 0x10]
jmp 0x102023e
mov esi, 0x80004005
cmp edi, ebx
je 0x1020249
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 8