joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417fac
xor ebx, ebx
cmp dword [0x42f78c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41f9cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41faac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429d18
push edi
call esi
cmp eax, ebx
je 0x41faac
push eax
call fcn.00417f3e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f78c], eax
call esi
push eax
call fcn.00417f3e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f790], eax
call esi
push eax
call fcn.00417f3e
mov dword [0x42f794], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00415ef5
test eax, eax
pop ecx
pop ecx
je 0x41f99a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004147af
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41f9cc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00417f3e
cmp eax, ebx
pop ecx
mov dword [0x42f79c], eax
je 0x41f9cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417f3e
pop ecx
mov dword [0x42f798], eax
mov eax, dword [0x42f798]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41fa51
cmp dword [0x42f79c], ecx
je 0x41fa51
push eax
call fcn.00417fb5
push dword [0x42f79c]
mov esi, eax
call fcn.00417fb5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41fa51
cmp edi, ebx
je 0x41fa51
call esi
cmp eax, ebx
je 0x41fa1e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41fa1e
test byte [ebp - 0x18], 1
jne 0x41fa51
lea eax, [ebp - 0x10]
push eax
call fcn.00415f2c
test eax, eax
pop ecx
je 0x41fa39
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004147af
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41fa48
or dword [ebp + 0x10], 0x200000
jmp 0x41fa8c
or dword [ebp + 0x10], 0x40000
jmp 0x41fa8c
mov eax, dword [0x42f790]
cmp eax, dword [ebp - 8]
je 0x41fa8c
push eax
call fcn.00417fb5
cmp eax, ebx
pop ecx
je 0x41fa8c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41fa8c
mov eax, dword [0x42f794]
cmp eax, dword [ebp - 8]
je 0x41fa8c
push eax
call fcn.00417fb5
cmp eax, ebx
pop ecx
je 0x41fa8c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f78c]
call fcn.00417fb5
cmp eax, ebx
pop ecx
je 0x41faac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41faae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x430062
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430058
mov eax, 1
add ebx, ebx
jne 0x43007b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430070
jne 0x43008c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430070
xor ecx, ecx
sub eax, 3
jb 0x4300a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430112
mov ebp, eax
add ebx, ebx
jne 0x4300ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4300b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4300dc
inc ecx
add ebx, ebx
jne 0x4300c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4300bd
jne 0x4300d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4300bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4300fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4300ed
jmp 0x43005e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4300fc
add edi, ecx
jmp 0x43005e
pop esi
mov edi, esi
mov ecx, 0xcc0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43011a
cmp byte [edi], 9
jne 0x43011a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43011f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x43018e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e668]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e6e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43014c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e6e4]
or eax, eax
je 0x430188
mov dword [ebx], eax
add ebx, 4
jmp 0x430169
call dword [esi + 0x3e6e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4301bf
cmp al, 0xef
ja 0x4301b2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x430194
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4301a1
popal
jmp 0x417220
Function at 0x30005792
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x3002eaf4], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x300057b5
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 4], eax
jmp 0x30005800
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
mov ebx, eax
push edi
push 0xffffffffffffffff
push ebx
push edi
push edi
call esi
cmp eax, edi
jne 0x300057d8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
inc eax
mov dword [ebp - 8], eax
add eax, eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.300242f3
test eax, eax
je 0x300058a0
push dword [ebp - 8]
push dword [ebp - 4]
push 0xffffffffffffffff
push ebx
push edi
push edi
call esi
mov eax, dword [ebp - 4]
mov cx, word [eax]
push 2
pop edx
cmp cx, 0x22
push 0x20
pop esi
jne 0x30005827
add eax, edx
mov cx, word [eax]
cmp cx, 0x22
je 0x30005823
cmp cx, di
je 0x30005833
add eax, edx
jmp 0x30005811
add eax, edx
jmp 0x30005833
cmp cx, si
jbe 0x30005833
add eax, edx
cmp word [eax], si
ja 0x3000582c
mov cx, word [eax]
cmp cx, di
je 0x30005840
cmp cx, si
jbe 0x30005823
push eax
mov dword [0x3002ed00], edi
call fcn.30007917
cmp dword [ebp - 8], edi
mov ebx, eax
je 0x3000585b
push dword [ebp - 4]
call fcn.300243f5
mov eax, ebx
and eax, 0x60
jne 0x300058a6
push 8
pop eax
test al, bl
jne 0x300058a6
mov edx, 0x2ee
test edx, ebx
je 0x300058a0
xor ecx, ecx
push 1
pop eax
shl eax, cl
test edx, eax
je 0x30005889
test ebx, eax
je 0x30005889
mov edi, ebx
sub edi, eax
test edx, edi
jne 0x300058a0
inc ecx
cmp ecx, esi
jb 0x30005874
test bl, 4
je 0x300058a4
mov ecx, ebx
mov eax, 0x100
and ecx, eax
cmp ecx, eax
je 0x300058a4
xor eax, eax
jmp 0x300058a6
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x300058ab
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x3002ed00]
push ebx
xor ebx, ebx
mov dword [0x3002ac1c], eax
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [0x3002ac18], eax
je 0x30005a3e
cmp dword [eax], 0x1c50
jne 0x30005a3e
cmp dword [eax + 0x20], ebx
je 0x30005a3e
cmp dword [eax + 0x14], ebx
je 0x30005a3e
cmp dword [eax + 0x1c], ebx
je 0x30005a3e
cmp dword [0x3002ed10], ebx
jne 0x30005909
cmp dword [eax + 0x24], ebx
je 0x30005a3e
cmp word [eax + 0xb6], bx
jne 0x30005a3e
cmp word [eax + 0x2be], bx
jne 0x30005a3e
cmp word [eax + 0x4c6], bx
jne 0x30005a3e
cmp word [eax + 0x6ce], bx
jne 0x30005a3e
cmp word [eax + 0x8d6], bx
jne 0x30005a3e
cmp word [eax + 0xade], bx
jne 0x30005a3e
cmp word [eax + 0xb4e], bx
jne 0x30005a3e
cmp word [eax + 0xd56], bx
jne 0x30005a3e
cmp word [eax + 0xdc6], bx
jne 0x30005a3e
cmp word [eax + 0xe36], bx
jne 0x30005a3e
cmp word [eax + 0x1416], bx
jne 0x30005a3e
cmp word [eax + 0x1c16], bx
jne 0x30005a3e
cmp byte [eax + 0xf3b], bl
jne 0x30005a3e
cmp byte [eax + 0x103f], bl
jne 0x30005a3e
cmp byte [eax + 0x1143], bl
jne 0x30005a3e
cmp byte [eax + 0x120f], bl
jne 0x30005a3e
cmp byte [eax + 0x1c4f], bl
jne 0x30005a3e
mov eax, dword [eax + 0x28]
push 1
test al, 0x20
pop ecx
je 0x300059e5
mov dword [0x3002eab4], ecx
test ah, 0x80
je 0x300059f0
mov dword [0x3002ed20], ecx
test eax, 0x20000
je 0x300059fd
mov dword [0x3002ed28], ecx
test ah, 0x20
je 0x30005a08
mov dword [0x3002ed14], ecx
test ah, 0x40
je 0x30005a13
mov dword [0x3002ed18], ecx
test eax, 0x40000
je 0x30005a20
mov dword [0x3002ed2c], ecx
test eax, 0x80000
je 0x30005a2d
mov dword [0x3002ed30], ecx
test eax, 0x100000
je 0x30005a3a
mov dword [0x3002ed34], ecx
mov eax, ecx
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x30007f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov al, byte [0x30007ee4]
push ebx
push esi
push edi
push 0xe
mov byte [ebp - 1], al
pop ecx
xor esi, esi
push 0xfffffffffffffff8
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov edi, dword [sym.imp.USER32.DLL_SetWindowPos]
push 3
push esi
push esi
push esi
mov ebx, eax
push esi
push 0xfffffffffffffffe
push ebx
call edi
push 3
push esi
push esi
push esi
push esi
push esi
push ebx
call edi
push 3
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], esi
je 0x30008050
push 0x30007ee8
call fcn.3000d6bd
test eax, eax
je 0x30008050
push dword [0x300320bc]
lea eax, [ebp - 0x5c]
push 0x30007ef8
push 0x19
push eax
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x160]
push eax
call fcn.3000aa29
test eax, eax
je 0x30008092
mov esi, 0x30007efc
push esi
call fcn.300254f8
mov edi, eax
lea eax, [ebp - 0x160]
push eax
call fcn.300254f8
lea ecx, [edi + eax + 1]
mov eax, 0x104
cmp ecx, eax
jg 0x30008092
push eax
lea eax, [ebp - 0x160]
push eax
push esi
call fcn.3000f1e5
lea eax, [ebp - 0x160]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 0xa
call dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
jmp 0x30008092
mov eax, dword [edi + 0x24]
cmp eax, esi
jne 0x3000805a
lea eax, [ebp - 1]
mov edi, dword [edi + 0x64]
cmp edi, esi
jne 0x30008064
lea edi, [ebp - 1]
push edi
push eax
push dword [0x300320bc]
lea eax, [ebp - 0x564]
push 0x30007f0c
push 0x401
push eax
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x18
lea eax, [ebp - 0x564]
push eax
call fcn.3000c2d9
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3000a246
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.DLL_GetDlgItem]
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
ret 8

Function at 0x3000ad01
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x3000ad77
cmp dword [ebp - 0x90], 4
push 1
jae 0x3000ad4a
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp dword [ebp - 0x90], 5
pop eax
mov dword [0x3002eaf4], eax
mov dword [0x300320c0], eax
jb 0x3000ad9e
cmp dword [ebp - 0x8c], eax
mov dword [0x3002eae8], eax
mov dword [0x3002eaf0], eax
jb 0x3000ad9e
mov dword [0x3002eaec], eax
leave
ret
push 1
pop eax
cmp dword [ebp - 0x84], eax
je 0x3000ad89
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp dword [ebp - 0x8c], 0
jbe 0x3000ad97
mov dword [0x3002eae8], eax
and dword [0x3002eaf4], 0
leave
ret
Function at 0x3000ae53
Capabilities:
Link many functions at runtime

Disassembly:
or dword [0x3002eae4], 0xffffffff
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x3002a670], ebx
mov dword [0x3002ead8], ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x3002eae0], eax
mov ecx, 0x7c6
xor eax, eax
mov edi, 0x3002b920
push 0x3002b94c
rep stosd dword es:[edi], eax
mov dword [0x3002ed08], ebx
mov dword [0x3002a678], ebx
call esi
call fcn.3000ad01
mov ecx, 0x341
xor eax, eax
mov edi, 0x3002ac18
rep stosd dword es:[edi], eax
mov ecx, 0x153
mov edi, 0x3002a6c8
rep stosd dword es:[edi], eax
mov eax, 0x3002a618
push eax
mov dword [0x3002ac08], eax
call esi
push 0x3002a638
call esi
mov edx, 0x200
xor eax, eax
mov ecx, edx
mov edi, 0x3002e2b0
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x3002dab0
rep stosd dword es:[edi], eax
push 0x3002b2c8
call fcn.3000c52c
push 0x3002b2d8
call fcn.3000c52c
push 0x3002b2e8
call fcn.3000c52c
push 0x106
push 0x10
call fcn.30024069
cmp eax, ebx
je 0x3000af20
mov ecx, eax
call fcn.3000b21d
jmp 0x3000af22
xor eax, eax
cmp eax, ebx
mov dword [0x3002a66c], eax
je 0x3000af3a
push 2
push 0x100
push 0x10
push eax
call fcn.30026f9d
push ebx
push 0x3002eab8
push ebx
push 0x30
call dword [sym.imp.USER32.DLL_SystemParametersInfoA]
call fcn.3000acc8
mov edi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x3000afe3
push 0x3000ada0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [0x3002ed4c], eax
je 0x3000afe3
push 0x3000adac
push eax
call esi
push 0x3000adbc
mov dword [0x3002ed3c], eax
push dword [0x3002ed4c]
call esi
push 0x3000adc8
mov dword [0x3002ed40], eax
push dword [0x3002ed4c]
call esi
push 0x3000add4
mov dword [0x3002ed44], eax
push dword [0x3002ed4c]
call esi
cmp dword [0x3002ed3c], ebx
mov dword [0x3002ed48], eax
je 0x3000afd5
cmp dword [0x3002ed40], ebx
je 0x3000afd5
cmp dword [0x3002ed44], ebx
je 0x3000afd5
cmp eax, ebx
jne 0x3000afe3
push dword [0x3002ed4c]
call edi
mov dword [0x3002ed4c], ebx
push 0x3000ade0
call fcn.3000fe48
cmp eax, ebx
mov dword [0x3002a664], eax
je 0x3000b015
push 0x3000adec
push eax
call esi
cmp eax, ebx
mov dword [0x3002a668], eax
jne 0x3000b015
push dword [0x3002a664]
call edi
mov dword [0x3002a664], ebx
push 0x3000adfc
call fcn.3000fe48
cmp eax, ebx
mov dword [0x3002a650], eax
je 0x3000b095
push 0x3000ae08
push eax
call esi
push 0x3000ae20
mov dword [0x3002a660], eax
push dword [0x3002a650]
call esi
push 0x3000ae34
mov dword [0x3002a65c], eax
push dword [0x3002a650]
call esi
push 0x3000ae44
mov dword [0x3002a658], eax
push dword [0x3002a650]
call esi
cmp dword [0x3002a660], ebx
mov dword [0x3002a654], eax
je 0x3000b087
cmp dword [0x3002a65c], ebx
je 0x3000b087
cmp dword [0x3002a658], ebx
je 0x3000b087
cmp eax, ebx
jne 0x3000b095
push dword [0x3002a650]
call edi
mov dword [0x3002a650], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x3000b868
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.3000b769
test eax, eax
je 0x3000b94f
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 0xc]
call fcn.300254dd
lea eax, [ebp - 0x110]
push eax
call fcn.3000ea49
mov edi, eax
cmp byte [edi], 0x5c
jne 0x3000b94f
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x110]
push ebx
push eax
mov byte [edi], bl
push dword [ebp - 4]
inc edi
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x3000b94f
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x3000b920
dec eax
je 0x3000b903
dec eax
jne 0x3000b945
lea eax, [esi + 8]
push 3
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp + 0xc]
call fcn.3000b648
test eax, eax
je 0x3000b945
jmp 0x3000b93f
push 1
lea eax, [esi + 8]
pop ebx
push ebx
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp + 0xc]
call fcn.3000b648
test eax, eax
je 0x3000b945
mov dword [esi], ebx
jmp 0x3000b945
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x3000b945
mov dword [esi], 1
push dword [ebp + 0xc]
call dword [entry0]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x3000b955
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
shl esi, 2
lea eax, [ebp - 8]
push esi
push eax
call fcn.300242f3
test eax, eax
je 0x3000ba8d
mov ecx, esi
push edi
mov edi, dword [ebp - 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
mov dword [ebp - 0xc], edi
jle 0x3000ba84
mov eax, dword [ebp + 8]
push 1
pop ebx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov eax, dword [ebp - 8]
cmp dword [eax + edi*4], 0
jne 0x3000ba71
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x3000b9c2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x3000b9df
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x3000b9df
and dword [ebp - 4], 0
cmp edi, dword [ebp + 0xc]
jge 0x3000ba5b
add esi, 0xfffffff8
mov eax, dword [ebp + 8]
push dword [eax]
push dword [esi + 8]
call fcn.3000ef68
test eax, eax
jne 0x3000ba4f
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [eax + edi*4], ebx
mov edx, dword [ebp - 4]
cmp edx, ecx
je 0x3000ba4f
mov eax, dword [esi + 4]
sub eax, ecx
je 0x3000ba2d
dec eax
je 0x3000ba18
dec eax
jne 0x3000ba4f
push 3
jmp 0x3000ba19
push ebx
lea eax, [esi - 4]
push esi
push eax
push dword [esi + 0xc]
push edx
call fcn.3000b648
test eax, eax
je 0x3000ba4f
jmp 0x3000ba4c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [esi - 4]
push eax
push ecx
push ecx
push dword [esi + 0xc]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x3000ba4f
mov dword [esi - 8], ebx
inc edi
add esi, 0x18
cmp edi, dword [ebp + 0xc]
jl 0x3000b9e7
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x3000ba6e
test eax, eax
je 0x3000ba6e
push eax
call dword [entry0]
mov edi, dword [ebp - 0xc]
inc edi
add esi, 0x18
cmp edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], esi
jl 0x3000b9a6
push dword [ebp - 8]
call fcn.300243f5
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x3000bbfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x3002eaf4], esi
je 0x3000bc87
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.3000b769
test eax, eax
je 0x3000bc87
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x3000bc87
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x800
push eax
lea eax, [ebp - 0x10]
push 0x3002e2b0
push eax
push esi
push 0x3000bbde
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x3000bc7e
cmp dword [ebp - 0x10], 1
je 0x3000bc71
mov word [0x3002e2b0], si
jmp 0x3000bc7e
mov eax, dword [ebp + 8]
shr eax, 1
mov word [eax*2 + 0x3002e2ae], si
push dword [ebp - 4]
call dword [entry0]
pop esi
leave
ret 4
Function at 0x3000bc8c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [0x3002ac18]
add eax, 0xf3c
push eax
push 0x3002a128
call fcn.3000b868
mov eax, dword [0x3002ac18]
test byte [eax + 0x28], 1
je 0x3000bcb1
jmp fcn.3000ba93
add eax, 0x1040
push eax
push 0x3002a140
call fcn.3000b868
ret

Function at 0x3000c2d9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
and dword [ebp - 0x3c], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
test esi, esi
rep stosd dword es:[edi], eax
je 0x3000c352
cmp dword [0x3002eab4], eax
jne 0x3000c30b
push esi
call fcn.3000ee4c
test eax, eax
je 0x3000c315
push esi
call fcn.3000c1ca
test eax, eax
jne 0x3000c352
lea eax, [ebp - 0x860]
push 0x824
push eax
push esi
call fcn.300254dd
lea eax, [ebp - 0x860]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
test eax, eax
jne 0x3000c352
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
leave
ret 4

Function at 0x3000c53e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x3000c5b4
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x3000c5a9
cmp eax, edi
je 0x3000c5a9
push edi
push eax
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x3000c5a9
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x3000c5a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 4]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
xor eax, eax
pop ebx
jmp 0x3000c5b6
push 1
pop eax
jmp 0x3000c5b6
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x3000ca08
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x3000ca9d
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x3000ca9d
push edi
call fcn.3000ea6c
cmp eax, edi
je 0x3000ca9d
sub eax, edi
push esi
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sar eax, 1
push esi
push esi
push eax
push edi
push esi
mov dword [ebp - 8], eax
push dword [0x3002eacc]
call ebx
mov esi, eax
lea eax, [ebp - 4]
inc esi
push esi
push eax
call fcn.300242f3
test eax, eax
je 0x3000ca9d
mov edi, dword [ebp - 4]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
push eax
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
push dword [0x3002eacc]
call ebx
test eax, eax
je 0x3000ca95
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.300243f5
pop edi
pop esi
pop ebx
leave
ret 8