joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5052ad
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
jle 0x5052cb
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x5052cb
cmp byte [edi], 0
jne 0x5052dd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
push 0x800
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [0x50b388], esi
jne 0x5052d2
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x11c]
push edi
push eax
call ebx
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
dec edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [eax + edi], 0x5c
je 0x505322
lea eax, [ebp - 0x11c]
push 0x501190
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x11c]
push 0x501878
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x140
lea eax, [ebp - 0x25c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
lea eax, [ebp - 0x25c]
push eax
jne 0x50537b
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x505370
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x505441
jmp 0x50538c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x505438
cmp byte [ebp - 0x230], 0x2e
jne 0x5053b0
cmp byte [ebp - 0x22f], 0
je 0x50534c
cmp byte [ebp - 0x22f], 0x2e
jne 0x5053b0
cmp byte [ebp - 0x22e], 0
je 0x50534c
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [eax + edi], 0x5c
je 0x5053e1
lea eax, [ebp - 0x11c]
push 0x501190
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
test byte [ebp - 0x25c], 0x10
je 0x50541e
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.005052ad
pop ecx
pop ecx
jmp 0x50534c
lea eax, [ebp - 0x11c]
lea esi, [ebp - 0x25c]
push eax
call fcn.00505131
pop ecx
xor esi, esi
jmp 0x50534c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
pop ebx
jmp 0x5052ce
Function at 0x505449
Capabilities:
Contain obfuscated stackstrings
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov byte [ebp - 0x14], 0x4c
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x63
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x53
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x6e
mov byte [ebp - 8], 0x67
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], bl
mov byte [ebp - 0x30], 0x54
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x6d
mov byte [ebp - 0x2d], 0x70
mov byte [ebp - 0x2c], 0x6f
mov byte [ebp - 0x2b], 0x72
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x72
mov byte [ebp - 0x28], 0x79
mov byte [ebp - 0x27], 0x20
mov byte [ebp - 0x26], 0x49
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x1d], 0x46
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], bl
mov dword [ebp - 4], ebx
mov esi, 0x184
push esi
lea eax, [ebp - 0x1b4]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], ebx
lea eax, [ebp - 0x1b4]
push esi
push eax
jne 0x505529
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x505534
push 0x50187c
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x1b4], bl
je 0x5055a2
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x1b4]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x505564
lea eax, [ebp - 0x1b4]
push 0x501190
push eax
call edi
cmp dword [ebp - 4], 1
jne 0x505585
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1b4]
push eax
call edi
lea eax, [ebp - 0x1b4]
push 0x501190
push eax
call edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1b4]
push eax
call edi
lea eax, [ebp - 0x1b4]
push 5
push eax
call fcn.005052ad
pop ecx
pop ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x505503
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5055b4
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 sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov bl, byte [ebp - 0x104]
lea eax, [ebp - 0x103]
push 0x501888
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x104]
push 0xf
push eax
call fcn.005052ad
pop ecx
mov byte [ebp - 0x104], 0x43
pop ecx
cmp byte [ebp - 0x104], bl
je 0x505648
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x505648
push 0x1194
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x104]
push 0xf
push eax
call fcn.005052ad
pop ecx
pop ecx
inc byte [ebp - 0x104]
cmp byte [ebp - 0x104], 0x5a
jle 0x505613
pop esi
pop ebx
leave
ret

Function at 0x5056d5
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x5056e9
call fcn.0050568c
mov ecx, eax
test ecx, ecx
jne 0x5056ed
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
test edi, edi
not eax
jle 0x505712
mov dl, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [ecx + edx*4]
xor eax, edx
inc esi
dec edi
jne 0x5056fc
pop edi
pop esi
not eax
ret

Function at 0x505772
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]
mov dword [ebp - 8], esi
mov ebx, 0x400
jmp 0x5057b9
cmp dword [ebp - 4], esi
je 0x5057d2
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call fcn.005056d5
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x408]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x50579c
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 0x505f2a
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 0x208]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0x208]
push 0x502714
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0
push eax
lea edi, [esi + 0x5ab]
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x104]
push eax
call fcn.00505ee3
add esi, 0x4aa
pop ecx
cmp byte [esi], 0
je 0x505f9a
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov byte [esi], 1
pop edi
pop esi
leave
ret
Function at 0x50666d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
add eax, 0x5ab
push edi
push edi
push 3
push edi
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x5066a4
xor eax, eax
inc eax
jmp 0x5067bf
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 4], eax
jb 0x5066e1
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x418]
push 0x400
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 0x14], edi
je 0x50677d
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
inc esi
inc dword [ebp - 4]
cmp esi, 3
mov al, byte [ebp + eax - 0x418]
mov byte [ebp + esi - 0xd], al
jne 0x5066b3
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00506609
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x7b8], edi
je 0x506740
call fcn.005033b4
movzx eax, ax
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 2
jge 0x50672e
mov eax, dword [ebp + 8]
mov byte [ebx + eax], 0x20
jmp 0x50673f
cmp edx, 4
jge 0x506740
mov eax, dword [ebp + 8]
mov byte [ebx + eax], 0xd
inc ebx
mov byte [ebx + eax], 0xa
inc ebx
mov eax, dword [ebp + 8]
mov cl, byte [ebp + esi - 8]
mov byte [ebx + eax], cl
inc ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x4c
jb 0x506761
mov byte [ebx + eax], 0xd
inc ebx
mov dword [ebp - 0x10], edi
mov byte [ebx + eax], 0xa
inc ebx
inc esi
cmp esi, 4
jb 0x506705
push 3
lea eax, [ebp - 0xc]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor esi, esi
jmp 0x5066b3
cmp esi, edi
je 0x5067ab
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00506609
cmp esi, 3
jae 0x506795
mov byte [ebp - 5], 0x3d
cmp esi, 2
jae 0x50679e
mov byte [ebp - 6], 0x3d
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
lea edi, [ebx + eax]
add ebx, 4
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
push dword [ebp - 0x18]
and byte [ebx + eax], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x506966
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c0
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x506a98
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 7
jl 0x506a98
push esi
push 0x7c0
lea eax, [ebp - 0x7c0]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x7c0], ebx
call fcn.005033b4
movzx eax, ax
push 0x64
xor esi, esi
cdq
pop ecx
inc esi
idiv ecx
cmp edx, 0x46
jge 0x5069c6
mov dword [ebp - 0x7c0], esi
mov dword [ebp - 8], ebx
call fcn.005033b4
movzx eax, ax
push 0x64
cdq
pop ecx
idiv ecx
cmp edx, 0x32
jge 0x5069df
mov dword [ebp - 8], esi
lea eax, [ebp - 0x7bc]
push edi
push eax
mov dword [ebp - 0x5bc], edi
call fcn.00505a21
pop ecx
lea eax, [ebp - 0x7c0]
pop ecx
call fcn.00505a45
lea eax, [ebp - 0x7c0]
call fcn.00505bf9
lea eax, [ebp - 0x7c0]
call fcn.00505dc7
lea esi, [ebp - 0x7c0]
call fcn.00505faf
test eax, eax
pop esi
jne 0x506a98
mov eax, dword [ebp - 0x110]
push 3
shl eax, 2
cdq
pop ecx
idiv ecx
mov ecx, 0x400
add eax, 0x239f
cdq
idiv ecx
shl eax, 0xa
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x506a75
mov byte [eax], bl
lea eax, [ebp - 0x7c0]
call fcn.005067c2
lea eax, [ebp - 0x7c0]
push eax
call fcn.00506895
test eax, eax
pop ecx
je 0x506a9c
cmp byte [ebp - 0x316], bl
je 0x506a8a
lea eax, [ebp - 0x215]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp - 0xc], ebx
je 0x506a98
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
jmp 0x506ab4
cmp byte [ebp - 0x316], bl
je 0x506ab1
lea eax, [ebp - 0x215]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
and dword [ebp - 4], 0
push ebx
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
jle 0x506b41
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edi
sub dword [ebp - 8], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x506b1c
cdq
mov ecx, 0x3e8
mov dword [ebp - 0x110], esi
idiv ecx
mov dword [ebp - 0x114], edi
imul edx, edx, 0x3e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x506b41
push 0
push edi
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jl 0x506b4f
je 0x506b41
mov al, byte [ebx]
inc dword [ebp - 4]
inc ebx
cmp al, 0xa
je 0x506b41
mov eax, dword [ebp - 8]
add eax, ebx
cmp eax, dword [ebp + 0xc]
jl 0x506ad8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
and byte [eax + ecx], 0
pop edi
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x506b4b
Function at 0x506b54
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x506b6c
test esi, esi
jne 0x506b7e
cmp byte [edi], 0x30
je 0x506b85
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x506b7e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x506b85
xor esi, esi
mov eax, esi
pop esi
ret

Function at 0x506d65
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, eax
je 0x506daa
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x200]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x200]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x200]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, 0x200
jmp 0x506de4
lea ecx, [ebp - 0x200]
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0x20
je 0x506dc5
cmp dl, 9
jne 0x506dd8
inc ecx
jmp 0x506db9
cmp dl, 0x39
jg 0x506ddf
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
mov dl, byte [ecx]
cmp dl, 0x30
jge 0x506dc8
cmp byte [ecx], 0x2d
jne 0x506dfd
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.00506ab8
add esp, 0xc
test eax, eax
jg 0x506db1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x507093
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x502ae4
push edi
push eax
push eax
push 0x502ad8
lea eax, [ebp - 0x124]
push 0x502ab0
push eax
call esi
push 0x502aa8
push 0x502aa0
lea eax, [ebp - 0xa4]
push 0x502a98
push eax
call esi
add esp, 0x24
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
lea eax, [ebp - 0x124]
push edi
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x507103
xor eax, eax
inc eax
jmp 0x5071f4
mov esi, 0x100
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x324]
push esi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push edi
jmp 0x5071d5
lea eax, [ebp - 0x10]
inc dword [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x324]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5071ca
push esi
lea eax, [ebp - 0x224]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x224]
push eax
push edi
lea eax, [ebp - 0xa4]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5071bc
lea edi, [ebp - 0x224]
call fcn.00506b54
test eax, eax
mov dword [ebp - 0x20], eax
je 0x5071ba
push 0x19
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00506e01
pop ecx
test eax, eax
pop ecx
jne 0x5071ba
mov dword [ebp - 0xc], 1
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], edi
jne 0x5071e2
lea eax, [ebp - 0x324]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x507123
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], edi
pop ebx
sete al
pop edi
pop esi
leave
ret
Function at 0x50746b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, 0x100
lea eax, [ebp - 0x10c]
push edi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push esi
push 0x80
push 3
push esi
push 3
lea eax, [ebp - 0x10c]
push connect
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x507545
lea eax, [ebp - 0x10c]
push eax
call fcn.005073e8
pop ecx
lea eax, [ebp - 0x10c]
push esi
push 0x80
push 2
push esi
push 3
push 0xc0000000
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x507545
push esi
push esi
push dword [ebp - 8]
call fcn.00503697
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x50751b
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10c]
push dword [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 4], esi
call ebx
cmp dword [ebp - 4], esi
jne 0x507503
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x50754a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.005073e8
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [ebp - 0x108]
push connect
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x5075e2
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea ecx, [ebp - 4]
push ebx
push ecx
mov edi, 0x100
lea ecx, [ebp - 0x108]
push edi
push ecx
push eax
jmp 0x5075cd
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x108]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x108]
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
cmp dword [ebp - 4], ebx
jne 0x5075a5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5075e5
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
call fcn.0050746b
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x40
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
jne 0x507627
push 0x100
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x507633
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor eax, eax
cmp byte [ebp - 0x158], bl
je 0x50766b
inc eax
cmp byte [ebp + eax - 0x158], bl
jne 0x50763d
cmp eax, ebx
je 0x50766b
mov cl, byte [ebp + eax - 0x159]
cmp cl, 0x5c
je 0x50766b
cmp cl, 0x2f
je 0x50766b
mov byte [ebp + eax - 0x158], 0x5c
mov byte [ebp + eax - 0x157], bl
lea eax, [ebp - 0x158]
push 0x502b18
push eax
call esi
lea eax, [ebp - 0x158]
push 0x501830
push eax
call esi
lea eax, [ebp - 0x158]
push 0x5025ac
push eax
call esi
push ebx
push 0x80
push 2
push ebx
push 3
lea eax, [ebp - 0x158]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5076c8
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x507601
jmp 0x50772b
push edi
call fcn.0050737c
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x258]
push 0x502b10
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x48]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], 0x81
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x258]
push ebx
push eax
push ebx
mov word [ebp - 0x18], bx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403576
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40159b
cmp byte [esi + ebx - 1], 0xa
je 0x40156f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret