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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42a21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3f0], 1
cmp dword [ebp + 8], 0
je 0x4026c3
mov eax, dword [ebp + 8]
push eax
call fcn.0040f970
add esp, 4
test eax, eax
jne 0x4026d2
mov dword [ebp - 0x3f0], 0x32
jmp 0x4028fb
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 0x402702
mov dword [ebp - 0x3f0], 0x33
jmp 0x4028fb
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 0x40272f
mov dword [ebp - 0x3f0], 0x35
jmp 0x4028fb
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 0x40275c
mov dword [ebp - 0x3f0], 0x36
jmp 0x4028fb
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 0x402787
mov dword [ebp - 0x3f0], 0x37
jmp 0x4028fb
push 0x80
mov edx, dword [ebp + 8]
push edx
call fcn.00410629
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x4027c0
call fcn.00410616
cmp dword [eax], 2
je 0x4027c0
mov dword [ebp - 0x3f0], 0x38
jmp 0x4028fb
push 0x42058c
mov eax, dword [ebp + 8]
push eax
call fcn.00410114
add esp, 8
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0
jne 0x40281d
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 0x4028fb
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.0040af98
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x3f4], edx
cmp dword [ebp - 0x3f4], 0
jne 0x402870
mov dword [ebp - 0x3f0], 0x3a
jmp 0x4028dd
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.00408170
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.0041034a
add esp, 0x10
mov ecx, dword [ebp - 0x3f4]
mov dword [ebp - 0x41c], ecx
push 1
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0040af8a
add esp, 8
mov dword [ebp - 0x3f0], 0
mov eax, dword [ebp - 0x3f8]
push eax
call fcn.00410008
add esp, 4
mov ecx, dword [ebp - 0x3f8]
push ecx
call fcn.0040fc91
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 0x4031b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x4031d0
push 0xd
call fcn.00403290
add esp, 4
mov eax, 0xd
jmp 0x403282
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 0x4031fe
push 0xe
call fcn.00403290
add esp, 4
mov eax, 0xe
jmp 0x403282
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 0x403224
push 0xf
call fcn.00403290
add esp, 4
mov eax, 0xf
jmp 0x403282
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 0x403253
push 0x10
call fcn.00403290
add esp, 4
mov eax, 0x10
jmp 0x403282
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 0x403277
push 0x11
call fcn.00403290
add esp, 4
mov eax, 0x11
jmp 0x403282
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 0x4036a0
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.0040f970
add esp, 4
test eax, eax
je 0x4036d9
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 0x403b80
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 [0x42a21c]
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 0x42b218
mov edx, dword [ebp - 0x40]
push edx
call fcn.0040f870
add esp, 8
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040f880
add esp, 8
push 0x420e24
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0040f870
add esp, 8
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040f880
add esp, 8
push 0x420e28
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0040f880
add esp, 8
push str._ofpid
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040f880
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 0x403cae
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040f970
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 0x420d14
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.00410c80
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 0x403d16
mov eax, dword [ebp - 0x50]
push eax
push 0x420d10
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.0040bfb0
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 0x403db0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42b32c]
mov dword [ebp - 8], eax
jmp 0x403dc8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x403dec
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410d6d
add esp, 8
test eax, eax
jne 0x403dea
jmp 0x403eaa
jmp 0x403dc0
mov eax, dword [0x42b334]
mov dword [ebp - 4], eax
jmp 0x403dfe
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x403e22
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410d6d
add esp, 8
test eax, eax
jne 0x403e20
jmp 0x403eaa
jmp 0x403df6
push 8
call fcn.00401160
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040f970
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.0040f870
add esp, 8
cmp dword [0x42b334], 0
je 0x403e7f
mov edx, dword [0x42b338]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x42b338], ecx
jmp 0x403e92
mov edx, dword [ebp - 4]
mov dword [0x42b338], edx
mov eax, dword [0x42b338]
mov dword [0x42b334], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.004128d1
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404150
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 0x4042f4
mov eax, dword [ebp + 8]
push eax
call fcn.0040f970
add esp, 4
test eax, eax
je 0x4042f4
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 0x4042ed
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 0x4042eb
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 0x4042eb
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 0x4042eb
mov dword [ebp - 4], 0
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00406320
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404219
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403db0
add esp, 4
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.004047a0
add esp, 4
push 0x180
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410629
add esp, 8
push 0x42058c
mov edx, dword [ebp + 8]
push edx
call fcn.00410114
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4042eb
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.0040af98
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4042c5
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.00408170
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.0041034a
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040af8a
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00410008
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.0040fc91
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 8
jmp 0x4042f4
mov dword [ebp - 0x1c], 5
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x404300
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42a21c]
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 0x4044b2
lea eax, [ebp - 0x100]
push eax
call fcn.00410c80
add esp, 4
test eax, eax
je 0x404460
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 0x404460
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 0x404453
cmp dword [ebp + 0x10], 0
je 0x404425
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.004044d0
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 0x404365
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret
Function at 0x404de0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x42a21c]
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 0x404e23
mov dword [ebp - 0x1e8], 1
jmp 0x404e2d
mov dword [ebp - 0x1e8], 0
cmp dword [ebp + 0xc], 0
jne 0x404e3f
mov dword [ebp - 0x1ec], 1
jmp 0x404e49
mov dword [ebp - 0x1ec], 0
mov eax, dword [ebp - 0x1e8]
or eax, dword [ebp - 0x1ec]
je 0x404e5e
xor eax, eax
jmp 0x405056
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 0x405050
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 0x405043
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410d6d
add esp, 8
test eax, eax
jne 0x404ff0
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 0x404ff0
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 0x420437
mov ecx, dword [ebp - 0x1e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404fe3
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1d0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00411010
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.004047a0
add esp, 4
push 0x5c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406320
add esp, 8
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
je 0x404fca
mov edx, dword [ebp - 0x1d8]
add edx, 1
mov dword [ebp - 0x1d8], edx
push 0x420324
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 0x405043
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 0x404eca
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 0x405070
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42a21c]
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 0x40515b
push str.ONFLOWTESTTEMPTEMPTEMP.html
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42058c
lea edx, [ebp - 0x108]
push edx
call fcn.00410114
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x405103
mov eax, dword [ebp - 0x10c]
push eax
push 1
push 2
push 0x4205b4
call fcn.0041034a
add esp, 0x10
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0040fc91
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.00410533
add esp, 4
cmp dword [ebp - 0x114], 0x20
jle 0x40514c
mov edx, dword [ebp + 8]
push edx
call fcn.004047a0
add esp, 4
mov dword [ebp - 0x110], 1
jmp 0x40515b
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 0x405240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42a21c]
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 0x40533a
mov dword [ebp - 0x21c], 0x104
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x104
jae 0x4052ab
jmp 0x4052b0
call fcn.0040b0c3
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.00404de0
add esp, 8
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [str.Internet_Explorer]
push ecx
push 0x4208f4
call fcn.004044d0
add esp, 0x10
test eax, eax
je 0x40532d
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 0x405350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x42a21c]
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 0x40553b
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 0x4054b9
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 0x4054b9
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 0x4054ac
cmp dword [ebp + 0x10], 0
je 0x405467
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.004044d0
add esp, 0x10
test eax, eax
je 0x4054ac
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.00404300
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 0x40553b
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [str.netscape.exe]
push ecx
call fcn.00404de0
add esp, 8
test eax, eax
je 0x40553b
push 0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [str.Netscape]
push eax
push str.NS
call fcn.004044d0
add esp, 0x10
test eax, eax
je 0x40553b
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 0x405d90
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 0x405dce
push 0x420d14
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 0x405e08
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