joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
mov ecx, 0x9e3779b9
mov eax, edx
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0xabcdef89
cmp edx, 0xc
jb 0x482dbc
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
movsx esi, byte [esi + 7]
shl esi, 8
movsx eax, byte [edx + 6]
add esi, eax
movsx eax, byte [edx + 5]
shl esi, 8
add esi, eax
movsx eax, byte [edx + 4]
add ecx, eax
shl esi, 8
add ecx, esi
mov esi, edx
movsx edx, byte [esi + 0xb]
movsx eax, byte [esi + 0xa]
shl edx, 8
add edx, eax
movsx eax, byte [esi + 9]
shl edx, 8
add edx, eax
movsx eax, byte [esi + 8]
add edi, eax
shl edx, 8
movsx eax, byte [esi + 2]
add edi, edx
movsx edx, byte [esi + 3]
shl edx, 8
add edx, eax
movsx eax, byte [esi + 1]
shl edx, 8
add edx, eax
movsx eax, byte [esi]
shl edx, 8
add edx, eax
mov eax, edi
shr eax, 0xd
sub edx, edi
sub edx, ecx
sub ecx, edi
add ebx, edx
xor ebx, eax
sub ecx, ebx
mov eax, ebx
shl eax, 8
xor ecx, eax
sub edi, ecx
mov eax, ecx
sub edi, ebx
shr eax, 0xd
xor edi, eax
sub ebx, edi
mov eax, edi
shr eax, 0xc
sub ebx, ecx
xor ebx, eax
sub ecx, edi
sub ecx, ebx
mov eax, ebx
shl eax, 0x10
xor ecx, eax
sub edi, ecx
mov eax, ecx
sub edi, ebx
shr eax, 5
xor edi, eax
sub ebx, edi
mov eax, edi
shr eax, 3
sub ebx, ecx
xor ebx, eax
sub ecx, edi
mov eax, ebx
sub ecx, ebx
shl eax, 0xa
xor ecx, eax
sub edi, ecx
mov eax, ecx
sub edi, ebx
shr eax, 0xf
xor edi, eax
add esi, 0xc
mov eax, dword [ebp - 4]
sub eax, 0xc
mov dword [ebp + 8], esi
sub dword [ebp - 8], 1
mov dword [ebp - 4], eax
jne 0x482cd6
mov edx, dword [ebp + 0xc]
dec eax
add edi, edx
cmp eax, 0xa
ja case.default.0x482dc4
jmp dword [eax*4 + 0x482e94]
movsx eax, byte [esi + 0xa]
shl eax, 0x18
add edi, eax
movsx eax, byte [esi + 9]
shl eax, 0x10
add edi, eax
movsx eax, byte [esi + 8]
shl eax, 8
add edi, eax
movsx eax, byte [esi + 7]
shl eax, 0x18
add ecx, eax
movsx eax, byte [esi + 6]
shl eax, 0x10
add ecx, eax
movsx eax, byte [esi + 5]
shl eax, 8
add ecx, eax
movsx eax, byte [esi + 4]
add ecx, eax
movsx eax, byte [esi + 3]
shl eax, 0x18
add ebx, eax
movsx eax, byte [esi + 2]
shl eax, 0x10
add ebx, eax
movsx eax, byte [esi + 1]
shl eax, 8
add ebx, eax
movsx eax, byte [esi]
add ebx, eax
sub ebx, edi
mov eax, edi
sub ebx, ecx
shr eax, 0xd
xor ebx, eax
sub ecx, edi
sub ecx, ebx
mov eax, ebx
shl eax, 8
xor ecx, eax
sub edi, ecx
mov eax, ecx
sub edi, ebx
shr eax, 0xd
xor edi, eax
sub ebx, edi
mov eax, edi
sub ebx, ecx
shr eax, 0xc
xor ebx, eax
sub ecx, edi
sub ecx, ebx
mov eax, ebx
shl eax, 0x10
xor ecx, eax
sub edi, ecx
mov eax, ecx
sub edi, ebx
shr eax, 5
xor edi, eax
sub ebx, edi
mov eax, edi
sub ebx, ecx
shr eax, 3
xor ebx, eax
sub ecx, edi
sub ecx, ebx
mov edx, ebx
shl edx, 0xa
xor ecx, edx
sub edi, ecx
shr ecx, 0xf
sub edi, ebx
xor edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571845
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00486330
add esp, 8
push 0x57b5a8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00460990
push eax
mov byte [ebp - 4], 1
call fcn.00484090
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x485494
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48548a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48548a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4854b1
xor bl, bl
jmp 0x4854b7
shr ebx, 4
and bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4854ed
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4854e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4854e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
Function at 0x48c370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x48c3a1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x492650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b5e58
push 0x563f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x492702
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x492702
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x492702
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x492702
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5c27c0], eax
je 0x492b6d
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5c27c4]
test eax, eax
jne 0x492c84
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x492b8c
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x492ba9
cmp dword [ebx], 0
jne 0x492bb6
mov dword [0x5c27c4], 6
mov dword [0x5c27c8], ebx
pop ebx
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push 0x18
call fcn.00563322
mov edi, eax
add esp, 4
test edi, edi
jne 0x492bcf
lea esi, [eax + 8]
jmp 0x492c64
push 0
push dword [ebx]
call fcn.00492ac0
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.00492ac0
mov esi, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [esi + 0x36]
mov eax, dword [esi + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x492c56
cmp ecx, 0x1e
ja 0x492c56
cmp dword [esi + 0x44], edx
jne 0x492c56
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x492c25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x492c64
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 4], 1
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x5c27d0]
mov dword [edi], eax
xor eax, eax
mov dword [0x5c27d0], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x5c27b8], 0
mov esi, 9
jne 0x492c6e
mov dword [0x5c27c4], esi
test edi, edi
je 0x492c79
push 0x18
push edi
call fcn.00563352
add esp, 8
pop edi
mov dword [0x5c27c8], ebx
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x492df0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5c27c0], 0
jne 0x492e6c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x5c27c0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x492e6c
push esi
mov esi, dword [0x5c27b0]
mov dword [0x5c27d0], eax
mov dword [0x5c27cc], eax
mov dword [0x5c27c8], eax
push edi
test esi, esi
je 0x492e4e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x492e5b
mov esi, dword [esi + 4]
test esi, esi
jne 0x492e35
xor eax, eax
pop edi
mov dword [0x5c27c4], eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x5c27c4], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x493320
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5c27c4]
test eax, eax
jne 0x4933a2
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x493341
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.00563322
mov esi, eax
add esp, 4
test esi, esi
jne 0x493357
lea edi, [eax + 8]
jmp 0x493376
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x49338e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.00563352
add esp, 8
pop esi
mov dword [0x5c27c4], edi
mov eax, edi
mov dword [0x5c27c8], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x5c27cc]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x5c27cc], esi
pop esi
pop edi
pop ebp
ret 4

Function at 0x4936e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b5f78
push 0x563f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x493723
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x49373e
push 0xc1
jmp 0x493833
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x20], ecx
cmp dword [ecx], 0x4550
je 0x493758
push 0xbf
jmp 0x493833
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x49382e
lea edx, [eax + ecx]
mov dword [ebp + 8], edx
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x24], edx
xor esi, esi
mov dword [ebp - 0x1c], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x49382e
lea edi, [esi + esi*4]
mov ecx, str..detour
lea eax, [edx + edi*8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4937b0
test dl, dl
je 0x4937ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4937b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x493790
xor eax, eax
jmp 0x4937b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49380c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + edi*8 + 0x24]
test eax, eax
je 0x49382e
cmp dword [ecx + edi*8 + 0x28], 0
je 0x49382e
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x49382e
cmp dword [esi + 4], 0x727444
jne 0x49382e
cmp dword [esi + 8], 0
jne 0x4937e7
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
jmp 0x493775
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x493b00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b5f18
push 0x563f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x493b46
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [ebp + 8], edx
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x493b61
push 0xc1
jmp 0x493cb8
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
je 0x493b77
push 0xbf
jmp 0x493cb8
cmp word [eax + edx + 0x14], 0
je 0x493cb3
mov eax, dword [eax + edx + 0x80]
test eax, eax
je 0x493b93
lea edi, [eax + edx]
jmp 0x493b95
xor edi, edi
mov dword [ebp - 0x20], edi
test edi, edi
je 0x493cb3
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi]
test ecx, ecx
je 0x493c64
mov eax, dword [edi + 0xc]
test eax, eax
je 0x493cb3
lea esi, [eax + edx]
test esi, esi
je 0x493cb3
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x493bd4
add eax, edx
jmp 0x493bd6
xor eax, eax
mov dword [ebp + 0x14], eax
push dword [eax]
call fcn.00494340
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x493bf3
push esi
push eax
mov esi, dword [ebp + 0xc]
push esi
call ecx
test eax, eax
je 0x493c67
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x493c56
nop
mov eax, dword [eax + esi*4]
test eax, eax
je 0x493c47
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor edx, edx
test eax, eax
jns 0x493c1a
movzx ecx, ax
mov dword [ebp - 0x24], ecx
jmp 0x493c28
add eax, 2
je 0x493c26
mov edx, dword [ebp + 8]
add edx, eax
jmp 0x493c28
xor edx, edx
test ebx, ebx
je 0x493c3e
mov eax, dword [ebp + 0x14]
lea eax, [eax + esi*4]
push eax
push edx
push ecx
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x493c47
inc esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x1c]
jmp 0x493c00
test ebx, ebx
je 0x493c56
push 0
push 0
push 0
push dword [ebp + 0xc]
call ebx
add edi, 0x14
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 8]
jmp 0x493ba3
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x493c75
push 0
push 0
push esi
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x493ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b5e98
push 0x563f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
add esi, 0x10000
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x493d59
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], 0x1000
jne 0x493de1
cmp byte [ebp - 0x20], 1
je 0x493de1
test dword [ebp - 0x20], 0x100
jne 0x493de1
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x493d93
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x493d93
cmp eax, 0x40
jb 0x493d93
cmp dword [eax + esi], 0x4550
je 0x493da2
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x493d34
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x493d34
Function at 0x4a0340
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4a03ef
push esi
call fcn.004b9e70
add esp, 4
test al, al
jne 0x4a03ef
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4a0367
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004cac60
add esp, 0xc
test eax, eax
je 0x4a039b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004cac60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a039d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x4a03ce
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004b4bd0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x4a03b0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4af6c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6e3], 0
je 0x4af75d
cmp dword [esi + 0x1a4], 0
je 0x4af717
push esi
call fcn.0049a3c0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.0049a700
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.0049a700
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x4af72c
sub eax, 1
je 0x4af72c
sub eax, 1
jne 0x4af75d
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x57d770]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x4b2400
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4b241a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x57daf4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x57db04
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
add esp, 8
test eax, eax
je 0x4b2462
test ebp, ebp
je 0x4b2453
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4b2488
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b2488
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4b2562
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b24a5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x5bf140]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b2558
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4b2558
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b24e6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2501
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4b2520
test ebp, ebp
je 0x4b254f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5bf144]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x5bf144]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4b9e70
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x5bfd00]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4b9eb8
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00563360
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.00563360
add esp, 0x18
ret

Function at 0x4ba020
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4ba05e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x108], 0
jne 0x4ba04f
push 0
call fcn.004ba020
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x108], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x108], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4ba073
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x4cb6f0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004a0990
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004ca6f0
push dword [esp + 0x40]
mov edi, eax
call fcn.004ca6f0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x4cb785
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.004a0990
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.004a0a40
add esp, 0x20
test edx, edx
ja 0x4cb7a9
jb 0x4cb777
cmp eax, 0x3e8
ja 0x4cb7a9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4cb740
test edi, edi
je 0x4cb792
push edi
call fcn.00564f8c
add esp, 4
test esi, esi
je 0x4cb79f
push esi
call fcn.00564f8c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4cb7b6
push edi
call fcn.00564f8c
add esp, 4
test esi, esi
je 0x4cb7c3
push esi
call fcn.00564f8c
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret