joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30009475
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x24], 0x3000218c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x300018ec
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.30013318
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCRT.dll__setjmp3
test eax, eax
pop ecx
pop ecx
mov edi, 0x1000
jne 0x300094c0
push edi
call fcn.3001342f
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x300094ed
push 0x3001c6bc
call fcn.300133bd
test eax, eax
je 0x300094e7
mov ecx, dword [ebp + 0x10]
push 0x8007000e
call fcn.30018a0f
mov esi, eax
call fcn.30013336
jmp 0x300095ff
push ebx
call fcn.3001335e
call fcn.30013336
push 0x7f02
lea ecx, [ebp - 0xc]
call fcn.300070e0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push 0xb
push 0x12
push 0x3000166c
push 0x37010102
push esi
call dword [eax + 0x1c]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jge 0x30009530
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.30018a3b
jmp 0x300095f4
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x30009555
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x300095b3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ebx
push ebx
push dword [0x3001cadc]
push dword [0x3001cad8]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x300095eb
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x3000959a
cmp dword [ebp - 4], ebx
je 0x300095ac
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 4]
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x300095eb
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 8]
call esi
cmp eax, ebx
jne 0x3000957b
cmp eax, ebx
je 0x3000954d
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], 0xffffffff
je 0x300095c2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x20]
cmp eax, ebx
pop ecx
je 0x300095e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp + 0x10]
push eax
call fcn.30018a0f
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x20]
cmp eax, ebx
pop ecx
je 0x30009615
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x300095e4
Function at 0x3000970c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov byte [eax], 0
je 0x30009773
cmp byte [edi], 0
je 0x30009773
cmp byte [edi + 1], 0x3a
jne 0x30009773
cmp byte [edi + 2], 0x5c
jne 0x30009773
push ebx
push esi
push eax
push 0x226
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [edi]
mov esi, dword [ebp + 0xc]
mov eax, edi
test cl, cl
je 0x30009759
cmp cl, 0x5c
jne 0x3000974e
mov esi, eax
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x30009743
mov eax, esi
sub eax, edi
cmp eax, 2
jne 0x30009763
inc esi
mov bl, byte [esi]
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [esi], bl
pop esi
pop ebx
pop edi
pop ebp
ret 8
Function at 0x3000a30c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x3001c9b8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__splitpath]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x514], ebx
call edi
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call fcn.3000978b
cmp byte [ebp - 0x204], 0x2e
jne 0x3000a367
lea eax, [ebp - 0x203]
push eax
call fcn.3000978b
lea eax, [ebp - 0x40c]
push eax
mov esi, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push ebx
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40c]
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
call fcn.30009021
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call edi
mov dword [ebp - 0x510], eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.3000a1ef
test eax, eax
jl 0x3000a50c
push dword [ebp + 0xc]
call fcn.30009212
test al, al
jne 0x3000a41d
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x3000a41d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x3000a508
inc dword [ebp - 0x514]
jmp 0x3000a46d
mov eax, dword [ebp - 0x510]
cmp eax, ebx
jle 0x3000a50c
lea eax, [ebp + eax - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
push eax
mov dword [ebp - 0x518], eax
call dword [0x3001c56c]
test eax, eax
je 0x3000a45f
dec dword [ebp - 0x510]
mov eax, dword [ebp - 0x518]
dec dword [ebp - 0x510]
mov byte [eax], bl
push dword [ebp - 0x514]
lea eax, [ebp - 0x104]
push eax
push 0x300021b0
lea eax, [ebp - 0x40c]
push esi
push eax
call fcn.30005bcc
lea eax, [ebp - 0x40c]
add esp, 0x14
push eax
call edi
cmp eax, 0xff
jge 0x3000a425
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.3000a1ef
test eax, eax
jl 0x3000a50c
push dword [ebp + 0xc]
call fcn.30009212
test al, al
jne 0x3000a41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x3000a50c
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x3000a50c
xor eax, eax
jmp 0x3000a519
mov ecx, dword [ebp + 0x18]
push 0x80004005
call fcn.30018a0f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.30017033
leave
ret 0x14
Function at 0x3000a70c
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x638]
sub esp, 0x6b8
mov eax, dword [0x3001c9b8]
push ebx
push esi
mov esi, dword [ebp + 0x644]
push edi
push 0xe
mov dword [ebp + 0x634], eax
pop ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x40c]
push eax
push esi
mov dword [ebp - 0x44], ebx
call fcn.3000970c
mov eax, dword [ebp + 0x640]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x648]
cmp eax, ebx
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], 1
je 0x3000a785
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x7c], 0x41
mov eax, dword [ebp + 0x64c]
and eax, 2
mov dword [ebp + 0x644], eax
je 0x3000a79a
or byte [ebp - 0x7b], 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x60], 0x20
mov edi, dword [ebp + 0x650]
mov eax, dword [ebp - 0x48]
mov dword [edi], eax
jg 0x3000a7d7
cmp dword [ebp + 0x644], ebx
jne 0x3000a7ce
push esi
push 0x44c
lea eax, [ebp - 0x40]
push eax
call fcn.3000a1b9
jmp 0x3000a7d5
mov dword [ebp - 0x44], 0x80004005
mov dword [edi], ebx
lea eax, [ebp + 0x40c]
push eax
call fcn.30009778
mov ecx, dword [ebp + 0x634]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
call fcn.30017033
add ebp, 0x638
leave
ret 0x14

Function at 0x3000e9ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
rep stosd dword es:[edi], eax
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
cmp dword [0x3001c4e8], ebx
mov esi, 0x3001c4e8
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x3000ea19
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x10
push ebx
push dword [esi]
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x3000ea12
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call fcn.3000e2f5
test eax, eax
jne 0x3000ea73
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], ebx
add esi, 0x10
cmp dword [esi], ebx
jne 0x3000e9e1
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push 2
push dword [ebp - 0x20]
push edi
push esi
call dword [eax + 0x34]
test eax, eax
jne 0x3000ea73
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
add eax, 4
cmp edi, ebx
je 0x3000ea57
mov edx, dword [ecx]
xor edx, dword [eax]
and edx, 0xffff
xor edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 0x10
dec edi
jne 0x3000ea40
cmp dword [ebp - 0x2c], ebx
je 0x3000ea69
mov eax, dword [esi]
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.3000ded2
push dword [ebp - 8]
call dword [0x3001c59c]
mov eax, dword [ebp - 4]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x3000ea8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.3000db04
leave
ret 8
Function at 0x300112af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
mov edi, dword [ecx + 0x20]
test edi, edi
jne 0x300112c1
cmp dword [ecx + 0x28], edi
jne 0x300112c1
xor eax, eax
inc eax
pop edi
ret
test edi, edi
push esi
mov esi, dword [ecx + 0x28]
je 0x300112ee
mov esi, dword [0x30020800]
push 5
push edi
push esi
call fcn.3001574a
test eax, eax
jne 0x300112e0
xor eax, eax
jmp 0x3001131b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x300112dc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
inc ebx
test byte [eax], bl
jne 0x30011304
cmp word [eax + 0xa], 0
je 0x3001130d
cmp word [eax + 0xc], 0
je 0x3001130d
xor ebx, ebx
test edi, edi
je 0x30011318
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x30011f03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 1
je 0x30011fb0
mov esi, dword [0x30020800]
push 0xf0
push dword [ebp + 8]
push esi
call fcn.3001574a
cmp eax, ebx
je 0x30011fb0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x30011fb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
mov cx, word [esi]
cmp cx, bx
je 0x30011fa1
inc esi
inc esi
mov ax, word [esi]
inc esi
inc esi
mov edi, dword [esi]
add esi, 4
cmp ax, 0x401
jne 0x30011f71
mov eax, 0x180
jmp 0x30011f7c
cmp ax, 0x403
jne 0x30011f7c
mov eax, 0x143
push esi
movzx eax, ax
push ebx
push eax
movzx eax, cx
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
jne 0x30011f9a
mov dword [ebp - 4], ebx
add esi, edi
cmp dword [ebp - 4], ebx
jne 0x30011f50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 4], ebx
pop edi
je 0x30011fc4
mov eax, dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
push 0x364
push dword [eax + 4]
call fcn.300115f6
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x30013e39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [0x30020800]
push 5
push dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x30013ebf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x30013ebf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x30013eb6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x30020814]
test eax, eax
push ebx
je 0x30013e93
call eax
jmp 0x30013e9a
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
test edi, edi
mov dword [ebp - 4], eax
je 0x30013eb6
mov esi, dword [ebp + 8]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x30013ec8
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x30015974
Capabilities:
Allocate thread local storage

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x30015999
cmp al, 3
ja 0x30015999
cmp edi, 2
ja 0x30015999
call esi
mov edi, eax
jmp 0x3001598e
mov eax, edi
pop edi
pop esi
ret
Function at 0x30016ce7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x300035a0
call fcn.30017044
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30016d27
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30016d27
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30016d3f
cmp eax, 0x20b
je 0x30016d2c
mov dword [ebp - 0x1c], ebx
jmp 0x30016d53
cmp dword [ecx + 0x84], 0xe
jbe 0x30016d27
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x30016d4d
cmp dword [ecx + 0x74], 0xe
jbe 0x30016d27
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300209f0], 0xffffffff
or dword [0x300209f4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300209c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300209c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300209ec], eax
call fcn.3001709b
call fcn.30008b51
cmp dword [0x3001c9c0], ebx
jne 0x30016db3
push fcn.300108e0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30017148
push 0x3001c058
push 0x3001c054
call sub.MSVCRT.dll__initterm
push 0x300170df
call fcn.30016f0c
mov eax, dword [0x300209bc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300209b8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30016e07
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x3001c050
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30016e85
cmp al, bl
je 0x30016e31
cmp dword [ebp - 0x20], ebx
jne 0x30016e85
mov al, byte [esi]
cmp al, bl
je 0x30016e41
cmp al, 0x20
ja 0x30016e41
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30016e31
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x30016e5d
movzx eax, word [ebp - 0x54]
jmp 0x30016e60
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.3001602d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x30016e7d
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x30016eda
cmp al, 0x22
jne 0x30016e94
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30016ea7
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x30016e1f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.3001707f
ret
Function at 0x30017033
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x3001c9b8]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30017033
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x3001c9b8]
jne 0x3001703c
ret
jmp 0x30016f1e
Function at 0x30018e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x9c
push esi
push edi
push 0x10
mov eax, dword [0x3001c9b8]
pop ecx
mov esi, 0x30003840
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xe
pop ecx
mov esi, 0x30003804
lea edi, [ebp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x300037f8
lea edi, [ebp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp + 0x70], eax
mov eax, dword [0x3001c9c4]
cmp eax, 0xffffffff
movsb byte es:[edi], byte [esi]
jne 0x30018f44
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push 4
pop esi
lea eax, [ebp - 0x20]
push eax
push 1
push 0
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x80000001
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
call edi
test eax, eax
jne 0x30018edf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp + 0x64]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30018edf
cmp dword [ebp - 0x1c], esi
je 0x30018f1c
lea eax, [ebp - 0x20]
push eax
push 1
push 0
lea eax, [ebp + 0x2c]
push eax
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
call edi
test eax, eax
jne 0x30018f2f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp + 0x64]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30018f2f
cmp dword [ebp - 0x1c], esi
jne 0x30018f2f
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 0x7c]
push dword [ebp - 0x20]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30018f3a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [ebp + 0x7c]
mov dword [esi], eax
mov eax, dword [esi]
mov dword [0x3001c9c4], eax
pop ebx
jmp 0x30018f49
mov ecx, dword [ebp + 0x7c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x70]
pop edi
xor eax, eax
pop esi
call fcn.30017033
add ebp, 0x74
leave
ret 4
Function at 0x30019199
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3f4]
sub esp, 0x474
mov eax, dword [0x3001c9b8]
push esi
mov dword [ebp + 0x3f0], eax
push 0x105
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x300191d2
xor eax, eax
jmp 0x300192d3
add eax, eax
lea ecx, [ebp + eax + 0x194]
cmp word [ecx], 0x5c
je 0x300191ee
mov word [ecx], 0x5c
mov word [ebp + eax + 0x196], si
push ebx
push edi
mov edi, 0x30005290
push 0x106
lea edx, [ebp + 0x194]
mov ecx, edi
call fcn.3001916f
push 8
push esi
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x3001922e
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x300192be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000527c
push ebx
call edi
push 0x3000525c
push ebx
mov dword [ebp - 0x80], eax
call edi
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x300192be
cmp dword [ebp + 0x3fc], esi
mov ebx, 0x30005248
mov edi, 0x300051f8
je 0x300192a2
cmp dword [ebp - 0x80], esi
je 0x300192be
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp + 0x3fc]
call dword [ebp - 0x80]
cmp eax, esi
jne 0x3001929b
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
lea eax, [ebp + 0x3a0]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
cmp eax, esi
je 0x300192c2
cmp eax, 0x642
je 0x300192c2
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
test eax, eax
je 0x300192c2
xor eax, eax
jmp 0x300192d1
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x300209e4], eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x3f0]
pop esi
call fcn.30017033
add ebp, 0x3f4
leave
ret 4

Function at 0x3001936d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x3001c9b8]
push esi
mov esi, 0x104
mov dword [ebp - 4], eax
push esi
lea edx, [ebp - 0x108]
mov ecx, 0x30005314
mov byte [ebp - 0x108], 0
call fcn.30019147
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0x108]
call fcn.30019147
lea eax, [ebp - 0x314]
push eax
push 0x20019
push 0
push 0x300052c0
push 0x80000002
mov dword [ebp + 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x300052a0
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x108]
lea ecx, [ebp - 0x310]
call fcn.300192e9
mov ecx, dword [ebp - 4]
pop esi
call fcn.30017033
leave
ret 4