joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4145e0
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xa10
mov eax, dword [0x44b754]
xor eax, esp
push esi
mov esi, dword [esp + 0xa18]
test esi, esi
mov dword [esp + 0xa10], eax
je 0x414719
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, byte [esp + 0xa1c]
test al, al
je 0x414649
mov eax, dword [str.Mabinogi.exe]
mov ecx, dword [0x43d428]
mov edx, dword [0x43d42c]
mov dword [esp + 8], eax
mov al, byte [0x43d430]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov byte [esp + 0x14], al
jmp 0x414660
lea ecx, [esp + 8]
push ecx
push str.Mabinogi.exe
push 0x44d784
call fcn.00416710
add esp, 0xc
push 0x400
lea edx, [esp + 0x614]
push edx
push 0x22
mov ecx, 0x44c660
call fcn.004014d0
lea eax, [esp + 0x610]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x218]
push str._.ShellClassInfo__r_nConfirmFileOp0_r_nNoSharing1_r_nIconFile_s_r_nIconIndex0_r_nInfoTip_s_n
push edx
call fcn.0042ba1b
lea eax, [esp + 0x11c]
push eax
push str.desktop.ini
push esi
call fcn.00416710
add esp, 0x1c
push 0
push 6
push 2
push 0
push 1
push 0x40000000
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414719
lea eax, [esp + 0x210]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4146e0
sub eax, edx
push 0
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10c]
push ecx
mov ecx, 0x44c660
call fcn.004016b0
mov ecx, dword [esp + 0xa10]
pop esi
xor ecx, esp
call fcn.0042baa4
add esp, 0xa10
ret
Function at 0x416440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edi
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x20]
jne 0x4164bb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
mov byte [eax], 0
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4164b0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push str.ERROR_:_CRegistry::ReadString__s__s__failed.
push 0x44c660
call fcn.00401330
add esp, 0x10
pop edi
xor al, al
pop esi
add esp, 0xc
ret

Function at 0x4164e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, dword [esp + 0x20]
jne 0x41655f
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416554
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
mov dword [edi], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
push str.ERROR_:_CRegistry::GetStringLength__s__s__failed.
push 0x44c660
call fcn.00401330
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret
Function at 0x416580
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4165d5
lea ecx, [esp + 8]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4165d5
push edi
push str.ERROR_:_CRegistry::RegCreateKey__s__failed.
push 0x44c660
call fcn.00401330
add esp, 0xc
pop edi
xor al, al
pop esi
pop ecx
ret
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4165e0
sub eax, edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x416628
push esi
push edi
push str.ERROR_:_CRegistry::RegSetValueEx__s___s__failed.
push 0x44c660
call fcn.00401330
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x416b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x416b7b
xor al, al
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x416b90
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416bab
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x416bb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x44b754]
xor eax, esp
push esi
mov esi, dword [esp + 0x110]
test esi, esi
mov dword [esp + 0x108], eax
jne 0x416be8
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
cmp byte [esi], 0
jne 0x416c05
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x416c32
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
lea eax, [esp + 8]
push eax
push esi
call fcn.004167d0
add esp, 8
lea ecx, [esp + 8]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x416c74
lea edx, [esp + 8]
push edx
call fcn.00416bb0
add esp, 4
test al, al
jne 0x416c74
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10c]
test eax, eax
pop edi
setne al
pop esi
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
Function at 0x416ca0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54c
mov eax, dword [0x44b754]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [esp + 0x554], eax
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x10]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x354]
push 0x43f56c
push eax
call fcn.0042ba1b
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416d14
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, ebp
call fcn.0042baa4
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov byte [esp + 0xf], 1
nop
cmp byte [esp + 0x3c], 0x2e
je 0x416d6d
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00416710
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x416d5b
lea edx, [esp + 0x150]
push edx
call fcn.00416ca0
add esp, 4
test al, al
je 0x416d95
jmp 0x416d6d
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x416d7b
lea ecx, [esp + 0x10]
push ecx
push edi
call ebx
test eax, eax
jne 0x416d20
jmp 0x416d9a
lea edx, [esp + 0x150]
push edx
push str.CFile::RemoveDirectory___:_DeleteFile__s__failed.
push 0x44c660
call fcn.00401330
add esp, 0xc
mov byte [esp + 0xf], 0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x554]
mov al, byte [esp + 0xf]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042baa4
mov esp, ebp
pop ebp
ret
Function at 0x416dd0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x44b754]
xor eax, esp
push esi
mov esi, dword [esp + 0x110]
test esi, esi
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0x10c], eax
je 0x416ecd
test edi, edi
je 0x416ecd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416e1b
push esi
push str.SafeMoveFile_:_src___s__not_found.
jmp 0x416ec0
test al, 0x10
je 0x416e2a
push esi
push str.SafeMoveFile_:_src___s_is_a_directory.
jmp 0x416ec0
test al, 1
je 0x416e45
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416e45
push esi
push str.SafeMoveFile_:_fail_to_remove_readonly_attr_of_src___s_.
jmp 0x416ec0
lea eax, [esp + 8]
push eax
push edi
call fcn.004167d0
lea ecx, [esp + 0x10]
push ecx
call fcn.00416bb0
add esp, 0xc
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x416e81
push edi
push esi
push str.SafeMoveFile_:_fail_to_copy___s__to___s_.
push 0x44c660
call fcn.00401330
add esp, 0x10
jmp 0x416ecd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x416e94
push esi
push str.SafeMoveFile_:_fail_to_delete___s_.
jmp 0x416ec0
push edi
call fcn.00416b70
add esp, 4
test al, al
je 0x416eba
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
push edi
push str.SafeMoveFile_:___s__doesnt_exist_
push 0x44c660
call fcn.00401330
add esp, 0xc
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.0042baa4
add esp, 0x108
ret
Function at 0x416ef0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push esi
push edi
je 0x417001
mov edi, dword [esp + 0x18]
test edi, edi
je 0x417001
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x417001
push ebp
push 0
push 0
push 0
push 1
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x416f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CHttp::ReadFromHTTP___:_InternetOpen___failed_:_code_d
push 0x44c660
call fcn.00401330
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push connect
push 0
push 0
push ebx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x416f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CHttp::ReadFromHTTP___:_InternetOpenUrl___failed_:_code_d
push 0x44c660
call fcn.00401330
add esp, 0xc
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
xor ebp, ebp
lea ebx, [ebx]
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x416fce
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416fe9
sub esi, eax
add ebp, eax
add edi, eax
test esi, esi
jne 0x416fa0
jmp 0x416fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CHttp::ReadFromHTTP___:_InternetReadFile___failed_:_code_d
push 0x44c660
call fcn.00401330
add esp, 0xc
xor ebp, ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x417010
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x220
mov eax, dword [0x44b754]
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x234]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x244]
push esi
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x234]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0x44078c
push 1
push 0
push 0x44079c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x41713a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x248]
cmp ecx, 0xffffffff
je 0x4170b5
test ebp, ebp
je 0x4170a9
mov edi, ebp
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edi
push eax
call dword [edx + 0x44]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4170c8
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4407cc
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x417130
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
je 0x417126
xor eax, eax
jmp 0x41713c
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0x220
ret
Function at 0x417160
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1058
call fcn.0042bb10
mov eax, dword [0x44b754]
mov edx, dword [esp + 0x1060]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x1060]
push ebp
mov ebp, dword [esp + 0x106c]
push edi
mov dword [esp + 0x1060], eax
xor eax, eax
test edx, edx
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0x44
je 0x4171bd
push esi
lea esi, [esp + 0x64]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4171b2
pop esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
push 0
push 0
push 0
neg edx
push 0
sbb edx, edx
lea eax, [esp + 0x7c]
push 0
and edx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x41721b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CProcess::CreateProcess___:_CreateProcess___failed_:_code_d
push 0x44c660
call fcn.00401330
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x1054]
xor ecx, esp
call fcn.0042baa4
add esp, 0x1058
ret
mov ecx, dword [esp + 0x1054]
xor ecx, esp
mov al, 1
call fcn.0042baa4
add esp, 0x1058
ret

Function at 0x4182d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x4182f7
push str.CFileList::ReadFromFile___:_invalid_param.
push 0x44c660
call fcn.00401330
add esp, 8
xor al, al
pop ebp
pop ecx
ret 4
push ebx
push 0
push 0
push 3
push 0
push 0
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418330
push ebp
push str.CFileList::ReadFromFile___:_fail_to_open_file___s_
push 0x44c660
call fcn.00401330
add esp, 0xc
pop ebx
xor al, al
pop ebp
pop ecx
ret 4
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.0042a127
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418389
push ebp
push str.CFileList::ReadFromFile___:_fail_to_read_file___s_
push 0x44c660
call fcn.00401330
push esi
call fcn.0042bb4d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
xor al, al
pop ebp
pop ecx
ret 4
push ebx
mov byte [esi + edi + 1], 0
mov byte [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push esi
call fcn.00417f90
push esi
mov bl, al
call fcn.0042bb4d
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
pop ecx
ret 4
Function at 0x419300
Capabilities:
Access peb ldr_data
Get file size
Hash data with md5
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43bdb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x44b754]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov dword [esp + 0x7c], eax
push esi
mov esi, dword [esp + 0x98]
xor eax, eax
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
push edi
xor edi, edi
mov dword [ecx + 8], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [ecx + 0xc], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
push edi
push 0x10000
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], edi
call fcn.00419290
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [esp + 0x1c]
mov ebx, eax
cmp ebx, edi
jbe 0x4193f2
lea ebx, [ebx]
lea edx, [edi + 0x10000]
cmp edx, ebx
mov esi, 0x10000
jbe 0x4193c3
mov esi, ebx
sub esi, edi
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea edx, [esp + 0x30]
push ebp
push edx
call fcn.00418d60
add edi, esi
add esp, 0xc
cmp edi, ebx
jb 0x4193b0
mov esi, dword [esp + 0x10]
xor edi, edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00418e20
add esp, 8
cmp ebp, edi
je 0x41940d
push ebp
call fcn.0042bb52
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0x84
ret
Function at 0x4199e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x419a3d
push esi
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x4199c0
push 0
push 0
call fcn.0042ccb3
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x419a1c
push str.Safe_InternetCloseHandle___:__beginthreadex___failed.
push 0x44c660
call fcn.00401330
add esp, 8
pop esi
ret
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419a3c
cmp eax, 0x102
jne 0x419a3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret
Function at 0x41acc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43be91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov eax, dword [0x44b754]
mov ecx, dword [ebp + 0x10]
xor eax, ebp
push ebx
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edx
mov byte [esp + 0x48], dl
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x480], edx
lea edx, [esp + 0x28]
push edx
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [esp + 0x23]
push eax
push esi
call edi
movzx eax, byte [esp + 0x17]
cmp eax, 5
mov ebx, 1
ja case.default.0x41ad53
jmp dword [eax*4 + 0x41aee0]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf
lea edx, [esp + 0x6c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x10]
inc ebx
jmp case.default.0x41ad53
push 0
lea eax, [esp + 0x14]
push eax
push 0x1f
lea ecx, [esp + 0x6c]
push ecx
push esi
call edi
mov ebx, dword [esp + 0x10]
inc ebx
jmp case.default.0x41ad53
push 0
lea edx, [esp + 0x14]
push edx
push 0x2f
lea eax, [esp + 0x6c]
push eax
push esi
call edi
mov ebx, dword [esp + 0x10]
inc ebx
jmp case.default.0x41ad53
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x3f
lea edx, [esp + 0x6c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x10]
inc ebx
jmp case.default.0x41ad53
push 0
lea eax, [esp + 0x14]
push eax
push 0x5f
lea ecx, [esp + 0x6c]
push ecx
push esi
call edi
mov ebx, dword [esp + 0x10]
inc ebx
jmp case.default.0x41ad53
push 0
lea edx, [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call edi
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x6c]
push eax
push esi
call edi
mov ebx, dword [esp + 0x10]
add ebx, 5
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ae08
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00403210
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0041ac40
add esp, 8
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x488], 1
call fcn.00403120
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x47c], 0
jb 0x41ae6a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042bb52
add esp, 4
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0041abc0
add esp, 8
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x488], 2
call fcn.00403120
cmp dword [esp + 0x40], esi
jb 0x41aea5
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x5c], esi
jb 0x41aeb8
mov edx, dword [esp + 0x48]
push edx
call fcn.0042bb52
add esp, 4
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042baa4
mov esp, ebp
pop ebp
ret