joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420cac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041700a
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x420ce4
xor eax, eax
jmp 0x420d10
cmp esi, dword [ebp - 4]
je 0x420d0d
cmp dword [ebp + 0xc], 0
je 0x420d0d
push dword [edi + 0x9c]
call fcn.004208ba
push dword [edi + 0x9c]
mov esi, eax
call fcn.00412316
pop ecx
pop ecx
cmp esi, eax
je 0x420ce0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4971b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6b10]
jne 0x4971c0
repz ret
jmp fcn.0049bc1d

Function at 0x499f00
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6b10]
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.00494532
and dword [ebp - 0x14], 0
cmp dword [0x4c9cbc], 0
mov dword [ebp - 0x18], eax
jne 0x499fb3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a05b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4030
push ebx
call edi
test eax, eax
je 0x49a05b
mov esi, dword [fcn.00490bb0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c9cbc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c9cc0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c9cc4], eax
call edi
push eax
call esi
mov dword [0x4c9ccc], eax
test eax, eax
je 0x499fb3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c9cc8], eax
mov eax, dword [0x4c9cc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490bb4]
cmp eax, ecx
je 0x49a00c
cmp dword [0x4c9ccc], ecx
je 0x49a00c
push eax
call esi
push dword [0x4c9ccc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a00c
test ebx, ebx
je 0x49a00c
call edi
test eax, eax
je 0x49a003
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a003
test byte [ebp - 8], 1
jne 0x49a00c
or dword [ebp + 0x10], 0x200000
jmp 0x49a03f
mov eax, dword [0x4c9cc0]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a03f
mov eax, dword [0x4c9cc4]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9cbc]
call esi
test eax, eax
je 0x49a05b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a05d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004971b6
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d28
cmp byte [esi + ebx - 1], 0xa
je 0x401cfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402300
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401520
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x208], eax
call fcn.00401120
mov ecx, dword [0x40fb70]
push 0x104
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, 1
call fcn.00401baf
add esp, 0x20c
ret

Function at 0x401580
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, 7
jl 0x40164b
xor ebx, ebx
cmp eax, ebx
mov dword [0x40f964], ebx
mov dword [0x40f960], 1
jle 0x401707
mov esi, dword [ebp + ebx*4]
mov ecx, 0x40c4a4
mov eax, esi
jmp 0x4015d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4015f6
test dx, dx
je 0x4015f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4015f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4015d0
xor eax, eax
jmp 0x4015fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40165e
mov ecx, dword [ebp + ebx*4 + 4]
inc ebx
mov esi, 0x104
mov eax, 0x40f968
xor edi, edi
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x401632
movzx edx, word [ecx]
test dx, dx
je 0x401632
mov word [eax], dx
add eax, 2
add ecx, 2
sub esi, 1
jne 0x401610
jmp 0x401636
test esi, esi
jne 0x40163e
sub eax, 2
mov edi, 0x8007007a
xor ecx, ecx
mov word [eax], cx
test edi, edi
jge 0x4016fc
test ebp, ebp
je 0x401656
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, 0x40c4ac
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40168b
test dx, dx
je 0x401687
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40168b
add eax, 4
add ecx, 4
test dx, dx
jne 0x401665
xor eax, eax
jmp 0x401690
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4016ac
mov edx, dword [ebp + ebx*4 + 4]
inc ebx
push 0xa
push eax
push edx
call fcn.00401e3f
movzx eax, ax
mov dword [0x40f964], eax
jmp 0x4016f9
mov ecx, 0x40c4b4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016d9
test dx, dx
je 0x4016d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016b3
xor eax, eax
jmp 0x4016de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4016fc
mov ecx, dword [ebp + ebx*4 + 4]
inc ebx
push 0xa
push eax
push ecx
call fcn.00401e3f
movzx edx, ax
mov dword [0x40f960], edx
add esp, 0xc
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x4015c0
test ebp, ebp
je 0x401712
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x40f968
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
pop ecx
ret
Function at 0x401730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x670
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x66c], eax
mov ecx, dword [esp + 0x678]
mov eax, dword [esp + 0x674]
push ebx
push ebp
push esi
push edi
push ecx
push eax
mov dword [esp + 0x1c], ecx
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x47c]
mov dword [esp + 0x1c], eax
call section..text
add esp, 0xc
test eax, eax
jl 0x4018f8
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018de
mov ebp, dword [esp + 0x68c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
push eax
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x274]
call section..text
add esp, 0xc
test eax, eax
jl 0x401897
mov al, byte [esp + 0x18]
test al, 0x10
je 0x40186c
mov ecx, 0x40c4c8
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40180c
test dx, dx
je 0x401808
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40180c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4017e6
xor eax, eax
jmp 0x401811
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401897
mov ecx, 0x40c4cc
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401848
test dx, dx
je 0x401844
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401848
add eax, 4
add ecx, 4
test dx, dx
jne 0x401822
xor eax, eax
jmp 0x40184d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401897
mov edx, dword [esp + 0x14]
lea ecx, [ebp + 1]
push ecx
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00401730
add esp, 0xc
jmp 0x401897
test al, 1
je 0x401883
push 0x80
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401897
xor edi, edi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4017a6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 1
je 0x4018e5
test ebp, ebp
jg 0x4018f8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x474]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017a6
mov eax, 1
jmp 0x4018fa
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4018de
test ebp, ebp
jle 0x4018de
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401baf
add esp, 0x670
ret
Function at 0x401920
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x464
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x45c], eax
cmp dword [0x40f960], 0
push ebx
push ebp
push esi
push edi
jne 0x40194b
mov eax, 1
jmp 0x401a48
push 0x40f968
push str._s.
mov ecx, 0x104
lea ebx, [esp + 0x268]
call section..text
add esp, 8
test eax, eax
jge 0x401974
xor eax, eax
jmp 0x401a48
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40196d
mov bl, 0x10
test byte [esp + 0x10], bl
je 0x401a3d
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4019b0
mov ecx, 0x40c4c8
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4019e6
test dx, dx
je 0x4019e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4019e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4019c0
xor eax, eax
jmp 0x4019eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401a27
mov ecx, 0x40c4cc
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401a1e
test dx, dx
je 0x401a1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401a1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4019f8
xor eax, eax
jmp 0x401a23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401a3d
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x401a3f
test byte [esp + 0x10], bl
jne 0x4019b0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401baf
add esp, 0x464
ret
Function at 0x401a70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
push edi
push str.User_Registration_IJRMF.EXE
push 1
push 0
mov dword [0x40fb70], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x401ac9
call fcn.00401520
push 0x40c3d4
push esi
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x401abf
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b10
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
call fcn.00401520
push 0x40c3d4
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x401b06
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401580
test eax, eax
jne 0x401b37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401520
call fcn.004010f0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x40c51c
push 0x40f968
call fcn.00401730
add esp, 0xc
cmp dword [0x40f964], 0
je 0x401b91
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebx, [ebx]
push 0x40f968
call edi
test eax, eax
je 0x401b91
call fcn.00401920
test eax, eax
je 0x401b91
push 0
push 0x40c51c
push 0x40f968
call fcn.00401730
add esp, 0xc
sub dword [0x40f964], 1
jne 0x401b60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401520
call fcn.004010f0
mov eax, dword [0x40fb74]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401baf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x401bb9
repz ret
jmp fcn.0040216d
Function at 0x407dc3
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.00402ced
and dword [ebp - 4], 0
cmp dword [0x40f880], 0
mov ebx, eax
jne 0x407e74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407f25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407f25
push eax
call fcn.00402c7b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f880], eax
call esi
push eax
call fcn.00402c7b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f884], eax
call esi
push eax
call fcn.00402c7b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f888], eax
call esi
push eax
call fcn.00402c7b
pop ecx
mov dword [0x40f890], eax
test eax, eax
je 0x407e74
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c7b
pop ecx
mov dword [0x40f88c], eax
mov eax, dword [0x40f88c]
cmp eax, ebx
je 0x407ecc
cmp dword [0x40f890], ebx
je 0x407ecc
push eax
call fcn.00402cf6
push dword [0x40f890]
mov esi, eax
call fcn.00402cf6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ecc
test edi, edi
je 0x407ecc
call esi
test eax, eax
je 0x407ec3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407ec3
test byte [ebp - 0xc], 1
jne 0x407ecc
or dword [ebp + 0x10], 0x200000
jmp 0x407f05
mov eax, dword [0x40f884]
cmp eax, ebx
je 0x407f05
push eax
call fcn.00402cf6
pop ecx
test eax, eax
je 0x407f05
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407f05
mov eax, dword [0x40f888]
cmp eax, ebx
je 0x407f05
push eax
call fcn.00402cf6
pop ecx
test eax, eax
je 0x407f05
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f880]
call fcn.00402cf6
pop ecx
test eax, eax
je 0x407f25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407f27
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000cb20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10018008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2c], ebx
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x1000cb5a
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cb71
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10001870
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1000ccf0
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000cbdb
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1000cbd2
test cl, 0x1f
jne 0x1000cc4d
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000cc4d
sub ecx, eax
cmp ecx, 4
jb 0x1000cc4d
cmp ecx, 0x23
ja 0x1000cc4d
mov ecx, eax
push ecx
call fcn.1001112d
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x1000cccc
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000cccc
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x1000cccc
mov eax, dword [eax + esi + 0x50]
xor edi, edi
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
lea eax, [esi + eax*4]
mov dword [ebp - 0x30], eax
jb 0x1000cc29
mov edx, dword [ebx]
cmp esi, eax
jae 0x1000cccc
mov eax, 0x3f3f
mov bl, byte [edx]
cmp bl, 0x3f
je 0x1000cc97
mov al, bl
movzx ecx, bl
sub al, 0x30
cmp al, 9
ja 0x1000cc53
sub ecx, 0x30
jmp 0x1000cc59
call dword [0x10014120]
and ecx, 0xffffffdf
sub ecx, 0x37
mov ah, byte [edx + 1]
mov al, ah
sub al, 0x30
cmp al, 9
movzx eax, ah
ja 0x1000cc6c
sub eax, 0x30
jmp 0x1000cc72
and eax, 0xffffffdf
sub eax, 0x37
shl ecx, 4
or ecx, eax
movzx eax, byte [esi]
cmp eax, ecx
je 0x1000cc92
test edi, edi
je 0x1000ccbd
mov ecx, dword [ebp - 0x2c]
mov esi, edi
call fcn.10004f80
mov edx, eax
xor edi, edi
jmp 0x1000ccbd
mov eax, 0x3f3f
test edi, edi
cmove edi, esi
cmp byte [edx + 2], 0
je 0x1000ccea
cmp word [edx], ax
je 0x1000ccb1
mov eax, 2
cmp bl, 0x3f
je 0x1000ccb6
mov eax, 3
add edx, eax
cmp byte [edx], 0
je 0x1000ccea
inc esi
mov eax, 0x3f3f
cmp esi, dword [ebp - 0x30]
jb 0x1000cc36
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100110ec
mov esp, ebp
pop ebp
ret
mov eax, edi
jmp 0x1000ccce
Function at 0x1000d070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012d18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10018008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov ecx, dword [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x30], eax
mov edx, dword [eax + 0x78]
mov eax, dword [edx + ebx + 0x24]
add edx, ebx
add eax, ebx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], eax
mov edi, dword [edx + 0x1c]
mov eax, dword [edx + 0x20]
add edi, ebx
add eax, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
test ecx, 0xffff0000
jne 0x1000d0fe
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x10]
movzx esi, ax
cmp esi, ecx
jb 0x1000d0f7
mov eax, dword [edx + 0x14]
add eax, ecx
cmp esi, eax
ja 0x1000d0f7
sub esi, ecx
mov esi, dword [edi + esi*4]
add esi, ebx
jmp 0x1000d15c
xor eax, eax
jmp 0x1000d20c
mov eax, dword [edx + 0x18]
xor edi, edi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1000d15c
nop word [eax + eax]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + edi*4]
add eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1000d138
test dl, dl
je 0x1000d134
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1000d138
add ecx, 2
add eax, 2
test dl, dl
jne 0x1000d118
xor eax, eax
jmp 0x1000d13d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000d150
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
movzx eax, word [eax + edi*2]
mov esi, dword [ecx + eax*4]
add esi, ebx
mov ecx, dword [ebp - 0x2c]
inc edi
cmp edi, dword [ebp - 0x40]
jb 0x1000d110
mov edx, dword [ebp - 0x44]
cmp esi, edx
jb 0x1000d20a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x7c]
add eax, edx
cmp esi, eax
jae 0x1000d20a
push esi
call dword [0x10014160]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d0f7
push 0x2e
push edi
xor esi, esi
call dword [0x100140cc]
mov ecx, edi
mov dword [ebp - 0x18], esi
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [eax], 0
inc eax
mov dword [ebp - 0x30], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d1b0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10001870
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1000ccf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
call fcn.10001810
test ebx, ebx
jne 0x1000d1f4
push edi
call dword [0x10014014]
mov ebx, eax
test ebx, ebx
je 0x1000d200
mov edx, dword [ebp - 0x30]
mov ecx, ebx
call fcn.1000d070
mov esi, eax
push edi
call dword [0x100140f0]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100110ec
mov esp, ebp
pop ebp
ret
Function at 0x1000f020
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001316c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10018008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x10018658]
mov edx, dword [eax + edx*4]
mov eax, dword [0x100187c8]
cmp eax, dword [edx + 4]
jle 0x1000f107
push 0x100187c8
call fcn.100112aa
add esp, 4
cmp dword [0x100187c8], 0xffffffff
jne 0x1000f107
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 9
push 0x10014a7c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10001870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xd
push 0x10014838
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10001870
mov ecx, dword [0x100186dc]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000df90
lea ecx, [ebp - 0x28]
mov dword [0x100187b4], eax
call fcn.10001810
lea ecx, [ebp - 0x40]
call fcn.10001810
push 0x100187c8
call fcn.1001126b
add esp, 4
mov eax, dword [0x100187b4]
mov eax, dword [eax + esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100110ec
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx