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

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push 0x1d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x30108aaf
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 1
push eax
push edi
mov dword [esi], eax
call fcn.300ac978
test eax, eax
jne 0x30108a48
and dword [esi], eax
jmp 0x30108aad
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [edi]
jmp 0x30108a9c
mov esi, dword [ebp + 0x10]
movzx edx, dx
test edx, edx
jle 0x30108a83
lea edi, [ecx + 4]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 2
mov edi, esi
sub edi, dword [ebp + 0x10]
sar edi, 1
dec dword [ebp + 0xc]
mov word [ebx], di
movzx edi, word [esi]
lea esi, [esi + edi*2 + 2]
jne 0x30108a66
mov edi, esi
sub edi, dword [ebp + 0x10]
mov word [ecx], dx
sar edi, 1
lea edx, [edx + edx + 4]
mov word [ecx + 2], di
add eax, edx
mov dword [ebp + 0x10], esi
add ecx, edx
movzx edx, word [eax]
test dx, dx
jne 0x30108a53
mov ax, word [eax]
mov word [ecx], ax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x3010a6ef
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x302ae884], ebx
je 0x3010a8ce
call fcn.300e71ef
test eax, eax
jne 0x3010a8ce
push esi
mov esi, dword [sym.imp.USER32.dll_GetCapture]
call esi
push eax
call dword [sym.imp.MSO.dll_Ordinal_7777]
test al, al
jne 0x3010a8cd
cmp byte [0x30225c90], bl
je 0x3010a74b
call fcn.301065f8
test eax, eax
jne 0x3010a8cd
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x302ae78c], ebx
jne 0x3010a78f
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
je 0x3010a784
push eax
call fcn.300654d2
cmp eax, dword [0x302ae590]
je 0x3010a78f
mov dword [0x302ae874], ebx
jmp 0x3010a8cd
push edi
call esi
mov edi, eax
cmp edi, ebx
jne 0x3010a7af
push dword [0x302ae694]
call dword [sym.imp.USER32.dll_SetCapture]
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x3010a851
push 0x101
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov esi, dword [sym.imp.MSO.dll_Ordinal_295]
lea eax, [ebp - 0x208]
push eax
call esi
push 5
push 5
push eax
call fcn.3007f8d4
push eax
push 0x30012304
lea eax, [ebp - 0x208]
push eax
call fcn.3007d9c4
test eax, eax
je 0x3010a8cc
lea eax, [ebp - 0x208]
push eax
call esi
push 4
push eax
push 0x300022c8
lea eax, [ebp - 0x208]
push eax
call fcn.3007d9c4
test eax, eax
je 0x3010a8cc
push edi
call fcn.300654d2
cmp eax, dword [0x302ae590]
jne 0x3010a8cc
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
js 0x3010a851
push 2
call esi
test ax, ax
js 0x3010a851
call dword [sym.imp.USER32.dll_ReleaseCapture]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
cmp byte [0x30225c9d], bl
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, fcn.3007faae
mov ecx, edi
jne 0x3010a868
mov ecx, esi
push 1
mov eax, 0x200
push eax
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
call ecx
test eax, eax
jne 0x3010a8b1
cmp byte [0x30225c9d], bl
je 0x3010a889
mov esi, edi
push 1
mov eax, 0xa0
push eax
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
jne 0x3010a8b1
cmp dword [0x302ae78c], ebx
jne 0x3010a8cc
push 1
call fcn.300fbad3
jmp 0x3010a8cc
cmp byte [0x30225c9d], bl
mov eax, 0x3007fbac
jne 0x3010a8c3
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x22c]
push ecx
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret
Function at 0x30119284
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x301192de
cmp dword [0x302ae884], edi
je 0x30119304
cmp dword [0x30229ef4], edi
jne 0x30119304
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push dword [0x302ae8dc]
push dword [0x30229d6c]
push 2
call edi
mov dword [0x30229ef4], eax
call esi
push eax
push dword [0x302ae8dc]
push dword [0x3022b0e4]
push 0xffffffffffffffff
call edi
mov dword [0x3022b448], eax
jmp 0x30119304
mov eax, dword [0x30229ef4]
cmp eax, edi
je 0x30119304
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push eax
call esi
push dword [0x3022b448]
call esi
mov dword [0x30229ef4], edi
mov dword [0x3022b448], edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x30186357
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x13c]
push edi
movzx edi, word [ebx + 0x138]
shr edi, 3
dec edi
test edi, edi
jle 0x301863ae
add esi, 2
mov eax, dword [ebp + 8]
push 0
push 4
push dword [0x3022bd94]
dec edi
push dword [eax]
mov ax, word [esi]
add ax, ax
movsx eax, ax
sar eax, 1
push eax
call fcn.300d56c0
mov cx, word [esi]
xor cx, ax
and cx, 0x7fff
xor word [esi], cx
add esi, 8
test edi, edi
jg 0x30186378
add ebx, 0x124
push ebx
push dword [ebp + 8]
call fcn.300d5c6f
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x301915e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x30209e20], 6
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x6c], eax
jl 0x301917c2
cmp word [eax + 2], 0
je 0x301917c2
mov eax, dword [0x302ae8d0]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0xc0]
push 0
push eax
mov dword [0x302ae8d0], eax
call sub.MSVCR80.dll__setjmp3
test eax, eax
pop ecx
pop ecx
je 0x30191644
mov dword [0x30229d1c], 1
jmp 0x301917ba
mov esi, dword [ebp - 0x6c]
movzx ebx, word [esi + 2]
lea ebx, [ebx*4 + 8]
push ebx
mov dword [ebp - 0x74], ebx
call fcn.300ac872
push ebx
mov edi, eax
push 0
push edi
mov dword [ebp - 0x64], edi
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
movzx eax, word [esi + 2]
movzx ebx, ax
add esp, 0xc
dec ebx
mov word [edi + 6], ax
js 0x301916c8
lea eax, [esi + ebx*2 + 8]
lea edi, [edi + ebx*4 + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
push eax
call fcn.300f3514
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
push eax
call fcn.301a2939
movzx ecx, byte [edi]
sub dword [ebp - 0x58], 2
xor cl, al
mov ax, word [ebp - 0x70]
mov word [edi + 2], ax
and ecx, 1
xor word [edi], cx
dec ebx
sub edi, 4
test ebx, ebx
jge 0x3019168b
mov edi, dword [ebp - 0x64]
push edi
push dword [ebp - 0x74]
push 0x85a
call fcn.30191412
push edi
call dword [sym.imp.MSO.dll_Ordinal_652]
push 0
push dword [ebp + 0xc]
push 0
push 0x11
call fcn.3019156a
movzx ebx, word [esi + 4]
movzx eax, word [esi + 2]
imul ebx, eax
lea edi, [esi + 8]
add ebx, edi
jmp 0x301917a9
movzx eax, word [edi]
push dword [0x302ae658]
mov dword [ebp - 0x60], 0x31
push eax
mov dword [ebp - 0x5c], 0xf
call fcn.300f3497
mov esi, eax
mov eax, dword [0x302ae658]
cmp dword [eax + 0x120], 0
je 0x30191735
mov eax, dword [eax + 0x11c]
jmp 0x3019173b
mov eax, dword [eax + 0x388]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
mov ecx, esi
call fcn.300f3977
push eax
push esi
call fcn.300f2531
push eax
call fcn.300adf4a
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.30191412
movzx eax, word [edi]
push eax
call fcn.301a2939
test eax, eax
je 0x301917a7
movzx eax, word [edi]
push eax
call fcn.300f3514
mov esi, eax
movzx eax, word [edi]
push eax
call fcn.300f34c9
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
call fcn.301910c9
lea eax, [ebp - 0x80]
push eax
push 0xa
push 0x1060
call fcn.30191412
inc edi
inc edi
cmp edi, ebx
jb 0x30191700
push 0
push 0x11
call fcn.3019133e
mov eax, dword [ebp - 0x68]
mov dword [0x302ae8d0], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret 8
Function at 0x3019751f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x4c
test byte [eax + 0x12c], 1
push esi
je 0x30197542
add eax, 0x124
push eax
call fcn.3019749c
jmp 0x301975d8
mov eax, dword [0x302ae8d0]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [0x302ae8d0], eax
call sub.MSVCR80.dll__setjmp3
test eax, eax
pop ecx
pop ecx
je 0x301975b2
call fcn.3010a1d2
mov edx, dword [ebp + 0xc]
lea esi, [edx + 0x124]
push esi
call fcn.3019749c
movzx eax, word [edx + 0x138]
cmp ax, 0x10
jb 0x301975d8
mov ecx, dword [edx + 0x13c]
movzx eax, ax
shr eax, 3
lea eax, [ecx + eax*8 - 0x10]
cmp eax, ecx
jb 0x301975d8
mov cx, word [eax + 2]
xor cx, word [esi]
sub eax, 8
and cx, 0x7fff
xor word [eax + 0xa], cx
cmp eax, dword [edx + 0x13c]
jae 0x30197595
jmp 0x301975d8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 0xd0c
push eax
call fcn.30082a1a
mov eax, dword [ebp - 4]
mov dword [0x302ae8d0], eax
pop esi
leave
ret 0xc
Function at 0x301a5719
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x301a575b
push esi
mov esi, dword [ebp + 8]
add esi, 2
mov ax, word [esi]
push dword [ebp + 0x14]
dec dword [ebp + 0xc]
push dword [ebp + 0x10]
add ax, ax
movsx eax, ax
sar eax, 1
push eax
call fcn.301a568d
mov cx, word [esi]
xor cx, ax
and cx, 0x7fff
xor word [esi], cx
add esi, 8
cmp dword [ebp + 0xc], 0
jne 0x301a5729
pop esi
pop ebp
ret 0x10

Function at 0x301a5928
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x13c]
push edi
movzx edi, word [ebx + 0x138]
shr edi, 3
dec edi
test edi, edi
jle 0x301a5976
push esi
lea esi, [eax + 2]
mov ax, word [esi]
add ax, ax
push 2
push dword [ebp + 8]
movsx eax, ax
sar eax, 1
push eax
dec edi
call fcn.301a4673
mov cx, word [esi]
xor cx, ax
and cx, 0x7fff
xor word [esi], cx
add esi, 8
test edi, edi
jg 0x301a5949
pop esi
add ebx, 0x124
push ebx
push dword [ebp + 8]
call fcn.301a5624
pop edi
pop ebx
pop ebp
ret 8
Function at 0x30200de9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30200e25
xor eax, eax
jmp 0x30200f4b
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30200e41
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x3001cc48
push edi
call fcn.30200dbe
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x30200e81
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30200f33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3001cc34
push ebx
call edi
push 0x3001cc14
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30200f33
cmp dword [ebp - 0x474], esi
mov ebx, 0x3001cc00
mov edi, 0x3001cbb0
je 0x30200f0b
cmp dword [ebp - 0x478], esi
je 0x30200f33
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x30200f04
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x30200f37
cmp eax, 0x642
je 0x30200f37
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x30200f37
xor eax, eax
jmp 0x30200f49
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x302af3b0], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3020156b
leave
ret 4
Function at 0x30201027
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x3001cb48
push 0x80000002
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x300122f4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x302010b2
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x302010dd
cmp eax, 0x208
ja 0x302010dd
shr eax, 1
mov esi, eax
je 0x302010dd
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x302010dd
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x302010d0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.30200f99
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret 4

Function at 0x30201107
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x3001cc78
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x3001cc58
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x3020118f
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x3001ccd8
call fcn.30200dbe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x302011c1
push 0x3001cccc
call fcn.30201027
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3020156b
leave
ret
Function at 0x302012b6
Capabilities:
Execute anti-debugging instructions
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x302af3b4], ebx
mov dword [ebp - 0x108], ebx
jne 0x302014a8
lea eax, [ebp - 0x108]
push eax
push 0x20019
push ebx
push 0x3001cf10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x302014a8
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x104], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x114], pe_nt_image_headers32
call fcn.30201254
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x302014a8
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x302af3c8], eax
je 0x302014a8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3001cf94
push eax
call esi
push 0x3001cf80
push dword [0x302af3c8]
mov dword [0x302af3b4], eax
call esi
push 0x3001cf70
push dword [0x302af3c8]
mov dword [0x302af3bc], eax
call esi
push 0x3001cf58
push dword [0x302af3c8]
mov dword [0x302af3b8], eax
call esi
push 0x3001cf3c
push dword [0x302af3c8]
mov dword [0x302af3c0], eax
call esi
mov dword [0x302af3c4], eax
mov eax, dword [0x302af3b4]
cmp eax, ebx
pop esi
je 0x302014a8
cmp dword [0x302af3bc], ebx
je 0x302014a8
cmp dword [0x302af3b8], ebx
je 0x302014a8
push dword [ebp + 8]
call eax
cpuid
rdtsc
cpuid
rdtsc
cpuid
rdtsc
cmp dword [ebp + 0xc], 0
je 0x3020145f
mov eax, dword [0x302af3bc]
test eax, eax
je 0x3020145f
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push 0x221
call eax
push 8
call fcn.30201281
push 9
call fcn.30201281
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.30201254
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push 4
call dword [0x302af3bc]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push 5
call dword [0x302af3bc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret 8
Function at 0x3020156b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001d1b0]
jne 0x302021db
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x302af4f8], eax
mov dword [0x302af4f4], ecx
mov dword [0x302af4f0], edx
mov dword [0x302af4ec], ebx
mov dword [0x302af4e8], esi
mov dword [0x302af4e4], edi
mov word [0x302af510], ss
mov word [0x302af504], cs
mov word [0x302af4e0], ds
mov word [0x302af4dc], es
mov word [0x302af4d8], fs
mov word [0x302af4d4], gs
pushfd
pop dword [0x302af508]
mov eax, dword [ebp]
mov dword [0x302af4fc], eax
mov eax, dword [ebp + 4]
mov dword [0x302af500], eax
lea eax, [ebp + 8]
mov dword [0x302af50c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x302af448], 0x10001
mov eax, dword [0x302af500]
mov dword [0x302af3fc], eax
mov dword [0x302af3f0], 0xc0000409
mov dword [0x302af3f4], 1
mov eax, dword [0x3001d1b0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3020a754]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x302af440], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3001d538
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x302af440], 0
jne 0x302022cb
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x30201578
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3001d1fc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x302015d0
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3001d1f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x302015d0
mov al, 1
jmp 0x302015d2
xor al, al
leave
ret 8
Function at 0x30202c71
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x30202cdb
lea ecx, [eax + 0xc]
mov eax, 0x209
cmp ecx, eax
jae 0x30202cdb
push str.SCP32.DLL
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.30202c08
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x30202ced
push 0x54f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.3020156b
leave
ret 0x10
push 0x3001d548
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x30202d06
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x30202cd0
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x30202cdd

Function at 0x302031b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.30203149
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30203203
cmp dword [ebp - 0x1c], 5
jb 0x3020321b
jmp 0x30203217
cmp dword [ebp - 0x10], 1
jne 0x3020321b
cmp dword [ebp - 0x1c], 4
ja 0x30203217
jne 0x3020321b
cmp dword [ebp - 0x18], 0
jbe 0x3020321b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x3001d558
call fcn.3020303a
test eax, eax
jge 0x3020323c
mov byte [0x302af918], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.3020156b
add ebp, 0x78
leave
ret
Function at 0x51002768
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.51003760
test esi, esi
jne 0x5100279e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.51003850
jmp 0x510027bc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.5100267c
mov edi, eax
test esi, esi
je 0x510027bc
cmp dword [ebx], 0
je 0x510027bc
dec esi
jmp 0x510027a5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x51002ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x51009014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x51002d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x51002d18
xor eax, eax
push ebp
push 0x51002d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x51002d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51002d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x51009014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x51009014], ax
mov esp, ebp
pop ebp
ret

Function at 0x510035e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5100a044], 0
je 0x51003645
cmp word [0x5100a218], 0xd7b2
jne 0x5100360d
cmp dword [0x5100a220], 0
jbe 0x5100360d
mov eax, 0x5100a214
call dword [0x5100a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5100905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x5100366c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51009020], 0
jne 0x51003661
push 0
push 0x51009054
push 0x5100905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret