joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x416a03
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.00417fe0
add esp, 4
test eax, eax
jne 0x416a15
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x416ad6
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x416b53
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x416a5e
mov esi, dword [ebx]
jmp 0x416a72
push ebx
call fcn.00417e40
mov esi, eax
add esp, 4
test esi, esi
je 0x416ab6
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x416a9d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416a9d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x416aaa
push esi
call fcn.00418c2a
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416b53
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x416a4e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x416b53
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x416b53
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x416b07
mov esi, dword [ebx]
jmp 0x416b1b
push ebx
call fcn.00417e40
mov esi, eax
add esp, 4
test esi, esi
je 0x416b45
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x416b38
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x416b45
push esi
call fcn.00418c2a
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x416af7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x416bc0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x416bd9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00417fe0
add esp, 4
test eax, eax
jne 0x416bee
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x416c08
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x416c08
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x416cf0
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x416c40
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x416c57
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x416c5b
mov esi, dword [esp + 0x2c]
push esi
call fcn.00418c1c
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416c94
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.004189f8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x416cb0
mov al, byte [ecx]
test al, al
je 0x416cb0
cmp al, 0x1a
je 0x416cb0
inc edi
inc ecx
cmp edi, edx
jb 0x416ca0
lea ecx, [edi + 1]
push ecx
call fcn.004156f0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.004188c0
push ebx
mov byte [edi + esi], 0
call fcn.004189f8
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x416d6b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x416d0a
or eax, 0xffffffff
jmp 0x416d0e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x416d3d
mov cl, byte [edx]
test cl, cl
je 0x416d3d
cmp cl, 0x1a
je 0x416d3d
inc edi
inc edx
cmp edi, eax
jb 0x416d2c
lea edx, [edi + 1]
push edx
call fcn.004156f0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.004188c0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40a4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea24
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x454a10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004050b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.adobe_csi::HttpConnection.0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00405e80
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.00404cb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
call fcn.0040afe0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.0040afe0
mov byte [ebp - 4], 4
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
call fcn.00411290
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
call eax
xor ecx, ecx
cmp eax, 4
setge cl
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x40a665
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40a5df
push 1
push 0x29
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
push 0x43b0d0
push 0x4e7e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
call fcn.0043bc40
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00407390
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
call edx
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.00404cd0
mov ecx, dword [ebp - 0x14]
call fcn.0040add0
push 5
push 0xd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
mov edx, dword [0x45a7bc]
mov eax, dword [edx]
mov ecx, dword [0x45a7bc]
mov edx, dword [eax + 0x14]
call edx
push eax
push 0x2722
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
push 0
push 0x40
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bb60
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00404150
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x40bb9e
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.00410c40
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x40bbc3
cmp dword [ebp - 0x20], 0
je 0x40bd13
mov ecx, dword [ebp - 0x20]
call fcn.0040fd00
movzx edx, al
test edx, edx
jne 0x40bd13
push str.Proxy_Autoconfig_is_enabled
call fcn.00411370
add esp, 4
push 0x14
push str.Adobe_ServiceManager
call fcn.0040c960
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x24]
call eax
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40bc26
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x24]
call eax
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40bd09
cmp dword [ebp - 0x20], 0
je 0x40bc65
mov ecx, dword [ebp - 0x20]
call fcn.0040fd00
movzx ecx, al
test ecx, ecx
jne 0x40bc65
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x14], eax
jmp 0x40bc7a
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x24]
call edx
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x40bcef
cmp dword [ebp - 0x2c], 1
je 0x40bced
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00410c40
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push str.Found_Proxy_Server___
call fcn.00411370
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40bd09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
push str.Autodetection_of_Proxy_Settings_failed:__d
call fcn.00411370
add esp, 8
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40bf10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bf97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 2
je 0x40bf59
cmp dword [ebp - 0x10], 8
je 0x40bf77
cmp dword [ebp - 0x10], 0x2ee4
je 0x40bf68
jmp 0x40bf86
push str.The_error_is_ERROR_FILE_NOT_FOUND
call fcn.00411370
add esp, 4
jmp 0x40bf97
push str.ERROR_WINHTTP_INTERNAL_ERROR
call fcn.00411370
add esp, 4
jmp 0x40bf97
push str.ERROR_NOT_ENOUGH_MEMORY
call fcn.00411370
add esp, 4
jmp 0x40bf97
mov edx, dword [ebp - 8]
push edx
push str.ERROR_UNKNOWN__d
call fcn.00411370
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x40d100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c768
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x454a10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
lea ecx, [ebp - 0x20]
call fcn.00413660
push 0
mov dword [ebp - 4], 0
call fcn.004116a0
add esp, 4
mov ebx, eax
call fcn.00418eb0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov esi, eax
cmp word [esi], 0
je 0x40d1fb
push 0x3d
push esi
call fcn.00423045
mov edi, eax
add esp, 8
test edi, edi
je 0x40d1cb
cmp edi, esi
je 0x40d1cb
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.0040feb0
add esp, 0xc
add edi, 2
lea edx, [ebp - 0x14]
push edi
push edx
mov byte [ebp - 4], 2
call fcn.004105e0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
push ecx
push edx
mov ecx, ebx
mov byte [ebp - 4], 3
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40d1bb
call fcn.0040f2d0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40d1cb
call fcn.0040f2d0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d1d0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x40d155
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [ebp - 0x20]
call fcn.00413360
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e420
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40e42d
jmp fcn.00411410
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x40e8c0
Capabilities:
Connect pipe

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
push edi
mov esi, ecx
mov eax, 0x40000003
je 0x40e8d6
mov eax, 0x40080003
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push 0
push 0xffffffffffffffff
push edx
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x14]
push 0xff
push edx
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
push eax
call fcn.00418b70
add esp, 0x20
lea ecx, [esi + 0x24]
push ecx
push eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
test edi, edi
jne 0x40e93d
cmp eax, 0x217
je 0x40e933
cmp eax, 0x3e5
jne 0x40e93d
pop edi
mov byte [esi + 0x1c], 0
pop esi
pop ebx
ret 4
pop edi
mov byte [esi + 0x1c], 1
pop esi
pop ebx
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
call ebx
push eax
push 0x441c04
call fcn.0041a760
int3

Function at 0x40ed50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ca5e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x454a10]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esi], vtable.vcfoundation::io::WinPipeServer.0
test ecx, ecx
je 0x40ed97
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
jmp 0x40ed99
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push 1
mov byte [esp + 0x24], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
call fcn.00418d20
add esp, 0x10
mov dword [esi + 0x18], eax
xor eax, eax
mov byte [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.0040e8c0
mov ecx, esi
call fcn.0040da60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14

Function at 0x414a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d16e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x454a10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
push 4
push eax
call fcn.0041f680
mov edi, eax
add esp, 8
test edi, edi
je 0x414ab7
mov ecx, edi
call fcn.0040f2b0
jmp 0x414ab9
xor edi, edi
mov dword [esi], edi
lea ecx, [esi + 8]
push 0
push ecx
mov dword [esp + 0x20], 0
mov byte [esi + 4], 0
mov byte [esi + 5], 0
call fcn.00411600
lea edx, [esi + 0xc]
push 0
push edx
mov byte [esp + 0x28], 1
call fcn.0040e0c0
lea eax, [esi + 0x10]
push 0
push eax
mov byte [esp + 0x30], 2
call fcn.0040e0c0
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4165b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d428
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x454a10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00420980
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], 0
call fcn.004160a0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 1
call fcn.00416170
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x2c], 2
call fcn.00416540
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 0x14
mov byte [esp + 0x18], 1
test eax, eax
je 0x416637
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 8]
mov byte [esp + 0x18], 0
test eax, eax
je 0x41664c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
test eax, eax
je 0x416664
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4

Function at 0x418960
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x418987
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x442c64
call fcn.0041a760
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x418e40
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x418e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418e73
push edi
push str.GetEnvironmentVariable__S__failed
push eax
call fcn.0041a8a0
pop edi
mov eax, esi
pop esi
ret

Function at 0x419190
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push eax
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4191b6
push esi
push str.SHCreateDirectory__S__failed
push eax
call fcn.0041a8a0
pop esi
ret

Function at 0x419350
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push ecx
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x419390
push edi
push ebx
call fcn.00419050
add esp, 4
push eax
push str.RegQueryValueEx______S__failed
push esi
call fcn.0041a8a0
pop edi
pop esi
pop ebx
ret
Function at 0x4193f0
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x41941f
push edi
push ebx
call fcn.00419050
add esp, 4
push eax
push str.RegDeleteValue______S__failed
push esi
call fcn.0041a8a0
pop edi
pop esi
pop ebx
ret

Function at 0x41ab30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
call edx
mov esi, eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00419580
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
add esp, 4
call eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0xc400
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x41abc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx
call fcn.0041a760
add esp, 0x3c
ret
Function at 0x41af40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x43d878
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x454a10]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x3c]
call fcn.00413660
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [esp + 0x80], edi
cmp ecx, edi
je 0x41b014
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
cmp eax, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edi
jle 0x41aff4
nop
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push edi
call edx
mov ebx, eax
test ebx, ebx
je 0x41afe9
push 0
push 0x45423c
push 0x4563a8
push 0
push ebx
call fcn.00422f70
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41b0c2
mov ecx, edi
call fcn.0041ae20
mov ecx, dword [esi + 0x1c]
push edi
call fcn.00416cf0
dec dword [esi + 0x14]
mov edi, dword [esp + 0x3c]
inc edi
cmp edi, dword [esp + 0x40]
mov dword [esp + 0x3c], edi
jl 0x41afa0
mov ecx, dword [esi + 0x18]
xor edi, edi
cmp ecx, edi
je 0x41b005
call fcn.0040f2d0
mov dword [esi + 0x18], edi
mov ecx, dword [esi + 8]
cmp ecx, edi
je 0x41b014
call fcn.0040f2d0
mov dword [esi + 8], edi
cmp byte [ebp + 8], 0
je 0x41b077
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x40], eax
jle 0x41b077
mov edi, edi
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push ebx
call edx
mov edi, eax
test edi, edi
je 0x41b070
push 0
push 0x45423c
push 0x4563a8
push 0
push edi
call fcn.00422f70
add esp, 0x14
test eax, eax
je 0x41b0cd
mov byte [eax + 0x18], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x41b070
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x41b030
cmp dword [esi + 0x14], 0
jle 0x41b0a4
lea ecx, [ecx]
lea ecx, [esp + 0x38]
call fcn.004132d0
fld qword [0x443940]
sub esp, 8
lea ecx, [esp + 0x40]
fstp qword [esp]
call fcn.00413130
cmp dword [esi + 0x14], 0
jg 0x41b080
lea ecx, [esp + 0x38]
call fcn.00413360
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x45423c
call fcn.0040f720
push edi
push 0x45423c
call fcn.0040f720
int3