joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094932
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100a9e40
mov eax, dword [0x100d800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1009a2b0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10094974
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10094ad0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100a9bb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100dcee0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1009d02f
mov ecx, dword [esi*4 + 0x100dcee0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10094ac9
cmp eax, dword [edi + ecx + 0x24]
jne 0x10094ac9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10094ac9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009d02f
add esp, 0x14
test edx, edx
jl 0x10094ac9
jg 0x10094a3f
test eax, eax
jb 0x10094ac9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10094ac9
jl 0x10094a59
cmp dword [ebp - 0x1008], eax
ja 0x10094ac9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10094a77
test ebx, ebx
je 0x10094ab0
cmp ecx, edi
jae 0x10094ab0
mov al, byte [ecx]
cmp al, 0xd
jne 0x10094a91
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10094a9d
cmp byte [ecx + 1], 0xa
jne 0x10094a9d
inc ecx
jmp 0x10094a9d
movzx eax, al
movsx eax, byte [eax + 0x100d8310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10094a77
cmp edx, ebx
jne 0x10094a77
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10094ace
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006d58e
leave
ret

Function at 0x10098da4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ba26c
push 0x100ba264
push 0x100b6748
push 0x1e
call fcn.10098bd1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10098dd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b42b0]
call esi
jmp 0x10098dde
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10098e22
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ba27c
push 0x100ba274
push str.FlsGetValue
push 0x20
call fcn.10098bd1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10098e59
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b42b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1009c3bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009c22c

Function at 0x1009c4cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100dcee0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009c50d
cmp byte [ebx], 0xa
jne 0x1009c50d
or byte [eax + edi + 0x28], 4
jmp 0x1009c512
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1009c610
mov al, byte [edx]
cmp al, 0x1a
je 0x1009c5f2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009c541
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1009c566
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1009c570
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1009c523
jmp 0x1009c610
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009c5ed
cmp dword [ebp - 0xc], 0
je 0x1009c5ed
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100dcee0]
test byte [eax + edi + 0x28], 0x48
je 0x1009c5c7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009c5b2
mov byte [esi], dl
jmp 0x1009c5c3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100dcee0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009c610
cmp byte [ebp - 1], 0xa
jne 0x1009c5d6
cmp esi, ebx
jne 0x1009c5d6
mov byte [esi], 0xa
jmp 0x1009c60f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009d04d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009c610
mov byte [esi], 0xd
jmp 0x1009c60f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100dcee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009c60c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009c610
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009c619
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100dcee0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009c65c
cmp word [esi], dx
jne 0x1009c65c
or byte [edi + eax + 0x28], 4
jmp 0x1009c661
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1009c7b4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1009c794
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1009c6a3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009c6d9
cmp eax, edx
jae 0x1009c6e5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1009c67b
jmp 0x1009c7b4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009c790
cmp dword [ebp - 0x14], 0
je 0x1009c790
mov eax, dword [ebx*4 + 0x100dcee0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1009c768
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1009c731
mov word [esi], cx
jmp 0x1009c764
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100dcee0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100dcee0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100dcee0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1009c7b4
pop ebx
cmp word [ebp - 4], bx
jne 0x1009c779
cmp esi, dword [ebp + 0xc]
jne 0x1009c779
mov word [esi], bx
jmp 0x1009c7b1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009d04d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1009c7b4
push 0xd
jmp 0x1009c7ad
mov ecx, dword [ebx*4 + 0x100dcee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009c7ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009c7b4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a13a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a143d
push ebx
push esi
call fcn.100a1369
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1009a688
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a13ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a143c
push edi
push eax
call fcn.1009947b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a140a
call fcn.100988eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a143b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009a688
add esp, 0x20
test eax, eax
jne 0x100a1429
push edi
call fcn.100988eb
jmp 0x100a1431
push ebx
call fcn.100988eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a1440
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a1451
pop esi
ret
push ebx
push edi
push esi
call fcn.100a1369
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1009947b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a1479
push ebx
push esi
push edi
call fcn.10083c30
add esp, 0xc
push 0
call fcn.100988eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a183d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a148e
Function at 0x100a8cd1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a8c4d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a8e49
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a8e49
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100a8df8
jg 0x100a8d2a
test eax, eax
je 0x100a8dee
push 1
push 0x1000
call fcn.1009888e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100a8d50
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100a8de5
push 0x8000
push ebx
call fcn.100a8b7e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100a8d7c
jg 0x100a8d77
cmp ecx, 0x1000
jb 0x100a8d7c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009be86
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a8dc1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100a8d77
jl 0x100a8da8
test ecx, ecx
jne 0x100a8d69
push dword [ebp - 0xc]
push ebx
call fcn.100a8b7e
push esi
call fcn.100988eb
add esp, 0xc
xor edi, edi
jmp 0x100a8e5a
cmp byte [edi + 0x24], 0
je 0x100a8dd8
cmp dword [edi + 0x20], 5
jne 0x100a8dd8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100a8de3
mov edi, dword [edi + 0x18]
jmp 0x100a8de5
xor edi, edi
push esi
call fcn.100988eb
pop ecx
jmp 0x100a8e5a
test ecx, ecx
jg 0x100a8dba
jl 0x100a8df8
test eax, eax
jae 0x100a8dba
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009d04d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a8e1b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100a8dba
jmp 0x100a8e52
push ebx
call fcn.1009e5e1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a8dba
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100a8e5a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100a8e57
mov edi, dword [edi + 0x18]
jmp 0x100a8e5a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009d04d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013c0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013d2
mov eax, dword [0x4ae08b]
shl eax, 2
mov dword [0x4ae08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0048b8e0
pop edx
call fcn.0048b844
call fcn.0048b920
push 0
call fcn.0048cf10
pop ecx
push 0x4ae034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4ae093], eax
push 0
jmp fcn.00493520
Function at 0x402b78
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
add esp, 0xfffffc00
cmp byte [0x4aedc0], 0
jne 0x402c15
mov esi, 0x4af1c1
mov edi, esp
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
push 0x400
lea eax, [esp + 4]
push eax
push str.374DE290_123F_4565_9164_39C4925E467B
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [esp], 0
jne 0x402be3
push 0x400
lea edx, [esp + 4]
push edx
push str.Desktop
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [esp], 0
jne 0x402c01
push 0x400
call fcn.00402b58
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00411b40
add esp, 0xc
push 0x400
push 0x4aedc0
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov eax, 0x4aedc0
add esp, 0x400
pop edi
pop esi
ret
Function at 0x40b0d8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff2c0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b305
cmp ebx, 1
jne 0x40b101
cmp dword [ebp + 8], 0
je 0x40b305
cmp ebx, 2
jne 0x40b11a
cmp dword [ebp + 0x14], 0
je 0x40b305
cmp dword [ebp + 0x18], 1
jb 0x40b305
cmp ebx, 1
je 0x40b128
cmp ebx, 2
jne 0x40b305
cmp byte [eax], 0
je 0x40b305
mov esi, 0x4bb2c9
lea edi, [ebp - 0x400]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
push 0x400
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00411b40
add esp, 0xc
push 0x400
lea edx, [ebp - 0x400]
push edx
call fcn.00412194
add esp, 8
lea edi, [ebp - 0x800]
mov esi, 0x4bb6ca
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x940]
mov ecx, 0x50
mov esi, 0x4bbacc
lea eax, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
push eax
push str._s.
lea edx, [ebp - 0x800]
push 0x400
push edx
call fcn.0048ebac
add esp, 0x10
lea ecx, [ebp - 0x940]
push ecx
lea eax, [ebp - 0x800]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40b305
push esi
mov esi, 0x4bbc0c
lea edi, [ebp - 0xd40]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x914]
push eax
lea edx, [ebp - 0x400]
push edx
push str._s_s
push 0x400
lea ecx, [ebp - 0xd40]
push ecx
call fcn.0048ebac
add esp, 0x14
mov eax, dword [ebp - 0x940]
test al, 0x10
je 0x40b29c
test ah, 4
jne 0x40b2ea
lea eax, [ebp - 0x914]
mov edx, 0x4c0216
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40b24b
test cl, cl
je 0x40b2ea
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40b24b
add eax, 2
add edx, 2
test cl, cl
jne 0x40b22b
je 0x40b2ea
lea eax, [ebp - 0x914]
mov edx, 0x4c0218
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40b27c
test cl, cl
je 0x40b2ea
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40b27c
add eax, 2
add edx, 2
test cl, cl
jne 0x40b25c
je 0x40b2ea
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0xd40]
push eax
mov edx, dword [ebp + 0x14]
push edx
push ebx
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b0d8
add esp, 0x14
jmp 0x40b2ea
push str.prefs.js
lea edx, [ebp - 0x914]
push edx
call fcn.0048c010
add esp, 8
test eax, eax
jne 0x40b2ea
cmp ebx, 1
jne 0x40b2ce
lea ecx, [ebp - 0xd40]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ac04
add esp, 8
jmp 0x40b2ea
cmp ebx, 2
jne 0x40b2ea
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
lea eax, [ebp - 0xd40]
push eax
call fcn.0040aeb8
add esp, 0xc
lea edx, [ebp - 0x940]
push edx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40b1ce
push esi
call sub.KERNEL32.DLL_FindClose
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b30c
Capabilities:
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40b3fc
lea edi, [ebp - 0x400]
mov esi, 0x4bc00d
mov ecx, 0x100
lea eax, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
push 0x400
push eax
push str._LOCALAPPDATA_MozillaFirefoxProfiles
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
push 0
push 0
push 1
lea edx, [ebp - 0x400]
push edx
push ebx
call fcn.0040b0d8
add esp, 0x14
lea ecx, [ebp - 0x400]
push 0x400
push ecx
push str._APPDATA_MozillaFirefoxProfiles
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
push 0
push 0
push 1
lea eax, [ebp - 0x400]
push eax
push ebx
call fcn.0040b0d8
add esp, 0x14
lea edx, [ebp - 0x400]
push 0x400
push edx
push 0x4c0159
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [ebp - 0x400], 0
je 0x40b3fc
push 0x400
lea ecx, [ebp - 0x400]
push ecx
call fcn.00412194
add esp, 8
lea eax, [ebp - 0x400]
push 0x400
push 0x4c0233
push eax
call fcn.00411af8
add esp, 0xc
lea edx, [ebp - 0x400]
push 0
push 0
push 1
push edx
push ebx
call fcn.0040b0d8
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b404
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x4c04f0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.0048c270
test ebx, ebx
jne 0x40b42f
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40b4b9
mov word [ebp - 0x14], 8
xor ecx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x14], 8
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
je 0x40b474
lea edx, [ebp - 0x28]
push edx
push DeleteCriticalSection
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call fcn.004117d8
add esp, 0x14
test eax, eax
jne 0x40b49c
push ebx
call fcn.0048be70
pop ecx
push eax
push ebx
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x28]
push ecx
call sub.ADVAPI32.DLL_RegSetValueExA
mov eax, dword [ebp - 0x28]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x14], 0
jmp 0x40b4af
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b4c0
Capabilities:
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
mov eax, 0x4c0534
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.0048c270
test ebx, ebx
jne 0x40b4ee
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40b65c
lea edi, [ebp - 0x430]
mov esi, 0x4bc40e
mov ecx, 0x100
lea eax, [ebp - 0x430]
rep movsd dword es:[edi], dword [esi]
push 0x400
push eax
push str._LOCALAPPDATA_OperaOperaoperaprefs.ini
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x430]
lea eax, [ebp - 4]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
xor edx, edx
mov dl, al
lea eax, [ebp - 4]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
call fcn.00498000
pop ecx
test cl, cl
je 0x40b607
push 0x400
lea eax, [ebp - 0x430]
push eax
push str._APPDATA_OperaOperaoperaprefs.ini
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x20], 0x14
lea edx, [ebp - 0x430]
lea eax, [ebp - 8]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
xor edx, edx
mov dl, al
lea eax, [ebp - 8]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
call fcn.00498000
pop ecx
test cl, cl
je 0x40b607
push 0x400
lea eax, [ebp - 0x430]
push eax
push 0x4c0159
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [ebp - 0x430], 0
je 0x40b607
push 0x400
lea edx, [ebp - 0x430]
push edx
call fcn.00412194
add esp, 8
lea ecx, [ebp - 0x430]
push 0x400
push 0x4c02b3
push ecx
call fcn.00411af8
add esp, 0xc
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x430]
lea eax, [ebp - 0xc]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00498000
pop ecx
test cl, cl
je 0x40b652
lea eax, [ebp - 0x430]
push eax
push ebx
push str.Home_URL
push str.User_Prefs
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b664
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40b755
test esi, esi
je 0x40b755
cmp dword [ebp + 0x10], 0
je 0x40b755
cmp dword [ebp + 0x14], 0
jb 0x40b755
push esi
mov esi, 0x4bc80f
lea edi, [ebp - 0x404]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x400
push str.SoftwareUltra_Downloads
lea eax, [ebp - 0x404]
push eax
call fcn.00411b40
add esp, 0xc
lea edx, [ebp - 0x404]
push 0x400
push 0x4c0320
push edx
call fcn.00411af8
add esp, 0xc
lea ecx, [ebp - 0x404]
push 0x400
push ebx
push ecx
call fcn.00411af8
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x404]
push ecx
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
je 0x40b732
lea eax, [ebp - 4]
lea edx, [ebp - 0x404]
push eax
push DeleteCriticalSection
push 0
push edx
push reloc.OLEAUT32.DLL_SysReAllocString
call fcn.004117d8
add esp, 0x14
test eax, eax
jne 0x40b755
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
push esi
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret