joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f32bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f3394
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x65078c], 0
jne 0x4f3378
lea eax, [ebp - 4]
mov edx, 0x4f33ac
call fcn.0049b958
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0049bd70
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4f3378
mov eax, ebx
call fcn.00499b44
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f3371
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4f335b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f33bc
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4f335b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x65078c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3378
mov eax, dword [ebp - 0xc]
call fcn.00499b64
ret
mov ebx, dword [0x65078c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f339b
lea eax, [ebp - 4]
call fcn.0049b8c0
ret

Function at 0x5047a8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x50481a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5047ee
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0049bab0
jmp 0x5047f5
mov eax, ebx
call fcn.0049b8c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504821
cmp dword [ebp - 8], 0
je 0x504811
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x504828
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x5048ca
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x50489d
mov edx, ebx
mov eax, dword [0x4bfb90]
call fcn.004c43d8
test al, al
je 0x50488d
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004c42e8
call fcn.0049b408
jmp 0x5048d1
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x504858
mov ecx, dword [0x64f748]
mov dl, 1
mov eax, dword [0x487654]
call fcn.0048c32c
call fcn.0049b35c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5048d1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x5048d8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x504930
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504937
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x504940
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x504995
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50499c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x504a0c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x504a81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005046e4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004c43ac
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x504a6b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504a88
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x504a90
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x504b05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005046e4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x504aef
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504b0c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x50bbd4
call fcn.0050d74c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x50bbf0
test bl, 1
je 0x50bbf0
call fcn.005153c4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x50bdd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0050d2e8
test byte [ebp + 0xd], 0xc0
jne 0x50bdf8
mov eax, dword [0x61353c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x50be05
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x50be32
je 0x50be44
sub ecx, 0x100
je 0x50be52
sub ecx, 0x100
je 0x50be59
sub ecx, 0x100
je 0x50be4b
jmp 0x50be60
sub ecx, 0x600
je 0x50be59
sub ecx, 0x100
je 0x50be44
jmp 0x50be60
mov edi, 1
jmp 0x50be65
mov edi, 2
jmp 0x50be65
mov edi, 4
jmp 0x50be65
mov edi, 5
jmp 0x50be65
mov edi, 3
test byte [ebp + 0xd], 1
je 0x50be8c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x612fb4]
test al, 0x80
je 0x50be85
mov ebx, 0x80
jmp 0x50be9e
mov ebx, 1
jmp 0x50be9e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x50be9e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x50beb0
je 0x50beb9
dec eax
je 0x50bec2
jmp 0x50becb
mov dword [ebp - 4], closesocket
jmp 0x50beda
mov dword [ebp - 4], 0x40000000
jmp 0x50beda
mov dword [ebp - 4], 0xc0000000
jmp 0x50beda
push 1
call fcn.0050d6e0
pop ecx
mov ebx, eax
jmp 0x50bfca
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x50bef6
sub eax, 0x10
je 0x50befd
sub eax, 0x10
je 0x50bf06
sub eax, 0x10
je 0x50bf0f
jmp 0x50bf0f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x50bf16
mov dword [ebp - 8], 1
jmp 0x50bf16
mov dword [ebp - 8], 2
jmp 0x50bf16
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x50bf83
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x50bf78
test byte [ebp + 0xd], 1
je 0x50bf73
mov ebx, 0x50
jmp 0x50bf78
mov ebx, 2
push ebx
call fcn.0050d6e0
pop ecx
mov ebx, eax
jmp 0x50bfca
mov edi, esi
push edi
call fcn.0050bd38
pop ecx
test eax, eax
je 0x50bf97
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x50bfa3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0050d408
add esp, 8
mov ebx, eax
inc eax
jne 0x50bfca
push 4
call fcn.0050d6e0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0050d31c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c18c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0050d2e8
test byte [ebp + 0xd], 0xc0
jne 0x50c1b0
mov eax, dword [0x61353c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x50c1bd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x50c1ea
je 0x50c1fc
sub ecx, 0x100
je 0x50c20a
sub ecx, 0x100
je 0x50c211
sub ecx, 0x100
je 0x50c203
jmp 0x50c218
sub ecx, 0x600
je 0x50c211
sub ecx, 0x100
je 0x50c1fc
jmp 0x50c218
mov edi, 1
jmp 0x50c21d
mov edi, 2
jmp 0x50c21d
mov edi, 4
jmp 0x50c21d
mov edi, 5
jmp 0x50c21d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x50c244
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x612fb4]
test al, 0x80
je 0x50c23d
mov ebx, 0x80
jmp 0x50c256
mov ebx, 1
jmp 0x50c256
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x50c256
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x50c268
je 0x50c271
dec eax
je 0x50c27a
jmp 0x50c283
mov dword [ebp - 4], closesocket
jmp 0x50c292
mov dword [ebp - 4], 0x40000000
jmp 0x50c292
mov dword [ebp - 4], 0xc0000000
jmp 0x50c292
push 1
call fcn.0050d6e0
pop ecx
mov ebx, eax
jmp 0x50c382
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x50c2ae
sub eax, 0x10
je 0x50c2b5
sub eax, 0x10
je 0x50c2be
sub eax, 0x10
je 0x50c2c7
jmp 0x50c2c7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x50c2ce
mov dword [ebp - 8], 1
jmp 0x50c2ce
mov dword [ebp - 8], 2
jmp 0x50c2ce
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x50c33b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x50c330
test byte [ebp + 0xd], 1
je 0x50c32b
mov ebx, 0x50
jmp 0x50c330
mov ebx, 2
push ebx
call fcn.0050d6e0
pop ecx
mov ebx, eax
jmp 0x50c382
mov edi, esi
push edi
call fcn.0050bd38
pop ecx
test eax, eax
je 0x50c34f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x50c35b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0050d408
add esp, 8
mov ebx, eax
inc eax
jne 0x50c382
push 4
call fcn.0050d6e0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0050d31c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c68c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x50c6a8
call fcn.0050d74c
jmp 0x50c717
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x50c6c4
call fcn.0050d74c
jmp 0x50c717
cmp dword [0x6510e8], 1
je 0x50c715
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00515244
pop ecx
cmp al, 0x41
jl 0x50c715
cmp al, 0x5a
jg 0x50c715
cmp byte [ebp - 0x107], 0x3a
jne 0x50c715
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x50c715
call fcn.0050d74c
jmp 0x50c717
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x50c71c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x50c738
call fcn.0050d74c
jmp 0x50c759
test byte [ebp + 0xc], 0x80
jne 0x50c743
or ebx, 1
jmp 0x50c746
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x50c757
call fcn.0050d74c
jmp 0x50c759
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x50c760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x50c790
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x50c79b
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x50c7a4
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x50c80a
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x50c80a
call fcn.0050d74c
jmp 0x50c845
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x50c81a
call fcn.0050d74c
jmp 0x50c845
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x50c840
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x50c83e
cmp ebx, 1
je 0x50c83e
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x50c82b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d1b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x61346c]
jb 0x50d1d4
push 6
call fcn.0050d6e0
pop ecx
jmp 0x50d26b
push ebx
call fcn.0050d32c
pop ecx
mov esi, dword [ebx*4 + 0x650de8]
push 0x24
push 0
push edi
call fcn.0050a57c
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x50d208
dec eax
je 0x50d200
dec eax
je 0x50d25a
jmp 0x50d260
mov word [edi + 4], 0x2000
jmp 0x50d260
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x50d226
call fcn.0050d74c
mov esi, eax
jmp 0x50d262
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x613471], 1
je 0x50d249
xor eax, eax
jmp 0x50d24e
mov eax, 1
push eax
push edi
call fcn.005173c8
add esp, 0x18
jmp 0x50d260
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.0050d3c0
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x511444
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a620
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0050a72c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a72c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x614265
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a620
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0050a72c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00512ec8
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x511555
push esi
call fcn.0050a72c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0050a72c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00508bd0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x51152c
xor eax, eax
jmp 0x5115dc
push esi
call fcn.0050a72c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0050a72c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0050a57c
add esp, 0xc
jmp 0x511595
mov edi, dword [ebx + 0x24]
push edi
call fcn.0050a72c
pop ecx
push eax
push esi
call fcn.0050a72c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0050a72c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00508bf0
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x511595
xor eax, eax
jmp 0x5115dc
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0050a620
add esp, 8
push 0x614267
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0050a620
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0050a620
add esp, 8
push 0x614269
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0050a620
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51535c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x5153be
call fcn.0051530c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0050a72c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0050a72c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x51543c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x61490c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x515516
cmp dword [0x614908], 0
jne 0x515516
cmp dword [0x614b14], 0
je 0x5154d0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.005151ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5154b6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.005151ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5154b6
lea ebx, [ebp - 0x84]
jmp 0x5154b7
inc ebx
call fcn.005153f8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x515551
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x614910
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0050a72c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x614913
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x515551
cmp dword [0x614908], 0
je 0x515530
cmp dword [0x614908], 0xffffffff
je 0x515551
push esi
call dword [0x614908]
pop ecx
mov eax, dword [0x61490c]
test eax, eax
je 0x515551
cmp dword [0x61490c], 0xffffffff
je 0x515551
cmp byte [eax], 0
je 0x515551
push esi
push eax
call fcn.0051535c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517578
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
inc edx
xor eax, eax
mov al, byte [edx]
and eax, 0xff
test eax, eax
jne 0x5175a3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], str._at_end_of_pattern
jmp 0x517711
cmp eax, 0x30
jl 0x517711
cmp eax, 0x7a
jg 0x517711
movsx ebx, word [eax*2 + 0x614cec]
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x5175cc
mov eax, dword [ebp - 4]
jmp 0x517711
mov ebx, eax
sub ebx, 0x30
je 0x517641
dec ebx
sub ebx, 9
jb 0x5175f0
sub ebx, 0x29
je 0x5176d4
sub ebx, 0x15
je 0x517689
jmp 0x517700
cmp dword [ebp + 0x18], 0
jne 0x517630
mov esi, edx
sub eax, 0x30
jmp 0x51760c
inc edx
add eax, eax
xor ebx, ebx
mov bl, byte [edx]
lea eax, [eax + eax*4]
add eax, ebx
sub eax, 0x30
xor ebx, ebx
mov bl, byte [edx + 1]
mov edi, dword [ecx + 0xc]
test byte [edi + ebx], 4
jne 0x5175fd
cmp eax, 0xa
jl 0x517624
cmp eax, dword [ebp + 0x10]
jg 0x51762e
add eax, 0xc
neg eax
jmp 0x517711
mov edx, esi
xor eax, eax
mov al, byte [edx]
cmp eax, 0x38
jl 0x517641
dec edx
xor eax, eax
jmp 0x517711
sub eax, 0x30
jmp 0x517653
inc edx
shl eax, 3
xor ebx, ebx
mov bl, byte [edx]
add eax, ebx
sub eax, 0x30
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x517711
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 4
je 0x517711
cmp byte [edx + 1], 0x38
je 0x517711
cmp byte [edx + 1], 0x39
jne 0x517646
jmp 0x517711
xor eax, eax
jmp 0x5176b9
inc edx
xor ebx, ebx
mov bl, byte [edx]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 4
je 0x5176a2
mov ebx, 0x30
jmp 0x5176a7
mov ebx, 0x57
movzx esi, byte [edx]
mov edi, dword [ecx]
shl eax, 4
movzx esi, byte [edi + esi]
add esi, eax
sub esi, ebx
mov eax, esi
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x517711
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 8
jne 0x51768d
jmp 0x517711
inc edx
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x5176ea
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx], str.c_at_end_of_pattern
jmp 0x517716
cmp eax, 0x61
jl 0x5176fb
cmp eax, 0x7a
jg 0x5176fb
mov ecx, dword [ecx + 4]
movzx eax, byte [ecx + eax]
xor eax, 0x40
jmp 0x517711
test byte [ebp + 0x14], 0x40
je 0x517711
mov ecx, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], str.unrecognized_character_follows__
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret