joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9250
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4a9276
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x4a9278
mov eax, esi
pop esi
ret

Function at 0x4a9930
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x30e0
call fcn.004d4ce0
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
mov word [esp + 0x1060], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0x1062]
mov dword [esp + 0x10], 0x824
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a99db
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push esi
push str.Start_Page
push eax
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1060]
push ecx
push edx
push esi
push esi
push str.Secondary_Start_Pages
push eax
mov dword [esp + 0x28], 0x1048
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x30f8]
mov edi, dword [esp + 0x30f4]
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x18]
push edx
push 0x4ed128
push ebx
push edi
call ebp
lea eax, [esp + 0x1070]
mov word [edi + ebx*2 - 2], si
push eax
lea esi, [esp + 0x1074]
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4a9a4e
push esi
push edi
push str._s_r_n_s
push ebx
push edi
call ebp
mov ecx, dword [esp + 0x24]
mov word [edi + ebx*2 - 2], 0
lea esi, [esi + ecx*2 + 2]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4a9a22
push edi
call fcn.004b0f70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30e0
ret

Function at 0x4a9a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x73eec8]
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp], 1
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x4a9a9c
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a9add
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x4a9af0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x73eec8]
mov dword [esp], 1
test ecx, ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x4a9b1f
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a9b8d
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 8]
lea edx, [esp]
sete al
push ecx
push edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push 4
push 0
push str.AutoDetect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x4aa7c0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4aa7dc
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x4aa7e8
xor eax, eax
pop ecx
ret
test al, 7
jne 0x4aa7f0
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x4aa820
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db64b
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004d4ce0
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x4f30d0
mov edi, ecx
push esi
call fcn.004a9360
add esp, 8
test eax, eax
je 0x4aa988
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.004a93a0
add esp, 0x10
test eax, eax
je 0x4aa921
lea ecx, [esp + 0x220]
push str.iexplore.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4aa8d8
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.004a93a0
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
test eax, eax
jne 0x4aa8d8
lea ecx, [esp + 0x220]
push 0x824
push ecx
push eax
push esi
call fcn.004a93a0
add esp, 0x10
lea edx, [esp + 0x220]
push edx
push 0x4ed128
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.004b0f70
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.004afdf0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.004afec0
mov esi, eax
test esi, esi
je 0x4aa96f
push esi
lea ecx, [esp + 0xc]
call fcn.004b03a0
test eax, eax
je 0x4aa965
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004b03e0
push esi
lea ecx, [esp + 0xc]
call fcn.004b0140
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004afe40
jmp 0x4aa8fd
push 0x4ed808
push esi
call fcn.004a9360
add esp, 8
test eax, eax
push esi
je 0x4aa8e0
push 0x824
push edi
push 0x500df0
push 0x4ed834
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4aa8fd
Function at 0x4ab030
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df330
push 0x4d4d54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1084
call fcn.004d4ce0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea ecx, [eax + eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
push 0x10000000
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
call ebx
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4ab14d
mov word [ebp - 0x109c], di
mov ecx, 0x411
lea edi, [ebp - 0x109a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str.http:___s
push 0x823
lea ecx, [ebp - 0x109c]
push ecx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
call esi
add esp, 0x10
lea edx, [ebp - 0x54]
push edx
push 0x10000000
lea eax, [ebp - 0x109c]
push eax
call ebx
add esp, 4
push eax
lea ecx, [ebp - 0x109c]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4ab14d
lea edx, [ebp - 0x109c]
push edx
push 0x4ed128
mov eax, dword [ebp + 0x10]
dec eax
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
jmp 0x4ab187
mov edx, dword [ebp + 0xc]
push edx
call ebx
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ab5d0
Capabilities:
Identify system language via api

Disassembly:
push ecx
mov eax, dword [0x73ff2c]
push esi
push edi
mov esi, ecx
push eax
call fcn.004abaa0
lea ecx, [esp + 8]
push reloc.DSOUND.dll_DirectSoundCreate
push ecx
push str.LanguageDefault
push str.Main
mov dword [esp + 0x18], 0
call fcn.004af430
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
jne 0x4ab6c4
lea edi, [esi + 0x230]
push reloc.DSOUND.dll_DirectSoundCreate
push 0x104
push edi
push str.LanguageFile
push str.Main
call fcn.004af1b0
add esp, 0x14
mov ecx, esi
push edi
call fcn.004ac1d0
test eax, eax
jne 0x4ab6c4
mov ecx, esi
mov word [edi], ax
call fcn.004ab6d0
test eax, eax
jne 0x4ab6c4
call fcn.004ab760
mov ecx, esi
mov word [esi + 0x22e], ax
call fcn.004ab6d0
test eax, eax
jne 0x4ab6c4
call fcn.004ab790
mov ecx, esi
mov word [esi + 0x22e], ax
call fcn.004ab6d0
test eax, eax
jne 0x4ab6c4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, esi
mov word [esi + 0x22e], ax
call fcn.004ab6d0
test eax, eax
jne 0x4ab6c4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, esi
mov word [esi + 0x22e], ax
call fcn.004ab6d0
test eax, eax
jne 0x4ab6c4
mov dx, word [esi + 0x22c]
mov ecx, esi
mov word [esi + 0x22e], dx
call fcn.004ab6d0
pop edi
pop esi
pop ecx
ret

Function at 0x4ab790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call esi
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ab7b8
call eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x4ab850
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push str.Control_PanelDesktopResourceLocale
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ab846
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x24], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ab83b
cmp dword [esp + 0x10], 1
jne 0x4ab83b
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x4edb6c
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0xc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp + 8]
pop esi
add esp, 0x30
ret
push str.ntdll.dll
mov dword [esp + 0xc], 0
call esi
test eax, eax
je 0x4ab878
lea edx, [esp + 8]
push edx
push 0x4ab890
push 1
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ax, word [esp + 8]
pop esi
add esp, 0x30
ret
Function at 0x4ab8b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ax, word [esi + 0x22e]
cmp ax, word [esi + 0x22c]
jne 0x4ab8d5
call fcn.004aba60
mov eax, 1
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push 4
push ecx
and eax, 0xffff
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4ab8f3
pop esi
add esp, 0x10
ret
lea edx, [esp + 4]
push str..dll
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [esp + 4]
mov ecx, esi
push 1
push eax
call fcn.004abab0
test ax, ax
jne 0x4ab920
xor eax, eax
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004ac1d0
pop esi
add esp, 0x10
ret

Function at 0x4abab0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, dword [esp + 0x224]
lea eax, [esp + 0x10]
push ebp
push eax
mov ebp, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 8], eax
jne 0x4abae2
pop ebp
xor ax, ax
pop ebx
add esp, 0x21c
ret 8
push esi
push edi
push eax
xor edi, edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4abbac
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4abbac
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov di, word [edx]
push ecx
push 0x4ef314
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4abbac
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
push str._d._d._d._d
lea ecx, [esp + 0x38]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esp + 0x250]
add esp, 0x1c
test eax, eax
mov word [esp + 0x22a], 0
je 0x4abbac
add ebp, 0x20
lea edx, [esp + 0x24]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4abbac
xor edi, edi
push esi
call fcn.004d4cc1
add esp, 4
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 8
Function at 0x4abf50
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x3ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x18]
push 0xa
and esi, 0xffff
push eax
xor ebx, ebx
push 0x1004
push esi
mov dword [esp + 0x20], ebx
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
lea edx, [esp + 0x2c]
push 0xc8
push edx
push 4
push esi
call edi
cmp eax, ebx
jne 0x4abfca
lea eax, [esp + 0x2c]
push 0xc8
push eax
push 2
push esi
call edi
test eax, eax
jne 0x4abfca
push esi
lea ecx, [esp + 0x30]
push str._u______
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
mov ebp, dword [esp + 0x3c0]
mov edx, dword [0x4ed0fc]
lea eax, [esp + 0x2c]
test eax, eax
mov dword [ebp], edx
je 0x4ac168
lea ecx, [esp + 0x2c]
shr ecx, 0x10
jne 0x4ac133
mov ecx, dword [0x73ff2c]
xor edi, edi
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1bc]
mov di, dx
push 0x100
push eax
push edi
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
jne 0x4ac027
mov word [esp + 0x1bc], bx
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x4ac069
lea eax, [esp + 0x1bc]
test eax, eax
je 0x4ac04c
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x1bc]
mov ecx, ebp
push edx
push eax
call fcn.00406780
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x3ac
ret
mov ebx, 0xff
jmp 0x4ac077
mov ebp, dword [esp + 0x3c0]
mov eax, dword [ebp]
add ebx, 0x100
mov ecx, ebx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4ac092
cmp ebx, dword [eax - 4]
jle 0x4ac0e3
mov esi, dword [eax - 8]
cmp ebx, esi
mov dword [esp + 0x14], esi
jge 0x4ac09f
mov ecx, esi
mov edi, dword [esp + 0x3c0]
push ecx
mov ecx, edi
call fcn.00406580
test eax, eax
je 0x4ac11d
mov edi, dword [edi]
lea ecx, [esi + esi + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c4]
mov edx, dword [ecx]
mov dword [edx - 8], eax
call fcn.00406650
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c0]
mov ebp, dword [ecx]
test ebp, ebp
je 0x4ac116
mov edx, dword [0x73ff2c]
lea esi, [ebx + 1]
push esi
push ebp
push edi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4ac10b
mov word [ebp], ax
sub esi, eax
cmp esi, 1
jle 0x4ac070
mov edi, dword [esp + 0x3c0]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040f9d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ac
ret
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x4ac168
push esi
mov ecx, ebp
call fcn.00406580
test eax, eax
je 0x4ac168
mov edi, dword [ebp]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x3ac
ret
Function at 0x4ad1b0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov esi, 0xfa000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4ad1e4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp edi, 0xfa000
jae 0x4ad1f6
mov esi, edi
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad218
cmp esi, edi
je 0x4ad226
sub edi, 0xfa000
add ebx, esi
jmp 0x4ad1ec
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4ad310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4db6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push eax
push 0
push ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4ad35f
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp]
test eax, eax
je 0x4ad497
push ebx
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x4ad48c
mov eax, dword [esp + 4]
push ebp
push esi
lea ebp, [ebx + 4]
push edi
push ebp
push eax
mov dword [ebx], 0x4df34c
mov dword [ebp], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004ad240
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4ed0fc]
add esp, 8
mov dword [esp + 0x40], ecx
test esi, esi
je 0x4ad40b
mov edx, esi
shr edx, 0x10
jne 0x4ad3db
and esi, 0xffff
lea ecx, [esp + 0x40]
push esi
call fcn.00406b70
jmp 0x4ad40b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4ad40b
push edi
lea ecx, [esp + 0x44]
call fcn.00406580
test eax, eax
je 0x4ad40b
lea ecx, [edi + edi]
mov edi, dword [esp + 0x40]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
xor edi, edi
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x4ad44a
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edi
push edx
push esi
push eax
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, edi
je 0x4ad43b
mov dword [ebx + 8], eax
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x4ad44a
mov dword [esp + 0x14], edi
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x40]
mov edx, dword [0x4ed100]
pop edi
pop esi
lea ecx, [eax - 0xc]
mov dword [esp + 0x28], 0xffffffff
cmp ecx, edx
pop ebp
je 0x4ad48c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ad48c
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x18]
sete al
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4ada90
Capabilities:
Move file
Read file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
xor ebp, ebp
push edi
push ebp
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.004a8e00
add esp, 8
test eax, eax
jne 0x4adb12
mov ecx, 0x81
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s.tmp
lea eax, [esp + 0x20]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.004a8e00
add esp, 0x18
test eax, eax
je 0x4adb12
lea edx, [esp + 0x18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [esp + 0x22c]
cmp ebx, 2
jne 0x4adb19
mov ebx, 1
jmp 0x4adb19
mov ebx, dword [esp + 0x22c]
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x4adb41
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret
mov ecx, 0x85
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov dword [eax + 0x208], ebx
call edi
add esp, 4
cmp eax, 0x103
jbe 0x4adb6e
mov eax, 0x103
jmp 0x4adb74
push esi
call edi
add esp, 4
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [edx + 0x208], 2
jne 0x4adbb4
push 0x4edccc
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x22c]
add esp, 8
mov dword [eax], ecx
jmp 0x4adc72
push 0x4ede94
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x4adbd3
mov dword [esp + 0x14], 1
jmp 0x4adc49
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jle 0x4adc63
lea edi, [ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4adc47
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push ebp
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.004ad770
mov edi, eax
push esi
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x1c
test edi, edi
je 0x4adc63
xor ebp, ebp
cmp dword [esp + 0x10], ebp
je 0x4adc72
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.004adc90
add esp, 8
mov dword [esp + 0x10], ebp
jmp 0x4adc72
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [edx], eax
cmp ebx, ebp
je 0x4adc80
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret