joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f20
Capabilities:
Create service
Persist via windows service

Disassembly:
push ecx
push esi
push edi
push 2
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x407f41
mov edx, str.Error:_Cant_open_Service_Control_Manager
jmp 0x408012
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 2
push 0x10
push 0xf01ff
push 0x46bcb0
push 0x46bcb0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x408001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x421
jg 0x407fb8
je 0x407fb1
sub eax, 5
cmp eax, 0x76
ja case.0x407f8e.7
movzx eax, byte [eax + 0x408040]
jmp dword [eax*4 + 0x40802c]
mov edx, str.Error:_ERROR_ACCESS_DENIED
jmp 0x407fe3
mov edx, str.Error:_ERROR_INVALID_HANDLE
jmp 0x407fe3
mov edx, str.Error:_ERROR_INVALID_NAME
jmp 0x407fe3
mov edx, str.Error:_ERROR_INVALID_PARAMETER
jmp 0x407fe3
mov edx, str.Error:_ERROR_INVALID_SERVICE_ACCOUNT
jmp 0x407fe3
sub eax, 0x423
je 0x407fde
sub eax, 0xe
je 0x407fd7
sub eax, 5
je 0x407fd0
mov edx, str.Error:_Undefined
jmp 0x407fe3
mov edx, str.Error:_ERROR_DUPLICATE_SERVICE_NAME
jmp 0x407fe3
mov edx, str.Error:_ERROR_SERVICE_EXISTS
jmp 0x407fe3
mov edx, str.Error:_ERROR_CIRCULAR_DEPENDENCY
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ecx
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
mov edx, str.Success_install_service_
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x4080c0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x476750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4080ee
mov edx, str.Error:_Cant_open_Service_Control_Manager
jmp 0x408164
push 0x10020
push 0x46bcb0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x408134
mov edx, str.Error:_Cant_remove_service
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, str.Success_remove_service_
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Start service

Disassembly:
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4081c1
mov edx, str.Error:_Cant_open_Service_Control_Manager
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x10
push 0x46bcb0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x408201
push esi
call edi
mov edx, str.Error:_Cant_start_service
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x408210
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x476750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40825e
mov edx, str.Error:_Cant_open_Service_Control_Manager
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
push 0x20
push 0x46bcb0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x40829e
push esi
call ebx
mov edx, str.Error:_Cant_open_service
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
add esp, 4
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dda9
mov esp, ebp
pop ebp
ret

Function at 0x409110
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x476750]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x409171
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
mov edx, str.Failed_to_initialize_WinSock._Error_core:
mov ecx, 0x47a470
call fcn.004049e0
add esp, 4
mov ecx, eax
call fcn.00402910
push eax
call fcn.00404c90
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
mov edx, str.WinSock_initialized.
mov ecx, 0x47a470
call fcn.004049e0
push eax
call fcn.00404c90
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
Function at 0x409fd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f508
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x476750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0x46c118
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00401b10
lea eax, [ebp - 0x3c]
push eax
call fcn.00414f8a
add esp, 4
lea ecx, [ebp - 0x70]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi + 8], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.00401bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.0040aa10

Function at 0x416952
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x46035c
call fcn.00430003
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x416a4a
cmp byte [esi + 0x46], bl
je 0x416a4a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x41698e
xor al, al
jmp 0x416a4c
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00404750
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x4169bb
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4169e2
dec eax
je 0x4169e6
dec eax
dec eax
je 0x416a38
xor bl, bl
jmp 0x416a3a
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x4169f6
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x416a1e
cmp eax, 0x10
jae 0x416a05
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0043105a
add esp, 0x10
cmp ebx, eax
jne 0x4169de
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x416a38
test ebx, ebx
jne 0x4169af
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040f400
jmp 0x4169a9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401620
mov al, bl
jmp 0x416a4c
mov al, 1
call fcn.0042ffb2
ret

Function at 0x434ba3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x44a068
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x476750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00432cf9
mov dword [ebp - 0x14], eax
cmp dword [0x47d8a8], esi
jne 0x44a15b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x44a0e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44a23b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x44a23b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44a23b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47d8a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47d8ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47d8b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d8b8], eax
test eax, eax
je 0x44a158
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d8b4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44a180
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44a173
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x44a195
push 4
pop eax
jmp 0x44a23d
cmp dword [ebp - 0x14], esi
je 0x44a195
push dword [0x47d8a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44a17a
mov eax, dword [0x47d8b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x44a1f3
cmp dword [0x47d8b8], edi
je 0x44a1f3
push eax
call ebx
push dword [0x47d8b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44a1f3
test eax, eax
je 0x44a1f3
call ecx
test eax, eax
je 0x44a1e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44a1e8
test byte [ebp - 8], 1
jne 0x44a1f3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x44a223
mov eax, dword [0x47d8ac]
cmp eax, edi
je 0x44a220
push eax
call ebx
test eax, eax
je 0x44a220
call eax
mov esi, eax
test esi, esi
je 0x44a220
mov eax, dword [0x47d8b0]
cmp eax, edi
je 0x44a220
push eax
call ebx
test eax, eax
je 0x44a220
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47d8a8]
call ebx
test eax, eax
je 0x44a23b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x44a23d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dda9
mov esp, ebp
pop ebp
ret
Function at 0x4506c8
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x450703
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4506ea
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4506fb
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x450705
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4506e0
xor eax, eax
pop edi
pop esi
ret

Function at 0x450749
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add al, 3
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00450688
mov edx, 0x56944c08
push ebx
call fcn.004506c8
pop ecx
test eax, eax
pop ecx
je 0x45081b
push edi
push esi
push ebx
call fcn.00450708
add esp, 0xc
call fcn.00450688
in al, dx
out dx, eax
cmpsb byte [esi], byte es:[edi]
mov esi, dword [esi + 0x78]
test esi, esi
je 0x45081b
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00450688
xor dword [edi], esp
push esi
jb 0x450727
inc esi
and byte [ebx], al
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450a4d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00450698
push eax
push esi
invalid
invalid
Function at 0x451380
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x45150e
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00450698
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045064d
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.00450688
mov bh, 0xcb
push ecx
or al, 0xff
mov ch, 0x68
stc
invalid
call fcn.00450688
out dx, eax
mov dh, 0x13
adc dword [eax - 0x5435b], eax
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00450688
mov al, byte [0x80c6c6d5]
movsd dword es:[edi], dword [esi]
sar ch, 1
invalid
Function at 0x100315d6
Capabilities:
Terminate process

Disassembly:
jmp 0x1006b01f
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1006b030
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10032a17
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x1003166c
Capabilities:
Query environment variable

Disassembly:
jmp 0x10074afe
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10074b0f
pop esi
ret
push ebx
push edi
push esi
call fcn.100749e5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10031ba8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10074b37
push ebx
push esi
push edi
call fcn.100328cd
add esp, 0xc
push 0
call fcn.10032f35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10066c86
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100a9024]
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 0x100728d9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10072e45
test al, al
jne 0x100728d3
sub edx, 2
cmp edx, edi
jne 0x100728b9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100728fb
lea eax, [edi + 2]
cmp edx, eax
je 0x100728fb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10072487
add esp, 0x10
jmp 0x100729f5
push esi
lea ecx, [ebp - 0x255]
call fcn.10072e45
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 0x1007293e
push dword [ebp - 0x25c]
jmp 0x100728eb
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 0x1007297b
cmp word [ebp - 0x226], 0
je 0x1007299c
cmp word [ebp - 0x226], ax
jne 0x1007297b
cmp word [ebp - 0x224], 0
je 0x1007299c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10072487
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100729e8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10072955
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100729d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100729f5
push 0x10071d6d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100327e2
add esp, 0x10
jmp 0x100729c5
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.1003129d
leave
ret

Function at 0x100815f1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10031d92
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 0x10081660
cmp esi, dword [ebp - 4]
je 0x1008165b
cmp dword [ebp + 0xc], 0
je 0x1008165b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10081638
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10081019
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10081662
xor eax, eax
inc eax
jmp 0x10081662
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1008804b
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 + 0x100aa848]
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 0x1008808b
cmp byte [ebx], 0xa
jne 0x1008808b
or byte [edi + eax + 0x28], 4
jmp 0x10088090
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 0x1008818f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10088172
inc eax
cmp dl, 0xd
je 0x100880bc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100880e2
cmp eax, ecx
jae 0x100880f0
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 0x100880a4
jmp 0x1008818f
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 0x1008816d
cmp dword [ebp - 0x10], 0
je 0x1008816d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100aa848]
test byte [eax + edi + 0x28], 0x48
je 0x10088147
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10088132
mov byte [esi], dl
jmp 0x10088143
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100aa848]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1008818f
cmp byte [ebp - 1], 0xa
jne 0x10088156
cmp esi, ebx
jne 0x10088156
mov byte [esi], 0xa
jmp 0x1008818e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10030550
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008818f
mov byte [esi], 0xd
jmp 0x1008818e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100aa848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008818c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008818f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret