joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5046f4
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.005044a8
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x504710
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.005044a8
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.005044a8
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x50472c
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.00504688
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x504756
mov bl, 1
mov eax, 0x545160
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x50478f
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x50479c
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x50477b
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x5047c6
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00504510
jmp 0x5047ed
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00504510
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x5047f5
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x5047ae
mov bl, 0x40
mov esi, 0x5451a0
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x50485b
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x504868
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x504844
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.005044d0
inc ebx
inc esi
cmp bl, 0x41
jne 0x504876
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50496c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x504a1d
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x504a18
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.00405cf8
push 1
mov eax, edi
call fcn.00405c8c
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.005046f4
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50e10c
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00405d90
cmp byte [ebp - 1], 0
jne 0x50e16c
mov eax, esi
call fcn.00405c8c
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x50e186
sub al, 2
jb 0x50e18d
jmp 0x50e192
mov ebx, 2
jmp 0x50e192
mov ebx, 1
mov eax, esi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x50e276
test edi, edi
jle 0x50e1ee
mov eax, esi
call fcn.00405c8c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0
jmp 0x50e26a
test edi, edi
jge 0x50e234
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00405c8c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x50e26a
mov eax, esi
call fcn.00405c8c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x50e1aa
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x50e287
sub al, 2
jb 0x50e2c1
jmp 0x50e309
cmp edi, 2
jne 0x50e28d
dec ebx
mov eax, ebx
sub eax, 2
jl 0x50e309
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00405c8c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5454b8]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x50e29d
jmp 0x50e309
cmp edi, 2
jne 0x50e2c7
dec ebx
test ebx, ebx
jle 0x50e304
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00405c8c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5454bc]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x50e2d3
jmp 0x50e304
inc ebx
mov eax, esi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x50e2f7
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.00405cf8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5133cc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040372c
ret

Function at 0x513504
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004061d8
xor eax, eax
push ebp
push 0x513652
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.005133cc
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040627c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x513631
xor eax, eax
push ebp
push 0x51362a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x513613
xor eax, eax
push ebp
push 0x51360c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5135f5
xor eax, eax
push ebp
push 0x5135ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00513404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5135f5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513613
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513631
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0051348c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513659
lea eax, [ebp - 4]
call fcn.004061e0
ret
Function at 0x515d10
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x515f18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406244
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.0040372c
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.0040372c
push 0x515f24
push 0x515f4c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00408edc
test eax, eax
je 0x515d97
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x515da3
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x515ef8
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x515dcb
lea eax, [ebp - 4]
mov edx, 0x515f74
call fcn.00406244
cmp dword [ebp - 0x11c], 5
jne 0x515def
cmp dword [ebp - 0x118], 0
jne 0x515def
lea eax, [ebp - 4]
mov edx, 0x515f98
call fcn.00406244
jmp 0x515ef8
cmp dword [ebp - 0x11c], 5
jne 0x515e13
cmp dword [ebp - 0x118], 1
jne 0x515e13
lea eax, [ebp - 4]
mov edx, 0x515fc0
call fcn.00406244
jmp 0x515ef8
cmp dword [ebp - 0x11c], 5
jne 0x515e59
cmp dword [ebp - 0x118], 2
jne 0x515e59
cmp byte [ebp - 6], 1
jne 0x515e47
cmp word [ebp - 0x144], 9
jne 0x515e47
lea eax, [ebp - 4]
mov edx, 0x515fc0
call fcn.00406244
jmp 0x515ef8
lea eax, [ebp - 4]
mov edx, 0x515fe4
call fcn.00406244
jmp 0x515ef8
cmp dword [ebp - 0x11c], 6
jne 0x515e7a
cmp dword [ebp - 0x118], 0
jne 0x515e7a
lea eax, [ebp - 4]
mov edx, 0x516018
call fcn.00406244
jmp 0x515ef8
cmp dword [ebp - 0x11c], 6
jne 0x515e9b
cmp dword [ebp - 0x118], 1
jne 0x515e9b
lea eax, [ebp - 4]
mov edx, 0x516040
call fcn.00406244
jmp 0x515ef8
cmp dword [ebp - 0x11c], 6
jne 0x515ec1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x515ec1
lea eax, [ebp - 4]
mov edx, 0x516060
call fcn.00406244
jmp 0x515ef8
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x515ee6
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x515ee6
lea eax, [ebp - 4]
mov edx, 0x516080
call fcn.00406244
jmp 0x515ef8
cmp eax, 0xa
jne 0x515ef8
lea eax, [ebp - 4]
mov edx, 0x516080
call fcn.00406244
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515f1f
lea eax, [ebp - 4]
call fcn.004061e0
ret

Function at 0x516098
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004063f0
add esp, 0x200
pop ebx
ret
Function at 0x516e44
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004061d8
xor eax, eax
push ebp
push 0x516f4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d5f4
cmp dword [ebp - 8], 0
je 0x516e8d
mov eax, dword [ebp - 8]
mov edx, 0x516f64
call fcn.0040683c
jne 0x516e9f
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x516f74
call fcn.004065c4
jmp 0x516ebb
mov ebx, 0x65
mov eax, dword [ebp - 8]
call fcn.0040d2e0
test al, al
jne 0x516ebb
mov eax, dword [ebp - 8]
call fcn.0040d304
dec ebx
jne 0x516ea4
mov eax, dword [ebp - 4]
call fcn.0040627c
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
je 0x516ed7
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040d418
mov dl, 1
mov eax, dword [0x4206b8]
call fcn.00425fec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x516f1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00430ba8
call fcn.00416de0
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516f27
mov eax, dword [ebp - 0xc]
call fcn.00403f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516f51
lea eax, [ebp - 8]
mov edx, 2
call fcn.004061e8
ret

Function at 0x51d930
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x51d9b9
test ebx, ebx
je 0x51d9b9
push 6
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x51d978
mov eax, dword [0x547850]
cmp byte [eax], 0
je 0x51d96c
mov ecx, 0x11c7
mov edx, 0x51d9cc
mov eax, 0x51da2c
call fcn.0040548c
push 0x51da70
call sub.kernel32.dll_OutputDebugStringW
jmp 0x51d9b9
mov eax, ebx
call fcn.0051d8c8
mov ebx, eax
test ebx, ebx
je 0x51d9b9
lea eax, [esp + 4]
push eax
push 8
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov byte [esi], 0
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x51eff8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x51f072
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x51f08c
mov edx, 0x59
call fcn.00412dc4
push dword [ebp - 4]
push 0x51f0a0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x51f0b0
mov edx, 0x5a
call fcn.00412dc4
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00406694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f079
lea eax, [ebp - 8]
mov edx, 2
call fcn.004061e8
ret
Function at 0x51f0b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51f12c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x54ab20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004063f0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00414ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f133
lea eax, [ebp - 0x20c]
call fcn.004061e0
ret
Function at 0x523734
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5237ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage_2
mov ecx, 0x5237c8
mov edx, 0x59
call fcn.00412dc4
push dword [ebp - 4]
push 0x5237dc
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage_2
mov ecx, 0x5237ec
mov edx, 0x5a
call fcn.00412dc4
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00406694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5237b5
lea eax, [ebp - 8]
mov edx, 2
call fcn.004061e8
ret

Function at 0x523d40
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x523df8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x523dd8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040d6b4
mov eax, dword [ebp - 4]
call fcn.0040627c
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x523dce
mov eax, ebx
call fcn.0040627c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 1
je 0x523dce
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [0x54774c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jne 0x523dc8
cmp eax, dword [ebp + 8]
jbe 0x523dce
jmp 0x523dca
jle 0x523dce
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523de2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523dff
lea eax, [ebp - 4]
call fcn.004061e0
ret

Function at 0x523e90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x523f04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x26
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x54ab20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004063f0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00414ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523f0b
lea eax, [ebp - 0x20c]
call fcn.004061e0
ret
Function at 0x534c9c
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x534cb5
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
je 0x534db1
mov eax, dword [0x547cb8]
cmp dword [eax], 2
jne 0x534cd6
mov eax, dword [0x547674]
cmp dword [eax], 4
jg 0x534d0a
mov eax, dword [0x547cb8]
cmp dword [eax], 1
jne 0x534d99
mov eax, dword [0x547674]
cmp dword [eax], 4
jg 0x534d0a
mov eax, dword [0x547674]
cmp dword [eax], 4
jne 0x534d99
mov eax, dword [0x547a5c]
cmp dword [eax], 0
jle 0x534d99
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x534d51
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x534da5
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x534da5
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
jmp 0x534db3
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x537e10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x537fa4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov eax, dword [0x547438]
cmp dword [eax], 0
je 0x537e4e
mov eax, dword [0x547438]
mov eax, dword [eax]
call fcn.0040d298
test al, al
jne 0x537e7f
push 0x10
push 0x537fb8
mov ecx, dword [0x547438]
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
mov edx, 0x537ff4
call fcn.004065c4
mov eax, dword [ebp - 0x14]
call fcn.0040627c
push eax
push 0
call sub.user32.dll_MessageBoxW
jmp 0x537f7c
push ebp
lea eax, [ebp - 0x18]
call fcn.005377d0
pop ecx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00406244
lea ecx, [ebp - 0x1c]
mov eax, dword [0x547438]
mov eax, dword [eax]
mov dx, 0x22
call fcn.0040c4e8
push dword [ebp - 0x1c]
push 0x53802c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406694
push ebp
push 0
mov ecx, 1
mov edx, 0x2bf20
mov eax, dword [ebp - 0xc]
call fcn.00537a6c
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a4]
xor edx, edx
call fcn.0052fc38
mov eax, dword [0x5479b4]
mov eax, dword [eax]
call fcn.0048558c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x524]
call fcn.0040d298
test al, al
je 0x537f7c
xor eax, eax
push ebp
push 0x537f72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x524]
mov dl, 1
mov eax, dword [0x42f764]
call fcn.004309b4
mov ebx, eax
push 0
mov ecx, 0x53803c
mov edx, 0x538050
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebp - 0xd], al
mov eax, ebx
call fcn.00403f64
cmp byte [ebp - 0xd], 0
jne 0x537f68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e0]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537fab
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004061e8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004061e8
ret