joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4126b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
add ecx, 4
push ebx
push ebp
push esi
push edi
push 0x6bc95c
call fcn.0040cc40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x6bd65c
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x412783
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x6bd650
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412751
test ebx, ebx
je 0x412778
mov esi, 0x6bd628
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412748
test cl, cl
je 0x412744
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412748
add eax, 2
add esi, 2
test cl, cl
jne 0x412724
xor eax, eax
jmp 0x41274d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412778
mov edi, 0x6bd628
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x6bd628
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x6bd650
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push 0x6bd65c
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x41283d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x6bd650
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41280b
test ebx, ebx
je 0x412832
mov esi, 0x6bd628
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x412802
test cl, cl
je 0x4127fe
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x412802
add eax, 2
add esi, 2
test cl, cl
jne 0x4127da
xor eax, eax
jmp 0x412807
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412832
mov edi, 0x6bd628
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x6bd628
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x6bd650
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x414450
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call fcn.00445c70
neg eax
sbb eax, eax
lea ecx, [esp + 8]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push 0x6bd768
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4144b6
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push 0x6bd8e8
push eax
mov dword [esp + 0x24], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bbf94
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x414507
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x6bd8ac
push ecx
mov dword [esp + 0x24], 1
call esi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 8
ret
Function at 0x414bc0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
xor esi, esi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x414c0c
cmp dword [esp + 0x24], 2
jne 0x414c0c
cmp dword [esp + 0x18], 6
jb 0x414c1a
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov esi, 1
push 0x6bd960
jmp 0x414c2e
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0xa0
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x6bd794
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x414c5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
add esp, 0xa0
ret 4
call fcn.00445c70
mov edi, dword [esp + 0xac]
neg eax
sbb eax, eax
mov dword [edi], 0
and eax, 0x100
add eax, 0x20019
test esi, esi
je 0x414c90
lea edx, [esp + 8]
push edx
push eax
push 0
push 0x6bd934
jmp 0x414c9d
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0x6bd768
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414cf5
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x6bd8e8
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414cea
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x414cea
cmp eax, 2
je 0x414cea
mov dword [edi], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 4
Function at 0x4161c0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov dword [esi + 0x34], edi
call fcn.00416550
test eax, eax
jne 0x4161fb
mov eax, dword [0x6ec774]
test eax, eax
je 0x4161f2
mov eax, dword [esi + 0x48]
mov cl, byte [eax + 0x3b]
test cl, cl
jne 0x4161f2
mov cl, byte [eax + 0x3d]
test cl, cl
jne 0x4161f2
mov byte [eax + 0x40], 1
mov ecx, esi
call fcn.00417b90
jmp 0x416220
mov eax, dword [esi + 0x48]
mov cl, byte [eax + 0x3b]
test cl, cl
jne 0x416220
mov cl, byte [eax + 0x3d]
test cl, cl
jne 0x416220
push 0
push 0
push 0
push 0
push 0
push 0x416020
call fcn.005fae57
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4162dd
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4162dd
mov ecx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x6bdbd4
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41628c
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x6bc83c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x6ec7a0]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bdbd4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4162dd
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x6bc83c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x416550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60cf4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 0x20019
push 0
push 0x6bdb88
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x4166cb
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push eax
push 0x6bdca4
push edx
call esi
test eax, eax
jne 0x4166cb
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push 0x6bdc98
push edx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x4166cb
cmp dword [ebp - 0x1c], 1
jne 0x4166cb
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
call fcn.00445c70
test eax, eax
je 0x41667f
lea edx, [ebp - 0x18]
push edx
push 0x20119
push 0
push 0x6bdb88
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4166cb
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push 0x6bdca4
push ecx
call esi
test eax, eax
jne 0x4166cb
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6bdc98
push ecx
mov dword [ebp - 0x20], 4
call edi
test eax, eax
jne 0x4166cb
cmp dword [ebp - 0x1c], 1
jne 0x4166cb
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4166e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60cf7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x6ec7a0]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x416746
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x224]
call fcn.004ab420
mov ecx, dword [0x6e7b6c]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push 0x6bdcec
push edx
mov byte [ebp - 4], 2
call fcn.005f368b
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x224]
push 1
push eax
call fcn.004ab540
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call fcn.004ab530
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
mov ecx, esi
call fcn.00401070
mov eax, 0x6ec0c8
test eax, eax
je 0x416bf0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416bf0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6ec0c8
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x416bf0
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x416bf0
mov edx, dword [esi + 8]
push edx
push eax
push 0xffffffffffffffff
push 0x6ec0c8
push 0
push 0
call edi
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x6bde5c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416c1e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
mov ebx, 0x208
push 0x6bde3c
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x416cd0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x6bde18
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x416ca1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x6bddf8
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x416cd0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
lea ecx, [esp + 0x14]
push 0x6bddf0
push ecx
call fcn.005de985
add esp, 8
test eax, eax
je 0x416d29
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.005de073
add esp, 8
test eax, eax
je 0x416cd0
mov word [eax + 2], 0
lea eax, [esp + 0x14]
push eax
call fcn.005de123
add esp, 4
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x416cf7
lea ecx, [esp + 0x14]
push 0x6bc14c
push ecx
call fcn.005de2bf
add esp, 8
lea edx, [esp + 0x14]
push 0x6bddcc
push edx
push 0x6bc11c
mov ecx, esi
call fcn.0040f650
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6bddf8
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x416cd0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
Function at 0x417b90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bdb88
mov edi, ecx
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x417be9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push 0xf003f
push eax
push 0x6ec0c8
push eax
push 0x6bdca4
push edx
call esi
test eax, eax
je 0x417c07
cmp eax, 5
je 0x417d26
push eax
push 0x6be034
mov ecx, edi
call fcn.00417d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x6be028]
mov ecx, dword [0x6be02c]
mov dx, word [0x6be030]
mov dword [esp + 0x20], eax
mov al, byte [0x6be032]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x2a], al
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov word [esp + 0x28], dx
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push 0x6bdc98
push ecx
mov dword [esp + 0x30], 1
call ebx
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
call fcn.00445c70
test eax, eax
je 0x417d26
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0x6ec0c8
push 0
push 0x6bdb88
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x417d26
lea edx, [esp + 0x10]
push eax
push edx
push eax
push 0xf013f
push eax
push 0x6ec0c8
push eax
mov eax, dword [esp + 0x30]
push 0x6bdca4
push eax
call esi
test eax, eax
jne 0x417d26
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push 0x6bdc98
push ecx
mov dword [esp + 0x34], 1
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x419ca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x6ec7a0]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push 0x6be4f4
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419ce0
mov eax, dword [esp + 4]
test eax, eax
je 0x419ce0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x41cc60
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ccd2
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 4]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x20
ret
Function at 0x41cf50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp ebx, 0x34
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x6bd130
jg 0x41cf8d
mov ecx, 0x6bd114
mov eax, dword [0x6ec738]
test eax, eax
jne 0x41cf9b
mov eax, 0x6ec73c
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x6bd544
push eax
call fcn.005df06c
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d074
lea edx, [ebp + 8]
push edx
push 0xf003f
push 0
push 0x6bd14c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d089
lea eax, [ebp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bd170
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x41d074
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [ebp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6be8d8
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x41d074
mov eax, dword [ebp + 8]
push eax
call edi
lea ecx, [ebp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bd14c
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x41d08f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040f100
add esp, 4
test eax, eax
je 0x41d0ba
mov edx, dword [ebp + 8]
push edx
call edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 0x34
jle 0x41d0c7
mov eax, dword [ebp + 8]
push 0x35
push eax
jmp 0x41d0da
cmp ebx, 0x1a
jle 0x41d0d4
mov ecx, dword [ebp + 8]
push 0x1b
push ecx
jmp 0x41d0da
mov edx, dword [ebp + 8]
push 8
push edx
call fcn.0040f8b0
add esp, 8
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x6ec738]
sub esp, 0x418
test eax, eax
jne 0x41d4b4
mov eax, 0x6ec73c
push edi
push 0x6bd260
push eax
lea eax, [esp + 0x14]
push 0x6bd544
push eax
call fcn.005df06c
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d573
mov eax, dword [0x6ec738]
test eax, eax
jne 0x41d4ef
mov eax, 0x6ec73c
push 0x6be8fc
push eax
lea edx, [esp + 0x21c]
push 0x6bd544
push edx
call fcn.005df06c
lea eax, [esp + 0x224]
push eax
call fcn.0041d110
lea ecx, [esp + 0x20]
push ecx
call fcn.005cbd10
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41d573
lea edx, [esp + 4]
push esi
push edx
push edi
call fcn.005cc150
mov eax, dword [esp + 0x10]
add esp, 8
xor esi, esi
test eax, eax
jbe 0x41d569
push edi
call fcn.0041b7d0
add esp, 4
test eax, eax
jne 0x41d569
mov eax, dword [esp + 8]
inc esi
cmp esi, eax
jae 0x41d569
push edi
call fcn.005cc5a0
add esp, 4
test eax, eax
jne 0x41d569
cmp esi, dword [esp + 8]
jb 0x41d540
push edi
call fcn.005cc110
add esp, 4
pop esi
pop edi
add esp, 0x418
ret
Function at 0x41f1b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60d921
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x210
cmp eax, 1
push ebp
push esi
push edi
mov edi, ecx
jg 0x41f1e0
xor eax, eax
jmp 0x41f358
mov esi, dword [esp + 0x22c]
xor ebp, ebp
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41f356
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41f356
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push eax
mov dword [esp + 0x22c], ebp
call fcn.00419c50
test eax, eax
jne 0x41f22f
push 0x6be4e8
lea ecx, [esp + 0x14]
call fcn.005fa9e2
mov eax, dword [0x6ec738]
mov ebp, 1
test eax, eax
jne 0x41f242
mov eax, 0x6ec73c
push 0x6bd550
push eax
lea eax, [esp + 0x1c]
push 0x6bd544
push eax
call fcn.005df06c
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x234]
jne 0x41f2d9
test eax, eax
je 0x41f2c1
mov edx, dword [0x6e7b6c]
mov dword [esp + 0xc], edx
mov eax, dword [0x6ece88]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x230], 1
call fcn.005f368b
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0x30
push 0x6bc018
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], 0
call fcn.005fa859
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.005fa859
xor eax, eax
jmp 0x41f358
test eax, eax
je 0x41f331
mov eax, dword [0x6e7b6c]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [0x6ed0fc]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x234], 2
call fcn.005f368b
mov edx, dword [0x6ed13c]
mov eax, dword [esp + 0x1c]
add esp, 0x10
push 0x40
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], 0
call fcn.005fa859
mov eax, dword [esi]
mov ecx, edi
push eax
call fcn.00411950
lea ecx, [esp + 0x10]
mov dword [esi + 0x10], 1
mov dword [esp + 0x224], 0xffffffff
call fcn.005fa859
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x21c
ret 0xc
Function at 0x420630
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x60db11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x14], ebp
call fcn.005fa5ce
lea esi, [ebp + 4]
xor eax, eax
mov dword [esp + 0x28], eax
lea ecx, [esi + 4]
mov dword [esi], eax
mov dword [esi + 8], eax
mov word [ecx], ax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x4206e2
cmp dword [esi], eax
je 0x4206e2
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x4206e2
mov eax, dword [esi]
cmp eax, edi
ja 0x4206e2
push eax
call fcn.005de123
mov edx, dword [esi]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x4206e2
xor eax, eax
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], ax
call fcn.004023e0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
test eax, eax
jne 0x4206ca
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004023e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00401070
jmp 0x420728
mov ecx, esi
call fcn.00401070
test edi, edi
je 0x420728
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x420728
push edi
call fcn.005de123
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x420728
push edi
call fcn.005de123
mov edx, dword [esi]
push edi
push edx
mov dword [esi + 8], eax
call fcn.005de2e9
add esp, 0xc
lea eax, [ebx + 0x10]
lea ecx, [ebp + 0x10]
push eax
mov byte [esp + 0x2c], 2
call fcn.005fa5ce
lea ecx, [ebx + 0x14]
mov byte [esp + 0x28], 3
push ecx
lea ecx, [ebp + 0x14]
call fcn.005fa5ce
lea edx, [ebx + 0x18]
lea ecx, [ebp + 0x18]
push edx
mov byte [esp + 0x2c], 4
call fcn.005fa5ce
mov eax, dword [ebx + 0x20]
pop edi
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x24], ecx
mov edx, dword [ebx + 0x28]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
mov cl, byte [ebx + 0x30]
mov byte [ebp + 0x30], cl
mov dl, byte [ebx + 0x31]
mov ecx, dword [esp + 0x1c]
mov byte [ebp + 0x31], dl
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4