joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014e92
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x1027ad84]
or eax, 8
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10014ee7
mov eax, dword [ebp + 0x18]
push edi
push edi
push edi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x10014f08
cmp esi, 0x103
je 0x10014f08
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.AIL:RegEnumKey__x___s___d__d
push 1
call fcn.101d1209
add esp, 0x18
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10014f0e
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x788], eax
mov eax, dword [ebp + 0x798]
push ebx
mov ebx, dword [ebp + 0x794]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x79c]
push edi
mov dword [ebp - 0x80], eax
mov edi, 0x200
push edi
lea eax, [ebp + 0x388]
push eax
push 0
push dword [ebp - 0x7c]
push ebx
call fcn.10014e92
mov esi, eax
add esp, 0x14
cmp esi, 0x103
je 0x10014f99
test esi, esi
jne 0x10014fc0
push edi
lea eax, [ebp + 0x388]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.10016b70
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.10014f0e
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x10014f49
jmp 0x10014f9b
xor esi, esi
test esi, esi
jne 0x10014fc0
cmp dword [ebp - 0x80], esi
je 0x10014fb4
push esi
push dword [0x1027ad84]
push dword [ebp - 0x7c]
push ebx
call dword [ebp - 0x80]
jmp 0x10014fbe
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, 2
je 0x10015006
cmp esi, 3
je 0x10015006
test esi, esi
jne 0x10014fe3
push dword [ebp - 0x7c]
push ebx
push str.AIL:RegDeleteKey__x___s_ok
push 4
call fcn.101d1209
add esp, 0x10
jmp 0x1001501a
push esi
push dword [ebp - 0x7c]
push ebx
push str.AIL:RegDeleteKey__x___s__d
push 1
call fcn.101d1209
push 0
push esi
push 0x32810150
call fcn.10019470
add esp, 0x20
jmp 0x1001501a
push esi
push dword [ebp - 0x7c]
push ebx
push str.AIL:RegDeleteKey__x___s__d
push 3
call fcn.101d1209
add esp, 0x14
mov ecx, dword [ebp + 0x788]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x78c
leave
ret
Function at 0x1001510f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
call sym.AhnIEx.dll_AhnIEx_IsWinNT
test eax, eax
jne 0x1001512e
inc eax
jmp 0x100151b5
push ebx
push esi
xor ebx, ebx
push 2
mov dword [ebp - 0x10], ebx
call fcn.10015067
mov esi, eax
pop ecx
cmp esi, ebx
je 0x100151b0
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100151a9
cmp dword [esi], ebx
jbe 0x100151a0
push edi
lea edi, [esi + 4]
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10015198
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001517f
jmp 0x1001519f
mov dword [ebp - 0x10], 1
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.1001eb39
pop ecx
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d14d7
leave
ret

Function at 0x100151c1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor ebx, ebx
xor esi, esi
call fcn.10015067
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10015239
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10015232
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.1001eb39
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
leave
ret
Function at 0x10015886
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.1001524a
add esp, 0xc
test eax, eax
jl 0x100159aa
push esi
mov esi, 0x104
push esi
push 0x101f1f0c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10016b70
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x1001590d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.AIL:AddAccessRightsToDir_ff__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
jmp 0x100159a9
push esi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10016b70
add esp, 0x10
test byte [ebp - 0x45c], 0x10
je 0x1001596b
cmp word [ebp - 0x430], 0x2e
jne 0x10015956
cmp word [ebp - 0x42e], 0
je 0x10015982
cmp word [ebp - 0x42e], 0x2e
jne 0x10015956
cmp word [ebp - 0x42c], 0
je 0x10015982
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10015886
add esp, 0xc
jmp 0x10015982
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1001524a
add esp, 0xc
test eax, eax
jl 0x1001599d
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001590d
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101d14d7
leave
ret
Function at 0x10016bde
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10016c6d
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10016c0b
cmp word [eax], 0
je 0x10016c0b
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10016ac1
add esp, 0xc
jmp 0x10016c17
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 8]
call fcn.100166b9
cmp word [esi], 0x2e
pop ecx
jne 0x10016c5e
cmp word [esi + 2], 0x5c
jne 0x10016c58
add esi, 4
jmp 0x10016c58
cmp word [esi + 2], 0x2e
jne 0x10016c5e
cmp word [esi + 4], 0x5c
jne 0x10016c5e
push 0x5c
push dword [ebp + 8]
call fcn.101d1bcf
pop ecx
pop ecx
test eax, eax
je 0x10016c5e
xor ecx, ecx
mov word [eax], cx
add esi, 6
cmp word [esi], 0x2e
je 0x10016c32
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10016b06
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x1001762e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1027ad90]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x100176dc
cmp dword [ebp + 8], edi
je 0x10017678
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1001766a
push str.AIL:System64_is_terminated
push 3
call fcn.101d1209
pop ecx
pop ecx
jmp 0x100176ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:System64:Terminate_err_d
jmp 0x100176c4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x1027ad90]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100176b8
cmp dword [ebp - 4], 0x103
jne 0x100176ac
push str.AIL:System64:System64_is_closed
push 3
call fcn.101d0efc
jmp 0x10017666
push dword [ebp - 4]
push str.AIL:System64:ExitCode_d
push 3
jmp 0x100176c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:System64:GetExitCode_err_d
push 2
call fcn.101d1209
add esp, 0xc
push dword [0x1027ad90]
call esi
mov dword [0x1027ad90], edi
mov eax, dword [0x1027ad88]
cmp eax, edi
je 0x100176e8
push eax
call esi
mov eax, dword [0x1027ad8c]
cmp eax, edi
je 0x100176f4
push eax
call esi
mov dword [0x1027ad88], edi
mov dword [0x1027ad8c], edi
pop edi
pop esi
leave
ret

Function at 0x10017704
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push closesocket
push dword [ebp + 0xc]
call fcn.1001661b
pop ecx
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001773d
cmp esi, dword [ebp - 4]
jne 0x1001773d
xor eax, eax
inc eax
jmp 0x1001775d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.AIL:System64:Write_err_d
push 1
call fcn.101d1209
push esi
call sym.AhnIEx.dll_AhnIEx_SetError
add esp, 0x10
xor eax, eax
pop esi
leave
ret
Function at 0x100180c3
Capabilities:
Get common file path

Disassembly:
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10018106
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018106
push dword [esp + 8]
push dword [esp + 8]
call eax
test eax, eax
jne 0x10018114
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:GetSystemWindowsDirectory_err_d
push 2
call fcn.101d1209
add esp, 0xc
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
ret

Function at 0x10018490
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100184ea
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100184ea
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x100184d9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.AIL:GetDiskFreeSpaceEx__s__err_d
jmp 0x10018526
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x10018517
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0x14
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.AIL:GetDiskFreeSpace__s__err_d
push 2
call fcn.101d1209
add esp, 0x10
xor eax, eax
leave
ret

Function at 0x10018740
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call sym.AhnIEx.dll_AhnIEx_IsWinNT
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
test eax, eax
je 0x100187c2
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100187b0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop ebx
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
test eax, eax
je 0x100187c2
call esi
push eax
push str.AIL:ExitWindows:Get_shutdown_privilege_err_d
push ebx
jmp 0x100187ba
call esi
push eax
push str.AIL:ExitWindows:Get_token_err_d
push 2
call fcn.101d1209
add esp, 0xc
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ebx, eax
cmp ebx, edi
je 0x100187e6
push dword [ebp + 8]
push str.AIL:ExitWindows__u_
push 3
call fcn.101d1209
add esp, 0xc
jmp 0x100187fb
call esi
push eax
push dword [ebp + 8]
push str.AIL:ExitWindows__u__err_d
push 1
call fcn.101d1209
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10018880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x104
push esi
mov esi, dword [ebp + 8]
jb 0x100188c0
push esi
push 0x23
call fcn.10016274
pop ecx
pop ecx
test eax, eax
jl 0x100188c0
push closesocket
push esi
call fcn.1001661b
pop ecx
pop ecx
jmp 0x10018941
push 0
push 0x200000
call sym.AhnIEx.dll_AhnIEx_IsWinNTOrLater
pop ecx
pop ecx
test eax, eax
je 0x100188d9
push str._ProgramData_
jmp 0x100188f7
push 0
push 0x40000
call sym.AhnIEx.dll_AhnIEx_IsWinNTOrLater
pop ecx
pop ecx
test eax, eax
je 0x100188f2
push str._ALLUSERSPROFILE_Application_Data
jmp 0x100188f7
push str._SystemRoot_ProfilesAll_UsersApplication_Data
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.10016ac1
add esp, 0xc
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x1001893e
cmp edi, dword [ebp + 0xc]
ja 0x1001893e
push esi
call fcn.10007633
pop ecx
test eax, eax
jne 0x10018939
push eax
push esi
call fcn.10009799
pop ecx
pop ecx
lea eax, [edi - 1]
jmp 0x10018940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101d14d7
leave
ret

Function at 0x1001894e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x104
push esi
mov esi, dword [ebp + 8]
jb 0x1001898b
push esi
push 0x1a
call fcn.10016274
pop ecx
pop ecx
test eax, eax
jl 0x1001898b
push closesocket
push esi
call fcn.1001661b
pop ecx
pop ecx
jmp 0x10018a00
push 0
push 0x40000
call sym.AhnIEx.dll_AhnIEx_IsWinNTOrLater
pop ecx
pop ecx
test eax, eax
je 0x100189a1
xor eax, eax
jmp 0x10018a00
call sym.AhnIEx.dll_AhnIEx_IsWinNT
test eax, eax
lea eax, [ebp - 0x84]
je 0x100189b7
push str._USERPROFILE_Application_Data
jmp 0x100189bc
push str._windir_Application_Data
push 0x40
push eax
call fcn.10016ac1
add esp, 0xc
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x100189fd
cmp edi, dword [ebp + 0xc]
ja 0x100189fd
push esi
call fcn.10007633
pop ecx
test eax, eax
jne 0x100189f8
push eax
push esi
call fcn.10009799
pop ecx
pop ecx
lea eax, [edi - 1]
jmp 0x100189ff
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101d14d7
leave
ret
Function at 0x10018a0d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x104
push esi
mov esi, dword [ebp + 8]
jb 0x10018a4d
push esi
push 0x1c
call fcn.10016274
pop ecx
pop ecx
test eax, eax
jl 0x10018a4d
push closesocket
push esi
call fcn.1001661b
pop ecx
pop ecx
jmp 0x10018ad8
push 0
push 0x40000
call sym.AhnIEx.dll_AhnIEx_IsWinNTOrLater
pop ecx
pop ecx
test eax, eax
je 0x10018a63
xor eax, eax
jmp 0x10018ad8
call sym.AhnIEx.dll_AhnIEx_IsWinNT
test eax, eax
je 0x10018a73
push str._USERPROFILE_Local_SettingsApplication_Data
jmp 0x10018a8e
push 0x400
call sym.AhnIEx.dll_AhnIEx_IsWin
pop ecx
test eax, eax
je 0x10018a89
push str._windir_Application_Data
jmp 0x10018a8e
push str._windir_Local_SettingsApplication_Data
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.10016ac1
add esp, 0xc
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x10018ad5
cmp edi, dword [ebp + 0xc]
ja 0x10018ad5
push esi
call fcn.10007633
pop ecx
test eax, eax
jne 0x10018ad0
push eax
push esi
call fcn.10009799
pop ecx
pop ecx
lea eax, [edi - 1]
jmp 0x10018ad7
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101d14d7
leave
ret

Function at 0x10018b29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [section..data]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10018b9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10018b9c
xor edx, edx
movzx ecx, word [eax]
inc eax
inc eax
test cx, cx
je 0x10018b8f
mov esi, dword [ebp + 0xc]
and esi, 0xf
movzx ecx, cx
cmp edx, esi
je 0x10018bad
lea eax, [eax + ecx*2]
inc edx
cmp edx, 0x10
jb 0x10018b75
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
leave
ret
lea edx, [ecx + 1]
cmp edx, 0x400
jbe 0x10018bbd
mov ecx, 0x3ff
lea esi, [ecx + ecx]
push esi
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.101d1c90
xor eax, eax
mov word [ebp + esi - 0x804], ax
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x14]
push edi
call fcn.10016ac1
add esp, 0x18
test eax, eax
jne 0x10018c01
push closesocket
push edi
call fcn.1001661b
pop ecx
mov esi, eax
pop ecx
inc esi
jmp 0x10018c03
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x10018b9e
Function at 0x100194e2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push esi
push edi
push str.InstDir
mov dword [ebp - 0x6c], eax
call fcn.1000a6f3
push eax
mov esi, 0x104
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.10016ac1
push esi
lea eax, [ebp - 0x68]
push str.atstrust32.dll
push eax
call fcn.10016b06
lea eax, [ebp - 0x68]
push eax
push str.AIL:VerifyAtsDll_s
push 3
call fcn.101d1209
add esp, 0x28
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x10019573
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.AIL:VerifyAtsDll:LoadLibrary_Failed_Err_d
push 1
call fcn.101d1209
add esp, 0xc
mov eax, esi
jmp 0x10019653
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0x200f
push edi
call esi
push 0x2012
push edi
mov ebx, eax
call esi
push 0x2010
push edi
mov dword [ebp - 0x7c], eax
call esi
push 0x2014
push edi
mov dword [ebp - 0x70], eax
call esi
push 0x2015
push edi
mov dword [ebp - 0x78], eax
call esi
xor edi, edi
mov dword [ebp - 0x80], eax
cmp ebx, edi
je 0x1001964f
cmp dword [ebp - 0x7c], edi
je 0x1001964f
cmp dword [ebp - 0x70], edi
je 0x1001964f
cmp dword [ebp - 0x78], edi
je 0x1001964f
cmp eax, edi
je 0x1001964f
call ebx
cmp eax, edi
jne 0x10019652
test byte [ebp + 0x1b0], 8
je 0x1001961a
push str.AIL:VerifyAtsDll:AtsVerifyExternalFile
push 3
call fcn.101d1209
mov dword [ebp - 0x74], edi
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
push 2
push 1
push dword [ebp - 0x6c]
call dword [ebp - 0x7c]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10019635
lea eax, [ebp - 0x74]
push eax
call dword [ebp - 0x78]
pop ecx
jmp 0x10019648
push str.AIL:VerifyAtsDll:fnAtsVerifyInternalFile
push 3
call fcn.101d1209
push dword [ebp - 0x6c]
call dword [ebp - 0x70]
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x10019648
push esi
push dword [ebp - 0x6c]
push str.AIL:VerifyAtsDll:AtsVerifyFile__s__08lX
push 1
call fcn.101d1209
add esp, 0x10
call dword [ebp - 0x80]
mov eax, esi
jmp 0x10019652
push 0x7f
pop eax
pop ebx
mov ecx, dword [ebp + 0x1a0]
pop edi
xor ecx, ebp
pop esi
call fcn.101d14d7
add ebp, 0x1a4
leave
ret
Function at 0x10019758
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
push esi
push edi
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push 4
xor edi, edi
push eax
mov dword [ebp - 0x80], edi
call fcn.10013f51
add esp, 0x10
mov esi, 0x104
test eax, eax
je 0x100197ad
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10013ccd
add esp, 0xc
test eax, eax
jne 0x100198b9
push dword [ebp - 0x80]
push str.AIL:vp:dwPPID_u
push 3
call fcn.101d1209
push edi
push edi
push 0x101f9308
call fcn.1000a38d
add esp, 0x18
test eax, eax
je 0x1001992d
xor eax, eax
push 0x206
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.101d19d0
add esp, 0xc
push esi
lea eax, [ebp + 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x18c]
push 0x5c
push eax
call fcn.101d1bcf
pop ecx
pop ecx
cmp eax, edi
je 0x1001982e
xor ecx, ecx
push esi
mov word [eax], cx
lea eax, [ebp + 0x18c]
push str.AhnUn.dat
push eax
call fcn.10016b06
add esp, 0xc
push dword [ebp - 0x80]
lea eax, [ebp + 0x394]
push 0x101f072c
push 0x20
push eax
call fcn.1001d140
lea eax, [ebp + 0x18c]
push eax
push edi
lea eax, [ebp + 0x394]
push eax
push str.ppid
call fcn.100051d1
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x18c]
push eax
push str.AIL:vp:_s_ppid__u
push 3
call fcn.101d1209
add esp, 0x30
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100198a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x18c]
push eax
push str.AIL:vp:Delete__s__Err_d
push 2
call fcn.101d1209
add esp, 0x10
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10013ccd
add esp, 0xc
test eax, eax
je 0x1001992d
lea eax, [ebp - 0x7c]
push eax
push str.AIL:vp:_s
push 3
call fcn.101d1209
push dword [ebp + 0x3e0]
lea eax, [ebp - 0x7c]
push eax
call fcn.1001966a
add esp, 0x14
cmp eax, edi
jne 0x1001992f
push 1
push dword [ebp - 0x80]
lea eax, [ebp - 0x80]
push 4
push eax
call fcn.10013f51
add esp, 0x10
test eax, eax
je 0x1001992d
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10013ccd
add esp, 0xc
test eax, eax
je 0x1001992d
push dword [ebp - 0x80]
push str.AIL:vp:p_u
push 3
call fcn.101d1209
push dword [ebp + 0x3e0]
lea eax, [ebp - 0x7c]
push eax
call fcn.1001966a
add esp, 0x14
jmp 0x1001992f
xor eax, eax
mov ecx, dword [ebp + 0x3d4]
pop edi
xor ecx, ebp
pop esi
call fcn.101d14d7
add ebp, 0x3d8
leave
ret