joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10157f50
Capabilities:
Hash data using sha224

Disassembly:
jmp 0x10157f50
mov eax, 0x74
call fcn.101aa6d0
mov eax, dword [0x102745f0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
push esi
mov esi, dword [esp + 0x7c]
push edi
test eax, eax
mov edi, 0x102790e0
push 0x70
cmovne edi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.101aad60
push dword [esp + 0x90]
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x20], 0xc1059ed8
mov dword [esp + 0x24], 0x367cd507
mov dword [esp + 0x28], 0x3070dd17
mov dword [esp + 0x2c], 0xf70e5939
mov dword [esp + 0x30], 0xffc00b31
mov dword [esp + 0x34], 0x68581511
mov dword [esp + 0x38], 0x64f98fa7
mov dword [esp + 0x3c], 0xbefa4fa4
mov dword [esp + 0x8c], 0x1c
call sym.libcrypto_1_1.dll_SHA256_Update
lea eax, [esp + 0x20]
push eax
push edi
call sym.libcrypto_1_1.dll_SHA256_Final
lea eax, [esp + 0x28]
push 0x70
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov ecx, dword [esp + 0xa0]
add esp, 0x28
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.101aa6fb
add esp, 0x74
ret

Function at 0x101580e0
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x101580e0
mov eax, 0x74
call fcn.101aa6d0
mov eax, dword [0x102745f0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
push esi
mov esi, dword [esp + 0x7c]
push edi
test eax, eax
mov edi, 0x102790fc
push 0x70
cmovne edi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.101aad60
push dword [esp + 0x90]
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call sym.libcrypto_1_1.dll_SHA256_Update
lea eax, [esp + 0x20]
push eax
push edi
call sym.libcrypto_1_1.dll_SHA256_Final
lea eax, [esp + 0x28]
push 0x70
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov ecx, dword [esp + 0xa0]
add esp, 0x28
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.101aa6fb
add esp, 0x74
ret
Function at 0x10193270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov ecx, ebx
push edi
mov esi, ebp
sub ecx, 4
jb 0x101932a1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x101932a8
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10193290
xor edi, edi
cmp ecx, 0xfffffffc
je 0x101932e3
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x101932e3
cmp ecx, 0xfffffffd
je 0x101932e3
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x101932e3
cmp ecx, 0xfffffffe
je 0x101932e3
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x101932e3
cmp ecx, 0xffffffff
je 0x101932e3
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x1019335b.2
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x1019330d
mov esi, edi
mov edx, ebp
sub esi, ebp
jmp 0x10193300
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x1019330d
inc ecx
inc edx
cmp ecx, ebx
jl 0x10193300
lea edx, [ebx - 1]
test edx, edx
js 0x1019332f
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
jmp 0x10193320
cmp byte [eax + esi], 0
jne 0x1019332f
cmp byte [eax], 0xff
jne 0x1019332f
dec eax
dec edx
jns 0x10193320
cmp ecx, edx
jl case.0x1019335b.2
jle 0x10193341
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1019335b.2
movzx eax, byte [eax + 0x101933cc]
jmp dword [eax*4 + 0x101933ac]
mov eax, 7
jmp 0x10193391
mov eax, 6
jmp 0x10193391
mov eax, 5
jmp 0x10193391
mov eax, 4
jmp 0x10193391
mov eax, 3
jmp 0x10193391
mov eax, 2
jmp 0x10193391
mov eax, 1
test dl, dh
jne case.0x1019335b.2
and bl, dl
cmp bl, dl
jne case.0x1019335b.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x101a4a90
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x101a4ac3
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x101a4aab
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x101c3a47
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101b2b10
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x101c3a7f
xor eax, eax
jmp 0x101c3aab
cmp esi, dword [ebp - 4]
je 0x101c3aa8
cmp dword [ebp + 0xc], 0
je 0x101c3aa8
push dword [edi + 0x9c]
call fcn.101c3655
push dword [edi + 0x9c]
mov esi, eax
call fcn.101c2b89
pop ecx
pop ecx
cmp esi, eax
je 0x101c3a7b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x101c5a1f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102745f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.101b42fd
mov dword [ebp - 0x14], eax
cmp dword [0x1027a1c4], edi
jne 0x101c5b10
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x101c5a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x101c5bf0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x101c5bf0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101c5bf0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1027a1c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1027a1c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1027a1cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1027a1d4], eax
test eax, eax
je 0x101c5b0d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1027a1d0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x101c5b35
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x101c5b28
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x101c5b4a
push 4
pop eax
jmp 0x101c5bf2
cmp dword [ebp - 0x14], edi
je 0x101c5b4a
push dword [0x1027a1c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x101c5b2f
mov eax, dword [0x1027a1d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x101c5ba8
cmp dword [0x1027a1d4], esi
je 0x101c5ba8
push eax
call ebx
push dword [0x1027a1d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x101c5ba8
test eax, eax
je 0x101c5ba8
call ecx
test eax, eax
je 0x101c5b9d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x101c5b9d
test byte [ebp - 8], 1
jne 0x101c5ba8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x101c5bd8
mov eax, dword [0x1027a1c8]
cmp eax, esi
je 0x101c5bd5
push eax
call ebx
test eax, eax
je 0x101c5bd5
call eax
mov edi, eax
test edi, edi
je 0x101c5bd5
mov eax, dword [0x1027a1cc]
cmp eax, esi
je 0x101c5bd5
push eax
call ebx
test eax, eax
je 0x101c5bd5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1027a1c4]
call ebx
test eax, eax
je 0x101c5bf0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x101c5bf2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101aa6fb
leave
ret
Function at 0x40160a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x401697
cmp dword [esi + 8], ebx
je 0x401697
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], SysStringLen
call fcn.004014e3
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401697
cmp dword [ebp - 4], ebx
je 0x401697
cmp dword [esi + 0x14], 1
jne 0x401665
push 4
lea eax, [esi + 0x10]
push eax
push 4
jmp 0x401679
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40168e
push eax
call fcn.0041ea20
pop ecx
push eax
push dword [esi + 0xc]
push 1
push ebx
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401f23
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x435450]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, 0x400
push eax
lea ecx, [ebp - 0xc6c]
push ecx
lea ecx, [ebp - 0xc74]
push ecx
lea ecx, [ebp - 0xc78]
push ecx
lea ecx, [ebp - 0xc70]
push ecx
push eax
lea eax, [ebp - 0x86c]
push eax
push 0x42a67c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
test eax, eax
jne 0x401f78
mov dword [ebp - 0xc70], esi
push str.wrapper
push dword [ebp - 0xc70]
lea eax, [ebp - 0x46c]
push str.game
push str._s_lu_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00413c74
lea eax, [ebp - 0x46c]
push eax
call fcn.0041ea20
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00413cba
lea eax, [ebp - 0x6c]
push eax
call fcn.00413d40
mov edi, dword [ebp + 8]
push str.xxxx_xxxx_xxxx_xxxx
push edi
call fcn.0041ee10
push str.ACDEFHJKMNPRSTWXYZ2345679
call fcn.0041ea20
add esp, 0x3c
mov ebx, eax
lea ecx, [ebp - 0x14]
cmp esi, 4
je 0x40200a
cmp esi, 9
je 0x40200a
cmp esi, 0xe
je 0x40200a
movzx eax, byte [ecx]
xor edx, edx
div ebx
inc ecx
mov al, byte [edx + str.ACDEFHJKMNPRSTWXYZ2345679]
mov byte [esi + edi], al
inc esi
cmp esi, 0x13
jb 0x401fea
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041ed5e
leave
ret

Function at 0x402be7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, esi
push edi
mov edi, dword [ebp + 8]
mov ecx, ebx
jae 0x402c11
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x402bfc
push dword [ebp + 0x1c]
sub esi, ebx
push esi
add edi, ebx
push edi
call fcn.00402376
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402c27
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x435450]
push ebx
push 0
push 2
mov dword [ebp + 0xac], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402cd5
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402cd1
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xb8]
call fcn.0041f6ed
test eax, eax
pop ecx
pop ecx
jne 0x402cc2
push dword [ebp - 0x74]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x80], 0x103
jne 0x402cbf
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402c7c
pop esi
push ebx
call edi
pop edi
mov ecx, dword [ebp + 0xac]
pop ebx
call fcn.0041ed5e
add ebp, 0xb0
leave
ret

Function at 0x402ee4
Capabilities:
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x530afc]
test eax, eax
je 0x402ef4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 4], 0
je 0x402f09
push 1
push 0x52ffe0
call fcn.0041032d
pop ecx
pop ecx
mov ecx, dword [0x530af8]
test ecx, ecx
push esi
mov esi, ecx
je 0x402f22
call fcn.0041295b
push esi
call fcn.0041e9db
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402f2b
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x55c
mov eax, dword [0x435450]
push ebx
push esi
push edi
push 0x44
pop esi
push esi
mov dword [ebp + 0x4d8], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0041e490
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.0041e490
mov esi, 0x5300e8
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0041ee10
push dword [0x530b74]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ee20
add esp, 0x28
cmp dword [ebp + 0x4e4], ebx
mov edi, 0x42a6fc
je 0x402fc0
push dword [ebp + 0x4e4]
call fcn.0041ea20
test eax, eax
pop ecx
jbe 0x402fc0
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0041ee20
push dword [ebp + 0x4e4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ee20
add esp, 0x10
push dword [0x530b7c]
call fcn.0041ea20
test eax, eax
pop ecx
jbe 0x402fec
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0041ee20
push dword [0x530b7c]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ee20
add esp, 0x10
lea eax, [ebp + 0x3d4]
push esi
push eax
call fcn.0041ee10
push dword [0x530b74]
lea eax, [ebp + 0x3d4]
push eax
call fcn.0041ee20
lea eax, [ebp + 0x3d4]
push 0x5c
push eax
call fcn.0041f6c0
add esp, 0x18
cmp eax, ebx
je 0x403030
mov byte [eax + 1], bl
lea eax, [ebp + 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
push dword [0x530b00]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xbb8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 1
call fcn.00402ee4
int3
Function at 0x4097c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42903c
call fcn.0041e9bc
sub esp, 0x420
mov eax, dword [0x435450]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x434088]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x40986d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x40984d
push esi
call fcn.0040169d
test al, al
pop ecx
je 0x40984d
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0041ecf0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x409859
push esi
lea ecx, [ebp - 0x420]
call fcn.00405216
push dword [ebp - 0x41c]
push esi
push dword [ebp + 8]
push eax
call fcn.004017f2
cmp eax, ebx
jne 0x409890
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409886
lea ecx, [ebp - 0x418]
call fcn.004099c3
mov esi, 0x8007000e
jmp 0x409997
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x4098b0
call fcn.00406234
mov esi, eax
jmp 0x40997e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4098da
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x4098e4
call fcn.00406234
jmp 0x409970
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, edi
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x409915
push eax
lea ecx, [ebp - 0x418]
call fcn.0040abec
jmp 0x409928
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x409928
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x40993e
mov esi, 0x8007000e
jmp 0x409972
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call fcn.0041f2f0
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.004099cc
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409997
lea ecx, [ebp - 0x418]
call fcn.004099c3
lea ecx, [ebp - 0x420]
call fcn.00402ce9
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041ed5e
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a660
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x435450]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040a591
cmp eax, esi
jne 0x40a6e8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40a6b1
lea eax, [ebp - 0x70]
push eax
call fcn.0040a660
cmp eax, esi
jne 0x40a6e7
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x40a6a4
call fcn.0040a57a
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040a57a
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0041ed5e
add ebp, 0x94
leave
ret 4
Function at 0x40aaf8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40ab03
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40e2d3
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x435450]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
mov byte [ebp - 0x7d], 0
call fcn.0041ea20
test eax, eax
pop ecx
jbe 0x40e309
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x42b850
jne 0x40e30e
mov ebx, 0x42b84c
xor eax, eax
xor esi, esi
test eax, eax
je 0x40e31d
push eax
call fcn.0041ef54
pop ecx
push esi
push ebx
push edi
lea eax, [ebp - 0x7c]
push str._s_stemp._d.dat
push eax
call fcn.0042013d
lea eax, [ebp - 0x7c]
push 0x42b838
push eax
inc esi
call fcn.0041f2d1
add esp, 0x1c
test eax, eax
je 0x40e34b
cmp esi, 0x64
jl 0x40e312
jmp 0x40e374
lea eax, [ebp - 0x7c]
push 0x42b834
push eax
call fcn.0041f2d1
test eax, eax
pop ecx
pop ecx
je 0x40e374
push eax
call fcn.0041ef54
pop ecx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x8c]
mov al, byte [ebp - 0x7d]
pop esi
pop ebx
call fcn.0041ed5e
add ebp, 0x90
leave
ret

Function at 0x40e38c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebx + 0x78], edi
mov dword [ebp - 4], edi
jne 0x40e3a7
mov eax, 0x400
jmp 0x40e413
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerNew_WindowsAllow
push SysReAllocString
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e409
mov eax, dword [ebx + 0x78]
cmp dword [eax], edi
je 0x40e3fe
push esi
xor esi, esi
push edi
push edi
push 3
push edi
push dword [esi + eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40e3f2
or dword [ebp - 4], 0x20
mov eax, dword [ebx + 0x78]
add esi, 4
cmp dword [esi + eax], edi
jne 0x40e3d9
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e410
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x40e417
Capabilities:
Copy file
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x435450]
push esi
mov dword [ebp + 0x1b8], eax
xor esi, esi
lea eax, [ebp - 0x64]
push eax
push 8
push esi
push str.SoftwareMozilla
push dword [ebp + 0x1c8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5ea
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x40e5d7
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.0041ee20
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 1
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5d7
inc dword [ebp - 0x74]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Plugins
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x40e54f
lea eax, [ebp + 0xb0]
push eax
call fcn.0041ea20
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40e51c
lea eax, [ebp + 0xb0]
push 0x42a948
push eax
call fcn.0041ee20
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x68]
lea eax, [ebp + 0xb0]
push eax
call fcn.0041ee20
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1cc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e54f
or dword [ebp - 0x5c], 8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Components
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x40e5d7
lea eax, [ebp + 0xb0]
push eax
call fcn.0041ea20
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40e5a4
lea eax, [ebp + 0xb0]
push 0x42a948
push eax
call fcn.0041ee20
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x6c]
lea eax, [ebp + 0xb0]
push eax
call fcn.0041ee20
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1d0]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e5d7
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x40e46f
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x40e5ee
or byte [ebp - 0x5c], 0x80
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp - 0x5c]
pop esi
call fcn.0041ed5e
add ebp, 0x1bc
leave
ret