joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00403bf0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00403bf0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40706c]
test esi, esi
jle 0x402d80
mov eax, dword [0x407070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402c94
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402d17
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402c80
mov dword [esp], ebx
call fcn.00403650
mov edi, eax
test eax, eax
je 0x402da7
mov eax, dword [0x407070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403790
mov edx, dword [0x407070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402d87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402d10
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402d20
add dword [0x40706c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x407070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402c00
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x402c9e
mov eax, dword [0x407070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402c00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402c00
lea esi, [esi]
nop
Function at 0x4032c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x407088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407080]
sub esp, 4
test ebx, ebx
je 0x403315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40330e
test esi, esi
je 0x40330e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4032f0
mov dword [esp], 0x407088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403650
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403675
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403680
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403675
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4036c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4036be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4036ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4036b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4011a0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x435874
call fcn.00401570
push 0x40
push 0x4070c0
push 0x435874
push 0x435874
call fcn.00401400
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x40122b
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x408034]
mov ecx, 8
mov esi, eax
mov edi, 0x4358f4
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x408030]
mov edx, dword [0x408034]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x408030]
add esp, 0x14
mov ecx, 8
mov esi, 0x4358f4
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4011df
jmp 0x401284
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x408030]
mov ecx, 8
mov esi, eax
mov edi, 0x4358f4
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x408034]
mov edx, dword [0x408030]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x408034]
add esp, 0x14
mov ecx, 8
mov esi, 0x4358f4
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40123a
push 0x40
push 0x407100
push 0x435874
push 0x435874
call fcn.00401400
mov eax, dword [esp + 0x24]
push 0x40
push 0x435874
push eax
call fcn.004015b0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x435914
call fcn.00401570
push 0x38
push str.91__
push 0x435914
push 0x435914
call fcn.00401400
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x4071f8]
mov edx, dword [0x408038]
push ecx
push 0x1c
push edx
call fcn.004014c0
movsx eax, byte [esi + 0x4071f8]
mov ecx, dword [0x40803c]
push eax
push 0x1c
push ecx
call fcn.004014c0
push 0x30
push 0x4071c8
push 0x435914
push edi
call fcn.00401400
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x4012f2
pop edi
pop esi
ret

Function at 0x401340
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x407140
push esi
push 0x4358b4
call fcn.00401400
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x4358b4
call fcn.00401450
push 0x4358b4
push esi
call fcn.00401390
push 0x20
push 0x407170
push esi
push esi
call fcn.00401400
add esp, 0x34
pop esi
ret

Function at 0x401450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 0x4078c0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xd
call fcn.0040247e
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x4014a9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x40149c
mov eax, 0x4014af
ret
Function at 0x401600
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x401618
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x401631
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x401668
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x401668
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00401750
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4016f1
push eax
push ebx
call fcn.004019b0
add esp, 8
push ebx
call fcn.00401a30
add esp, 4
test eax, eax
je 0x401721
push ebx
call fcn.00401820
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401739
add eax, ebp
test eax, eax
je 0x401721
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x401732
push ebx
call fcn.00401d70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x401750
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x401811
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x4017bb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4017ef
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4017ef
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40177e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401820
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push esi
mov dword [esp + 4], 0
mov eax, dword [eax]
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4019a3
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
add esi, 0x24
mov bl, 0x6c
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov edi, eax
and ecx, 1
and edx, 1
shr edi, 0x1f
test eax, 0x2000000
je 0x40188b
mov edx, dword [esi - 0x14]
mov eax, dword [esi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401980
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [edi + ecx*2]
mov edi, dword [edx*4 + 0x40804c]
je 0x4018a5
or edi, 0x200
mov ecx, dword [esi - 0x14]
test ecx, ecx
jne 0x4018ce
test al, 0x40
je 0x4018bb
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
jmp 0x4018cc
test al, 0x80
je 0x401980
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jbe 0x401980
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x30], 0x56
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x74
mov byte [esp + 0x34], 0x75
mov byte [esp + 0x35], 0x61
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0x50
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x74
mov byte [esp + 0x3b], 0x65
mov byte [esp + 0x3c], 0x63
mov byte [esp + 0x3d], 0x74
mov byte [esp + 0x3e], 0
mov byte [esp + 0x20], 0x4b
mov byte [esp + 0x21], 0x45
mov byte [esp + 0x22], 0x52
mov byte [esp + 0x23], 0x4e
mov byte [esp + 0x24], 0x45
mov byte [esp + 0x25], 0x4c
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebp
mov edx, dword [esi - 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi - 0x1c]
push edi
push edx
push ecx
call eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x401855
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439004]
jne 0x401010
repz ret
jmp fcn.004016de

Function at 0x407345
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401856
and dword [ebp - 4], 0
cmp dword [0x43c480], 0
mov ebx, eax
jne 0x4073f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4074a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4074a7
push eax
call fcn.004017e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c480], eax
call esi
push eax
call fcn.004017e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c484], eax
call esi
push eax
call fcn.004017e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c488], eax
call esi
push eax
call fcn.004017e4
pop ecx
mov dword [0x43c490], eax
test eax, eax
je 0x4073f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004017e4
pop ecx
mov dword [0x43c48c], eax
mov eax, dword [0x43c48c]
cmp eax, ebx
je 0x40744e
cmp dword [0x43c490], ebx
je 0x40744e
push eax
call fcn.0040185f
push dword [0x43c490]
mov esi, eax
call fcn.0040185f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40744e
test edi, edi
je 0x40744e
call esi
test eax, eax
je 0x407445
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407445
test byte [ebp - 0xc], 1
jne 0x40744e
or dword [ebp + 0x10], 0x200000
jmp 0x407487
mov eax, dword [0x43c484]
cmp eax, ebx
je 0x407487
push eax
call fcn.0040185f
pop ecx
test eax, eax
je 0x407487
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407487
mov eax, dword [0x43c488]
cmp eax, ebx
je 0x407487
push eax
call fcn.0040185f
pop ecx
test eax, eax
je 0x407487
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c480]
call fcn.0040185f
pop ecx
test eax, eax
je 0x4074a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4074a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432430
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x439004]
xor eax, esp
mov dword [esp + 0x800], eax
cmp dword [0x80d294], 0x114e
mov eax, dword [esp + 0x808]
mov dword [0x80d0d8], eax
jne 0x432471
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret

Function at 0x432540
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x43a000]
push ebx
mov ebx, dword [0x80d294]
push esi
mov esi, dword [0x80d0dc]
push eax
call fcn.00432430
add esp, 4
cmp dword [0x80d294], 0x2f
jne 0x43256b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
call fcn.004324a0
add esp, 4
cmp dword [0x80d294], 0x568
pop esi
pop ebx
jne 0x43258a
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
ret
Function at 0x403602
Capabilities:
Terminate process

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

Disassembly:
jmp 0x4a5841
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5852
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5728
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a587a
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040624e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057b3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44bf90
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44bfcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44bfcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bfcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44bfcf
cmp dword [ecx + 0x74], 0xe
jbe 0x44bfcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x449c76
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403788
mov eax, dword [eax + 0x14]
test eax, eax
je 0x449cb9
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x449cb9
sub eax, 1
je 0x449cb4
sub eax, 1
je 0x449cb0
xor eax, eax
leave
ret
push 3
jmp 0x449cbb
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x490615
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d8e
mov eax, dword [0x4d6040]
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.00405e6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49f628
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49f784
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fba
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 + 0x4d9858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040329c
mov ecx, dword [esi*4 + 0x4d9858]
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 0x49f77d
cmp eax, dword [ecx + edi + 0x24]
jne 0x49f77d
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 0x49f77d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040329c
add esp, 0x14
test edx, edx
jl 0x49f77d
jg 0x49f6f3
test eax, eax
jb 0x49f77d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49f77d
jl 0x49f70d
cmp dword [ebp - 0x1008], eax
ja 0x49f77d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49f72b
test ebx, ebx
je 0x49f764
cmp ecx, edi
jae 0x49f764
mov al, byte [ecx]
cmp al, 0xd
jne 0x49f745
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49f751
cmp byte [ecx + 1], 0xa
jne 0x49f751
inc ecx
jmp 0x49f751
movzx eax, al
movsx eax, byte [eax + 0x4d63a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49f72b
cmp edx, ebx
jne 0x49f72b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49f782
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403076
leave
ret
Function at 0x49fec3
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 + 0x4d9858]
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 0x49ff03
cmp byte [ebx], 0xa
jne 0x49ff03
or byte [edi + eax + 0x28], 4
jmp 0x49ff08
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 0x4a0007
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49ffea
inc eax
cmp dl, 0xd
je 0x49ff34
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49ff5a
cmp eax, ecx
jae 0x49ff68
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 0x49ff1c
jmp 0x4a0007
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 0x49ffe5
cmp dword [ebp - 0x10], 0
je 0x49ffe5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d9858]
test byte [eax + edi + 0x28], 0x48
je 0x49ffbf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49ffaa
mov byte [esi], dl
jmp 0x49ffbb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d9858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a0007
cmp byte [ebp - 1], 0xa
jne 0x49ffce
cmp esi, ebx
jne 0x49ffce
mov byte [esi], 0xa
jmp 0x4a0006
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a0007
mov byte [esi], 0xd
jmp 0x4a0006
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d9858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0004
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0007
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret