joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push str.emalware.001
lea eax, [ebp - 0xc]
push eax
call fcn.00410030
add esp, 4
or dword [ebp - 0x24], 1
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 2
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff95
push str.emalware.002
lea edx, [ebp - 0x14]
push edx
call fcn.00410030
add esp, 4
or dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 8
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff95
push 0x4f7684
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00410030
add esp, 4
or dword [ebp - 0x24], 0x10
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 0x20
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff95
mov dword [ebp - 0x28], 0
jmp 0x40ff9c
mov dword [ebp - 0x28], 1
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x40ffb6
and dword [ebp - 0x24], 0xffffffdf
lea ecx, [ebp - 0x20]
call fcn.00413a40
mov edx, dword [ebp - 0x24]
and edx, 0x10
je 0x40ffca
and dword [ebp - 0x24], 0xffffffef
lea ecx, [ebp - 0x1c]
call fcn.00413a40
mov eax, dword [ebp - 0x24]
and eax, 8
je 0x40ffde
and dword [ebp - 0x24], 0xfffffff7
lea ecx, [ebp - 0x18]
call fcn.00413a40
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x40fff2
and dword [ebp - 0x24], 0xfffffffb
lea ecx, [ebp - 0x14]
call fcn.00413a40
mov edx, dword [ebp - 0x24]
and edx, 2
je 0x410006
and dword [ebp - 0x24], 0xfffffffd
lea ecx, [ebp - 0x10]
call fcn.00413a40
mov eax, dword [ebp - 0x24]
and eax, 1
je 0x41001a
and dword [ebp - 0x24], 0xfffffffe
lea ecx, [ebp - 0xc]
call fcn.00413a40
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x410029
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push str._savapi_vbase000.vdf
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0040d0e0
add esp, 8
or dword [ebp - 0x24], 1
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 2
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41013b
push str._savapi_aeoffice.dll
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0040d0e0
add esp, 8
or dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 8
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41013b
push str._savapi_aebb.dll
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040d0e0
add esp, 8
or dword [ebp - 0x24], 0x10
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.004123a0
add esp, 0xc
or dword [ebp - 0x24], 0x20
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41013b
mov dword [ebp - 0x28], 0
jmp 0x410142
mov dword [ebp - 0x28], 1
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x41015c
and dword [ebp - 0x24], 0xffffffdf
lea ecx, [ebp - 0x20]
call fcn.00413a40
mov edx, dword [ebp - 0x24]
and edx, 0x10
je 0x410170
and dword [ebp - 0x24], 0xffffffef
lea ecx, [ebp - 0x1c]
call fcn.00413a40
mov eax, dword [ebp - 0x24]
and eax, 8
je 0x410184
and dword [ebp - 0x24], 0xfffffff7
lea ecx, [ebp - 0x18]
call fcn.00413a40
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x410198
and dword [ebp - 0x24], 0xfffffffb
lea ecx, [ebp - 0x14]
call fcn.00413a40
mov edx, dword [ebp - 0x24]
and edx, 2
je 0x4101ac
and dword [ebp - 0x24], 0xfffffffd
lea ecx, [ebp - 0x10]
call fcn.00413a40
mov eax, dword [ebp - 0x24]
and eax, 1
je 0x4101c0
and dword [ebp - 0x24], 0xfffffffe
lea ecx, [ebp - 0xc]
call fcn.00413a40
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x4101cf
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x410290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [section..data], 1
je 0x4102a8
cmp dword [section..data], 0
jne 0x4102af
mov eax, dword [section..data]
jmp 0x410324
push 0x4f778c
push 0
lea eax, [ebp - 8]
push eax
call fcn.0040d0e0
add esp, 8
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004123a0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00413a40
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
push 0x4f7788
push str.test
push str.test
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
neg eax
sbb eax, eax
add eax, 1
mov dword [section..data], eax
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [section..data]
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 4]
call fcn.00413a40
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x410330
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [0x5176c8]
test eax, eax
jne 0x410393
push 1
push 0x23
push 0x5176c8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x410363
push 0x104
push 0x5176c8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 7
push str.360SD_
push 0x5176c8
call fcn.004c66c0
add esp, 0xc
push 0x5176c8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410393
push 0
push 0x5176c8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5176c8
mov ecx, dword [ebp + 8]
call fcn.00413a00
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x416c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.004165e0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00419760
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416f80
lea ecx, [ebp - 0x438]
call fcn.00419ba0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00416a30
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416d0e
call fcn.00416660
mov dword [ebp - 0x444], eax
jmp 0x416e63
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x416d3f
call fcn.00416660
mov dword [ebp - 0x444], eax
jmp 0x416e63
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x416d6f
call fcn.00416660
mov dword [ebp - 0x444], eax
jmp 0x416e63
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x416dbf
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00419bc0
lea ecx, [ebp - 0x2c]
call fcn.00419780
mov eax, dword [ebp - 0x44c]
jmp 0x416e98
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00419bf0
lea ecx, [ebp - 0x438]
call fcn.00419be0
test eax, eax
jne 0x416dec
mov dword [ebp - 0x444], 0x8007000e
jmp 0x416e63
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00419be0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.004165e0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x416e2e
call fcn.00416660
mov dword [ebp - 0x444], eax
jmp 0x416e63
lea ecx, [ebp - 0x438]
call fcn.00419be0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00419be0
push eax
lea ecx, [ebp - 0x18]
call fcn.00416fb0
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x416e73
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00419bc0
lea ecx, [ebp - 0x2c]
call fcn.00419780
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4187c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00418580
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00418760
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41882b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.004185b0
mov eax, dword [ebp - 0x224]
jmp 0x4188bc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x418891
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004187c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x418888
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.004185b0
mov eax, dword [ebp - 0x228]
jmp 0x4188bc
mov dword [ebp - 4], 0x100
jmp 0x418832
lea ecx, [ebp - 0x14]
call fcn.004186a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00418640
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.004185b0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 4
Function at 0x418e20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x418e29
xor ecx, ecx
jne 0x418e29
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x418e4a
mov eax, 0xd
jmp 0x418ea5
xor eax, eax
jne 0x418e31
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x418e5b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x41c990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x4f88a4
lea eax, [ebp - 8]
push eax
call fcn.0040d000
add esp, 8
lea ecx, [ebp - 8]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ca99
lea ecx, [ebp - 0x10]
call fcn.004139c0
push 0x4f888c
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040d000
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xc]
call fcn.00413b20
push eax
call fcn.0041cc80
add esp, 8
test eax, eax
je 0x41ca89
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.004c62e0
add esp, 0xc
push 0x103
lea edx, [ebp - 0x220]
push edx
push str.8.9.0.0
push str.safe_minver
push 0x4f8850
call fcn.0041cff0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.00413b20
push eax
call fcn.0041cac0
add esp, 8
test eax, eax
jge 0x41ca89
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.IsSafeNeedUpdate__s__s__s
call fcn.0041fcc0
add esp, 0x10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc]
call fcn.00413a40
lea ecx, [ebp - 0x10]
call fcn.00413a40
lea ecx, [ebp - 8]
call fcn.00413a40
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x41ccf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004c65d0
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x50848c]
mov word [ebp - 0x4008], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4006]
push ecx
call fcn.004c62e0
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x400c], eax
cmp dword [ebp - 0x400c], 0
je 0x41cd52
cmp dword [ebp - 0x400c], 0x3fff
jbe 0x41cd59
xor eax, eax
jmp 0x41ce00
lea ecx, [ebp - 0x4008]
push ecx
mov edx, dword [ebp - 0x400c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41cdfe
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x4f8900
lea eax, [ebp - 0x4008]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41cdfe
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 8]
and edx, 0xffff
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp + 0x14]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 0x18]
mov word [eax], dx
mov eax, 1
jmp 0x41ce00
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x41ce10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041cfd0
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x220]
call fcn.00413a40
movzx ecx, byte [ebp - 0x219]
test ecx, ecx
je 0x41ce6a
xor eax, eax
jmp 0x41cf79
lea ecx, [ebp - 8]
call fcn.004139c0
push str.deepscandeepscan.dll
lea edx, [ebp - 4]
push edx
call fcn.0040d000
add esp, 8
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cf46
call fcn.0041cf90
test eax, eax
je 0x41cf46
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call fcn.0041cc80
add esp, 8
test eax, eax
je 0x41cf44
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004c62e0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x218]
push eax
push str.3.5.0.1020
push str.scan_minver
push 0x4f8850
call fcn.0041cff0
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 8]
call fcn.00413b20
push eax
call fcn.0041cac0
add esp, 8
test eax, eax
jl 0x41cf44
mov dword [ebp - 0x224], 1
lea ecx, [ebp - 4]
call fcn.00413a40
lea ecx, [ebp - 8]
call fcn.00413a40
mov eax, dword [ebp - 0x224]
jmp 0x41cf79
jmp 0x41cf59
call fcn.0041cf90
push eax
push 0x4f8904
call fcn.0041fcc0
add esp, 8
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 4]
call fcn.00413a40
lea ecx, [ebp - 8]
call fcn.00413a40
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret

Function at 0x41cf90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
call fcn.0040d290
add esp, 4
push str.deepscancloudsec3.dll
lea ecx, [ebp - 4]
call fcn.0041fe40
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
call fcn.00413a40
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41d130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x30], 0
mov eax, dword [0x517920]
and eax, 1
jne 0x41d16d
mov ecx, dword [0x517920]
or ecx, 1
mov dword [0x517920], ecx
mov ecx, 0x51791c
call fcn.004139c0
push 0x4f51d0
call fcn.004c7553
add esp, 4
mov ecx, 0x51791c
call fcn.00413b50
test eax, eax
je 0x41d190
push 0x51791c
mov ecx, dword [ebp + 8]
call fcn.004139e0
mov eax, dword [ebp + 8]
jmp 0x41d345
push 0x4f8a40
lea edx, [ebp - 0xc]
push edx
call fcn.0040d290
add esp, 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.004123a0
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00413a40
call fcn.0041ce10
test eax, eax
je 0x41d2a4
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41d287
push str.CreateFile_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.00410290
test eax, eax
je 0x41d21a
lea ecx, [ebp - 0x14]
push ecx
call fcn.00410330
add esp, 4
or dword [ebp - 0x30], 1
mov dword [ebp - 0x34], eax
jmp 0x41d22f
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.0040d0e0
add esp, 8
or dword [ebp - 0x30], 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
push 0x4f89f4
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004123a0
add esp, 0xc
push eax
mov ecx, 0x51791c
call fcn.004121a0
lea ecx, [ebp - 0x1c]
call fcn.00413a40
mov eax, dword [ebp - 0x30]
and eax, 2
je 0x41d271
and dword [ebp - 0x30], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.00413a40
mov ecx, dword [ebp - 0x30]
and ecx, 1
je 0x41d285
and dword [ebp - 0x30], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00413a40
jmp 0x41d29f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
mov ecx, 0x51791c
call fcn.004121a0
jmp 0x41d32d
call fcn.00410290
test eax, eax
je 0x41d2c2
lea ecx, [ebp - 0x24]
push ecx
call fcn.00410330
add esp, 4
or dword [ebp - 0x30], 4
mov dword [ebp - 0x38], eax
jmp 0x41d2d7
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.0040d0e0
add esp, 8
or dword [ebp - 0x30], 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
push 0x4f89f4
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.004123a0
add esp, 0xc
push eax
mov ecx, 0x51791c
call fcn.004121a0
lea ecx, [ebp - 0x2c]
call fcn.00413a40
mov eax, dword [ebp - 0x30]
and eax, 8
je 0x41d319
and dword [ebp - 0x30], 0xfffffff7
lea ecx, [ebp - 0x28]
call fcn.00413a40
mov ecx, dword [ebp - 0x30]
and ecx, 4
je 0x41d32d
and dword [ebp - 0x30], 0xfffffffb
lea ecx, [ebp - 0x24]
call fcn.00413a40
push 0x51791c
mov ecx, dword [ebp + 8]
call fcn.004139e0
lea ecx, [ebp - 4]
call fcn.00413a40
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x41fcf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 4]
call fcn.004139c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 4]
call fcn.00415250
push 0x5089dc
lea ecx, [ebp - 4]
call fcn.0041fe40
lea edx, [ebp - 4]
push edx
push 0x50848c
lea eax, [ebp - 8]
push eax
call fcn.00413ac0
add esp, 0xc
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 8]
call fcn.00413a40
lea ecx, [ebp - 4]
call fcn.00413a40
mov esp, ebp
pop ebp
ret
Function at 0x422e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], ecx
push 0
push 0x10000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x422eb5
xor eax, eax
jmp 0x423040
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0xe
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, word [ebp - 0x3c]
cmp ecx, 0x4d42
je 0x422ee8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x423040
push 0
lea eax, [ebp - 0x44]
push eax
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [ebp - 0x1e]
cmp eax, 8
je 0x422f21
movzx ecx, word [ebp - 0x1e]
cmp ecx, 0x18
je 0x422f21
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x423040
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
movzx eax, word [ebp - 0x1e]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x10], 1
jne 0x422f6e
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x14]
add edx, 0x28
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 4], 0
je 0x422f8c
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004c6248
add esp, 4
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx + 8]
imul ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
imul ecx, dword [edx + 0x10]
add ecx, 8
push ecx
call fcn.004c4a2a
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], ecx
push 0
push 0
mov edx, dword [ebp - 0x32]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [ebp - 0x1e]
mov eax, ecx
imul eax, dword [ebp - 0x28]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], 0
jmp 0x422ff8
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 0xc]
jge 0x423031
push 0
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
imul edx, dword [ecx + 8]
mov eax, dword [ebp - 0x54]
imul edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x54]
add edx, dword [ecx + 4]
push edx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x422fef
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4