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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b373a
mov eax, dword fs:[0]
push eax
mov eax, 0x13a0
call fcn.101791c0
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13a0], edi
mov dword [ebp - 0x13ac], edi
mov dword [ebp - 0x13a8], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [edi], 0
push eax
call fcn.10008430
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x13a4]
mov dword [ebp - 0x13a8], 1
push eax
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 0x13a0], 0x1389
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003bd21
lea eax, [ebp - 0x13a0]
push eax
lea eax, [ebp - 0x139c]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x13a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003bd15
lea eax, [ebp - 0x139c]
push eax
push 0x102087a4
push edi
call fcn.10007850
add esp, 0xc
push dword [ebp - 0x13a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bd42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bd60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003bd7c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017859f
mov esp, ebp
pop ebp
ret

Function at 0x1003bda0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
pop ebp
jmp fcn.1003cf00
Function at 0x1003c490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi], eax
test eax, eax
je 0x1003c5e6
cmp byte [eax + 0x44], 0
je 0x1003c50c
mov eax, dword [eax + 8]
push 0x87
push 0x4e
call eax
mov eax, dword [esi]
cmp byte [eax + 0x44], 0
je 0x1003c50c
mov eax, dword [eax + 8]
push 0x87
push 0x4e
call eax
mov eax, dword [esi]
cmp byte [eax + 0x44], 0
je 0x1003c50c
mov eax, dword [eax + 8]
push 7
push 0x4e
call eax
mov eax, dword [esi]
cmp byte [eax + 0x44], 0
je 0x1003c50c
mov eax, dword [eax + 8]
push 0xb
push 0x4f
call eax
mov eax, dword [esi]
cmp byte [eax + 0x44], 0
je 0x1003c50c
mov eax, dword [eax + 8]
push 0x60
push 0x4e
call eax
mov eax, dword [esi]
xor bh, bh
mov byte [ebp - 5], bh
cmp byte [eax + 0x44], bh
je 0x1003c526
mov eax, dword [eax + 4]
lea ecx, [ebp - 5]
push 0x4f
push ecx
call eax
mov eax, dword [esi]
mov bh, byte [ebp - 5]
cmp byte [eax + 0x44], 0
je 0x1003c537
mov eax, dword [eax + 8]
push 0x61
push 0x4e
call eax
mov eax, dword [esi]
xor bl, bl
mov byte [ebp - 6], bl
cmp byte [eax + 0x44], bl
je 0x1003c562
mov eax, dword [eax + 4]
lea ecx, [ebp - 6]
push 0x4f
push ecx
call eax
mov eax, dword [esi]
mov bl, byte [ebp - 6]
cmp byte [eax + 0x44], 0
je 0x1003c562
mov eax, dword [eax + 8]
push 0x30
push 0x4e
call eax
mov eax, dword [esi]
xor cl, cl
mov byte [ebp - 7], cl
cmp byte [eax + 0x44], cl
je 0x1003c57c
mov eax, dword [eax + 4]
lea ecx, [ebp - 7]
push 0x4f
push ecx
call eax
mov eax, dword [esi]
mov cl, byte [ebp - 7]
or cl, 1
cmp byte [eax + 0x44], 0
mov byte [ebp - 0xb], cl
je 0x1003c5a3
mov eax, dword [eax + 8]
push 0x30
push 0x4e
call eax
mov eax, dword [esi]
cmp byte [eax + 0x44], 0
je 0x1003c5a3
push dword [ebp - 0xb]
mov eax, dword [eax + 8]
push 0x4f
call eax
movzx edx, bh
movzx eax, bl
shl edx, 8
add edx, eax
mov eax, esi
mov dword [esi + 4], edx
mov dword [esi + 8], edx
lea ecx, [edx + 1]
mov dword [esi + 0xc], ecx
lea ecx, [edx + 2]
mov dword [esi + 0x10], ecx
lea ecx, [edx + 4]
mov dword [esi + 0x14], ecx
lea ecx, [edx + 5]
mov dword [esi + 0x18], ecx
lea ecx, [edx + 6]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1017859f
mov esp, ebp
pop ebp
ret 4
push 0
call fcn.10182fd1
int3
Function at 0x1003cf00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10238c2c]
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
jne 0x1003cf3d
push str.GlobalAccess_EC
push eax
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x10238c2c], eax
test eax, eax
je 0x1003d020
push ebx
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp + 0xc]
nop dword [eax]
mov ecx, dword [esi]
mov byte [ebp - 5], 0
cmp byte [ecx + 0x44], 0
je 0x1003d032
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 5]
push eax
mov eax, dword [ecx + 4]
call eax
cmp byte [ebp - 5], 0xff
jne 0x1003d032
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003cf8f
push dword [ebp + 8]
movzx eax, word [esi + 8]
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [esi]
xor al, al
mov byte [ebp - 6], al
cmp byte [ecx + 0x44], al
je 0x1003cfaa
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 6]
push eax
mov eax, dword [ecx + 4]
call eax
mov al, byte [ebp - 6]
cmp al, byte [ebp + 8]
jne 0x1003cf50
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003cfc4
movzx eax, word [esi + 0xc]
push ebx
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [esi]
xor al, al
mov byte [ebp - 7], al
cmp byte [ecx + 0x44], al
je 0x1003cfdf
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 7]
push eax
mov eax, dword [ecx + 4]
call eax
mov al, byte [ebp - 7]
cmp al, bl
jne 0x1003cf50
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003d013
push dword [ebp + 0x10]
movzx eax, word [esi + 0x10]
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003d013
movzx eax, word [esi + 8]
push 0xff
push eax
mov eax, dword [ecx + 8]
call eax
push dword [0x10238c2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1017859f
mov esp, ebp
pop ebp
ret 0xc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jle 0x1003cf50
jmp 0x1003d013
Function at 0x1003d050
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10238c2c]
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
jne 0x1003d09e
push str.GlobalAccess_EC
push eax
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x10238c2c], eax
test eax, eax
jne 0x1003d09e
mov al, byte [ebp - 5]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017859f
mov esp, ebp
pop ebp
ret 8
push ebx
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp + 0xc]
nop
mov ecx, dword [esi]
mov byte [ebp - 5], 0
cmp byte [ecx + 0x44], 0
je 0x1003d185
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 5]
push eax
mov eax, dword [ecx + 4]
call eax
cmp byte [ebp - 5], 0xff
jne 0x1003d185
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003d0ef
push dword [ebp + 8]
movzx eax, word [esi + 8]
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [esi]
xor al, al
mov byte [ebp - 5], al
cmp byte [ecx + 0x44], al
je 0x1003d10a
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 5]
push eax
mov eax, dword [ecx + 4]
call eax
mov al, byte [ebp - 5]
cmp al, byte [ebp + 8]
jne 0x1003d0b0
mov ecx, dword [esi]
cmp byte [ecx + 0x44], 0
je 0x1003d124
movzx eax, word [esi + 0xc]
push ebx
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [esi]
xor al, al
mov byte [ebp - 5], al
cmp byte [ecx + 0x44], al
je 0x1003d13f
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 5]
push eax
mov eax, dword [ecx + 4]
call eax
mov al, byte [ebp - 5]
cmp al, bl
jne 0x1003d0b0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi]
xor bl, bl
mov byte [ebp - 5], bl
cmp byte [ecx + 0x44], bl
je 0x1003d16e
movzx eax, word [esi + 0x10]
push eax
lea eax, [ebp - 5]
push eax
mov eax, dword [ecx + 4]
call eax
mov ecx, dword [esi]
mov bl, byte [ebp - 5]
cmp byte [ecx + 0x44], 0
je 0x1003d19d
movzx eax, word [esi + 8]
push 0xff
push eax
mov eax, dword [ecx + 8]
call eax
jmp 0x1003d19d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jle 0x1003d0b0
mov bl, byte [ebp - 5]
push dword [0x10238c2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1017859f
mov esp, ebp
pop ebp
ret 8
Function at 0x10047221
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10047274
push esi
push dword [ebp + 8]
call fcn.10047407
mov edi, eax
test edi, edi
je 0x1004726f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1004726f
mov eax, dword [ebp - 8]
jmp 0x10047286
mov eax, dword [ebp + 0x10]
jmp 0x10047286
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x100548cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10054912
call fcn.10048e02
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10054912
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1005492e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1005c427
mov ebx, eax
test edi, edi
je 0x1005492c
test esi, esi
je 0x1005492c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10055328
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100553e6
cmp dword [esi + 0x20], 0
je 0x100553e6
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100553e6
cmp dword [ebp + 8], 0
je 0x100553e6
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10048e02
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100553b7
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100553e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1005cfaf
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x100553d7
test edi, edi
je 0x100553d7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x100553e2
mov ecx, esi
call fcn.100550ca
mov eax, ebx
jmp 0x100553e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100598b8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101b3b6c
call fcn.10178feb
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x100598de
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1005993e
call fcn.100434d9
push eax
lea ecx, [ebp - 0x10]
call fcn.10007ab0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x101c29dc]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10186d0b
push eax
call fcn.10007610
add esp, 0x14
test esi, esi
je 0x10059931
push esi
call fcn.10186c80
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10008490
mov eax, ebx
call fcn.10178fb4
ret 8

Function at 0x1005a6aa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.100597fe
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.1005a8c3
cmp esi, 3
je 0x1005a6e8
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x1005a731
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1005a70b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10043160
jmp 0x1005a71c
push 0xff
mov ecx, esi
call fcn.10008180
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10043183
jmp 0x1005a755
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x1005a755
push dword [esi]
push dword [ebp - 4]
call fcn.1004c29c
pop edi
pop esi
leave
ret 0xc

Function at 0x1005a81a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1005a8c3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1005a862
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10043160
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10043183
jmp 0x1005a86d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1004c29c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1005d6dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x1005d708
cmp dword [ebx + 0x80], 0
jne 0x1005d708
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.10048e02
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1005d999
push edi
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 0x1005d742
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10048e02
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1005d779
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1005d798
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 0x1005f8cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x1005f921
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1005f8fa
call fcn.1004fd29
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1005f90f
call fcn.1004fd29
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1005f921
call fcn.1004fd29
call fcn.10048e02
cmp dword [eax + 0x3c], 0
je 0x1005f936
push edi
mov ecx, ebx
call fcn.1005effb
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1005fb08
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1005f95f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1005f96b
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10081dac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x10081dc6
call fcn.10048e02
mov esi, dword [eax + 0xc]
push 0x101cd314
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x10081e1c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10081e1c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10081dfb
xor esi, esi
jmp 0x10081e11
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10081e25
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x10081e1e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10117026
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x101bc6c0
call fcn.1017901f
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10008430
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x101c379c
call fcn.10007160
cmp eax, 0xffffffff
jne 0x10117100
push 0
push 0x101cd2d0
lea ecx, [ebp - 0x278]
call fcn.10007160
cmp eax, 0xffffffff
jne 0x10117100
push 0
push 0x101c33d4
lea ecx, [ebp - 0x278]
call fcn.10007160
cmp eax, 0xffffffff
jne 0x10117100
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10008430
mov edi, eax
pop ecx
mov dword [ebp - 0x27c], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x280], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x114]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x101170cf
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x101c29dc]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.10008490
jmp 0x10117139
lea eax, [ebp - 0x114]
push eax
call fcn.10186c80
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.100081f0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.10008490
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x10117126
mov edi, dword [ebp - 0x274]
jmp 0x10117139
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x101c29dc]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.10008490
mov eax, edi
call fcn.10178fc9
ret

Function at 0x10130b7e
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.1018d24e
pop ecx
test eax, eax
jne 0x10130bc0
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.10047745
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10130b86
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x10192179
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10191fef

Function at 0x1019b2c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002b0a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x1002b0a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1002b0b2
pop dword [ebp - 4]
mov eax, 0x1002b0b2
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x3e936
push 0
mov eax, 0x7bd3c8f8
add eax, 0x942f3864
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x140837d5
sub ecx, 0x1407f692
xor ebx, ebx
add ebx, eax
mov edx, 0xa3372314
sub edx, 0x93326714
add edx, dword [ebp - 4]
mov edi, 0x85501f14
add edi, 0x3b8c0cdf
mov esi, dword [edx]
xor esi, edi
mov dword [ebx], esi
add ebx, 0x60176d2f
sub ebx, 0x60176d2b
add edx, 4
loop 0x1002b10e
add eax, 0xf7df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4eb6f425
sub ecx, 0x3eb6f425
add ecx, dword [ebp - 4]
call ebx
leave
ret