joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a624138
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x4a624263
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call fcn.4a60801c
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x4a6241d5
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x4a6ca988]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x4a624175
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x4a6241ea
dec edx
je 0x4a62421b
jmp 0x4a62426a
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4a6ca988]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x4a62426a
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4a6ca988]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x4a6ca988]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x4a62426a
mov eax, edi
call fcn.4a6075ac
pop edi
pop esi
pop ebx
ret
Function at 0x4a625bc4
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a625d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a625c08
mov eax, ebx
call fcn.4a60824c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4a625c3e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a625d20
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x10]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4a625d20
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a625c6e
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.4a60824c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
jmp 0x4a625ca0
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x14]
mov edx, ebx
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x14]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4a625d20
xor eax, eax
push ebp
push 0x4a625d19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, esi
xor ecx, ecx
call fcn.4a60801c
cmp dword [esi], 0
je 0x4a625cf9
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
call fcn.4a607a64
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4a625cf9
mov eax, dword [esi]
call fcn.4a607a64
cmp eax, dword [ebp - 0xc]
je 0x4a625cfd
xor eax, eax
jmp 0x4a625cff
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a625d20
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a625d42
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.4a607618
ret
Function at 0x4a631ea8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
movzx eax, cl
mov edx, dword [ebp - 4]
cmp word [edx + eax*2], 0xffff
jne 0x4a631efa
mov dword [ebp - 0xc], 0x7fffffff
xor esi, esi
mov ebx, dword [ebp - 8]
movzx eax, cl
movzx edx, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0xc]
jge 0x4a631ef1
movzx edx, cl
mov edi, dword [ebp - 4]
lea edi, [edi + edx*2]
mov word [edi], si
mov dword [ebp - 0xc], eax
inc esi
add ebx, 3
cmp esi, 0x10
jne 0x4a631ed0
movzx eax, cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a632e7c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.4a60df34
mov dword [ebp - 0x14], 0x14
push 0x4a632f84
push 0x4a632fa0
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.4a60d6e0
mov ebx, eax
test ebx, ebx
je 0x4a632ebf
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x4a632f15
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x4a632f15
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x4a632ee7
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x4a632ee9
xor ebx, ebx
test ebx, ebx
je 0x4a632efb
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4a632f15
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4a632f7e
test byte [ebp - 0x10], 1
je 0x4a632f7e
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x4a632f56
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a632f3d
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a632f4a
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a634ccc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x4a634d60
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x4a634d24
inc esi
mov cl, 0xff
jmp 0x4a634d28
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x4a634d3f
inc esi
mov dl, 0xff
jmp 0x4a634d43
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x4a634d5a
inc esi
mov al, 0xff
jmp 0x4a634d8d
add al, byte [esp + 7]
jmp 0x4a634d8d
cmp cl, byte [esp + 5]
jae 0x4a634d6b
inc esi
xor ecx, ecx
jmp 0x4a634d6f
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x4a634d7a
inc esi
xor edx, edx
jmp 0x4a634d7e
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x4a634d89
inc esi
xor eax, eax
jmp 0x4a634d8d
sub al, byte [esp + 7]
dec esi
jle 0x4a634da4
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.4a634ccc
jmp 0x4a634db7
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a635f9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a6360a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.4a60df34
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a63601a
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.4a6361c4
mov eax, dword [ebp - 4]
call fcn.4a607a58
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.4a6361c4
mov eax, dword [ebp - 8]
call fcn.4a60824c
push eax
push edi
call sub.user32.dll_DrawTextW
jmp 0x4a63606c
push 0x410
push esi
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.4a6361c4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0xc]
call fcn.4a607a64
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.4a6361c4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x14]
call fcn.4a607ee8
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6360ae
lea eax, [ebp - 0x18]
call fcn.4a607588
lea eax, [ebp - 0x14]
call fcn.4a6075ac
lea eax, [ebp - 0x10]
call fcn.4a607588
lea eax, [ebp - 0xc]
call fcn.4a6075ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a6075e8
ret

Function at 0x4a636580
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a636658
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x14], 0
je 0x4a636638
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a6365ed
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.4a608364
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.4a607a58
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.4a608364
jmp 0x4a636638
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.4a60801c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.4a607a64
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.4a60801c
lea eax, [ebx + 0x50]
mov edx, dword [ebp - 4]
call fcn.4a608314
mov eax, esi
mov edx, dword [ebx + 0x50]
call fcn.4a607948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a63665f
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a648808
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4a648841
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.4a6076f0
jmp 0x4a64884a
mov eax, ebx
mov edx, esi
call fcn.4a607948
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a648854
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4a648876
movzx eax, word [esp]
jmp 0x4a648878
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a649b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4a649c95
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.4a649978
mov esi, eax
mov eax, dword [0x4a6ce768]
cmp byte [eax], 0
je 0x4a649c3d
mov eax, dword [0x4a6ce5c8]
call fcn.4a605114
call fcn.4a6049fc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4a649b40]
call fcn.4a609150
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4a649cb0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4a649c79
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4a6ce590]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a6d1c4c]
call fcn.4a60934c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a649c9c
lea eax, [ebp - 4]
mov edx, dword [0x4a649b40]
call fcn.4a609274
ret
Function at 0x4a64ad00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a64ae00
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.4a607990
lea eax, [ebp - 4]
call fcn.4a607b30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4a64adea
mov eax, ebx
call fcn.4a604878
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4a64ade3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4a64adcd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a64ae14
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4a64adcd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a64adea
mov eax, dword [ebp - 0x10]
call fcn.4a604894
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a64ae07
lea eax, [ebp - 4]
call fcn.4a607588
ret

Function at 0x4a64b73c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.4a607a70
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.4a60aca4
mov edi, eax
cmp edi, 0x104
jbe 0x4a64b6e7
mov eax, edi
add eax, eax
call fcn.4a604878
mov esi, eax
jmp 0x4a64b6e9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.4a60aca4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4a64b722
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4a64b70c
mov eax, esp
cmp esi, eax
je 0x4a64b72f
mov eax, esi
call fcn.4a604894
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4a64b768
cmp bl, 0
je 0x4a64b764
cmp bl, 0x41
jl 0x4a64b75f
cmp bl, 0x5a
jg 0x4a64b75f
or bl, 0x20
xor al, bl
inc esi
jmp 0x4a64b743
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4a64b6a8

Function at 0x4a64b984
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.4a6082f8
add esp, 0x800
pop ebx
ret
Function at 0x4a6524b8
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a652726
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a6525f4
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x4a65253e
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.4a6082f8
jmp 0x4a652545
mov eax, ebx
call fcn.4a607588
cmp dword [ebx], 0
jne 0x4a652558
mov ecx, ebx
xor edx, edx
mov eax, 0x1a
call fcn.4a654808
cmp dword [ebx], 0
je 0x4a6526e2
push 0
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, dword [ebx]
call fcn.4a607a58
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4a65258c
mov eax, ebx
mov edx, 0x4a652740
call fcn.4a6083e4
push dword [ebx]
lea edx, [ebp - 0x218]
xor eax, eax
call fcn.4a652200
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
call fcn.4a612238
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.4a6522b4
push dword [ebp - 0x210]
push 0x4a652750
mov eax, ebx
mov edx, 3
call fcn.4a6084c4
push 0
mov eax, dword [ebx]
call fcn.4a60824c
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, ebx
mov edx, 0x4a652740
call fcn.4a6083e4
jmp 0x4a6526e2
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x4a6526db
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x20a]
mov edx, esi
mov ecx, 0
call fcn.4a607c04
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.4a608314
cmp dword [ebx], 0
je 0x4a6526e2
push 0
push esi
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.4a607a58
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4a652660
mov eax, ebx
mov edx, 0x4a652740
call fcn.4a6083e4
push dword [ebx]
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.4a652200
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.4a612238
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.4a6522b4
push dword [ebp - 0x220]
push 0x4a652750
mov eax, ebx
mov edx, 3
call fcn.4a6084c4
push 0
lea eax, [ebp - 0x22c]
mov edx, dword [ebx]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x22c]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x4a652740
call fcn.4a6083e4
jmp 0x4a6526e2
mov eax, ebx
call fcn.4a607588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a65272d
lea eax, [ebp - 0x22c]
call fcn.4a6075ac
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.4a6075e8
lea eax, [ebp - 0x21c]
call fcn.4a6075ac
lea eax, [ebp - 0x218]
mov edx, 3
call fcn.4a6075e8
ret
Function at 0x4a652768
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
xor eax, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6529b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.4a6524b8
cmp dword [ebp - 4], 0
je 0x4a652981
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a652885
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a652981
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
mov ecx, 0x4a6529d0
mov edx, dword [ebp - 4]
call fcn.4a60843c
mov eax, dword [ebp - 0x258]
call fcn.4a60824c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a652872
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.4a6082f8
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.4a60843c
mov eax, dword [ebp - 0x25c]
call fcn.4a60824c
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4a652820
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.kernel32.dll_RemoveDirectoryW
jmp 0x4a652981
lea eax, [ebp - 0x264]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x264]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4a652981
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
lea eax, [ebp - 0x268]
mov edx, 0x4a6529e4
call fcn.4a607cc4
mov eax, dword [ebp - 0x268]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a65295d
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x254]
add edx, 0x2c
mov ecx, 0x104
push 0
call fcn.4a607c8c
mov edx, dword [ebp - 0x270]
pop eax
call fcn.4a607cc4
mov eax, dword [ebp - 0x26c]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4a6528f4
push ebx
call sub.kernel32.dll_FindClose_1
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x274]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6529be
lea eax, [ebp - 0x274]
mov edx, 5
call fcn.4a607618
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.4a6075e8
lea eax, [ebp - 4]
call fcn.4a607588
ret
Function at 0x4a6529e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor edx, edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a652a8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a652a41
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.4a6082f8
jmp 0x4a652a74
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0
call fcn.4a607c04
mov edx, dword [ebp - 0x214]
mov eax, ebx
call fcn.4a608314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a652a94
lea eax, [ebp - 0x214]
call fcn.4a6075ac
ret