joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c560
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb4]
cmp dword [eax + 0x30], 0
je 0x44c60a
cmp dword [ebx + 0x94], 0
jne 0x44c604
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c4f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c604
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44c5ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c604
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413a88
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c5d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d16c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d1a1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f94
jmp 0x44d1ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e200
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e241
mov eax, esi
call fcn.00434bcc
test al, al
je 0x44e241
mov eax, dword [ebx + 0x84]
call fcn.004348f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e241
push 0
mov eax, dword [ebx + 0x84]
call fcn.004348f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4034f4
Capabilities:
Query or enumerate registry value

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

Function at 0x403e8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b044], 0
je 0x403eed
cmp word [0x40b218], 0xd7b2
jne 0x403eb5
cmp dword [0x40b220], 0
jbe 0x403eb5
mov eax, 0x40b214
call dword [0x40b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a020], 0
jne 0x403f09
push 0
push 0x40a058
push 0x40a060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404048
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004028b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40b045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404010
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404d30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404d96
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eb0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404d80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d9d
lea eax, [ebp - 0x10]
call fcn.00404094
ret

Function at 0x406c64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406c9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404184
jmp 0x406ca6
mov eax, ebx
mov edx, esi
call fcn.004040e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406cb0
Capabilities:
Get geographical location

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

Function at 0x407368
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4071d0
mov eax, dword [0x40a3c4]
cmp byte [eax], 0
je 0x4073e4
mov eax, dword [0x40a318]
call fcn.00402da4
call fcn.004029f4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004060ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40742c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40741a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40a2f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40b660]
call fcn.00404700
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407e08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407e6c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405fb4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e73
lea eax, [ebp - 0xc]
call fcn.00404094
ret

Function at 0x40934c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004091a4
dec esi
jne 0x40936e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4096b4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
push 0x11
push 2
push 2
call sub.ws2_32.dll_socket
mov dword [esi + 8], eax
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_setsockopt
test eax, eax
sete bl
mov eax, dword [esi + 0xc]
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_setsockopt
test bl, bl
je 0x409713
test eax, eax
je 0x409717
xor eax, eax
jmp 0x409719
mov al, 1
mov ebx, eax
push 4
push 0x409798
push 0xff7f
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_setsockopt
push 4
push 0x409798
push 0x20
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_setsockopt
test bl, bl
je 0x409754
test eax, eax
je 0x409758
xor eax, eax
jmp 0x40975a
mov al, 1
mov ebx, eax
mov edx, dword [esi + 0x4c]
mov eax, esi
call fcn.00409ac0
mov dword [esi + 0x4c], eax
mov edx, dword [esi + 0x48]
mov eax, esi
call fcn.00409b08
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x4c]
inc eax
call fcn.004028b4
mov edi, eax
mov dword [esi + 0x40], edi
mov edx, dword [esi + 0x4c]
mov eax, edi
call fcn.0040518c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4099f8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 0xc]
call fcn.004043e0
xor eax, eax
push ebp
push 0x409aab
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40a3b4]
mov edx, dword [edx]
lea eax, [esi + 0x10]
call fcn.0040518c
lea edi, [esi + 0x10]
mov word [edi], 2
mov ax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
call fcn.004043f0
push eax
call sub.ws2_32.dll_inet_addr
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x48]
cmp ebx, eax
jg 0x409a64
mov eax, ebx
mov edx, dword [0x40a3b4]
mov edx, dword [edx]
push edx
lea edx, [esi + 0x10]
push edx
push 0
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_sendto
sub ebx, eax
add dword [ebp - 0xc], eax
test ebx, ebx
jle 0x409a91
push 0x64
call sub.kernel32.dll_Sleep
test ebx, ebx
jg 0x409a5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ab2
lea eax, [ebp + 0xc]
call fcn.00404094
ret

Function at 0x409ac0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov dword [esp], edx
mov edx, dword [esp]
test edx, edx
jns 0x409ace
add edx, 0xf
sar edx, 4
inc edx
shl edx, 4
mov dword [esp], edx
push 4
lea edx, [esp + 4]
push edx
push 0x1002
push 0xffff
mov eax, dword [eax + 8]
push eax
call sub.ws2_32.dll_setsockopt
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x409b00
mov eax, dword [esp]
pop edx
ret
mov eax, 0x2000
pop edx
ret

Function at 0x409b08
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov dword [esp], edx
mov edx, dword [esp]
test edx, edx
jns 0x409b16
add edx, 0xf
sar edx, 4
shl edx, 4
mov dword [esp], edx
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
mov eax, dword [eax + 8]
push eax
call sub.ws2_32.dll_setsockopt
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x409b47
mov eax, dword [esp]
pop edx
ret
mov eax, 0x2000
pop edx
ret

Function at 0x406aab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c55c], esi
push edi
jne 0x406ae5
mov ecx, 0x42c558
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406ac1
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c958
jl 0x406abc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406b1a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c558]
xor eax, esi
inc ecx
dec edx
jne 0x406afd
pop edi
pop esi
not eax
ret 0xc
Function at 0x4013b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push str.Usage:_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push str.__instreg_install_InterBase_directory___z__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push str.__________remove______________________n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
pop ebp
ret

Function at 0x4013f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x20006
push 0
push 0x403330
push 0
push str.SOFTWAREInterBase_CorpInterBaseCurrentVersion
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40143f
push 0
push str.RegCreateKeyEx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x401553
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov word [ebp - 0x10], ax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
test ecx, ecx
je 0x4014c3
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movsx eax, byte [ebp + edx - 0x119]
cmp eax, 0x2f
je 0x4014c3
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
je 0x4014c3
mov eax, dword [ebp - 0x10]
and eax, 0xffff
mov byte [ebp + eax - 0x118], 0x5c
mov cx, word [ebp - 0x10]
add cx, 1
mov word [ebp - 0x10], cx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov byte [ebp + edx - 0x118], 0
mov eax, dword [ebp - 0x10]
and eax, 0xffff
add eax, 1
push eax
lea ecx, [ebp - 0x118]
push ecx
push 1
push 0
push str.RootDirectory
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401515
push 0xd
push str.WI_V5.6.0.29
push 1
push 0
push str.Version
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401546
mov ecx, dword [ebp - 0xc]
push ecx
push str.RegSetValueEx
mov edx, dword [ebp - 0x14]
push edx
call dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp - 8], 1
jne 0x401540
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401557
add esp, 0xc
mov ax, 1
jmp 0x401553
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ax, ax
mov esp, ebp
pop ebp
ret
Function at 0x401557
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x2000f
push 0
push str.SOFTWAREInterBase_CorpInterBase
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4015a9
mov edx, dword [ebp + 0xc]
and edx, 0xffff
test edx, edx
je 0x401596
mov ax, 1
jmp 0x401621
push 0
push 0x4032a8
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x401621
mov ecx, dword [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00401625
add esp, 0xc
mov word [ebp - 4], ax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 1
jne 0x4015e0
mov ax, 1
jmp 0x401621
push str.SOFTWAREBorlandInterBase
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40161e
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
test ecx, ecx
je 0x40160b
mov ax, 1
jmp 0x401621
push 0
push 0x4032d4
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x401621
xor ax, ax
mov esp, ebp
pop ebp
ret
Function at 0x401625
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4016b6
cmp dword [ebp - 0x12c], 0xea
je 0x4016b6
mov edx, dword [ebp + 0xc]
and edx, 0xffff
test edx, edx
je 0x40169d
mov ax, 1
jmp 0x40184c
push 0
push str.RegQueryInfoKey
mov eax, dword [ebp - 0x12c]
push eax
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x40184c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x104
jbe 0x4016dd
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x138], eax
jmp 0x4016e9
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jmp 0x40170e
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jae 0x4017fd
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x401764
mov dword [ebp - 4], str.RegEnumKeyEx
jmp 0x4017fd
lea ecx, [ebp - 0x14]
push ecx
push 0x2000f
push 0
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x401798
mov dword [ebp - 4], str.RegOpenKeyEx
jmp 0x4017fd
mov ecx, dword [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401625
add esp, 0xc
mov word [ebp - 0x10], ax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
and edx, 0xffff
cmp edx, 1
jne 0x4017cf
mov ax, 1
jmp 0x40184c
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4017f8
mov dword [ebp - 4], str.RegDeleteKey
jmp 0x4017fd
jmp 0x401705
lea edx, [ebp - 0x128]
cmp edx, dword [ebp - 0x130]
je 0x40181b
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp dword [ebp - 4], 0
je 0x401849
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
test ecx, ecx
je 0x401834
mov ax, 1
jmp 0x40184c
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x40184c
xor ax, ax
mov esp, ebp
pop ebp
ret
Function at 0x401850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402078
push 0x4019f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x403344], 0xffffffff
mov dword [0x403348], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403340]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40333c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40334c], ecx
call fcn.004019e0
mov eax, dword [0x403324]
test eax, eax
jne 0x4018e1
push 0x4019d0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004019b0
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x403338]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x403334]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call section..text
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x401980
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e7d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ef10b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004e32de
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x45e852
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e0853
mov eax, dword [eax]
push 0x606240
push eax
call fcn.004d1eb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e3569
test bl, bl
je 0x45e852
push 0x606240
lea ecx, [esp + 0xc]
call fcn.004e38f9
push 0x609e24
lea ecx, [esp + 0xc]
call fcn.004e38f9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x45e88e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004e3569
jmp 0x45e959
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x45e912
lea edx, [esp + 0x7c]
push 0x609e20
push edx
call fcn.004d1eb4
add esp, 8
test eax, eax
je 0x45e912
lea eax, [esp + 0x7c]
push 0x609e1c
push eax
call fcn.004d1eb4
add esp, 8
test eax, eax
je 0x45e912
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45e8a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004e3569
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x45f170
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45f1d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc