joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076e11
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x10076e2a
or eax, 0xffffffff
jmp 0x10076e8b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10076e87
push 0x3d
push esi
call fcn.10077011
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10076e87
cmp esi, eax
je 0x10076e87
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100f58d4]
sete cl
cmp eax, dword [0x100f58d8]
mov dword [ebp - 8], ecx
jne 0x10076e6d
mov edi, eax
call fcn.10076db0
mov dword [0x100f58d4], eax
cmp eax, ebx
jne 0x10076ec6
cmp dword [ebp + 0xc], ebx
je 0x10076e8f
cmp dword [0x100f58dc], ebx
je 0x10076e8f
call fcn.10076933
test eax, eax
je 0x10076ec6
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10076e98
xor eax, eax
jmp 0x10076e8a
push 4
call fcn.10071522
cmp eax, ebx
pop ecx
mov dword [0x100f58d4], eax
je 0x10076e87
mov dword [eax], ebx
cmp dword [0x100f58dc], ebx
jne 0x10076ec6
push 4
call fcn.10071522
cmp eax, ebx
pop ecx
mov dword [0x100f58dc], eax
je 0x10076e87
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100f58d4]
call fcn.10076d63
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x10076f27
cmp dword [esi], ebx
je 0x10076f27
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1006e278
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10076f0a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10076f68
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10076f01
mov eax, edi
shl eax, 2
push eax
push dword [0x100f58d4]
call fcn.10072008
cmp eax, ebx
pop ecx
pop ecx
je 0x10076f68
jmp 0x10076f63
cmp dword [ebp - 8], ebx
jne 0x10076fd3
cmp edi, ebx
jge 0x10076f36
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100f58d4]
call fcn.10072008
cmp eax, ebx
pop ecx
pop ecx
je 0x10076e87
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x100f58d4], eax
cmp dword [ebp + 0xc], ebx
je 0x10076fbd
push dword [ebp - 4]
call fcn.10071640
inc eax
inc eax
push eax
call fcn.10071522
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10076fbd
push dword [ebp - 4]
push esi
call fcn.10071540
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10076fb6
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1006e278
pop ecx
cmp dword [ebp - 8], ebx
je 0x10076fcb
push dword [ebp - 4]
call fcn.1006e278
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10076e8a
push dword [ebp - 4]
call fcn.1006e278
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x10076e94
Function at 0x10530058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105301a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1053007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053006a
add dl, dl
jne 0x10530089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105300dc
xor eax, eax
add dl, dl
jne 0x10530096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053017d
add dl, dl
jne 0x105300a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105300b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105300bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105300c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105300d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10530075
mov eax, 1
add dl, dl
jne 0x105300ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105300f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105300e1
sub eax, ebx
mov ebx, 1
jne 0x10530128
mov ecx, 1
add dl, dl
jne 0x1053010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10530119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10530105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10530075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1053013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10530136
cmp eax, 0x7d00
jae 0x1053016d
cmp eax, 0x500
jb 0x10530168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10530075
cmp eax, 0x7f
ja 0x10530170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10530075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1053019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10530075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x3004fbc8
Capabilities:
Get number of processors

Disassembly:
cmp al, 0x60
cmp al, 0x64
cmp al, 0x68
cmp al, 0x6c
cmp al, 0x70
cmp al, 0x74
cmp al, 0x78
cmp al, 0x7c
cmp al, 0x80
cmp al, 0x84
cmp al, 0x88
cmp al, 0x8c
cmp al, 0x90
cmp al, 0x94
cmp al, 0x98
cmp al, 0x9c
cmp al, 0xa0
cmp al, 0xa4
cmp al, 0xa8
cmp al, 0xac
cmp al, 0xb0
cmp al, 0xb4
cmp al, 0xb8
cmp al, 0xbc
cmp al, 0xc0
cmp al, 0xc4
cmp al, 0xc8
cmp al, 0xcc
cmp al, 0xd0
cmp al, 0xd4
cmp al, 0xd8
cmp al, 0xdc
cmp al, 0xe0
cmp al, 0xe4
cmp al, 0xe8
cmp al, 0xec
cmp al, 0xf0
cmp al, 0xf4
cmp al, 0xf8
cmp al, 0xfc
cmp al, 0
cmp eax, 0x3d083d04
or al, 0x3d
adc byte [0x3d183d14], bh
sbb al, 0x3d
and byte [0x3d283d24], bh
sub al, 0x3d
xor byte [0x3d383d34], bh
cmp al, 0x3d
inc eax
cmp eax, 0x3d483d44
dec esp
cmp eax, 0x3d543d50
pop eax
cmp eax, 0x3d603d5c
cmp eax, 0x3d6c3d68
jo 0x3004fc90
je 0x3004fc92
js 0x3004fc94
jl 0x3004fc96
cmp byte [0x3d883d84], 0x8c
cmp eax, 0x3d943d90
cwde
cmp eax, 0x3da03d9c
movsb byte es:[edi], byte [esi]
cmp eax, 0x3dac3da8
mov al, 0x3d
mov ah, 0x3d
mov eax, 0xc03dbc3d
cmp eax, 0x3dc83dc4
int3
cmp eax, 0x3df43df0
clc
cmp eax, 0x3df83df4
cld
cmp eax, 0x3e043e00
cmp eax, 0x3dfc3df8
add byte [esi], bh
cmp eax, 0x3e003dfc
add al, 0x3e
or byte [esi], bh
or al, 0x3e
adc byte [esi], bh
adc al, 0x3e
sbb byte [esi], bh
sbb al, 0x3e
and byte [esi], bh
and al, 0x3e
sub byte [esi], bh
sub al, 0x3e
xor byte [esi], bh
xor al, 0x3e
cmp byte [esi], bh
cmp al, 0x3e
inc eax
inc esp
dec eax
dec esp
push eax
push esp
pop eax
pop esp

Function at 0x3004fcc8
Capabilities:
Get number of processors

Disassembly:
pushal
push 0x703e6c3e
je 0x3004fd13
js 0x3004fd15
jl 0x3004fd17
cmp byte [esi], 0x84
mov byte ds:[esi], bh
invalid
hlt
clc
cld
cld
add byte ds:[edi], bh
add al, 0x3f
or byte [edi], bh
or al, 0x3f
adc byte [edi], bh
adc al, 0x3f
sbb byte [edi], bh
sbb al, 0x3f
and byte [edi], bh
and al, 0x3f
sub byte [edi], bh
sub al, 0x3f
xor byte [edi], bh
xor al, 0x3f
cmp byte [edi], bh
cmp al, 0x3f
inc eax
aas
inc esp
aas
dec eax
aas
dec esp
aas
push eax
aas
push esp
aas

Function at 0x3004fcea
Capabilities:
Get number of processors

Disassembly:
movsb byte es:[edi], byte ds:[esi]
test al, 0x3e
lodsb al, byte [esi]
mov al, 0x3e
mov ah, 0x3e
mov eax, 0xc03ebc3e
les edi, ds:[esi]
enter 0xffffffffffffcc3e, 0x3e
sar byte [esi], 1
aam 0x3e
fdivr dword [esi]
fdivr qword [esi]
loopne 0x3004fd49
in al, 0x3e
call 0x2043e950
hlt
Function at 0x40236a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4023c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4023b4
cmp esi, ecx
jae 0x4023c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4023a2
cmp esi, ecx
jae 0x4023c4
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x4023c6
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x404842
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404881
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404881
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404881
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404881
cmp dword [ecx + 0x74], 0xe
jbe 0x404881
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x30001ade
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
jne 0x30001b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30001aac
mov ebx, eax
jmp 0x30001bc4
cmp dword [ebp - 4], 1
jle 0x30001bae
push dword [edi + 4]
push 0x300011f0
call fcn.30001ac4
test eax, eax
je 0x30001bae
cmp dword [ebp - 4], 4
mov dword [ebp - 8], esi
jl 0x30001bae
mov eax, dword [edi + 8]
push 3
pop ebx
push dword [edi + 0xc]
mov dword [ebp - 0xc], eax
push 0x300011dc
call fcn.30001ac4
test eax, eax
je 0x30001b63
cmp dword [ebp - 4], 6
jne 0x30001bae
mov eax, dword [edi + 0x10]
push 5
mov dword [ebp - 8], eax
pop ebx
lea eax, [ebx + 1]
cmp eax, dword [ebp - 4]
jne 0x30001bae
push 0
push dword [edi + ebx*4]
call fcn.300038b7
mov esi, eax
test esi, esi
jne 0x30001b82
mov ebx, 0x80004005
jmp 0x30001bb3
lea ebx, [esi + 8]
push ebx
push dword [esi]
call fcn.300044c0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x30001b9b
mov eax, dword [ebp - 8]
cmp dword [ebp - 8], ebx
jne 0x30001b9e
mov eax, dword [ebp - 0xc]
push ebx
push eax
push dword [esi + 4]
push dword [esi]
call fcn.30004f93
mov ebx, eax
jmp 0x30001bb3
mov ebx, 0x80070057
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x30001bc4
push esi
call fcn.3000368e
xor eax, eax
test ebx, ebx
setl al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x30003394
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
xor ebx, ebx
lea edi, [esi + 8]
mov dword [ebp - 8], ebx
cmp eax, dword [edi]
jne 0x300034e6
push 0x802
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x300034f7
push 0x802
push 0
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
jne 0x300033fc
push eax
push edi
push 0x800
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x300034ed
jmp 0x30003411
mov ecx, dword [eax]
push edi
push 0x800
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x300034ed
mov ecx, dword [edi]
test ecx, ecx
je 0x300034ed
xor edx, edx
cmp dword [esi + 0x14], edx
jne 0x30003453
mov al, byte [ebx]
cmp al, 0xff
jne 0x30003437
cmp byte [ebx + 1], 0xfe
jne 0x30003437
mov dword [esi + 0x18], 1
jmp 0x3000344a
cmp al, 0xfe
jne 0x3000344a
cmp byte [ebx + 1], 0xff
jne 0x3000344a
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], edx
je 0x3000345c
shr ecx, 1
mov dword [edi], ecx
cmp dword [esi + 0x1c], edx
je 0x30003487
mov ecx, dword [edi]
lea ecx, [ecx + ecx - 2]
cmp ecx, edx
jbe 0x30003487
dec ecx
shr ecx, 1
lea eax, [ebx + 1]
inc ecx
mov dl, byte [eax - 1]
mov byte [ebp + 0xb], dl
mov dl, byte [eax]
mov byte [eax - 1], dl
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc eax
dec ecx
jne 0x30003472
cmp dword [esi + 0x18], 0
je 0x3000349c
push dword [esi + 0x10]
call fcn.3000367a
mov dword [esi + 0x10], ebx
xor ebx, ebx
jmp 0x300034d6
test byte [0x300070c0], 1
jne 0x300034b7
or dword [0x300070c0], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x300070bc], eax
push 0x800
push dword [esi + 0x10]
push dword [edi]
push ebx
push 0
push dword [0x300070bc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [edi], eax
test eax, eax
je 0x300034ed
xor eax, eax
cmp dword [ebp - 4], eax
je 0x300034e3
cmp dword [esi + 0x18], eax
je 0x300034e3
inc eax
mov dword [esi + 0xc], eax
mov dword [ebp - 8], 1
test ebx, ebx
je 0x300034f7
push ebx
call fcn.3000367a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x300036e8
Capabilities:
Download url
Parse url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x437c
call fcn.30005d52
mov eax, dword [0x30001a14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x4378]
push ebx
push eax
mov dword [ebp - 0x437c], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call fcn.30001eeb
test eax, eax
jne 0x3000384e
push 7
push edi
push 0x300018d4
call fcn.300036ca
test eax, eax
jne 0x30003763
push 8
push edi
push 0x300018c0
call fcn.300036ca
test eax, eax
jne 0x30003763
push 6
push edi
push 0x300018b0
call fcn.300036ca
test eax, eax
je 0x3000384e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], bx
je 0x30003771
inc eax
inc eax
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x3000384e
xor eax, eax
mov word [ebp - 0x22a4], ax
mov word [ebp - 0x1258], ax
mov word [ebp - 0x32f0], ax
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x436c], eax
lea eax, [ebp - 0x22a4]
mov dword [ebp - 0x4350], eax
push esi
lea eax, [ebp - 0x32f0]
mov dword [ebp - 0x4348], eax
lea eax, [ebp - 0x437c]
push eax
push ebx
mov esi, 0x825
push ebx
push edi
mov dword [ebp - 0x437c], 0x3c
mov dword [ebp - 0x4368], esi
mov dword [ebp - 0x434c], esi
mov dword [ebp - 0x4344], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x30003825
lea eax, [ebp - 0x4340]
push eax
lea eax, [ebp - 0x433c]
push eax
push 0x80000000
lea eax, [ebp - 0x437c]
push eax
mov dword [ebp - 0x4340], esi
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
je 0x3000384d
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x433c]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x3000384d
lea eax, [ebp - 0x20c]
push eax
call fcn.30005198
mov ebx, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30005a28
leave
ret 4

Function at 0x30003c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.30001aac
test eax, eax
jl 0x30003cba
mov edx, dword [ebp - 4]
test esi, esi
jne 0x30003c8d
test edi, edi
jmp 0x30003ca8
test edi, edi
je 0x30003cb1
cmp edx, 1
je 0x30003c9b
cmp edx, 2
jne 0x30003cb1
mov ecx, dword [esi]
cmp ecx, 2
jb 0x30003caa
cmp word [ecx + edi - 2], 0
je 0x30003cb1
mov eax, 0x8000ffff
jmp 0x30003cba
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x30003cba
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14
Function at 0x30004631
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x30001a14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
push esi
xor ebx, ebx
mov dword [ebp - 0x40c], 0x201
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x3000469e
push 0x402
lea eax, [ebp - 0x408]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jl 0x3000469a
lea edi, [ebp - 0x408]
cmp edi, ebx
jne 0x300046a0
mov edi, esi
push 1
push 0
push edi
push 0x30001948
push 0x300012dc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x300046c1
mov ebx, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30005a28
leave
ret 4
Function at 0x3000550a
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x30006228
call fcn.30005da8
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x30005548
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, pe_nt_image_headers32
cmp word [ecx + 0x14], si
jne 0x30005548
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x30005548
mov eax, dword [ecx + 0x50]
jmp 0x30005569
mov ecx, 0x4550
cmp dx, cx
jne 0x30005575
mov ecx, pe_nt_image_headers32
cmp word [eax + 0x14], cx
jne 0x30005575
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x30005575
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x30005579
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.30005ded
ret 4

Function at 0x30005974
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30001a34
push 0x30001a18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x300059a9
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30001a14
push ebx
call edi
mov dword [0x30001a14], esi
test esi, esi
jne 0x30005a0d
mov dword [0x30001a14], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300070b0], 0x44bf19b1
pop ebx
leave
ret
Function at 0x30005a28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001a14]
jne 0x30005e01
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30007260], eax
mov dword [0x3000725c], ecx
mov dword [0x30007258], edx
mov dword [0x30007254], ebx
mov dword [0x30007250], esi
mov dword [0x3000724c], edi
mov word [0x30007278], ss
mov word [0x3000726c], cs
mov word [0x30007248], ds
mov word [0x30007244], es
mov word [0x30007240], fs
mov word [0x3000723c], gs
pushfd
pop dword [0x30007270]
mov eax, dword [ebp]
mov dword [0x30007264], eax
mov eax, dword [ebp + 4]
mov dword [0x30007268], eax
lea eax, [ebp + 8]
mov dword [0x30007274], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300071b0], 0x10001
mov eax, dword [0x30007268]
mov dword [0x30007164], eax
mov dword [0x30007158], 0xc0000409
mov dword [0x3000715c], 1
mov eax, dword [0x30001a14]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300070b0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300071a8], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001a48
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300071a8], 0
jne 0x30005eed
push 1
call sub.MSVCR90.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 0x4034b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c0e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
push dword [edi + 0x44]
lea ecx, [edi + 0x3c]
push 0
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x48]
call fcn.004e71fd
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x34]
call fcn.004e71fd
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
lea ecx, [edi + 0x14]
push 0
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x20]
call fcn.004e71fd
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov ecx, edi
push 0
mov dword [edi], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0xc]
call fcn.004e71fd
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4071b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5080d4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x118]
mov dword [ebp - 4], 9
push dword [esi + 8]
mov ecx, esi
push 0
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [esi + 0xc]
call fcn.004e71fd
add esp, 4
lea ecx, [edi + 0xf0]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [ebp - 4], 8
call fcn.004073b0
lea ecx, [edi + 0xc8]
mov byte [ebp - 4], 7
call fcn.004073b0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 6
call fcn.004073b0
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 5
call fcn.004073b0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 4
call fcn.00409110
mov byte [ebp - 4], 3
push dword [edi + 0x58]
lea ecx, [edi + 0x50]
push 0
mov dword [edi + 0x50], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x5c]
call fcn.004e71fd
add esp, 4
lea ecx, [edi + 0x3c]
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov byte [ebp - 4], 2
call fcn.00408fd0
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x34]
call fcn.004e71fd
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
lea ecx, [edi + 0x14]
push 0
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
call dword [0x5488cc]
push dword [edi + 0x20]
call fcn.004e71fd
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
mov ecx, edi
call dword [0x5488cc]
push dword [edi + 0xc]
call fcn.004e71fd
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret