joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552300
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [esp + 0x140]
sub esp, 4
lea eax, [esp + 0x30]
push 0x100
push 0x80
push eax
call fcn.00566e77
add esp, 0x10
mov dword [esp + 0x6d], 0x3020100
mov dword [esp + 0x71], 0x7060504
mov dword [esp + 0x75], 0xb0a0908
mov dword [esp + 0x79], 0xf0e0d0c
mov word [esp + 0x7d], 0x1110
mov dword [esp + 0x7f], 0x15141312
mov dword [esp + 0x83], 0x19181716
mov dword [esp + 0x8d], 0x1d1c1b1a
mov dword [esp + 0x91], 0x21201f1e
mov dword [esp + 0x95], 0x25242322
mov dword [esp + 0x99], 0x29282726
mov word [esp + 0x9d], 0x2b2a
mov dword [esp + 0x9f], 0x2f2e2d2c
mov dword [esp + 0xa3], 0x33323130
mov word [esp + 0x5c], 0x3534
mov byte [esp + 0x5e], 0x36
mov word [esp + 0x5f], 0x3837
mov byte [esp + 0x61], 0x39
mov byte [esp + 0x62], 0x3a
mov byte [esp + 0x63], 0x3b
mov byte [esp + 0x64], 0x3c
mov byte [esp + 0x65], 0x3d
mov byte [esp + 0x57], 0x3e
mov byte [esp + 0x5b], 0x3f
mov byte [esp + 0x69], 0
sub esp, 8
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0053e43c
add esp, 0x10
cmp dword [esp + 0x28], 0xf
ja 0x55240a
lea esi, [esp + 0x14]
jmp 0x55240e
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x144]
xor ebp, ebp
movzx eax, byte [esi]
test eax, eax
je 0x55250c
mov al, byte [esp + eax + 0x2c]
test al, al
js 0x55250a
movzx ecx, byte [esi + 1]
test ecx, ecx
je 0x55250a
mov ah, byte [esp + ecx + 0x2c]
test ah, ah
js 0x55250a
movzx edi, byte [esi + 2]
test edi, edi
je 0x55250a
mov cl, byte [esp + edi + 0x2c]
test cl, cl
js 0x55250a
movzx ebx, byte [esi + 3]
test ebx, ebx
je 0x55250a
mov dword [esp + 0xc], esi
mov esi, ebp
mov ebp, ebx
mov bl, byte [esp + ebx + 0x2c]
test bl, bl
js 0x55250a
shl al, 2
mov ch, ah
shr ch, 4
or ch, al
mov byte [esp + 5], ch
shl ah, 4
mov al, cl
shr al, 2
or al, ah
mov byte [esp + 6], al
shl cl, 6
or bl, cl
mov byte [esp + 7], bl
xor eax, eax
mov ebx, ebp
cmp bl, 0x3d
sete cl
mov ebx, edi
cmp bl, 0x3d
mov edi, 1
je 0x5524c2
mov al, cl
mov edi, 3
sub edi, eax
mov byte [edx], ch
cmp edi, 2
mov ebp, esi
jb 0x5524f0
mov eax, 1
movzx ecx, byte [esp + eax + 5]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jl 0x5524d0
add ebp, eax
add edx, eax
jmp 0x5524f2
inc edx
inc ebp
mov esi, dword [esp + 0xc]
add esi, 4
cmp edi, 3
je 0x552502
mov dword [esp + 8], ebp
je 0x552417
jmp 0x552510
xor ebp, ebp
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x552535
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1000
jb 0x552529
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0055a7a8
add esp, 0x10
mov eax, dword [esp + 8]
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x554c40
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [0x597c98]
add eax, dword [ecx]
mov edx, dword [0x597c9c]
add edx, dword [ecx + 4]
mov edi, 0xffffffa0
nop
xor eax, edx
mov ecx, edx
rol eax, cl
add eax, dword [edi + 0x597d00]
xor edx, eax
mov ecx, eax
rol edx, cl
add edx, dword [edi + 0x597d04]
add edi, 8
jne 0x554c60
mov dword [esi], eax
mov dword [esi + 4], edx
pop esi
pop edi
ret

Function at 0x554c88
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edi, 0x60
nop word cs:[eax + eax]
sub eax, dword [edi + 0x597c9c]
mov ecx, edx
ror eax, cl
xor eax, edx
sub edx, dword [edi + 0x597c98]
mov ecx, eax
ror edx, cl
xor edx, eax
add edi, 0xfffffff8
jne 0x554ca8
sub edx, dword [0x597c98]
mov dword [esi], edx
sub eax, dword [0x597c9c]
mov dword [esi + 4], eax
pop esi
pop edi
ret

Function at 0x5613d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x5613e9
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x561964
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x56197c
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x561ec4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x561ed9
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret
Function at 0x563184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x5631ad
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5633e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x56351a
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x56351a
cmp dword [esp + 0x28], 0
je 0x56351a
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x56351a
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x598550], eax
cmp dword [ebp], 0
jne 0x5634ce
mov dword [ebp], 0x5633b8
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x5634dd
mov dword [eax], 0x5633a8
mov ecx, dword [esi]
test ecx, ecx
je 0x56350a
cmp dword [edi], 0
je 0x56351a
cmp dword [ebx], 0
je 0x56351a
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x56351a
cmp dword [ebp], 0
je 0x56351a
cmp dword [eax], 0
je 0x56351a
xor eax, eax
test ecx, ecx
setne al
jmp 0x56351c
mov dword [esi], 0x5633a8
mov ecx, 0x5633a8
cmp dword [edi], 0
jne 0x5634e8
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x564ad8
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce1a], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce19], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce18], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce17], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce16], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce15], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x58ce14], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x58ce13], al
sub esp, 4
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
add esp, 4
mov esi, eax
test esi, esi
je 0x564bbb
sub esp, 0xc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov edi, dword [eax]
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
jmp 0x564bbd
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
ret

Function at 0x564bc8
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [0x58c6b0], 0x56549e
jne 0x564c2c
cmp dword [0x58c6b4], fcn.00565822
jne 0x564c2c
cmp dword [0x58c6b8], fcn.00565a1a
jne 0x564c2c
cmp dword [0x58c6bc], fcn.00565d34
jne 0x564c2c
cmp dword [0x58c6c0], 0x563b68
jne 0x564c2c
cmp dword [0x58c6c4], 0x563b78
jne 0x564c2c
mov ecx, dword [0x5985b4]
test ecx, ecx
jne 0x564c2c
call fcn.00564ad8
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x564c30
add esp, 0xc
ret
sub esp, 8
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
add esp, 8
mov dword [0x5985b4], eax
sub esp, 0xc
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov dword [eax], fcn.0056549e
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
add esp, 0xc
mov eax, 1
add esp, 0xc
ret
Function at 0x5674fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.005687c8
test bh, 0xc0
jne 0x56751f
mov eax, dword [0x58d7d4]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x567543
sar eax, 6
mov esi, dword [eax + 0x58d230]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x56756c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x58d250]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x56757f
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x567598
cmp al, 2
je 0x56759f
cmp al, 1
jne 0x567697
mov eax, 0x40000000
jmp 0x5675a4
mov eax, SysReAllocStringLen
jmp 0x5675a4
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x567674
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.00567454
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.00568988
mov edi, eax
cmp edi, 0xffffffff
jne 0x5676a5
mov dword [esp], 4
call fcn.00568d64
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x5676a5
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x56769e
mov dword [esp], 1
call fcn.00568d64
mov edi, eax
call fcn.00568818
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x567c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x58d704], eax
jbe 0x567c7d
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x59a880]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x567c84
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x567c9a
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x567c96
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00568d64
add esp, 0x10
add esp, 0xc
ret
Function at 0x567cb8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x58d704], eax
jbe 0x567cf5
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x59a880]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x567d06
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00568d64
add esp, 0x10
add esp, 0xc
ret
call fcn.00568e04
add esp, 0xc
ret
Function at 0x56b060
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x56b07d
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.00568e04

Function at 0x56d618
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
sub esp, 8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5672df
xor eax, eax
test bl, 2
je 0x5672da
and ecx, 1
je 0x5672da
call fcn.005749a4
mov dword [eax], 5
mov eax, 0xffffffff
add esp, 8
pop ebx
ret
add esp, 8
pop ebx
jmp fcn.00568e04
jmp 0x5672a0
Function at 0x56ebf8
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00566fdc
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.00566fdc
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00566fdc
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.00566fdc
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.00572120
mov edi, dword [esi + 0x24]
test edi, edi
je 0x56ecec
mov dword [esp], edi
call fcn.00566fdc
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00566fdc
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.00566fdc
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005637b4
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x56ed41
jmp 0x56ed89
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00566fdc
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.00566fdc
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.0056379c
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x56ed89
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00566fdc
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00566e77
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00566e90
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.00566fdc
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00566e90
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.00566fdc
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x56ed8b
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5707e4
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0056379c
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0056379c
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x570857
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x570866
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0056379c
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0056379c
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0056379c
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.0056379c
add esp, 0x10
mov esi, eax
test esi, esi
je 0x570950
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x57095f
push esi
call fcn.005719a4
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.005637ac
add esp, 0x10
mov eax, 1
jmp 0x57096a
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x570968
push esi
call fcn.005637ac
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x57379c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], 0
call fcn.005749a4
mov dword [eax], 0
movzx eax, word [ebx]
sub esp, 0xc
push eax
call fcn.0056decc
add esp, 0x10
test eax, eax
je 0x5737fc
mov esi, dword [esp + 4]
nop dword [eax]
inc esi
movzx eax, word [ebx + 2]
add ebx, 2
sub esp, 0xc
push eax
call fcn.0056decc
add esp, 0x10
test eax, eax
jne 0x5737dc
mov dword [esp + 0x20], ebx
mov dword [esp + 4], esi
mov esi, dword [esp + 0x24]
movzx ebp, word [ebx]
cmp ebp, 0x2d
sete byte [esp + 3]
lea eax, [esp + 8]
lea ecx, [esp + 4]
lea edx, [esp + 0x20]
push 0
push eax
push ecx
push 0x7fff
push edi
push edx
push 0x5738dc
push 0x5738bc
call fcn.00569fb8
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 8]
test eax, eax
jle 0x573859
cmp eax, 1
je 0x573869
cmp eax, 2
jne 0x57389d
call fcn.005749a4
mov dword [eax], 0x22
test esi, esi
jne 0x5738a1
jmp 0x5738a7
mov eax, dword [esp + 4]
add eax, eax
sub dword [esp + 0x20], eax
test esi, esi
jne 0x5738a1
jmp 0x5738a7
test ebx, ebx
je 0x57389d
xor ecx, ecx
mov al, byte [esp + 3]
mov cl, al
mov eax, ebx
shr eax, 0x1f
xor eax, 1
cmp eax, ecx
jne 0x57389d
movzx eax, bp
xor ebx, ebx
cmp eax, 0x2d
sete bl
call fcn.005749a4
mov dword [eax], 0x22
add ebx, 0x7fffffff
test esi, esi
je 0x5738a7
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5748d4
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x57499a
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x59ab88
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x59ab88
call fcn.00566fdc
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x59ab88
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.00566fdc
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5749cc
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x59aba8]
test eax, eax
mov ecx, dword [0x59aba4]
jne 0x574a91
test ecx, ecx
jne 0x574a91
cmp dword [0x58ebd4], 0
je 0x574ac7
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00574238
add esp, 0x10
test eax, eax
jne 0x574a3c
sub esp, 8
push 0x3a
push esi
call fcn.00574238
add esp, 0x10
test eax, eax
je 0x574a3f
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x574a82
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x574b5c
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x574b14
cmp ecx, 0xffffffff
je 0x574b14
test ecx, ecx
je 0x574aa8
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x59aba8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x574b14
cmp byte [eax], 0
je 0x574b14
sub esp, 8
push edi
push eax
call fcn.005748d4
add esp, 0xa0
jmp 0x574b1a
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x58ea2c
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.00566fdc
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x58ea2c
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret