joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300322e3
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.300321a9
test eax, eax
je 0x30032344
push dword [0x3008c53c]
call fcn.300410a4
test eax, eax
jne 0x3003233f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003dc3a
test eax, eax
je 0x30032323
push dword [0x3008c53c]
push 0x300045bc
call fcn.3003dd59
pop ecx
pop ecx
call fcn.3003dc3a
test eax, eax
je 0x3003233b
push dword [ebp - 4]
push 0x30004598
call fcn.3003dd59
pop ecx
pop ecx
xor eax, eax
jmp 0x30032356
xor eax, eax
inc eax
jmp 0x30032356
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x3003666d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 8

Function at 0x30039cf8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x30039d1b
push 0x14
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x30039dfe
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.3003524a
mov eax, dword [0x300cc538]
cmp eax, dword [0x300cc534]
mov esi, 0x447
je 0x30039d85
push 1
push 0x66
push 4
push edi
call fcn.3003753d
push 1
push 0xa2
push 0x3ed
push edi
call fcn.3003753d
push 1
push 0xa3
push 3
push edi
call fcn.3003753d
push 1
push 0xb0
push esi
push edi
call fcn.3003753d
push 1
push 0xb1
push 0x453
push edi
call fcn.3003753d
cmp dword [ebx + 0x34], 0
je 0x30039dbb
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x30039de6
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x30039de6
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp + 0xc]
and dword [ebx + 0x28], 0
push ebx
push edi
call fcn.30039bdd
push 0x3ec
push edi
call fcn.3003666d
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3003cc22
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x3008c490], ebx
je 0x3003cc5d
mov ecx, dword [esi + 0x3008c494]
cmp ecx, dword [ebp + 0x10]
jne 0x3003cc5d
xor eax, eax
inc eax
jmp 0x3003cd3a
push edi
push eax
push 0x300016c0
push 0x30004d8c
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi + 0x3008c4a0]
add esp, 0x14
cmp eax, ebx
je 0x3003ccb2
cmp byte [eax], bl
je 0x3003ccb2
push edi
lea eax, [ebp - 0x108]
push eax
push 0x30004234
call fcn.3005b5df
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008c4a0]
call fcn.3005b5df
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b5a7
test eax, eax
je 0x3003cd17
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x3003cd17
push 4
pop edi
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push dword [esi + 0x3008c4a4]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x3003cd1b
xor eax, eax
jmp 0x3003cd39
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3008c494], eax
xor eax, eax
inc eax
mov dword [esi + 0x3008c498], edi
mov dword [esi + 0x3008c490], eax
mov dword [esi + 0x3008c49c], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 0xc

Function at 0x3003d1cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.30059fbc
mov esi, eax
inc esi
push esi
call fcn.30043209
mov edi, eax
test edi, edi
je 0x3003d20a
push esi
push edi
push dword [ebp + 8]
call fcn.3005b52e
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x3003d163
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret 4
Function at 0x3003d225
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x3003d23a
xor eax, eax
jmp 0x3003d2a1
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x3003d294
cmp eax, edi
je 0x3003d294
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x3003d294
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x3003d28f
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
jmp 0x3003d29e
xor eax, eax
inc eax
jmp 0x3003d2a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x3003d8ef
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [0x300d3430], 0
je 0x3003d93d
push esi
push 0x300d3430
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x3003d93c
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.3005a04d
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x3003dc4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ed81
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003dca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x3003dc90
cmp eax, 0x21
je 0x3003dc90
cmp eax, 0x36
jne 0x3003dccd
inc ebx
cmp ebx, 5
jge 0x3003dccd
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3003dc59
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.30059fbc
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3003dde1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
Function at 0x3003dfc6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x970]
push 0
push eax
mov dword [ebp - 0x934], 0x824
call fcn.3006a130
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x970], edi
mov dword [ebp - 0x960], eax
mov dword [ebp - 0x95c], 0x104
je 0x3003e170
mov edi, 0x10000000
push edi
lea eax, [ebp - 0x934]
push eax
lea eax, [ebp - 0x92c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x3003e170
lea eax, [ebp - 0x970]
push eax
push edi
push dword [ebp - 0x934]
lea eax, [ebp - 0x92c]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x3003e170
cmp dword [ebp - 0x964], 3
je 0x3003e07e
cmp dword [ebp - 0x964], 4
jne 0x3003e170
push dword [ebp - 0x960]
call fcn.30059fbc
mov edi, eax
mov esi, 0x30004c90
push esi
mov dword [ebp - 0x930], edi
call fcn.30059fbc
mov ebx, dword [sym.imp.MSVCR80.dll__strnicmp]
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x3003e0d5
mov esi, 0x30004c98
push esi
call fcn.30059fbc
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x3003e170
push esi
call fcn.30059fbc
lea eax, [ebp + eax - 0x92c]
jmp 0x3003e0ed
test cl, cl
je 0x3003e170
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x3003e0e4
test cl, cl
je 0x3003e170
mov eax, dword [ebp - 0x960]
lea esi, [edi + eax]
mov edi, 0x30004fb0
push edi
call fcn.30059fbc
cmp dword [ebp - 0x930], eax
jl 0x3003e129
push eax
mov ecx, esi
sub ecx, eax
push edi
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x3003e129
xor eax, eax
inc eax
jmp 0x3003e172
mov edi, 0x30004fa4
push edi
call fcn.30059fbc
cmp dword [ebp - 0x930], eax
jl 0x3003e14a
push eax
sub esi, eax
push edi
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x3003e124
mov esi, 0x30004f94
push esi
call fcn.30059fbc
cmp dword [ebp - 0x930], eax
jne 0x3003e170
push esi
push dword [ebp - 0x960]
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x3003e124
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 4
Function at 0x3003e607
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov dword [ebp - 4], esi
je 0x3003e6b3
cmp dword [ebp + 8], esi
je 0x3003e6b3
mov edi, 0x10000
push edi
call fcn.30043209
mov ebx, eax
cmp ebx, esi
je 0x3003e6b3
push edi
push esi
push ebx
call fcn.3006a130
add esp, 0xc
push 0x8000
push ebx
push dword [ebp + 8]
call fcn.3003e5b4
test eax, eax
jne 0x3003e65e
push ebx
call fcn.30043266
mov eax, esi
jmp 0x3003e6b5
push esi
push esi
push esi
push 1
push dword [ebp + 0x10]
push esi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ed81
mov edi, eax
cmp edi, 0xffffffff
jne 0x3003e6bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e693
cmp eax, 0x21
je 0x3003e693
cmp eax, 0x36
jne 0x3003e6ad
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e6a7
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e65e
push ebx
call fcn.30043266
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.3005a04d
add eax, eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x3003e654

Function at 0x3003e6f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
je 0x3003e798
cmp dword [ebp + 8], edi
je 0x3003e798
mov esi, 0x8000
push esi
call fcn.30043209
mov ebx, eax
cmp ebx, edi
je 0x3003e798
push esi
push edi
push ebx
call fcn.3006a130
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call fcn.3003e560
test eax, eax
jne 0x3003e745
push ebx
call fcn.30043266
mov eax, edi
jmp 0x3003e79a
push edi
push edi
push edi
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ed81
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003e7a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e778
cmp eax, 0x21
je 0x3003e778
cmp eax, 0x36
jne 0x3003e792
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e78c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e745
push ebx
call fcn.30043266
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.30059fbc
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x3003e73b
Function at 0x3003ec85
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp word [ebx], si
push edi
mov word [ebp - 0x1c], 0x3a
mov word [ebp - 0x1a], 0x5c
mov word [ebp - 0x18], 0x2f
mov word [ebp - 0x16], 0x3c
mov word [ebp - 0x14], 0x3e
mov word [ebp - 0x12], 0x22
mov word [ebp - 0x10], 0x7c
mov word [ebp - 0xe], 0x2a
mov word [ebp - 0xc], 0x3f
mov word [ebp - 0xa], 0x26
mov word [ebp - 8], 0x2c
mov word [ebp - 6], 0x25
mov dword [ebp - 0x7c], 0x30005124
mov dword [ebp - 0x78], 0x3000511c
mov dword [ebp - 0x74], 0x30005114
mov dword [ebp - 0x70], 0x30005104
mov dword [ebp - 0x6c], 0x300050fc
mov dword [ebp - 0x68], 0x300050f0
mov dword [ebp - 0x64], 0x300050e4
mov dword [ebp - 0x60], 0x300050d8
mov dword [ebp - 0x5c], 0x300050cc
mov dword [ebp - 0x58], 0x300050c0
mov dword [ebp - 0x54], 0x300050b4
mov dword [ebp - 0x50], 0x300050a8
mov dword [ebp - 0x4c], 0x3000509c
mov dword [ebp - 0x48], 0x30005090
mov dword [ebp - 0x44], 0x30005084
mov dword [ebp - 0x40], 0x30005078
mov dword [ebp - 0x3c], 0x3000506c
mov dword [ebp - 0x38], 0x30005060
mov dword [ebp - 0x34], 0x30005054
mov dword [ebp - 0x30], 0x30005048
mov dword [ebp - 0x2c], 0x3000503c
mov dword [ebp - 0x28], 0x30005030
mov dword [ebp - 0x24], 0x30005024
mov ecx, ebx
je 0x3003edbc
movzx eax, word [ecx]
xor edx, edx
cmp ax, word [ebp + edx*2 - 0x1c]
jne 0x3003ed9c
push 0x5f
pop eax
inc edx
cmp edx, 0xc
jl 0x3003ed92
cmp ax, si
mov word [ecx], ax
jbe 0x3003edb5
cmp ax, 0x20
jae 0x3003edb5
mov word [ecx], 0x5f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x3003ed8d
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + eax*4 - 0x7c]
push esi
call fcn.3005a04d
mov edi, eax
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x3003eded
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x3003edf8
cmp ax, 0x2e
je 0x3003edf8
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x17
jl 0x3003edbf
jmp 0x3003edfd
mov word [ebx], 0x58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 4

Function at 0x3003f87d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300cc558], 1
push edi
mov edi, dword [ebp + 8]
jb 0x3003f8a6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f90e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3003f90b
push ebx
push edi
call fcn.30059fbc
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call fcn.30059fbc
lea eax, [ebx + eax + 2]
cmp eax, esi
pop ebx
ja 0x3003f90b
push esi
lea eax, [ebp - 0x108]
push eax
push 0x30004234
call fcn.3005b5df
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.3005b5df
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f90d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.30069876
leave
ret 4
Function at 0x3003f9d9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call fcn.3006a130
add esp, 0xc
push 0xfa0
push dword [0x300c0cbc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], ebx
je 0x3003fa5a
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300cc534]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.3004349f
test eax, eax
je 0x3003fa9d
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300cc534]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
push 0x300c0eec
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x3003fa89
push dword [ebp - 4]
call fcn.300433f3
cmp esi, ebx
je 0x3003fa9d
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3003ff00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x300400ca
test byte [ebp + 0xc], 8
je 0x300400ca
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.30036b96
test eax, eax
je 0x300400c9
push edi
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053e4
call fcn.3005b5df
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053dc
call fcn.3005b5df
push 1
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x300400c8
push 0x300053c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
je 0x300400c8
push dword [ebp + 8]
sub esi, edi
push ebx
push 0x43a
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x300400c8
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x11c], ebx
call dword [0x300d3868]
push dword [ebp - 0x11c]
call fcn.30043209
cmp eax, ebx
mov dword [ebp - 0x120], eax
je 0x300400c1
lea ecx, [ebp - 0x11c]
push ecx
push dword [ebp - 0x11c]
push eax
push edi
call dword [0x300d3868]
test eax, eax
je 0x300400b6
xor esi, esi
test dword [ebp - 0x11c], 0xfffffffc
jbe 0x300400b6
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300d3874]
test eax, eax
jle 0x3004006b
lea eax, [ebp - 0x14]
push 0x300053dc
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x3004006b
push 0xc
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300d3870]
test eax, eax
jne 0x3004007b
mov eax, dword [ebp - 0x11c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x3004001f
jmp 0x300400b6
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x130]
add eax, ecx
lea ecx, [ebp - 0x124]
push ecx
push ebx
push ebx
push eax
push 0x10000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
je 0x300400b6
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x120]
call fcn.30043266
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 8
Function at 0x30040562
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push eax
call fcn.3006b5a7
test eax, eax
je 0x3004071d
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call fcn.3005b52e
lea eax, [ebp - 0x108]
push eax
call fcn.3003ddeb
mov edi, eax
cmp byte [edi], 0x5c
jne 0x3004071c
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
mov byte [edi], bl
push eax
push dword [ebp - 0x120]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3004071b
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x300406e1
dec eax
je 0x300406c1
dec eax
je 0x300406a5
dec eax
jne 0x3004070f
push 1
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ebx
call fcn.3006b51c
test eax, eax
je 0x3004070f
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov dword [ebp - 0x114], eax
add eax, eax
push eax
mov dword [ebp - 0x124], eax
call fcn.30043209
cmp eax, ebx
mov dword [esi + 4], eax
je 0x30040690
push dword [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x124]
mov dword [esi + 8], eax
mov dword [esi], 1
cmp dword [ebp - 0x110], ebx
je 0x3004070f
push dword [ebp - 0x110]
call fcn.30043266
jmp 0x3004070f
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b51c
test eax, eax
je 0x3004070f
jmp 0x30040709
xor ebx, ebx
inc ebx
push ebx
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b51c
test eax, eax
je 0x3004070f
mov dword [esi], ebx
jmp 0x3004070f
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x118], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3004070f
mov dword [esi], 1
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30069876
leave
ret 8
Function at 0x3004072c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x30004c5c
call fcn.3006b5a7
test eax, eax
jne 0x3004074a
leave
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
xor esi, esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x3004083e
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x300407a1
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.3004349f
test eax, eax
jne 0x300407af
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3004083e
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
jbe 0x30040852
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x3004082d
push dword [ebp - 8]
call fcn.3003d686
test eax, eax
je 0x30040820
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x30040820
push 3
push 0x3008c4b0
push 0x3008c4ac
push str.DigitalProductID
push dword [ebp - 0x14]
call fcn.3006b51c
test eax, eax
push dword [ebp - 0x14]
jne 0x30040842
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x300407bb
jmp 0x30040852
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300433f3
xor eax, eax
jmp 0x3004086d
mov dword [0x3008c4a8], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300433f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret