joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a7c1
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
call fcn.00403e80
push 0x40
push esi
call fcn.00417712
add esp, 8
test eax, eax
jne 0x4110a4
test esi, esi
jne 0x411080
xor ecx, ecx
push ecx
push esi
mov ecx, edi
call fcn.00404160
mov al, 1
jmp 0x41124e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411085
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00404160
mov al, 1
jmp 0x41124e
add eax, 2
push eax
call fcn.0041dbac
mov esi, eax
add esp, 4
test esi, esi
je 0x4110ce
push 0x2c
push esi
call fcn.00417712
add esp, 8
test eax, eax
jne 0x4110d5
push esi
call fcn.00419da3
add esp, 4
xor al, al
jmp 0x41124e
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x2d
push eax
call fcn.00417712
add esp, 8
test eax, eax
je 0x4110c5
add eax, 2
push eax
call fcn.0041dde1
add esp, 4
lea ecx, [ebp - 0x418]
mov ebx, eax
call fcn.00403880
push 0x106
push 0x106
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.00404010
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ecx
lea ecx, [ebp - 0x418]
call fcn.004036d0
push esi
call fcn.00419da3
mov esi, dword [ebp - 0x418]
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x411164
push 0x42fea8
push esi
call fcn.00418ad4
add esp, 8
test eax, eax
je 0x411164
sub eax, esi
sar eax, 1
test eax, eax
jg 0x4111c1
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x200
push str..dll
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4111c1
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
call fcn.00404210
mov esi, dword [ebp - 0x418]
push esi
lea ecx, [ebp - 0x430]
call fcn.0040e280
push ebx
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x430]
call fcn.0040e400
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00414880
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x41c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411214
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x430]
cmp dword [eax - 0xc], 0
setne byte [ebp - 0x411]
call fcn.0040e340
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x411248
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x411]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret 8
Function at 0x4116a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a860
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00414160
mov dword [ebp - 4], 0
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x4116f2
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x411712
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0xc]
push eax
call fcn.00414880
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414880
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.00413ff0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
cmp esi, edi
je 0x41181e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [esi]
test eax, eax
je 0x41180f
mov ecx, dword [esi + 4]
cmp dword [ecx - 0xc], 0
je 0x41180f
push 0xf013f
push ecx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004035a0
test eax, eax
je 0x4117b2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x411808
push eax
call edi
mov dword [ebp - 0x18], 0
jmp 0x411808
cmp byte [ebp + 8], 0
mov edi, dword [ebp - 0x18]
je 0x4117d0
push str.LegacyDisable
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4117ec
mov byte [ebx + 4], al
jmp 0x4117ec
push 0
push 0
push 1
push 0
push str.LegacyDisable
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4117ec
mov byte [ebx + 4], 1
test edi, edi
je 0x411802
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 0x18], 0
jmp 0x411808
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
add esi, 0xc
cmp esi, dword [ebp - 0x2c]
jne 0x411760
mov edi, dword [ebp - 0x2c]
mov al, byte [ebp + 8]
cmp byte [ebx + 4], al
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
setne bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411848
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x411860
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x411893
push dword [ebp + 8]
mov edx, edi
push ecx
mov ecx, esi
call fcn.00415420
mov ecx, dword [ebp - 0x28]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
call fcn.00414eb0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0xf013f
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004035a0
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x41195b
xor bl, bl
jmp 0x4119a7
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x411967
lea eax, [edx + 0xd]
jmp 0x411995
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411970
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test esi, esi
je 0x4119b2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test esi, esi
je 0x4119b2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411e60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8fb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x411ea9
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
push 0x208
xor ebx, ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x411fbe
nop dword [eax + eax]
push 4
lea eax, [ebp - 0x21c]
push str.xmp.
push eax
call fcn.0041dc0d
add esp, 0xc
test eax, eax
jne 0x411f70
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push str._s_shellexContextMenuHandlers
push eax
call fcn.00405050
mov esi, dword [ebp - 0x224]
add esp, 8
mov edi, esp
mov dword [ebp - 0x22c], edi
lea ecx, [esi - 0x10]
call fcn.00406390
mov ecx, dword [ebp - 0x228]
add eax, 0x10
push 0x80000000
mov dword [edi], eax
call fcn.004124f0
push 0x208
lea eax, [ebp - 0x21c]
inc ebx
push 0
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x411f10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411fdd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
Function at 0x412000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a946
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x412049
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0xf013f
push str.SystemFileAssociations
push 0x80000000
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.004035a0
mov edi, dword [ebp - 0x234]
test eax, eax
jne 0x41214c
xor ebx, ebx
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x41214c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push str.SystemFileAssociations_s_shell
push eax
call fcn.00405050
mov esi, dword [ebp - 0x21c]
add esp, 8
mov edi, esp
mov dword [ebp - 0x228], edi
lea ecx, [esi - 0x10]
call fcn.00406390
mov ecx, dword [ebp - 0x224]
add eax, 0x10
push 0x80000000
mov dword [edi], eax
call fcn.004128a0
mov edi, dword [ebp - 0x234]
inc ebx
jmp 0x4120b0
test edi, edi
je 0x412157
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412176
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret
Function at 0x412c60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aa46
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00413540
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
push 0xf013f
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_HRBack
push 0x80000001
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.004035a0
mov ebx, dword [ebp - 0x220]
test eax, eax
jne 0x412d88
xor esi, esi
mov dword [ebp - 0x214], 0x100
nop
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412d88
lea ecx, [ebp - 0x260]
call fcn.0040ffe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x210]
push eax
call fcn.00410900
test al, al
je 0x412d69
lea eax, [ebp - 0x260]
mov dword [ebp - 0x248], Ordinal_9
push eax
mov ecx, edi
call fcn.00412db0
lea eax, [ebp - 0x260]
push eax
call fcn.00413f20
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x214], 0x100
inc esi
mov byte [ebp - 4], 0
call fcn.00411d20
jmp 0x412cf0
test ebx, ebx
je 0x412d93
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret
Function at 0x413320
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ab01
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004146a0
mov eax, dword [ebx]
xor edi, edi
push 0x208
push edi
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebx + 4], 0
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x413517
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea esi, [edi + 2]
nop dword [eax]
test eax, eax
jne 0x4134c9
cmp word [ebp - 0x21c], 0x2e
jne 0x4134c9
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4134c9
mov eax, dword [ebp - 0x220]
xor ecx, ecx
inc eax
mov dword [ebp - 0x220], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416873
mov ecx, dword [ebp - 0x220]
mov esi, eax
add ecx, ecx
push ecx
push 0
push esi
call fcn.00419210
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4134bb
push esi
lea ecx, [ebp - 0x228]
call fcn.00404260
mov dword [ebp - 4], 1
push dword [ebp - 0x228]
push eax
push ecx
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x234]
push eax
call fcn.00415290
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4134bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00416865
add esp, 4
mov esi, 2
push 0x208
lea eax, [ebp - 0x21c]
inc edi
push 0
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4133e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
Function at 0x413a60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42abb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x20119
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004035a0
test eax, eax
je 0x413ac1
xor bl, bl
jmp 0x413b70
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x413ad6
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [ebp + 8], 0x400
jge 0x413b10
push 0x400
lea ecx, [ebp + 0xc]
call fcn.00403fb0
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
push 0x43036c
lea ecx, [ebp - 0x18]
call fcn.00403650
test eax, eax
je 0x413b2a
xor bl, bl
jmp 0x413b54
push dword [esi - 8]
push esi
call fcn.0041ca0c
add esp, 8
test eax, eax
js 0x413b93
cmp eax, dword [esi - 8]
jg 0x413b93
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413b70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x413b7e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00404640
int3
Function at 0x415690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ad37
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
movzx eax, byte [edi + 4]
mov byte [ebx + 4], al
movzx eax, byte [edi + 5]
mov byte [ebx + 5], al
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0xc]
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x1c]
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
lea eax, [edi + 0x1c]
push eax
call fcn.00414160
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 3
lea eax, [edi + 0x28]
mov dword [ebp + 8], ecx
push ecx
push eax
call fcn.004158f0
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x30]
mov eax, dword [edi + 0x30]
lea esi, [ecx + 4]
mov dword [ebp + 8], ecx
mov dword [ecx], eax
mov ecx, dword [edi + 0x34]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ad37
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
movzx eax, byte [edi + 4]
mov byte [ebx + 4], al
movzx eax, byte [edi + 5]
mov byte [ebx + 5], al
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0xc]
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea esi, [ebx + 0x28]
mov byte [ebp - 4], 3
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004150d0
mov dword [esi], eax
mov ecx, dword [edi + 0x28]
mov dword [esi], ecx
mov dword [edi + 0x28], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x2c]
mov dword [esi + 4], eax
mov dword [edi + 0x2c], ecx
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x30]
mov eax, dword [edi + 0x30]
lea esi, [ecx + 4]
mov dword [ebp + 8], ecx
mov dword [ecx], eax
mov ecx, dword [edi + 0x34]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00406390
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4492ba
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
call fcn.00448165
pop ecx
test eax, eax
pop ecx
jne 0x4492ea
push dword [esp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4492e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
pop esi
ret

Function at 0x44d616
Capabilities:
Get hostname
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
xor eax, eax
mov al, bh
mov dword [ebp - 4], 0x10
movzx edi, al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
movzx esi, bl
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [ebp + 8]
cmp al, 0x73
jne 0x44d676
cmp ebx, 0x80000000
jae 0x44d66c
mov eax, 0x52cb9c
jmp 0x44d79c
mov eax, str.Windows_9x
jmp 0x44d79c
cmp al, 0x72
jne 0x44d69a
push edi
push esi
push 0x523720
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x14
jmp 0x44d796
cmp al, 0x6e
jne 0x44d6a6
lea eax, [ebp - 0x14]
jmp 0x44d79c
cmp al, 0x76
jne 0x44d6cc
shr ebx, 0x10
push ebx
push str.build__d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x10
jmp 0x44d796
cmp al, 0x6d
jne 0x44d740
movzx eax, word [ebp - 0x38]
sub eax, 0
je 0x44d733
dec eax
je 0x44d796
dec eax
je 0x44d727
dec eax
je 0x44d71b
sub eax, 3
je 0x44d711
sub eax, 3
je 0x44d707
dec eax
je 0x44d6fd
mov eax, 0x513ca4
jmp 0x44d79c
mov eax, str.IA32
jmp 0x44d79c
mov eax, str.AMD64
jmp 0x44d79c
mov eax, str.IA64
jmp 0x44d79c
movzx eax, word [ebp - 0x18]
push eax
push str.PPC_6_02d
jmp 0x44d6b3
movzx eax, word [ebp - 0x18]
push eax
push str.Alpha__d
jmp 0x44d6b3
push dword [ebp - 0x20]
push 0x52cb50
jmp 0x44d6b3
cmp ebx, 0x80000000
jae 0x44d772
shr ebx, 0x10
push ebx
push edi
lea eax, [ebp - 0x14]
push esi
push eax
push 0x52cb9c
push str._s__s__d._d_build__d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x20
jmp 0x44d796
push edi
lea eax, [ebp - 0x14]
push esi
push eax
push str.Windows_9x
push str._s__s__d._d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x1c
lea eax, [ebp - 0x138]
push eax
call sym.stub.exe__estrdup
pop ecx
pop edi
pop esi
pop ebx
leave
ret