joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025ba
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x442080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [0x444030], eax
xor edi, edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
mov dword [ebp - 8], 0x40ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x2c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x30
push edi
push eax
call fcn.00412770
mov eax, dword [0x444030]
add esp, 0xc
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], 0x402751
mov dword [ebp - 0x44], eax
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x444030]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 6
mov dword [ebp - 0x30], 0x439e08
call esi
push 0x65
push dword [0x444030]
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x402680
push 0x10
push 0x439e28
push str.Failed_to_register_window_class.
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40273e
push ebx
push edi
push dword [0x444030]
mov eax, 0x80000000
push edi
push edi
push 0x212
push 0x1f4
push eax
push eax
push 0xca0000
push str.JDownloader_Pack_v1.1
push dword [ebp - 0x30]
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x4026cc
push 0x10
push 0x439e28
push str.Failed_to_create_main_window.
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40273d
push 0x65
push dword [0x444030]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 1
push 0x80
push ebx
call esi
push edi
push 0
push 0x80
push ebx
call esi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea edi, [ebp - 0x28]
push 7
xor eax, eax
xor ebx, ebx
pop ecx
rep stosd dword es:[edi], eax
jmp 0x40272d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x402719
mov eax, dword [ebp - 0x20]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410b2f
leave
ret 0x10
Function at 0x404b92
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x442080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404bd0
push 0x10
push 0x439e28
push str.Failed_to_create_process_snapshot.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404cae
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404c01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x439e28
push str.Failed_to_retrieve_process_information.
jmp 0x404bc3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x210]
push str.JDownloader2.exe
push eax
call fcn.0041587e
pop ecx
pop ecx
test eax, eax
jne 0x404c93
mov ebx, dword [ebp - 0x22c]
xor edi, edi
xor eax, eax
push eax
push eax
push edi
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
and dword [ebp - 8], 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 8], ebx
jne 0x404c57
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
jne 0x404c28
push ebx
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x404c93
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404c90
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call ebx
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404c09
pop edi
push esi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410b2f
leave
ret
Function at 0x404cbb
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x244
mov eax, 0x430a93
call fcn.004110a4
lea eax, [ebp - 0x238]
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404cf1
xor al, al
jmp 0x404db6
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], esi
push eax
push esi
push esi
push 0x4322e0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x404d1d
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404cea
push dword [ebp - 0x234]
lea ecx, [ebp - 0x250]
call fcn.0040647b
push str.JDownloader_2JDownloader2.exe
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x230]
call fcn.0040970b
pop ecx
lea ecx, [ebp - 0x250]
call fcn.00407495
push dword [ebp - 0x234]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], 0x200
push ecx
push esi
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push esi
push eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x238]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
lea ecx, [ebp - 0x230]
sete bl
call fcn.00407495
mov al, bl
call fcn.00411053
ret

Function at 0x404dbc
Capabilities:
Delete registry value
Get common file path
Set registry value

Disassembly:
push 0x44
mov eax, 0x430aca
call fcn.004110a4
mov byte [ebp - 0x35], cl
xor ebx, ebx
lea eax, [ebp - 0x30]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404df3
xor al, al
jmp 0x404ea7
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
push ebx
push ebx
push 0x4322e0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x404e16
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404dec
push dword [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.0040647b
push str.JDownloader_2JDownloader2.exe
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.0040970b
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00407495
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [ebp - 0x35], 0
lea eax, [ebp - 0x2c]
je 0x404e6c
cmp dword [ebp - 0x18], 7
push 0x36
cmova eax, dword [ebp - 0x2c]
push str._GDIDPISCALING_DPIUNAWARE
push 1
push ebx
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x404e83
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
je 0x404e92
test eax, eax
je 0x404e92
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404e9d
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.00407495
mov al, bl
call fcn.00411053
ret
Function at 0x404ead
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x2b8
mov eax, 0x430b19
call fcn.004110a4
mov esi, ecx
push 0x439e04
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.004096af
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
push ecx
cmova eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405049
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040647b
mov edx, 0x439df8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409749
test al, al
jne 0x405020
mov edx, 0x439dfc
lea ecx, [ebp - 0x28]
call fcn.00409749
test al, al
jne 0x405020
mov eax, 0x7ffffffe
sub eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x405057
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x404f4e
mov ecx, dword [esi]
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x10]
push ecx
push ecx
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x40]
call fcn.0040c03c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push 0x80
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x2a8], 0x10
je 0x404fd2
push 0x43ba10
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x2c4]
call fcn.004096af
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00404ead
lea ecx, [ebp - 0x2c4]
call fcn.00407495
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40500e
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
jb 0x404ffc
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0x43ba14
cmova eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
add eax, 0xfffffff8
push eax
call fcn.0041587e
pop ecx
pop ecx
test eax, eax
je 0x405018
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405018
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
call fcn.00407495
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407495
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404ef6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x58]
call fcn.00407495
call fcn.00411053
ret
call fcn.004011f3
int3
Function at 0x40505d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
movzx eax, cx
mov ebx, edx
push eax
push dword [0x444030]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4050f8
push esi
push dword [0x444030]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4050f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x444030]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov edi, eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4050f8
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4050f8
cmp dword [ebp - 8], edi
sete al
jmp 0x4050fa
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410b2f
leave
ret
Function at 0x4057e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
push edi
test esi, esi
jg 0x405813
jl 0x40580a
test ebx, ebx
jne 0x405813
xor eax, eax
xor edx, edx
jmp 0x4058d2
cmp dword [ecx + 0x38], 0
je 0x405826
push esi
push ebx
push edx
call fcn.004060e8
jmp 0x4058d2
mov eax, dword [ecx + 0x1c]
mov edi, ebx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x405869
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x405869
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [esp + 0x18]
push edx
call fcn.004121e0
mov ecx, dword [esp + 0x1c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x4058c9
call fcn.004071a8
mov edx, dword [esp + 0xc]
mov eax, edi
cmp edi, 0xfff
jbe 0x4058b4
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.0041c602
mov edx, dword [esp + 0x1c]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0xc], edx
cmp eax, ecx
jne 0x4058c9
cmp edi, ecx
mov ecx, dword [esp + 0x10]
ja 0x405882
mov eax, edi
test eax, eax
je 0x4058c9
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.0041c602
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4119cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411a0a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411a0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411a0a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411a0a
cmp dword [ecx + 0x74], 0xe
jbe 0x411a0a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4229b4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4360f4
push 0x4360ec
push str.FlsAlloc
push 0x1f
call fcn.0042283c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4229e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x432268]
call esi
jmp 0x4229ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422a32
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436104
push 0x4360fc
push str.FlsGetValue
push 0x21
call fcn.0042283c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422a69
push dword [ebp + 8]
mov ecx, esi
call dword [0x432268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x422a71
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43610c
push 0x436104
push str.FlsSetValue
push 0x22
call fcn.0042283c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422aab
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x432268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x424394
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411b30
mov eax, dword [0x442080]
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.00420762
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4243d6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x424532
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004301e0
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 + 0x443be0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00425195
mov ecx, dword [esi*4 + 0x443be0]
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 0x42452b
cmp eax, dword [ecx + edi + 0x24]
jne 0x42452b
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 0x42452b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425195
add esp, 0x14
test edx, edx
jl 0x42452b
jg 0x4244a1
test eax, eax
jb 0x42452b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42452b
jl 0x4244bb
cmp dword [ebp - 0x1008], eax
ja 0x42452b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4244d9
test ebx, ebx
je 0x424512
cmp ecx, edi
jae 0x424512
mov al, byte [ecx]
cmp al, 0xd
jne 0x4244f3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4244ff
cmp byte [ecx + 1], 0xa
jne 0x4244ff
inc ecx
jmp 0x4244ff
movzx eax, al
movsx eax, byte [eax + 0x442348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4244d9
cmp edx, ebx
jne 0x4244d9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x424530
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410b2f
leave
ret
Function at 0x42462d
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 + 0x443be0]
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 0x42466d
cmp byte [ebx], 0xa
jne 0x42466d
or byte [edi + eax + 0x28], 4
jmp 0x424672
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 0x424771
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424754
inc eax
cmp dl, 0xd
je 0x42469e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4246c4
cmp eax, ecx
jae 0x4246d2
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 0x424686
jmp 0x424771
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 0x42474f
cmp dword [ebp - 0x10], 0
je 0x42474f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x443be0]
test byte [eax + edi + 0x28], 0x48
je 0x424729
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424714
mov byte [esi], dl
jmp 0x424725
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443be0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x424771
cmp byte [ebp - 1], 0xa
jne 0x424738
cmp esi, ebx
jne 0x424738
mov byte [esi], 0xa
jmp 0x424770
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004251b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x424771
mov byte [esi], 0xd
jmp 0x424770
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x443be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42476e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x424771
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42477a
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 + 0x443be0]
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 0x4247c0
cmp word [ebx], dx
jne 0x4247c0
or byte [eax + edi + 0x28], 4
jmp 0x4247c5
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 0x424928
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 0x424908
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424806
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42483c
cmp eax, edx
jae 0x42484a
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 0x4247e1
jmp 0x424928
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 0x424903
cmp dword [ebp - 0x18], 0
je 0x424903
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x443be0]
test byte [eax + edi + 0x28], 0x48
je 0x4248d9
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 0x42489d
mov word [esi], cx
jmp 0x4248d4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x443be0]
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 + 0x443be0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x443be0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424928
pop eax
cmp word [ebp - 4], ax
jne 0x4248e9
cmp esi, ebx
jne 0x4248e9
mov word [esi], ax
jmp 0x424925
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004251b3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424928
push 0xd
pop eax
jmp 0x4248e4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x443be0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424922
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424928
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4282d1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42836e
push ebx
push esi
call fcn.0042829a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004270f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42831b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42836d
push edi
push eax
call fcn.00423140
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42833b
call fcn.00422156
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42836c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004270f0
add esp, 0x20
test eax, eax
jne 0x42835a
push edi
call fcn.00422156
jmp 0x428362
push ebx
call fcn.00422156
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a78f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00420d1f
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 0x42a7fe
cmp esi, dword [ebp - 4]
je 0x42a7f9
cmp dword [ebp + 0xc], 0
je 0x42a7f9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42a7d6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042a2e1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42a800
xor eax, eax
inc eax
jmp 0x42a800
xor eax, eax
pop edi
pop esi
leave
ret