joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446000
Capabilities:
Accept command line arguments
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports
Terminate process

Disassembly:
call 0x446005
pop ebx
sub ebx, 0x400265
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov edi, dword [edi + 0x1c]
mov edi, dword [edi]
mov edi, dword [edi + 8]
mov dword [ebx + 0x4003c2], edi
mov esi, edi
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, edi
push esi
mov ebp, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
add esi, edi
xor edx, edx
push esi
mov edi, dword [esi]
add edi, dword [ebx + 0x4003c2]
lea esi, [ebx + 0x400387]
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
jne 0x446057
pop esi
mov edx, esi
pop esi
jmp 0x446068
pop esi
add esi, 4
inc edx
cmp edx, ebp
jb 0x446039
sub esp, 4
jmp 0x446182
sub edx, dword [esi + 0x20]
mov eax, dword [ebx + 0x4003c2]
sub edx, eax
shr edx, 1
add edx, dword [esi + 0x24]
add edx, eax
movzx eax, word [edx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebx + 0x4003c2]
mov eax, dword [eax]
add eax, dword [ebx + 0x4003c2]
mov edi, eax
mov ebp, esp
mov edx, dword [ebx + 0x4003c2]
lea eax, [ebx + 0x400396]
push eax
push edx
call edi
sub esp, 0x104
push esp
push 0x104
call eax
lea eax, [ebx + 0x4003a3]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
lea ecx, [ebx + 0x4003ac]
push ecx
mov ecx, esp
add ecx, 4
push ecx
call eax
lea eax, [ebx + 0x4003b6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
mov ecx, esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call eax
mov esi, eax
lea ecx, [ebx + 0x4003ed]
push ecx
push ecx
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
pop ecx
push 0
push ecx
add ecx, 0xa
mov edx, dword [ecx]
push edx
push ecx
mov edx, 0x905a4d
mov dword [ecx], edx
push esi
call eax
lea eax, [ebx + 0x4003d5]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
push esi
call eax
lea eax, [ebx + 0x4003c6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
sub esp, 0x44
mov edx, esp
mov esi, 0
mov ecx, 0x11
mov dword [edx], esi
add edx, 4
loop 0x446153
mov edx, 0x44
mov dword [esp], edx
sub esp, 0x10
mov edx, esp
push esp
add edx, 0x10
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add edx, 0x44
push edx
call eax
mov esp, ebp
jmp fcn.00406c40
Function at 0x29a0f127
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x29a0f136
pop dword [ebp - 0x4c]
mov eax, 0x81019aa8
sub eax, 0x5760a972
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x25e56f4f
add dword [ebp - 0x5c], 0x286cd5fc
mov dword [ebp - 0x58], 0xd4c87229
add dword [ebp - 0x58], 0x5d6ada1c
mov dword [ebp - 0x54], 0x8a2fa910
add dword [ebp - 0x54], 0xc21c9b1e
mov dword [ebp - 0x50], 0x3748883d
sub dword [ebp - 0x50], 0x3748883d
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x87c4c036
add dword [ebp - 0x5c], 0xecada920
mov dword [ebp - 0x58], 0x3c4d6808
add dword [ebp - 0x58], 0x51ef96d
mov dword [ebp - 0x54], 0xd65a3583
add dword [ebp - 0x54], 0x8d1536e9
mov dword [ebp - 0x50], 0xca0567f1
add dword [ebp - 0x50], 0x35fa980f
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xf954f592
sub eax, 0xcfb3b54e
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d993
push 0
call eax
mov ecx, 0x553a
mov esi, eax
mov edi, 0x29a22000
add edi, dword [ebp - 0x4c]
mov edx, 0xf94707b4
add edx, 0xd2345fbe
sub dword [ebp - 0x14], eax
mov ebx, dword [edi]
mov dword [ebp - 0x28], 0x9a6ed8a5
sub ebx, edx
sub dword [ebp - 0x24], esi
mov dword [esi], ebx
xor dword [ebp - 0x18], 0xe74e6545
add esi, 0xd7a45e17
add esi, 0x285ba1ed
add edi, 0x8b16c744
add edi, 0x74e938c0
loop 0x29a0f247
add eax, 0xe21bbf6
sub eax, 0xe20743b
xor ebx, ebx
add ebx, eax
add eax, 0x1670b681
add eax, 0xe98f4984
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x7003567
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x7003576
pop dword [ebp - 4]
mov eax, 0xea7db825
add eax, 0x1c827d51
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x484fbeb5
sub dword [ebp - 0x14], 0xf9fd796a
mov dword [ebp - 0x10], 0xeaea53d4
add dword [ebp - 0x10], 0x4748f871
mov dword [ebp - 0xc], 0x66e98602
sub dword [ebp - 0xc], 0x1a9d41d4
mov dword [ebp - 8], 0x65fb426d
sub dword [ebp - 8], 0x65fb426d
lea eax, [ebp - 0x14]
push eax
mov eax, 0x8acf5243
add eax, 0x7c31dded
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x8b171b1e
sub dword [ebp - 0x14], 0x16a4b1c8
mov dword [ebp - 0x10], 0x8f649e0c
add dword [ebp - 0x10], 0xb207c369
mov dword [ebp - 0xc], 0xb461757
add dword [ebp - 0xc], 0x58295515
mov dword [ebp - 8], 0x95d1b0cd
sub dword [ebp - 8], 0x95d1b0cd
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x2d471cb0
add eax, 0xd9ba1384
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3c99f
push 0
call eax
mov ecx, 0x730c8bc8
add ecx, 0x8cf3c3d6
xor ebx, ebx
add ebx, eax
mov edi, 0x8fa92d5b
add edi, 0x7758d4a5
add edi, dword [ebp - 4]
mov edx, 0xb041cc1d
mov esi, dword [edi]
xor esi, edx
mov dword [ebx], esi
add ebx, 0xd0f83ecf
add ebx, 0x2f07c135
add edi, 0x2ce36afc
add edi, 0xd31c9508
loop 0x7003694
add eax, 0x1314b
xor ebx, ebx
add ebx, eax
add eax, 0x3969f9f4
sub eax, 0x3969f9ef
mov ecx, 0xd9bba297
add ecx, 0x2d445d69
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003567
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003567
int3
Function at 0x100010dc
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1002e775
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc4]
push 0x8000100
push 0x104
lea ecx, [ebp - 0x4c]
push ecx
push eax
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
test al, al
jne 0x1002e7b8
xor eax, eax
jmp 0x1002e8b9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
test eax, eax
jne 0x1002e7b1
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x4c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
cmp eax, edi
jl 0x1002e7f3
push eax
call dword [0x10180ef8]
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, edi
jne 0x1002e7fa
xor eax, eax
jmp 0x1002e8b8
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x1002e815
xor eax, eax
jmp 0x1002e8b7
push esi
push dword [ebp - 0x68]
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x1002e8b6
mov ecx, dword [esi]
cmp ecx, 0xbabeface
jne 0x1002e85f
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x410], ecx
jmp 0x1002e889
cmp ecx, 0xcafebabe
je 0x1002e86f
cmp ecx, 0xddba11
jne 0x1002e8b6
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x414], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x418], ecx
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x424], ebx
mov dword [eax + 0x428], ecx
mov dword [eax + 0x420], edi
mov dword [eax + 0x408], esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.10128342
add ebp, 0xbc
leave
ret
Function at 0x10002536
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1007a07a
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
mov esi, dword [ebp + 0x90]
push edi
lea edi, [esi + 0xc]
push edi
xor ebx, ebx
call sym.CoreFoundation.dll___CFSpinLock
test byte [esi + 4], 0x10
pop ecx
mov dword [ebp - 0x80], 0x100
je 0x1007a0fa
cmp dword [esi + 0x20], ebx
jne 0x1007a0fa
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x1007a0fa
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1007a0fa
lea eax, [ebp - 0x7c]
test eax, eax
je 0x1007a0fa
cmp dword [ebp - 0x80], ebx
jle 0x1007a0fa
push dword [ebp - 0x80]
push eax
push esi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFDataCreate
add esp, 0xc
mov dword [esi + 0x20], eax
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1007a10a
push esi
call sym.CoreFoundation.dll_CFRetain
pop ecx
mov ebx, eax
push edi
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10128342
add ebp, 0x88
leave
ret
Function at 0x10002e2d
Capabilities:
Read file on windows

Disassembly:
jmp 0x100b7537
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0x150
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xcc], eax
mov eax, dword [ebp + 0xe4]
push esi
mov esi, dword [ebp + 0xec]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xe8]
push edi
mov edi, dword [ebp + 0xd8]
mov dword [ebp - 0x80], eax
push 0x106
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 0x74], edi
call sym.CoreFoundation.dll_CFStringGetFileSystemRepresentation
add esp, 0xc
test al, al
jne 0x100b75a9
test esi, esi
je 0x100b75a2
push edi
push 0xffffffffffffffff
push dword [sym.CoreFoundation.dll_kCFErrorDomainCocoa]
call fcn.100b74c8
add esp, 0xc
mov dword [esi], eax
xor al, al
jmp 0x100b771c
push ebx
push 0x1b6
lea eax, [ebp - 0x3c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x70], ebx
test ebx, ebx
jns 0x100b75df
test esi, esi
je 0x100b76fe
call dword [0x10180f0c]
push edi
push dword [eax]
jmp 0x100b7678
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [0x10180f18]
pop ecx
pop ecx
test eax, eax
jns 0x100b760e
call dword [0x10180f0c]
mov edi, dword [eax]
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push dword [ebp - 0x74]
push edi
jmp 0x100b7678
mov eax, dword [ebp - 0x66]
and eax, 0xf000
mov ecx, 0x8000
cmp ax, cx
je 0x100b7635
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0xd
jmp 0x100b7678
mov ebx, dword [ebp - 0x58]
test ebx, ebx
jns 0x100b7653
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0xc
jmp 0x100b7678
mov eax, ebx
cdq
test edx, edx
jl 0x100b768a
jg 0x100b7663
cmp eax, 0x80000000
jbe 0x100b768a
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0x1b
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b74c8
add esp, 0xc
mov dword [esi], eax
jmp 0x100b76fe
test ebx, ebx
jne 0x100b769d
push 8
call dword [0x10181090]
pop ecx
mov edi, eax
xor esi, esi
jmp 0x100b7705
push ebx
call dword [0x10181090]
pop ecx
mov edi, eax
push 0
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
push dword [ebp - 0x70]
call dword [0x10180ef8]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b7702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x100b76e4
push dword [ebp - 0x74]
push ebx
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b74c8
add esp, 0xc
mov dword [esi], eax
push edi
call dword [0x10181098]
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
pop ecx
call dword [0x10180f0c]
mov dword [eax], ebx
xor al, al
jmp 0x100b771b
mov esi, dword [ebp - 0x7c]
push dword [ebp - 0x70]
call dword [0x10180f1c]
mov eax, dword [ebp - 0x78]
mov dword [eax], edi
mov eax, dword [ebp - 0x80]
mov dword [eax], esi
pop ecx
mov al, 1
pop ebx
mov ecx, dword [ebp + 0xcc]
pop edi
xor ecx, ebp
pop esi
call fcn.10128342
add ebp, 0xd0
leave
ret
Function at 0x10002ea5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10088993
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xcc
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
mov esi, dword [0x10181720]
push edi
push str.length
mov dword [ebp - 0x58], ebx
call esi
mov edi, dword [0x10181724]
push eax
push ebx
call edi
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp eax, 0x60
jg 0x100889ef
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x50]
push eax
push str.getCharacters:range:
call esi
pop ecx
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x54]
add esp, 0x14
jmp 0x10088a49
push 0x20
pop ecx
push ecx
xor eax, eax
push eax
lea eax, [ebp - 0x50]
push eax
mov ebx, str.getCharacters:range:
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x54]
add esp, 0x14
push 0x20
pop ecx
sar eax, 1
push ecx
sub eax, 0x10
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x54]
add esp, 0x14
push 0x20
pop ecx
push ecx
add eax, 0xffffffe0
push eax
lea eax, [ebp + 0x30]
push eax
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
add esp, 0x14
push 0x60
pop ecx
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
cmp ecx, 0x60
jg 0x10088ab6
mov esi, ecx
and esi, 0xfffffffc
lea esi, [ebp + esi*2 - 0x50]
mov edi, eax
lea ecx, [ebp + ecx*2 - 0x50]
cmp edi, esi
jae 0x10088aad
movzx edi, word [eax]
imul edx, edx, 0x4060401
movzx ebx, word [eax + 2]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 4]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 6]
imul edi, edi, 0x101
add edi, ebx
add eax, 8
add edx, edi
cmp eax, esi
jb 0x10088a67
jmp 0x10088aad
movzx esi, word [eax]
imul edx, edx, 0x101
add edx, esi
add eax, 2
cmp eax, ecx
jb 0x10088a9f
jmp 0x10088b73
push 8
lea eax, [ebp - 0x4c]
pop esi
movzx edi, word [eax - 4]
imul edx, edx, 0x4060401
movzx ebx, word [eax - 2]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 2]
imul edi, edi, 0x101
add edi, ebx
add edx, edi
add eax, 8
dec esi
jne 0x10088abc
mov eax, ecx
sar eax, 1
lea eax, [ebp + eax*2 - 0x70]
lea esi, [eax + 0x40]
jmp 0x10088b30
movzx ebx, word [eax]
imul edx, edx, 0x4060401
movzx edi, word [eax + 2]
imul ebx, ebx, 0x101
add edi, ebx
movzx ebx, word [eax + 4]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 6]
imul edi, edi, 0x101
add edi, ebx
add edx, edi
add eax, 8
cmp eax, esi
jb 0x10088afe
lea ecx, [ebp + ecx*2 - 0x50]
lea eax, [ecx - 0x40]
jmp 0x10088b6f
movzx edi, word [eax]
imul edx, edx, 0x4060401
movzx esi, word [eax + 2]
imul edi, edi, 0x101
add esi, edi
movzx edi, word [eax + 4]
imul esi, esi, 0x101
add esi, edi
movzx edi, word [eax + 6]
imul esi, esi, 0x101
add esi, edi
add edx, esi
add eax, 8
cmp eax, ecx
jb 0x10088b3d
mov ecx, dword [ebp - 0x54]
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
add eax, edx
pop ebx
call fcn.10128342
add ebp, 0x74
leave
ret
Function at 0x1002e775
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1002e775
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc4]
push 0x8000100
push 0x104
lea ecx, [ebp - 0x4c]
push ecx
push eax
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
test al, al
jne 0x1002e7b8
xor eax, eax
jmp 0x1002e8b9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
test eax, eax
jne 0x1002e7b1
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x4c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
cmp eax, edi
jl 0x1002e7f3
push eax
call dword [0x10180ef8]
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, edi
jne 0x1002e7fa
xor eax, eax
jmp 0x1002e8b8
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x1002e815
xor eax, eax
jmp 0x1002e8b7
push esi
push dword [ebp - 0x68]
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x1002e8b6
mov ecx, dword [esi]
cmp ecx, 0xbabeface
jne 0x1002e85f
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x410], ecx
jmp 0x1002e889
cmp ecx, 0xcafebabe
je 0x1002e86f
cmp ecx, 0xddba11
jne 0x1002e8b6
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x414], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x418], ecx
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x424], ebx
mov dword [eax + 0x428], ecx
mov dword [eax + 0x420], edi
mov dword [eax + 0x408], esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.10128342
add ebp, 0xbc
leave
ret
Function at 0x10044ced
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx ebx, ax
push 0x59
push ebx
call esi
mov edi, eax
test edi, edi
je 0x10044d4a
lea eax, [edi + edi]
call fcn.10128360
mov dword [ebp - 8], esp
push edi
push dword [ebp - 8]
push 0x59
push ebx
call esi
dec eax
push eax
push dword [ebp - 8]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128342
leave
ret

Function at 0x10044d7b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
push 0x5a
push eax
mov dword [ebp - 8], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x10044dd1
lea eax, [edi + edi]
call fcn.10128360
mov ebx, esp
push edi
push ebx
push 0x5a
push dword [ebp - 8]
call esi
dec eax
push eax
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0xc
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128342
leave
ret
Function at 0x1005da3f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push edx
add esp, 4
jmp 0x1005d9da
or edi, 0x16d79
pop edi
push ecx
jmp 0x1005d9e9
pop ecx
push edx
push edx
add esp, 4
call fcn.1005d9fd
add byte [edx + esi], dh
cmp eax, dword [edx + 0x37]
aaa
dec esi
add esp, 4
pop edx
lea eax, [ebp - 0x178c]
mov dword [ebp - 0xccc], eax
mov ecx, dword [ebp - 0x518]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcc8], edx
xor eax, eax
mov word [ebp - 0x21c], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push ecx
push ecx
add esp, 4
call 0x1005da3f
add byte [ebx + 0x3c], al
dec edi
inc edx
cmp byte [eax + 0x33], dl
xor eax, dword [eax - 0x7d]
les eax, [ecx + eax*4]
loope 0x1005da40
fiadd dword [eax]
add byte [ecx + 0x53], bl
push edx
add esp, 4
sub ebx, 0xe9f
pop ebx
push ebx
sub ebx, 0x139f6
pop ebx
mov edx, dword [ebp - 0xcc8]
mov ax, word [edx]
mov word [ebp - 0x1042], ax
mov ecx, dword [ebp - 0xcc8]
add ecx, 2
mov dword [ebp - 0xcc8], ecx
mov dx, word [ebp - 0x1042]
mov word [ebp - 0x21c], dx
mov eax, dword [ebp - 0xccc]
mov cx, word [eax]
mov word [ebp - 0x1044], cx
mov edx, dword [ebp - 0xccc]
add edx, 2
mov dword [ebp - 0xccc], edx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push eax
push edx
add esp, 4
sub eax, 0x5758
pop eax
push ebx
push eax
add esp, 4
add ebx, 0x1960
or ebx, 0xbb58
and ebx, 0x160db
pop ebx
push edi
or edi, 0xbd04
add edi, 0x101ab
pop edi
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x1005db03
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1620], edx
jmp 0x1005db5d
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x1005da2b
movzx eax, word [ebp - 0x21c]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x1005da2b
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x1005db47
mov dword [ebp - 0x161c], 0xffffffff
jmp 0x1005db51
mov dword [ebp - 0x161c], 1
mov ecx, dword [ebp - 0x161c]
mov dword [ebp - 0x1620], ecx
cmp dword [ebp - 0x1620], 0
jne 0x1005dba6
push edi
or edi, 0xc590
call 0x1005db7c
add byte [0x3d38453b], dh
dec ebx
xor eax, dword [ebx + 0x41]
add esp, 4
pop edi
push edx
push esi
add esp, 4
and edx, 0x7937
add edx, 0x1141f
xor edx, 0x185b2
pop edx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x1005dc0e
push eax
and eax, 0x15bb1
pop eax
push ecx
push esi
add esp, 4
or ecx, 0x171c6
add ecx, 0xcf0f
pop ecx
push edi
push ecx
add esp, 4
or edi, 0x163b6
and edi, 0x14981
or edi, 0x134ae
pop edi
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0xcd0]
je 0x1005dc04
mov eax, dword [ebp - 0x518]
cmp dword [eax + 0x30], 0
jne 0x1005d9cf
mov dword [ebp - 0x774], 0