joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412495
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00403880
pop ecx
cmp eax, esi
je 0x41257f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41257f
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00429790
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x41257f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41257f
cmp esi, 0x14
jge 0x41257f
push 0x10
push 0
push edi
call fcn.0042ba99
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41256e
call fcn.00429b40
cmp dword [eax], 0x22
je 0x41256e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00429c4a
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x412544
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x450918], 0
jne 0x41260a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x412633
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004123a5
pop ecx
pop ecx
test eax, eax
jne 0x412635
inc edi
cmp edi, esi
jl 0x412610
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427c0e
leave
ret 8
Function at 0x413316
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41335e
call fcn.00407b66
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41335e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4133a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41338a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41338a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41339e
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x414eb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x414edd
cmp dword [edi + 0x74], 0
jne 0x414edd
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00407b66
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00414e7a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x427c0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d7b0]
jne 0x427c18
repz ret
jmp fcn.0042c85f

Function at 0x43597a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042dbee
and dword [ebp - 0x14], 0
cmp dword [0x451994], 0
mov dword [ebp - 0x18], eax
jne 0x435a2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x435ad5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x435ad5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4421b4
push ebx
mov dword [0x451994], eax
call edi
push eax
call esi
push 0x4421a0
push ebx
mov dword [0x451998], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45199c], eax
call edi
push eax
call esi
mov dword [0x4519a4], eax
test eax, eax
je 0x435a2d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4519a0], eax
mov eax, dword [0x4519a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x435a86
cmp dword [0x4519a4], ecx
je 0x435a86
push eax
call esi
push dword [0x4519a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x435a86
test ebx, ebx
je 0x435a86
call edi
test eax, eax
je 0x435a7d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x435a7d
test byte [ebp - 8], 1
jne 0x435a86
or dword [ebp + 0x10], 0x200000
jmp 0x435ab9
mov eax, dword [0x451998]
cmp eax, dword [ebp - 0x18]
je 0x435ab9
push eax
call esi
test eax, eax
je 0x435ab9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x435ab9
mov eax, dword [0x45199c]
cmp eax, dword [ebp - 0x18]
je 0x435ab9
push eax
call esi
test eax, eax
je 0x435ab9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x451994]
call esi
test eax, eax
je 0x435ad5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x435ad7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427c0e
leave
ret
Function at 0x418dca
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x418e5c
lea eax, [ebp - 4]
push eax
push 0x1a
call main
mov esi, eax
test esi, esi
jns 0x418e0d
push str.Failed_to_allocate_administrator_SID.
push esi
call main
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x418e85
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_InitializeAcl]
test eax, eax
jne 0x418e54
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418e36
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418e3d
mov esi, 0x80004005
push esi
push 0x601
push str.c:_agent_work138_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_initialize_ACL.
jmp 0x418e00
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call main
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test edi, edi
je 0x418e8f
push edi
call main
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x419e7b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x419e8a
pop dword [ebp - 0x40]
mov eax, 0x419e8a
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x51254
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4c0b
mov edi, eax
mov edx, 0x7a7db18
sub edx, 0x7607d18
add edx, dword [ebp - 0x40]
mov esi, 0x2d98dfd9
sub esi, 0x7bf6ad6c
xor dword [ebp - 0x20], 0x7053e65
mov ebx, dword [edx]
add dword [ebp - 4], ebx
sub ebx, esi
mov dword [ebp - 0x1c], 0xf43b6ecb
mov dword [edi], ebx
add dword [ebp - 0x3c], edi
add edi, 0x93e8ca28
sub edi, 0x93e8ca24
add edx, 0xb154c3d6
add edx, 0x4eab3c2e
loop 0x419ed9
add eax, 0x122ff
mov ebx, eax
add eax, 0xddca64e3
add eax, 0x22359b22
mov ecx, 0x34261b92
add ecx, 0xcc19e46e
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x44459d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call main
test eax, eax
je 0x444626
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x4445f3
push 0x80
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
jne 0x4445f3
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4445e9
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4445f3
push esi
push 0x5c4
jmp 0x44461b
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x444625
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444613
movzx esi, si
or esi, ebx
test esi, esi
jns 0x444625
push esi
push 0x5ca
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x404620
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push esi
sub esp, 8
mov eax, dword [0x42c0c0]
xor eax, esp
mov dword [esp + 4], eax
mov byte [esp + 3], 1
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [esp + 0x14]
jg 0x404647
mov byte [esp + 3], 0
movzx esi, byte [esp + 3]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040b41d
mov eax, esi
add esp, 8
pop esi
pop ebx
ret
Function at 0x40bd1b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bd5a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bd5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bd5a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bd5a
cmp dword [ecx + 0x74], 0xe
jbe 0x40bd5a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xa77c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x978015
lea edi, [esi - 0x577015]
push edi
or ebp, 0xffffffff
jmp 0xa77c22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa77c29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa77c18
mov eax, 1
add ebx, ebx
jne 0xa77c3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa77c4c
jne 0xa77c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa77c6b
dec eax
add ebx, ebx
jne 0xa77c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa77c30
add ebx, ebx
jne 0xa77c67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa77cbd
xor ecx, ecx
sub eax, 3
jb 0xa77c83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa77cf2
sar eax, 1
mov ebp, eax
jmp 0xa77c8e
add ebx, ebx
jne 0xa77c8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa77c5c
inc ecx
add ebx, ebx
jne 0xa77c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa77c5c
add ebx, ebx
jne 0xa77ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa77c9e
jne 0xa77cba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa77c9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa77cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa77cce
jmp 0xa77c1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa77cdc
add edi, ecx
jmp 0xa77c1e
pop esi
mov edi, esi
mov ecx, 0x105d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa77cfa
cmp byte [edi], 9
jne 0xa77cfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa77cff
lea edi, [esi + 0x675000]
mov eax, dword [edi]
or eax, eax
je 0xa77d6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x678230]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6782e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa77d2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6782e8]
or eax, eax
je 0xa77d68
mov dword [ebx], eax
add ebx, 4
jmp 0xa77d49
call dword [esi + 0x6782e4]
mov ebp, dword [esi + 0x6782ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x677dc9]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa77dba
sub esp, 0xffffff80
jmp 0x401480
Function at 0x10002527
Capabilities:
Terminate process

Disassembly:
jmp 0x1003c2c1
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1003c2d2
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.100038b9
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 0x100025b3
Capabilities:
Query environment variable

Disassembly:
jmp 0x1003f407
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003f418
pop esi
ret
push ebx
push edi
push esi
call fcn.1003f2ee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10002aae
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003f440
push ebx
push esi
push edi
call fcn.10003783
add esp, 0xc
push 0
call fcn.10003d91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100161b8
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x1003d14f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1003d6bb
test al, al
jne 0x1003d149
sub edx, 2
cmp edx, edi
jne 0x1003d12f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1003d171
lea eax, [edi + 2]
cmp edx, eax
je 0x1003d171
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1003ccfd
add esp, 0x10
jmp 0x1003d26b
push esi
lea ecx, [ebp - 0x255]
call fcn.1003d6bb
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 0x1003d1b4
push dword [ebp - 0x25c]
jmp 0x1003d161
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 0x1003d1f1
cmp word [ebp - 0x226], 0
je 0x1003d212
cmp word [ebp - 0x226], ax
jne 0x1003d1f1
cmp word [ebp - 0x224], 0
je 0x1003d212
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1003ccfd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1003d25e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1003d1cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1003d246
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1003d26b
push 0x1003c5e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10003698
add esp, 0x10
jmp 0x1003d23b
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.10002220
leave
ret
Function at 0x10053e93
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10002c93
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 0x10053f02
cmp esi, dword [ebp - 4]
je 0x10053efd
cmp dword [ebp + 0xc], 0
je 0x10053efd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10053eda
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100538bb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10053f04
xor eax, eax
inc eax
jmp 0x10053f04
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10055472
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 + 0x10074b70]
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 0x100554b2
cmp byte [ebx], 0xa
jne 0x100554b2
or byte [edi + eax + 0x28], 4
jmp 0x100554b7
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 0x100555b6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10055599
inc eax
cmp dl, 0xd
je 0x100554e3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10055509
cmp eax, ecx
jae 0x10055517
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 0x100554cb
jmp 0x100555b6
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 0x10055594
cmp dword [ebp - 0x10], 0
je 0x10055594
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10074b70]
test byte [eax + edi + 0x28], 0x48
je 0x1005556e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10055559
mov byte [esi], dl
jmp 0x1005556a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10074b70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100555b6
cmp byte [ebp - 1], 0xa
jne 0x1005557d
cmp esi, ebx
jne 0x1005557d
mov byte [esi], 0xa
jmp 0x100555b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100014fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100555b6
mov byte [esi], 0xd
jmp 0x100555b5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10074b70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100555b3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100555b6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10055612
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 + 0x10074b70]
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 0x10055658
cmp word [ebx], dx
jne 0x10055658
or byte [eax + edi + 0x28], 4
jmp 0x1005565d
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 0x100557c0
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 0x100557a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005569e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100556d4
cmp eax, edx
jae 0x100556e2
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 0x10055679
jmp 0x100557c0
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 0x1005579b
cmp dword [ebp - 0x18], 0
je 0x1005579b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10074b70]
test byte [eax + edi + 0x28], 0x48
je 0x10055771
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 0x10055735
mov word [esi], cx
jmp 0x1005576c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10074b70]
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 + 0x10074b70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10074b70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100557c0
pop eax
cmp word [ebp - 4], ax
jne 0x10055781
cmp esi, ebx
jne 0x10055781
mov word [esi], ax
jmp 0x100557bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100014fb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100557c0
push 0xd
pop eax
jmp 0x1005577c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10074b70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100557ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100557c0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret