joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0xe5a5e44
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x209d41e3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x403a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x403b63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x403b30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403b1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x403b12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x403b33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x403b59
push eax
call fcn.004042c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004042c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x403baf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040438d
jmp 0x403bb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x403be0
test eax, eax
je 0x403bdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040432a
push ebx
call fcn.004042c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004036d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x4a8d7537
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x32883f57
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40e5a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4170a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2b4], 0
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x54]
or edx, 0x8000
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x40e603
jmp 0x40e71c
push 0x27
lea eax, [ebp - 0x2b0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x8c
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x40e635
jmp 0x40e71c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa0]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa0]
shr edx, 0x10
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c]
shr eax, 0x10
push eax
push str._d._d._d._d
push 0x24
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401ea0
add esp, 0x1c
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x40e69a
jmp 0x40e71c
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x260]
push ecx
push str._lsApplicationsCache_lsv_ls.mst
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040267a
add esp, 0x14
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x40e6d0
jmp 0x40e71c
push 1
push 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402c4e
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x40e71c
cmp dword [ebp + 0x10], 1
jne 0x40e71c
mov eax, dword [ebp + 0x14]
push eax
xor ecx, ecx
cmp dword [ebp + 0x10], 0
sete cl
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040e5a0
add esp, 0x10
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403653
mov esp, ebp
pop ebp
ret
Function at 0x410d60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4170a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00410640
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x410d9a
mov eax, dword [ebp - 0x220]
push eax
call fcn.004037e1
add esp, 4
test eax, eax
jne 0x410dad
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x410eaa
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x220]
push eax
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040267a
add esp, 0xc
mov dword [ebp - 0x218], 0
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00403800
add esp, 0xc
mov dword [ebp - 0x21c], 0x206
mov dword [ebp - 0x224], 1
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x214]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e93
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
push 0x414800
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e86
lea ecx, [ebp - 0x210]
push ecx
push str._sTemp
lea edx, [ebp + 0xc]
push edx
call fcn.0040267a
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.004037e1
add esp, 4
jmp 0x410eaa
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x410ea8
mov edx, dword [ebp - 0x220]
push edx
call fcn.00401f72
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403653
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x668657ef
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x4fa21c7b
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403772
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
and dword [ebx], esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
cmp dword [ebp + 0xc], esi
je 0x4037b7
cmp dword [0x412c54], esi
je 0x40393d
push 0x412c48
call dword [sym.imp.libav.dll_Ordinal_24]
pop ecx
xor ecx, ecx
cmp eax, 1
cmove ecx, edi
mov eax, ecx
jmp 0x40393f
test edi, edi
je 0x4037d4
push edi
call dword [sym.imp.libav.dll_Ordinal_15]
xor ecx, ecx
mov esi, eax
call fcn.00406713
push edi
call dword [sym.imp.libav.dll_Ordinal_9]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov word [ebp - 0xc], 0x79
mov word [ebp - 0x17], 0x7361
mov dword [ebp - 0x1c], 0x61746144
mov word [ebp - 0x11], 0x6365
mov word [ebp - 0x14], 0x6944
mov word [ebp - 0xf], 0x6f74
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x18], 0x62
call fcn.00406f1e
cmp dword [0x412c54], 0
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], eax
mov ecx, 0x412c48
je 0x403835
push ecx
call dword [sym.imp.libav.dll_Ordinal_25]
pop ecx
mov ecx, 0x412c48
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push dword [ebp + 0x10]
stosd dword es:[edi], eax
call dword [sym.imp.libav.dll_Ordinal_26]
pop ecx
pop ecx
test eax, eax
je 0x403866
mov dword [ebx], 1
test esi, esi
je 0x40385f
push esi
call dword [sym.imp.libav.dll_Ordinal_16]
pop ecx
xor eax, eax
jmp 0x40393f
call dword [sym.imp.libav.dll_Ordinal_11]
mov edi, eax
test edi, edi
je 0x40384d
test esi, esi
je 0x403888
push esi
push edi
call dword [sym.imp.libav.dll_Ordinal_14]
push esi
call dword [sym.imp.libav.dll_Ordinal_16]
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.libav.dll_Ordinal_18]
add esp, 0x10
push edi
test eax, eax
je 0x4038af
call dword [sym.imp.libav.dll_Ordinal_9]
mov dword [ebx], 1
jmp 0x40385e
call dword [sym.imp.libav.dll_Ordinal_8]
pop ecx
test eax, eax
je 0x4038bd
push edi
jmp 0x4038a1
push dword [ebp - 4]
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x23], 0x7574
mov dword [ebp - 0x3d], 0x63657272
mov word [ebp - 0x45], 0x6261
mov dword [ebp - 0x41], 0x6f632065
mov dword [ebp - 0x2c], 0x20752528
mov dword [ebp - 0x28], 0x6e676973
mov dword [ebp - 0x20], 0x297365
mov dword [ebp - 0x34], 0x616f6c65
mov dword [ebp - 0x30], 0x20646564
mov word [ebp - 0x48], 0x6144
mov word [ebp - 0x43], 0x7361
mov dword [ebp - 0x39], 0x20796c74
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x35], 0x72
mov byte [ebp - 0x46], 0x74
call fcn.00407649
push 0x40f3c0
call fcn.00407649
add esp, 0xc
mov ecx, edi
call fcn.00406713
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e25
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x20]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x20], 0x47535457
mov dword [ebp - 0xb], 0x6f697373
mov dword [ebp - 0x16], 0x6f436576
mov word [ebp - 0x1c], 0x7465
mov word [ebp - 0x19], 0x7463
mov word [ebp - 0x10], 0x6c6f
mov word [ebp - 0xd], 0x6553
mov word [ebp - 0x12], 0x736e
mov dword [ebp - 7], 0x64496e
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x1a], 0x41
call fcn.00406d77
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e8d
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x406ecf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 7], 0x6c6c642e
mov word [ebp - 0xc], 0x696c
mov byte [ebp - 3], 0
mov word [ebp - 9], 0x7661
mov byte [ebp - 0xa], 0x62
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret

Function at 0x406f4e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 6
lea eax, [ebp - 8]
push 0x411d6c
push eax
mov word [ebp - 6], 0x6576
xor ebx, ebx
mov word [ebp - 3], 0x2d
mov byte [ebp - 4], 0x6c
mov word [ebp - 8], 0x6564
mov dword [ebp - 0x13], 0x726f7078
mov dword [ebp - 0xf], 0x646574
mov byte [ebp - 0x14], 0x65
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x406fcb
mov ecx, 0x411d8c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406fbd
test dl, dl
je 0x406fc2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406fbd
add eax, 2
add ecx, 2
test dl, dl
jne 0x406f9f
jmp 0x406fc2
sbb ebx, ebx
or ebx, 1
mov eax, str.devel_clamav_0.98.6
test ebx, ebx
jne 0x406fd0
mov eax, str.devel_clamav_0.97_408_ge11f7cc
pop ebx
leave
ret
Function at 0x406fd3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.libav.dll_Ordinal_19]
mov ecx, dword [sym.imp.libav.dll_Ordinal_1003]
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ecx]
mov edi, eax
call dword [sym.imp.libav.dll_Ordinal_44284]
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40718d
lea edx, [ebp - 0x20]
mov ecx, eax
mov word [ebp - 0x1f], 0x7461
mov dword [ebp - 0x12], 0x79726f
mov word [ebp - 0x17], 0x7269
mov word [ebp - 0x14], 0x7463
mov word [ebp - 0x19], 0x4465
mov byte [ebp - 0x15], 0x65
mov word [ebp - 0x1c], 0x6162
mov byte [ebp - 0x20], 0x44
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x1d], 0x61
call fcn.00406f1e
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], ebx
je 0x40718d
mov esi, dword [eax + 8]
mov dword [ebp - 8], esi
mov edx, esi
mov ecx, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40707c
test al, al
je 0x407081
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40707c
add ecx, 2
add edx, 2
test al, al
jne 0x40705e
jmp 0x407081
sbb ebx, ebx
or ebx, 1
test ebx, ebx
je 0x40718d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40708e
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40709c
sub edx, esi
lea eax, [ecx + 0x1e]
add eax, edx
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
push dword [ebp - 8]
mov ebx, dword [sym.imp.MSVCR110.dll_sprintf]
mov esi, eax
push 0x411dd4
push esi
call ebx
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 0x18
test eax, eax
je 0x4070e5
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x411de4
push esi
call ebx
add esp, 0xc
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x407185
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x407185
push edi
push 0x411df4
push esi
call ebx
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 0x14
test eax, eax
je 0x40712c
push edi
push 0x411e04
push esi
call ebx
add esp, 0xc
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x40716b
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40716b
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov esi, dword [ebp - 8]
pop ecx
mov ecx, dword [esi + 4]
cmp ecx, dword [ebx + 4]
jbe 0x407162
mov eax, dword [ebp - 4]
mov edi, dword [eax + 8]
push ebx
call dword [sym.imp.libav.dll_Ordinal_2]
jmp 0x40717b
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [eax + 8]
pop ecx
push esi
call dword [sym.imp.libav.dll_Ordinal_2]
jmp 0x40718c
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push edi
call dword [sym.imp.MSVCR110.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
test ecx, ecx
je 0x4071a3
call fcn.00406efc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402530
Capabilities:
Enumerate gui resources

Disassembly:
test byte [0x4a0438], 1
jne 0x402561
or dword [0x4a0438], 1
push 0x4778a0
mov dword [0x4a0430], 0x47ec74
mov dword [0x4a0434], 0
call fcn.0045162a
add esp, 4
push str.RandomLogicInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a0434], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40258e
push esi
push 0x4025a0
call dword [sym.imp.USER32.dll_EnumWindows]
xor al, al
ret
mov al, 1
ret

Function at 0x402ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402af9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402b30
lea ebx, [ebx]
cmp esi, eax
jae 0x402b34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402b20
cmp esi, eax
jb 0x402b3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402f80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49a7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x402fb6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004507b7
add esp, 0x40c
ret
test edi, edi
je 0x402f9f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004516d6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40301f
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402f9f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403024
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f9f
mov eax, dword [esp]
test eax, eax
je 0x40305c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004507b7
add esp, 0x40c
ret
Function at 0x403080
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49a7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x4030b6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004507b7
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004516d6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40311b
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40309f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40309f
mov eax, dword [esp]
test eax, eax
je 0x40314a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004507b7
add esp, 0x40c
ret

Function at 0x403170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49a7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x403238
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.004516d6
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403238
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x403252
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c21
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.00454dc0
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x40326a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004507b7
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403257
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40328f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004507b7
add esp, 0x40c
ret
Function at 0x4032b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x49a7f0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x4032e6
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004507b7
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.004516d6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032cf
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032cf
mov eax, dword [esp]
test eax, eax
je 0x403353
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.004507b7
add esp, 0x410
ret