joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a556
Capabilities:
Access the windows event log

Disassembly:
jmp 0x4629d0
sub esp, 0x408
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
push 0x56429c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ebx, eax
test ebx, ebx
jne 0x462a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x6c
push str.C:projectsentryprotect_src_service_srclicensedservice.cpp
lea eax, [esp + 0x24]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2c]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x462ab4
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x462aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x70
push str.C:projectsentryprotect_src_service_srclicensedservice.cpp
lea eax, [esp + 0x24]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2c]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x408
ret 4

Function at 0x40a849
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
jmp 0x4ad730
mov edx, dword [esp + 4]
mov eax, 0x5a4d
sub esp, 8
cmp word [edx], ax
jne 0x4ad7fd
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov dword [esp + 4], ecx
cmp dword [ecx], 0x4550
jne 0x4ad7fd
mov eax, dword [ecx + 0x80]
test eax, eax
je 0x4ad7fd
cmp eax, dword [ecx + 0x50]
jae 0x4ad7fd
push ebx
lea ebx, [eax + edx]
test ebx, ebx
je 0x4ad7fc
add ebx, 0xc
mov dword [esp + 4], ebx
cmp dword [ebx], 0
je 0x4ad7fc
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ad7f9
cmp eax, dword [ecx + 0x50]
jae 0x4ad7f9
lea esi, [eax + edx]
test esi, esi
je 0x4ad7f9
mov eax, dword [esi]
test eax, eax
je 0x4ad7ed
mov ebx, dword [esp + 0x24]
cmp eax, ebp
jne 0x4ad7d7
lea eax, [esp + 0x20]
push eax
push 0x40
push 4
push esi
call edi
test eax, eax
je 0x4ad7d7
lea eax, [esp + 0x20]
mov dword [esi], ebx
push eax
push dword [esp + 0x24]
push 4
push esi
call edi
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x4ad7b3
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ebx, 0x14
mov dword [esp + 0x10], ebx
cmp dword [ebx], 0
jne 0x4ad796
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40a8ee
Capabilities:
Start service

Disassembly:
jmp 0x42c6b0
sub esp, 0x404
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x42c753
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x420
je 0x42c731
push esi
push edi
call ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x14c
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_servicemanager.h
lea eax, [esp + 0x20]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x28]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
call ebx
cmp eax, 0x420
pop ebx
sete al
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0040512d
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
mov al, 1
xor ecx, esp
call fcn.0040512d
add esp, 0x404
ret 4

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

Disassembly:
jmp 0x4b1960
cmp dword [0x58e5a0], 0
push esi
je 0x4b197b
mov eax, dword [0x58e5a4]
test eax, eax
je 0x4b197b
push dword [esp + 0xc]
call eax
jmp 0x4b19c0
push edi
push 1
push 0x5677f8
call fcn.004072fc
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
lea esi, [edi + 0xa]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4b19bf
mov eax, dword [0x58e59c]
sub eax, edi
sub eax, 0xe
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov esi, dword [esp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 8
Function at 0x40bc08
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x4a1300
sub esp, 0x214
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x224]
push eax
push 0xf003f
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a1393
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [esp + 0x14]
push 0x104
push eax
xor esi, esi
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x4a1387
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call fcn.0040bc08
add esp, 8
lea eax, [esp + 0x14]
inc esi
push 0x104
push eax
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4a1360
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x214
ret

Function at 0x40bd2a
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x4a0250
push esi
mov esi, dword [esp + 8]
push 0xbc
push 0
lea eax, [esi + 0x14]
push eax
call fcn.004052e0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
ret
Function at 0x40c00e
Capabilities:
Read file via mapping

Disassembly:
jmp 0x4a6370
call fcn.004078d8
test eax, eax
je 0x4a637e
xor eax, eax
ret 4
push ebp
push esi
push edi
push 0x10000
push 0x40
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x8000
mov esi, eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x4a63f2
push ebp
push ebp
push ebp
push 2
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x4a63eb
push ebp
push ebp
push ebp
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
ret 4
Function at 0x498b50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x589044]
cmp eax, 0xffffffff
jne 0x498ba0
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004052e0
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
sbb eax, eax
inc eax
mov dword [0x589044], eax
mov ecx, dword [esp + 0x114]
cmp eax, 1
sete al
xor ecx, esp
call fcn.0040512d
add esp, 0x118
ret

Function at 0x499050
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
je 0x4990da
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 2
push eax
push esi
push ebx
call fcn.0049cb00
add esp, 0x10
test eax, eax
je 0x4990da
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x4990da
push 4
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.0049cb00
add esp, 0x10
test eax, eax
je 0x4990da
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
add eax, esi
push 0xf8
push edi
push eax
push ebx
call fcn.0049cb00
add esp, 0x10
test eax, eax
je 0x4990da
cmp dword [edi], 0x4550
jne 0x4990da
mov eax, 0x2000
test word [edi + 0x16], ax
jne 0x4990da
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x78]
pop edi
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x4993b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x583268
push fcn.004e1840
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x589780]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov ecx, dword gs:[0x60]
mov dword [ebp - 0x24], ecx
mov ecx, dword gs:[0x64]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], edi
jne 0x499457
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
xor ecx, ecx
cmp ecx, eax
jne 0x499457
add ebx, 0x20
mov esi, ebx
nop
mov eax, dword [esi]
cmp eax, ebx
je 0x499457
cmp dword [esi + 4], 0
jne 0x499457
mov esi, eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x499420
cmp dword [esi + 0x44], 0
jne 0x499420
push eax
push dword [ebp + 8]
call fcn.0040939a
add esp, 8
test al, al
je 0x499420
cmp dword [esi + 0x24], 0
jne 0x499457
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x210], eax
cmp byte [esp + 0x224], 0
push ebx
mov ebx, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x224]
mov byte [esp + 0xf], 0
je 0x49c798
test esi, esi
je 0x49c798
push esi
call fcn.0049cab0
add esp, 4
push edi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0049ca10
lea ecx, [esp + 0x1c]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c7b0
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x49c813
mov cx, word [esp + 0x12]
cmp cx, 0x3a
je 0x49c7dd
cmp word [esp + 0x10], 0x5c
jne 0x49c813
cmp cx, 0x5c
jne 0x49c813
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49c813
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0040c2bb
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040512d
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x214
ret

Function at 0x4dd8e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00406032
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4dd928
sub eax, 1
je 0x4dd923
sub eax, 1
je 0x4dd91f
xor eax, eax
leave
ret
push 3
jmp 0x4dd92a
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x524068
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5240a7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5240a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5240a7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5240a7
cmp dword [ecx + 0x74], 0xe
jbe 0x5240a7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5324a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402b8a
mov eax, dword [0x589780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040aed4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5324ea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x532646
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040b16d
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x58fce0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00405592
mov ecx, dword [esi*4 + 0x58fce0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x53263f
cmp eax, dword [ecx + edi + 0x24]
jne 0x53263f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53263f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00405592
add esp, 0x14
test edx, edx
jl 0x53263f
jg 0x5325b5
test eax, eax
jb 0x53263f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x53263f
jl 0x5325cf
cmp dword [ebp - 0x1008], eax
ja 0x53263f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5325ed
test ebx, ebx
je 0x532626
cmp ecx, edi
jae 0x532626
mov al, byte [ecx]
cmp al, 0xd
jne 0x532607
lea eax, [edi - 1]
cmp ecx, eax
jae 0x532613
cmp byte [ecx + 1], 0xa
jne 0x532613
inc ecx
jmp 0x532613
movzx eax, al
movsx eax, byte [eax + 0x589ad0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5325ed
cmp edx, ebx
jne 0x5325ed
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x532644
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040512d
leave
ret
Function at 0x532d85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x58fce0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x532dc5
cmp byte [ebx], 0xa
jne 0x532dc5
or byte [edi + eax + 0x28], 4
jmp 0x532dca
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x532ec9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x532eac
inc eax
cmp dl, 0xd
je 0x532df6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x532e1c
cmp eax, ecx
jae 0x532e2a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x532dde
jmp 0x532ec9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x532ea7
cmp dword [ebp - 0x10], 0
je 0x532ea7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x58fce0]
test byte [eax + edi + 0x28], 0x48
je 0x532e81
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x532e6c
mov byte [esi], dl
jmp 0x532e7d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x58fce0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x532ec9
cmp byte [ebp - 1], 0xa
jne 0x532e90
cmp esi, ebx
jne 0x532e90
mov byte [esi], 0xa
jmp 0x532ec8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00402270
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x532ec9
mov byte [esi], 0xd
jmp 0x532ec8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x58fce0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x532ec6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x532ec9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x532f25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x58fce0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x532f6b
cmp word [ebx], dx
jne 0x532f6b
or byte [eax + edi + 0x28], 4
jmp 0x532f70
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5330d3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5330b3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x532fb1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x532fe7
cmp eax, edx
jae 0x532ff5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x532f8c
jmp 0x5330d3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5330ae
cmp dword [ebp - 0x18], 0
je 0x5330ae
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x58fce0]
test byte [eax + edi + 0x28], 0x48
je 0x533084
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x533048
mov word [esi], cx
jmp 0x53307f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x58fce0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x58fce0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x58fce0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5330d3
pop eax
cmp word [ebp - 4], ax
jne 0x533094
cmp esi, ebx
jne 0x533094
mov word [esi], ax
jmp 0x5330d0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00402270
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5330d3
push 0xd
pop eax
jmp 0x53308f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x58fce0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5330cd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5330d3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53865d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x589780]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5386a8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00538b15
test al, al
jne 0x5386a2
sub edx, 2
cmp edx, edi
jne 0x538688
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5386ca
lea eax, [edi + 2]
cmp edx, eax
je 0x5386ca
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00538256
add esp, 0x10
jmp 0x5387c4
push esi
lea ecx, [ebp - 0x255]
call fcn.00538b15
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53870d
push dword [ebp - 0x25c]
jmp 0x5386ba
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x53874a
cmp word [ebp - 0x226], 0
je 0x53876b
cmp word [ebp - 0x226], ax
jne 0x53874a
cmp word [ebp - 0x224], 0
je 0x53876b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00538256
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5387b7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x538724
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x53879f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5387c4
push 0x537c3e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409c32
add esp, 0x10
jmp 0x538794
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040512d
leave
ret

Function at 0x53e2ce
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004077e8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53e33d
cmp esi, dword [ebp - 4]
je 0x53e338
cmp dword [ebp + 0xc], 0
je 0x53e338
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x53e315
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0053dcf6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x53e33f
xor eax, eax
inc eax
jmp 0x53e33f
xor eax, eax
pop edi
pop esi
leave
ret