joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3f0], 1
cmp dword [ebp + 8], 0
je 0x4026b3
mov eax, dword [ebp + 8]
push eax
call fcn.00410000
add esp, 4
test eax, eax
jne 0x4026c2
mov dword [ebp - 0x3f0], 0x32
jmp 0x4028eb
push 0x12c
movzx ecx, word [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jne 0x4026f2
mov dword [ebp - 0x3f0], 0x33
jmp 0x4028eb
mov edx, dword [ebp - 0x3fc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x40271f
mov dword [ebp - 0x3f0], 0x35
jmp 0x4028eb
mov eax, dword [ebp - 0x3fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x40274c
mov dword [ebp - 0x3f0], 0x36
jmp 0x4028eb
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x402777
mov dword [ebp - 0x3f0], 0x37
jmp 0x4028eb
push 0x80
mov edx, dword [ebp + 8]
push edx
call fcn.00410cb9
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x4027b0
call fcn.00410ca6
cmp dword [eax], 2
je 0x4027b0
mov dword [ebp - 0x3f0], 0x38
jmp 0x4028eb
push 0x42158c
mov eax, dword [ebp + 8]
push eax
call fcn.004107a4
add esp, 8
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0
jne 0x40280d
mov ecx, dword [ebp + 8]
push ecx
push str.Cant_write__s._Directory_read_only__Lack_permision_
lea edx, [ebp - 0x3ec]
push edx
call fcn.004012e0
add esp, 0xc
push 0
push str.Onflow_Error
lea eax, [ebp - 0x3ec]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x3f0], 0x39
jmp 0x4028eb
mov ecx, dword [ebp - 0x400]
mov edx, dword [ecx]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
add eax, 4
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x404]
push ecx
call fcn.0040af9b
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x3f4], edx
cmp dword [ebp - 0x3f4], 0
jne 0x402860
mov dword [ebp - 0x3f0], 0x3a
jmp 0x4028cd
mov eax, dword [ebp - 0x40c]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x418]
push ecx
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x3f4]
push eax
call fcn.00408150
add esp, 0x10
mov ecx, dword [ebp - 0x3f8]
push ecx
push 1
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x3f4]
push eax
call fcn.004109da
add esp, 0x10
mov ecx, dword [ebp - 0x3f4]
mov dword [ebp - 0x41c], ecx
push 1
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0040af8d
add esp, 8
mov dword [ebp - 0x3f0], 0
mov eax, dword [ebp - 0x3f8]
push eax
call fcn.00410698
add esp, 4
mov ecx, dword [ebp - 0x3f8]
push ecx
call fcn.00410321
add esp, 4
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x4031a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x4031c0
push 0xd
call fcn.00403280
add esp, 4
mov eax, 0xd
jmp 0x403272
push 0xa
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4031ee
push 0xe
call fcn.00403280
add esp, 4
mov eax, 0xe
jmp 0x403272
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403214
push 0xf
call fcn.00403280
add esp, 4
mov eax, 0xf
jmp 0x403272
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403243
push 0x10
call fcn.00403280
add esp, 4
mov eax, 0x10
jmp 0x403272
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403267
push 0x11
call fcn.00403280
add esp, 4
mov eax, 0x11
jmp 0x403272
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x4c], edx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x118
push eax
call fcn.00410000
add esp, 4
test eax, eax
je 0x4036c9
push 5
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x118
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret
Function at 0x403b70
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0x32
push 0x105
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x40], eax
push 0x65
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x44], eax
push 0x105
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x3c], eax
push 0x105
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x48], eax
push 0x104
mov eax, dword [ebp - 0x48]
push eax
push 0x119
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x42c1f8
mov edx, dword [ebp - 0x40]
push edx
call fcn.0040ff00
add esp, 8
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040ff10
add esp, 8
push 0x421e24
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0040ff00
add esp, 8
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040ff10
add esp, 8
push 0x421e28
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0040ff10
add esp, 8
push str._ofpid
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040ff10
add esp, 8
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
push 0
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c9e
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00410000
add esp, 4
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
push 0
push 0x421d14
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x5c], eax
push 0x64
mov ecx, dword [ebp - 0x44]
push ecx
push 0x36
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 0x44]
push eax
call fcn.004112cf
add esp, 4
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
push 0
mov edx, dword [str.SoftwareOnflow]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d06
mov eax, dword [ebp - 0x50]
push eax
push 0x421d10
lea ecx, [ebp - 0x38]
push ecx
call fcn.004012e0
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
push str.OFNUM
call fcn.0040ae90
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0xa4]
push eax
call fcn.0040bfd0
add esp, 0xc
mov dword [ebp - 0xa4], 0x44
mov dword [ebp - 0x78], 1
xor ecx, ecx
mov word [ebp - 0x74], cx
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0xa4]
push eax
push 0
push 0
push 0x28
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
push eax
call fcn.004011a0
add esp, 4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004011a0
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004011a0
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
call fcn.004011a0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x403da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c308]
mov dword [ebp - 8], eax
jmp 0x403db8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x403ddc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411392
add esp, 8
test eax, eax
jne 0x403dda
jmp 0x403e9a
jmp 0x403db0
mov eax, dword [0x42c310]
mov dword [ebp - 4], eax
jmp 0x403dee
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x403e12
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411392
add esp, 8
test eax, eax
jne 0x403e10
jmp 0x403e9a
jmp 0x403de6
push 8
call fcn.00401160
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00410000
add esp, 4
add eax, 1
push eax
call fcn.00401160
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040ff00
add esp, 8
cmp dword [0x42c310], 0
je 0x403e6f
mov edx, dword [0x42c314]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x42c314], ecx
jmp 0x403e82
mov edx, dword [ebp - 4]
mov dword [0x42c314], edx
mov eax, dword [0x42c314]
mov dword [0x42c310], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.00412ef4
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4042e4
mov eax, dword [ebp + 8]
push eax
call fcn.00410000
add esp, 4
test eax, eax
je 0x4042e4
push 0x12c
movzx ecx, word [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4042dd
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4042db
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4042db
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4042db
mov dword [ebp - 4], 0
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00406300
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404209
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403da0
add esp, 4
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00404790
add esp, 4
push 0x180
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410cb9
add esp, 8
push 0x42158c
mov edx, dword [ebp + 8]
push edx
call fcn.004107a4
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4042db
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040af9b
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4042b5
mov edx, dword [ebp - 0x24]
sub edx, 4
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00408150
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004109da
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040af8d
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00410698
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00410321
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 8
jmp 0x4042e4
mov dword [ebp - 0x1c], 5
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x4042f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x208], 0xc8
mov dword [ebp - 0x20c], 0
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x103
je 0x4044a2
lea eax, [ebp - 0x100]
push eax
call fcn.004112cf
add esp, 4
test eax, eax
je 0x404450
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Main
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404450
mov dword [ebp - 0x208], 0x103
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404443
cmp dword [ebp + 0x10], 0
je 0x404415
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [str.Netscape]
push edx
push str.NS
call fcn.004044c0
add esp, 0x10
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x208], 0xc8
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x218], eax
jmp 0x404355
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x404dd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1d4], 0xc8
mov dword [ebp - 0x1dc], 0
cmp dword [ebp + 8], 0
jne 0x404e13
mov dword [ebp - 0x1e8], 1
jmp 0x404e1d
mov dword [ebp - 0x1e8], 0
cmp dword [ebp + 0xc], 0
jne 0x404e2f
mov dword [ebp - 0x1ec], 1
jmp 0x404e39
mov dword [ebp - 0x1ec], 0
mov eax, dword [ebp - 0x1e8]
or eax, dword [ebp - 0x1ec]
je 0x404e4e
xor eax, eax
jmp 0x405046
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], 0
lea ecx, [ebp - 0x1e0]
push ecx
push 0x20019
push 0
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405040
lea eax, [ebp - 0x200]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x1dc]
push eax
mov ecx, dword [ebp - 0x1e0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x1f0], eax
cmp dword [ebp - 0x1f0], 0x103
je 0x405033
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411392
add esp, 8
test eax, eax
jne 0x404fe0
lea ecx, [ebp - 0x1e4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fe0
mov dword [ebp - 0x1d4], 0x104
lea ecx, [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x1d0]
push edx
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0x421437
mov ecx, dword [ebp - 0x1e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404fd3
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1d0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00411630
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x1d4]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00404790
add esp, 4
push 0x5c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406300
add esp, 8
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
je 0x404fba
mov edx, dword [ebp - 0x1d8]
add edx, 1
mov dword [ebp - 0x1d8], edx
push 0x421324
mov eax, dword [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x1f4], 1
mov ecx, dword [ebp - 0x1e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405033
mov edx, dword [ebp - 0x1e4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1d4], 0xc8
mov eax, dword [ebp - 0x1dc]
add eax, 1
mov dword [ebp - 0x1dc], eax
lea ecx, [ebp - 0x200]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x1dc]
push ecx
mov edx, dword [ebp - 0x1e0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x1f0], eax
jmp 0x404eba
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40514b
push str.ONFLOWTESTTEMPTEMPTEMP.html
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42158c
lea edx, [ebp - 0x108]
push edx
call fcn.004107a4
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x4050f3
mov eax, dword [ebp - 0x10c]
push eax
push 1
push 2
push 0x4215b4
call fcn.004109da
add esp, 0x10
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00410321
add esp, 4
mov edx, dword [ebp + 8]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00410bc3
add esp, 4
cmp dword [ebp - 0x114], 0x20
jle 0x40513c
mov edx, dword [ebp + 8]
push edx
call fcn.00404790
add esp, 4
mov dword [ebp - 0x110], 1
jmp 0x40514b
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret

Function at 0x405230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
mov ecx, dword [str.SoftwareMicrosoftInternet_Explorer]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40532a
mov dword [ebp - 0x21c], 0x104
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x104
jae 0x40529b
jmp 0x4052a0
call fcn.0040b0c7
mov ecx, dword [ebp - 0x210]
mov byte [ebp + ecx - 0x108], 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push str.Version
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [str.iexplore.exe]
push ecx
call fcn.00404dd0
add esp, 8
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [str.Internet_Explorer]
push ecx
push str.IE
call fcn.004044c0
add esp, 0x10
test eax, eax
je 0x40531d
mov dword [ebp - 0x218], 1
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x405340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x348], 0
lea eax, [ebp - 0x34c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40552b
mov dword [ebp - 0x350], 0x103
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x358]
push ecx
push 0
push str.CurrentVersion
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4054a9
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Main
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x354]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4054a9
mov dword [ebp - 0x350], 0x103
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x358]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40549c
cmp dword [ebp + 0x10], 0
je 0x405457
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [str.Netscape]
push eax
push str.NS
call fcn.004044c0
add esp, 0x10
test eax, eax
je 0x40549c
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x348]
add eax, 1
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x354]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34c]
push ecx
call fcn.004042f0
add esp, 0xc
or eax, dword [ebp - 0x348]
mov dword [ebp - 0x348], eax
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x348], 0
jne 0x40552b
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [str.netscape.exe]
push ecx
call fcn.00404dd0
add esp, 8
test eax, eax
je 0x40552b
push 0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [str.Netscape]
push eax
push str.NS
call fcn.004044c0
add esp, 0x10
test eax, eax
je 0x40552b
mov ecx, dword [ebp - 0x348]
add ecx, 1
mov dword [ebp - 0x348], ecx
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x405d80
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405dbe
push 0x421d14
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
mov edx, dword [str.SoftwareOnflow]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405df8
push str.OFNUM
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret