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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push esi
push edi
push 0x1001920
push dword [ebp + 8]
xor edi, edi
mov esi, 0x105
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], edi
call dword [0x10011a4]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x1006155
push ebx
push dword [ebp + 0xc]
mov ebx, dword [0x10011d8]
push 0x1002fa8
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push 0x80000002
call dword [0x1001018]
test eax, eax
jne 0x100614a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
mov edi, dword [0x1001024]
jmp 0x10060ab
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
mov eax, dword [ecx*4 + 0x100c3c8]
je 0x1006068
lea ecx, [ebp - 0x430]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
push 0x1002f9c
jmp 0x100607b
push dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x1002f8c
push dword [ebp - 0x10]
call ebx
add esp, 0x14
inc dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1006043
push dword [ebp - 0x10]
call dword [0x10011d4]
xor eax, eax
cmp dword [ebp + 0x10], eax
pop ecx
je 0x100614a
mov ebx, dword [0x100101c]
push esi
lea ecx, [ebp - 0x224]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call ebx
test eax, eax
jne 0x100614a
mov edi, dword [0x10011dc]
push dword [ebp + 0xc]
lea eax, [ebp - 0x63c]
push eax
call dword [0x10011e8]
lea eax, [ebp - 0x63c]
push 0x100126c
push eax
call edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x63c]
push eax
call edi
add esp, 0x18
push dword [ebp + 0x10]
lea eax, [ebp - 0x63c]
push eax
push dword [ebp + 8]
call fcn.01005fb1
inc dword [ebp - 4]
push esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x10060ed
push dword [ebp - 0x10]
call dword [0x10011d4]
pop ecx
pop ebx
push dword [ebp - 0xc]
call dword [0x1001020]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0xc
Function at 0x100699b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x105
mov dword [ebp - 4], edi
je 0x1006a34
push 4
push dword [ebp + 8]
call dword [0x10010f4]
test eax, eax
jne 0x1006a34
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1003ae8
push 0x80000002
call dword [0x1001018]
test eax, eax
je 0x10069ee
mov esi, 0x80004005
jmp 0x1006a21
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1002408
push dword [ebp - 4]
call dword [0x1001014]
test eax, eax
jne 0x10069e7
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.010053c1
mov esi, eax
cmp dword [ebp - 4], edi
je 0x1006a2f
push dword [ebp - 4]
call dword [0x1001020]
mov eax, esi
pop esi
jmp 0x1006a39
mov eax, 0x80070057
pop edi
leave
ret 4
Function at 0x1009a2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x100cc84], edi
mov dword [ebp - 4], edi
jne 0x1009a9c
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [0x100ca38]
mov dword [ebp - 8], 0x64
push 0x80000002
call dword [0x1001018]
test eax, eax
jne 0x1009a8e
push esi
lea eax, [ebp - 8]
push eax
mov esi, 0x100cc20
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [0x100ca40]
push dword [ebp - 4]
call dword [0x1001014]
test eax, eax
jne 0x1009a8d
mov dword [0x100cc84], esi
pop esi
cmp dword [ebp - 4], edi
je 0x1009a9c
push dword [ebp - 4]
call dword [0x1001020]
mov eax, dword [0x100cc84]
pop edi
leave
ret
Function at 0x3000669d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [0x30098fa8]
and dword [ebp - 8], 0
call fcn.30006bd0
cmp eax, 0xffffffff
pop ecx
jne 0x300066bd
push 8
pop ecx
jmp 0x300066bf
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x10]
or ebx, ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, ebx
and eax, 0xfffffff7
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3005b657
add esp, 0x14
test eax, eax
jne 0x30006899
mov eax, dword [0x3009c350]
push esi
push edi
xor edi, edi
inc edi
cmp eax, edi
mov esi, 0x1000
je 0x30006709
cmp eax, 2
je 0x30006709
cmp eax, 3
je 0x30006709
and dword [ebp - 0x10], 0
jmp 0x30006776
cmp byte [0x3009c375], 0
mov dword [ebp - 0x10], edi
jne 0x3000671a
call fcn.3000662b
mov eax, dword [0x3009e09c]
cmp byte [eax + 3], 0
je 0x3000674c
push edi
push dword [0x3009c34c]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [0x3009c375], 0
je 0x3000674c
push 0
push edi
push 6
push dword [0x3009c34c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x3009e09c]
mov eax, dword [eax + 0x1a]
mov dword [ebp - 0x14], eax
call fcn.3000322f
inc dword [0x3009d300]
test esi, ebx
jne 0x3000676c
and ebx, 0xffffdfff
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x3000677e
and ebx, 0xffffdfff
or ebx, esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
call esi
mov edi, eax
push 1
mov dword [ebp + 0x10], edi
call fcn.3000ca25
push edi
mov dword [ebp - 0xc], eax
call fcn.3000c49f
test eax, eax
pop ecx
pop ecx
jne 0x300067b2
cmp edi, dword [0x3009c34c]
je 0x300067b2
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp + 0x10], eax
call esi
xor esi, esi
inc esi
push esi
push dword [ebp - 0xc]
mov edi, eax
call fcn.3000cfaa
mov eax, dword [0x3009c34c]
cmp edi, eax
pop ecx
pop ecx
je 0x300067ed
test eax, eax
je 0x300067ed
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x300067ed
push 0
push dword [0x3009c34c]
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x30006801
and ebx, 0xf0f
or ebx, 0x1010
call esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.3000ea3e
test eax, eax
mov dword [ebp - 4], eax
je 0x300067f5
cmp dword [ebp - 8], 0
je 0x3000682b
push 1
push dword [0x3009c34c]
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
pop edi
pop esi
je 0x3000683d
push 0
push dword [ebp - 0xc]
call fcn.3000cfaa
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
je 0x30006899
cmp dword [ebp - 0x14], 0
je 0x30006852
push dword [ebp - 0x14]
call fcn.30003167
pop ecx
push 2
call fcn.3008144a
pop ecx
call fcn.3002ff8e
test eax, eax
jne 0x3000686b
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [0x3009e09c]
dec dword [0x3009d300]
cmp byte [eax + 3], 0
je 0x3000688a
push 0
push dword [0x3009c34c]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 0x10], 0
je 0x30006899
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x30007f72
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movzx ecx, byte [ebp - 4]
neg eax
sbb eax, eax
and eax, ecx
leave
ret

Function at 0x300089c6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x300089ee
push 2
pop eax
jmp 0x30008a9d
cmp dword [0x3009c350], 1
push edi
jne 0x30008a99
mov eax, dword [ebx + 4]
mov edi, 0xa0
cmp eax, edi
je 0x30008a1a
cmp eax, 0x112
jbe 0x30008a99
cmp eax, 0x200
ja 0x30008a99
push 0
push 0x9f
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x30008a99
push eax
push 0x109
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x30008a99
push eax
push 0x400
push 0x201
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x30008a99
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x30008a6e
cmp eax, 0x200
jne 0x30008a94
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
mov edi, 0x8000
test di, ax
jne 0x30008a99
push 2
call esi
test di, ax
jne 0x30008a99
push 4
call esi
test di, ax
jne 0x30008a99
push 3
pop eax
jmp 0x30008a9c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x30008ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
movzx ebx, ax
shr ebx, 1
push 0x11
and ebx, 0x4000
call esi
movzx edi, ax
and edi, 0x8000
or edi, ebx
push 0x12
shr edi, 2
call esi
and eax, 0x8000
or eax, edi
pop edi
pop esi
shr eax, 0xa
pop ebx
ret
Function at 0x30008b8d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor ebx, ebx
cmp byte [0x3009c374], bl
push esi
push edi
mov dword [ebp - 4], ebx
je 0x30008baa
xor eax, eax
jmp 0x30008c55
mov eax, dword [0x3009c36c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [0x3009c36c], eax
call sub.MSVCR80.dll__setjmp3
test eax, eax
pop ecx
pop ecx
jne 0x30008c5a
cmp dword [ebp + 8], ebx
je 0x30008bdb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x3009c360], eax
mov byte [0x3009c374], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov esi, edi
sub esi, dword [0x3009c360]
jns 0x30008bfd
and dword [0x3009c360], 0
mov esi, edi
push 0x8000
call fcn.30006de9
test eax, eax
pop ecx
jne 0x30008c5a
cmp dword [0x3009c350], 1
jne 0x30008c5a
mov eax, dword [ebx + 0x3009922c]
test eax, eax
je 0x30008c3b
cmp dword [ebp + 0xc], 0
jne 0x30008c2e
cmp dword [ebx + 0x30099230], 0
jne 0x30008c3b
push edi
push esi
push dword [ebp + 8]
call eax
add esp, 0xc
or dword [ebp - 4], eax
add ebx, 8
cmp ebx, 0x38
jb 0x30008be2
mov eax, dword [ebp - 8]
mov dword [0x3009c36c], eax
mov eax, dword [ebp - 4]
mov byte [0x3009c374], 0
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [0x3009c36c], eax
mov byte [0x3009c374], 0
je 0x30008c74
call fcn.30006dc8
xor eax, eax
inc eax
jmp 0x30008c55

Function at 0x300096a7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push ebx
inc eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jne 0x300096d5
cmp dword [0x3009d300], ebx
jg 0x300096d5
cmp dword [0x3009d728], ebx
jg 0x300096d5
cmp byte [0x3009c375], bl
je 0x30009733
cmp dword [0x3009c350], eax
jne 0x30009733
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, dword [0x3009c344]
mov dword [ebp + 8], eax
mov dword [0x3009c344], 0x3000
push 0xe000
call fcn.30006de9
test eax, eax
pop ecx
jne 0x3000972b
call esi
sub eax, dword [ebp + 8]
cmp eax, 0x3e8
jb 0x30009726
push ebx
push dword [ebp - 4]
call fcn.30008b8d
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
jne 0x300096fa
mov dword [0x3009c344], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3000aa46
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x3009dfe0]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x3000ab8f
cmp dword [0x3009dfe4], ebx
push edi
mov edi, 0x410
je 0x3000ab5a
push esi
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
push 2
push eax
call esi
push ebx
push edi
jmp 0x3000aa8f
inc ebx
mov eax, ebx
or eax, edi
push eax
push dword [0x3009dfe0]
call esi
test eax, eax
push 0
jne 0x3000aa89
xor ebx, ebx
jmp 0x3000ab41
push dword [ebp - 0x64]
call fcn.3000c2d0
test eax, eax
pop ecx
jne 0x3000ab3e
push 2
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp - 0x64]
mov esi, eax
call fcn.3000c142
test eax, eax
pop ecx
jne 0x3000ab35
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x3000ab35
cmp ebx, 9
jg 0x3000ab35
mov eax, dword [esi]
mov dword [eax + 0x14], ebx
jne 0x3000aafd
push 0x5b
lea eax, [ebp - 0x60]
push eax
push 0x110003
call fcn.3005bbc9
push 2
pop eax
jmp 0x3000ab1f
mov al, bl
add al, 0x31
mov byte [ebp - 0x5f], al
push 0x58
lea eax, [ebp - 0x5d]
push eax
push dword [ebp - 0x64]
mov byte [ebp - 0x60], 0x26
mov byte [ebp - 0x5e], 0x20
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
or eax, edi
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0
push dword [0x3009dfe0]
call dword [sym.imp.USER32.dll_AppendMenuA]
inc ebx
jmp 0x3000ab3e
mov eax, dword [esi]
mov dword [eax + 0x14], 9
push dword [ebp - 0x64]
call fcn.3000c593
test eax, eax
mov dword [ebp - 0x64], eax
pop ecx
jne 0x3000aaa4
and dword [0x3009dfe4], 0
pop esi
mov eax, dword [0x3009c3a4]
test eax, eax
je 0x3000ab8e
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
cmp eax, 9
jne 0x3000ab7b
push 2
pop eax
jmp 0x3000ab7d
or eax, edi
push 1
push eax
push dword [0x3009dfe0]
call fcn.3000af04
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret

Function at 0x3000c2f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 0
mov esi, eax
jne 0x3000c322
push dword [ebp + 8]
call fcn.3000c2d0
test eax, eax
pop ecx
jne 0x3000c322
call fcn.3000ac8a
mov eax, esi
pop esi
pop ebp
ret
Function at 0x30015bca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0x18
mov dword [ebp - 0x1c], 5
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x30099680
jmp 0x30015cd5
mov eax, dword [ebp - 0x1c]
push dword [esi*4 + 0x300996a0]
add eax, 0x18
mov dword [ebp - 0x14], eax
call fcn.30075a24
pop ecx
push 2
push eax
push dword [0x3009e050]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x30015c8e
push edi
push dword [0x3009e050]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x30015c8e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x30015c8e
push edi
push dword [0x3009e050]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x30015c8e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x30015c8e
push edi
push eax
push dword [ebp - 0xc]
call fcn.300841a3
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x30015c99
push 0x50000
call fcn.30006ab6
pop ecx
cmp esi, 5
je 0x30015cb1
cmp esi, 6
je 0x30015cb1
cmp esi, 0xd
je 0x30015cb1
cmp esi, 0xe
je 0x30015cb1
xor eax, eax
jmp 0x30015cb4
xor eax, eax
inc eax
xor ecx, ecx
cmp esi, 3
sete cl
push ecx
push eax
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
call fcn.30015b0b
mov eax, dword [ebp - 0x14]
add esp, 0x10
dec eax
mov dword [ebp - 0x1c], eax
inc esi
mov eax, dword [ebp - 4]
cmp esi, dword [eax]
jl 0x30015bf9
add dword [ebp - 4], 4
add dword [ebp - 0x1c], 0xa
cmp dword [ebp - 4], 0x300996a0
jl 0x30015cd5
mov eax, dword [0x3009df04]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret
Function at 0x3003006c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0xc]
and dword [ecx], 0
cmp eax, 0xffffffff
je 0x300300ac
xor edx, edx
inc edx
test dl, al
je 0x3003008c
mov dword [ecx], edx
test al, 2
je 0x30030093
or dword [ecx], 2
test al, 4
je 0x3003009a
or dword [ecx], 4
test al, 0x10
je 0x300300a1
or dword [ecx], 0x10
test al, 0x20
je 0x300300a8
or dword [ecx], 0x20
xor eax, eax
pop ebp
ret
push 2
pop eax
pop ebp
ret

Function at 0x30038df8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x3009c810]
xor ebx, ebx
push 0x66
mov dword [0x3009ddbc], ebx
call fcn.30087c4d
push 0xc
push 0x3009ddbc
push dword [0x3009c810]
mov dword [0x3009ddbc], eax
call fcn.30087b77
push 0x30001a64
call fcn.3005bb16
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x5c], eax
je 0x30038fa4
push esi
mov dword [ebp - 0x54], ebx
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x60], 0x2c
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], 0x20
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
mov dword [ebp - 0x64], eax
jne 0x30038f89
cmp dword [ebp - 0x68], 1
jne 0x30038f89
cmp dword [ebp - 0x60], ebx
je 0x30038f89
lea eax, [ebp - 0x30]
push 0x2d
push eax
call dword [sym.imp.MSVCR80.dll__mbschr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x30038f20
lea esi, [ebp - 0x30]
cmp dword [0x3009e094], ebx
je 0x30038eca
push esi
push esi
call fcn.3008a38c
movzx eax, ax
jmp 0x30038ecd
movzx eax, byte [esi]
cmp eax, 0x30
jl 0x30038f04
cmp dword [0x3009e094], ebx
je 0x30038ee6
push esi
push esi
call fcn.3008a38c
movzx eax, ax
jmp 0x30038ee9
movzx eax, byte [esi]
cmp eax, 0x39
jg 0x30038f04
cmp dword [0x3009e094], ebx
je 0x30038f01
push esi
push esi
call fcn.3008a335
mov esi, eax
jmp 0x30038eb6
inc esi
jmp 0x30038eb6
cmp esi, edi
jb 0x30038f20
cmp dword [0x3009e094], ebx
je 0x30038f1b
push esi
push esi
call fcn.3008a335
mov edi, eax
jmp 0x30038f23
lea edi, [esi + 1]
jmp 0x30038f23
lea edi, [ebp - 0x30]
push ebx
push 1
push dword [0x3009ddbc]
push dword [0x3009c810]
call fcn.30087994
pop ecx
pop ecx
push eax
push 0x3009ddbc
push dword [0x3009c810]
call fcn.30087aa2
push edi
push dword [0x3009c810]
mov esi, eax
call fcn.3007f89f
add esp, 0x1c
mov dword [esi], eax
cmp dword [ebp - 0x58], ebx
je 0x30038f81
cmp dword [ebp - 0x58], 1
jne 0x30038f6e
cmp byte [ebp - 0x50], 0x20
je 0x30038f81
lea eax, [ebp - 0x50]
push eax
push dword [0x3009c810]
call fcn.3007f89f
pop ecx
pop ecx
jmp 0x30038f83
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
inc dword [ebp - 0x54]
cmp dword [ebp - 0x64], 0x103
jne 0x30038e52
push dword [ebp - 0x5c]
call fcn.3005bb32
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret
Function at 0x3003926b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, 0x30001a64
push esi
call fcn.3005ba9d
push ebx
push dword [0x3009ddbc]
push dword [0x3009c810]
call fcn.30087bae
push dword [0x3009ddbc]
mov edi, eax
push dword [0x3009c810]
call fcn.30087994
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x410], eax
je 0x300393dd
push esi
call fcn.3005bafa
cmp eax, ebx
pop ecx
mov dword [ebp - 0x414], eax
je 0x300393dd
cmp dword [ebp - 0x410], ebx
mov dword [ebp - 0x408], ebx
jle 0x300393d1
cmp dword [edi + 8], ebx
jne 0x300393b6
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x30039308
mov dword [ebp - 0x40c], 0x30099f28
jmp 0x30039310
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
mov eax, dword [edi]
push dword [ebp - 0x408]
push dword [eax]
mov eax, edi
call fcn.300390e9
cmp eax, ebx
pop ecx
pop ecx
je 0x30039389
push 0xa
lea ecx, [ebp - 0x404]
push 0x400
push ecx
push eax
mov dword [ebp - 0x418], ecx
call fcn.3005bfb7
lea eax, [ebp - 0x404]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x3003934d
sub eax, ecx
lea ecx, [ebp + eax - 0x404]
mov byte [ecx], 0x2d
mov eax, dword [edi]
mov esi, dword [eax]
mov eax, esi
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x30039369
sub eax, edx
inc eax
push eax
inc ecx
push esi
push ecx
call sub.MSVCR80.dll_memcpy
mov esi, dword [ebp - 0x418]
add esp, 0xc
xor ebx, ebx
jmp 0x3003938d
mov eax, dword [edi]
mov esi, dword [eax]
mov eax, dword [ebp - 0x40c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x30039396
sub eax, ecx
push eax
push dword [ebp - 0x40c]
push 1
push ebx
push esi
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 0x408]
mov eax, dword [ebp - 0x408]
add edi, 0xc
cmp eax, dword [ebp - 0x410]
jl 0x300392ec
push dword [ebp - 0x414]
call fcn.3005bb32
pop ecx
push dword [0x3009ddbc]
push dword [0x3009c810]
call fcn.30087e2e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret
Function at 0x3003f319
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x3003f336
sub eax, ecx
mov edi, eax
push edi
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 3
lea eax, [ebp + edi - 0x14]
pop edx
mov ecx, dword [ebp + 0xc]
and ecx, 0xf
cmp ecx, 0xa
jge 0x3003f366
add ecx, 0x30
jmp 0x3003f369
add ecx, 0x37
shr dword [ebp + 0xc], 4
mov byte [edx + eax], cl
dec edx
jns 0x3003f356
mov edi, dword [ebp + 8]
add eax, 4
xor bl, bl
mov ecx, edi
sub ecx, eax
mov byte [eax], bl
push esi
lea eax, [ebp + ecx - 0x15]
push eax
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [esi], bl
je 0x3003f3c1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3003f398
sub eax, edx
cmp byte [esi + eax - 1], 0x5c
je 0x3003f3ad
mov byte [esi + eax], 0x5c
inc eax
sub edi, eax
add esi, eax
push edi
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.300818fd
add esp, 0xc
jmp 0x3003f41e
push edi
push esi
push dword [0x3009e08c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x100
push eax
lea ecx, [ebp - 0x115]
push ecx
push eax
lea ecx, [ebp - 0x215]
push ecx
push eax
lea eax, [ebp - 0x315]
push eax
push 3
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__splitpath_s]
push 0x3009e0a4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x315]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
push esi
call dword [sym.imp.MSVCR80.dll__makepath_s]
add esp, 0x3c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret

Function at 0x3003f4b1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.3003f288
mov eax, esi
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3003f4d6
sub eax, ecx
cmp eax, 8
jbe 0x3003f4e8
xor eax, eax
jmp 0x3003f517
push dword [ebp + 0x10]
mov edx, esi
push 0x104
lea ecx, [ebp - 0x108]
call fcn.3003f319
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR80.dll_remove]
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3008a55a
leave
ret