joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445ed3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x45eef8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov bl, 1
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.00401410
push str.LOCATION
mov ecx, esi
call fcn.004013a0
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00408910
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edi + 0x34]
call fcn.004105f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.00438e1b
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00438d2e
push str.PARAMETERS
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x408657
push 0x462a80
lea ecx, [esp + 0x10]
call fcn.00438e6b
jmp 0x40868f
push ecx
mov ecx, esi
mov edx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00408910
mov ecx, dword [edi + 0x34]
lea eax, [esp + 0x34]
push eax
call fcn.004105f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.00438e1b
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00438d2e
push 0xc
call fcn.00438a6f
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x28], 4
je 0x4086df
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 5
call fcn.00438aa3
mov ecx, edi
mov byte [esp + 0x30], 4
call fcn.00408a60
mov edi, eax
jmp 0x4086e1
xor edi, edi
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.00401450
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x40c4d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44694b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x462a80
lea ecx, [esp + 0x14]
call fcn.00438d9c
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.00401410
push 0x198
call fcn.00438a6f
mov ebp, eax
add esp, 4
mov dword [esp + 0x2c], ebp
cmp ebp, ebx
mov byte [esp + 0x24], 1
je 0x40c562
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x462b58
call fcn.00438aa3
mov ecx, ebp
call fcn.0040d790
push fcn.00438d2e
push 0x411c70
push 0x64
lea eax, [ebp + 8]
push 4
push eax
mov byte [esp + 0x38], 2
call fcn.00429e82
mov dword [ebp + 4], ebx
jmp 0x40c564
xor ebp, ebp
push str.LOCATION
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.004013a0
test al, al
je 0x40c618
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, esi
call fcn.00408910
lea edx, [esp + 0x30]
mov ecx, edi
push edx
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00438e1b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.00438d2e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00438aa3
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi]
call fcn.00410790
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.00438e1b
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00438d2e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00438aa3
mov ecx, ebp
call fcn.0040d800
push str.LOCATION
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x40c57c
mov ecx, esi
call fcn.00401450
mov ecx, dword [esp + 0x30]
push ebp
call fcn.00407830
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8
Function at 0x40c660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4469a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push 0x462a80
lea ecx, [esp + 0x18]
call fcn.00438d9c
push 0x462a80
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00438d9c
push 0x462a80
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00438d9c
mov esi, dword [esp + 0x34]
mov bl, 2
mov ecx, esi
mov byte [esp + 0x2c], bl
call fcn.00401410
push str.OLDLOCATION
mov ecx, esi
call fcn.004013a0
test al, al
je 0x40c71c
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00408910
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.00438e1b
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.00438d2e
push str.NEWLOCATION
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x40c75f
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00438d2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00438d2e
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
push ecx
mov ecx, esi
mov edx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00408910
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.00438e1b
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.00438d2e
push str.OVERWRITE
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x40c7b6
push str.false
lea ecx, [esp + 0x10]
call fcn.00438e6b
jmp 0x40c7ed
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, esi
call fcn.00408910
lea edx, [esp + 0x38]
mov ecx, edi
push edx
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.00438e1b
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.00438d2e
lea ecx, [esp + 0xc]
call fcn.004391f6
mov eax, dword [esp + 0xc]
push str.true
push eax
call fcn.0042a604
add esp, 8
test eax, eax
sete cl
mov byte [esp + 0x18], cl
mov ecx, esi
call fcn.00401450
push 0x10
call fcn.00438a6f
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x2c], 6
je 0x40c86b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00438aa3
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 7
call fcn.00438aa3
mov ecx, esi
mov byte [esp + 0x38], 6
call fcn.0040d860
jmp 0x40c86d
xor eax, eax
mov ecx, dword [esp + 0x38]
push eax
mov byte [esp + 0x30], bl
call fcn.00407830
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00438d2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x40c8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4469db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0x462a80
lea ecx, [esp + 0x14]
call fcn.00438d9c
push 0x462a80
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call fcn.00438d9c
mov esi, dword [esp + 0x2c]
mov bl, 1
mov ecx, esi
mov byte [esp + 0x24], bl
call fcn.00401410
push str.LOCATION
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x40c956
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], al
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00438d2e
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00408910
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00438e1b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.00438d2e
push str.ASKUSER
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x40c9ad
push str.false
lea ecx, [esp + 0x10]
call fcn.00438e6b
jmp 0x40c9e4
push ecx
mov ecx, esi
mov edx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00408910
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.0040d0d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00438e1b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.00438d2e
lea ecx, [esp + 0xc]
call fcn.004391f6
mov ecx, dword [esp + 0xc]
push str.true
push ecx
call fcn.0042a604
add esp, 8
mov ecx, esi
test eax, eax
sete dl
mov byte [esp + 0x14], dl
call fcn.00401450
push 0xc
call fcn.00438a6f
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x24], 4
je 0x40ca47
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00438aa3
mov ecx, esi
call fcn.0040d9c0
jmp 0x40ca49
xor eax, eax
mov ecx, dword [esp + 0x30]
push eax
mov byte [esp + 0x28], bl
call fcn.00407830
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x1c]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x40e2f0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x446f41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
push 0x462a80
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00438d9c
push 0x462a80
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 1
call fcn.00438d9c
mov eax, dword [0x45eef8]
mov dword [esp + 4], eax
push 0x462a80
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call fcn.00438d9c
lea ecx, [esp + 0x18]
mov eax, 0x400
push ecx
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x100
call fcn.00439112
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push edx
call fcn.00439112
push eax
lea ecx, [esp + 0x10]
call fcn.00438e6b
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00439161
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00439112
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
push ecx
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push edx
call fcn.00439112
push eax
lea ecx, [esp + 0xc]
call fcn.00438e6b
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00439161
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40e445
lea ecx, [esp + 8]
push 0x45d328
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00438f77
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 5
call fcn.00438e1b
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 4
call fcn.00438d2e
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.004390fa
mov esi, dword [esp + 0x13c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00438aa3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 3
call fcn.00438d2e
lea ecx, [esp + 4]
mov byte [esp + 0x134], 2
call fcn.00438d2e
lea ecx, [esp + 8]
mov byte [esp + 0x134], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 0
call fcn.00438d2e
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret 4

Function at 0x40e580
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret
Function at 0x40e5b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push ebx
xor ebx, ebx
push eax
push 3
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e657
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push str.EnableAutodial
push ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e64c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, 3
je 0x40e620
cmp eax, 4
jne 0x40e620
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x18]
push ecx
cmp edx, ebx
lea ecx, [esp + 8]
setne dl
push ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0x10]
push eax
push 0
push str.EnableAutodial
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e64c
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x40e660
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push esi
push eax
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e709
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0
push str.EnableAutodial
push ecx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e6fe
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x40e6ec
cmp dword [esp + 8], 4
jne 0x40e6fe
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
push ecx
test al, al
setne dl
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
cmp eax, 4
jne 0x40e6fe
mov cl, byte [esp + 0xc]
xor eax, eax
test cl, cl
setne al
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40e710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
push str.www.microsoft.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x40e72e
pop edi
xor al, al
pop esi
add esp, 0x10
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e750
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov word [esp + 8], 2
mov eax, dword [edi + 0xc]
push 0x50
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
pop edi
setne al
pop esi
add esp, 0x10
ret
Function at 0x40e7a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
push str.www.google.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x40e7be
pop edi
xor al, al
pop esi
add esp, 0x10
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e7e0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov word [esp + 8], 2
mov eax, dword [edi + 0xc]
push 0x50
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
pop edi
setne al
pop esi
add esp, 0x10
ret
Function at 0x40f380
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x447160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [0x45eef8]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov byte [esp + 0x38], 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f3d5
mov dword [esp + 0x18], 0x1001
jmp 0x40f3f7
lea ecx, [esp + 0x1c]
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.0044244d
test eax, eax
je 0x40f42a
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00438aa3
mov ecx, esi
call fcn.0040ef00
mov eax, dword [esp + 0x18]
dec eax
je 0x40f4f4
sub eax, 2
je 0x40f4a4
sub eax, 0xffe
je 0x40f487
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call fcn.00438d2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call fcn.00438d2e
lea ecx, [esp + 8]
mov byte [esp + 0x38], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], bl
call fcn.00438d2e
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.00438d2e
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x34
ret 4
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00438aa3
mov ecx, esi
call fcn.0040f760
jmp 0x40f556
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00438aa3
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x48], 8
call fcn.00438aa3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x4c], 9
call fcn.00438aa3
mov ecx, esi
mov byte [esp + 0x48], 4
call fcn.0040f670
jmp 0x40f556
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esi + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x48], 5
call fcn.00438aa3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 6
call fcn.00438aa3
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x50], 7
call fcn.00438aa3
mov ecx, esi
mov byte [esp + 0x4c], 4
call fcn.0040f5c0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x38], 3
call fcn.00438d2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call fcn.00438d2e
lea ecx, [esp + 8]
mov byte [esp + 0x38], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], bl
call fcn.00438d2e
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4
Function at 0x40f760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4471e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f7b1
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00438d2e
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x10
call fcn.00438a6f
add esp, 4
mov dword [esp + 4], eax
cmp eax, esi
mov byte [esp + 0x10], 1
je 0x40f7db
mov ecx, dword [esp + 0x18]
push 0x8000
push ecx
mov ecx, eax
call fcn.00439350
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40f9e0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x34]
xor esi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x1c], eax
push esi
push esi
mov dword [ebp - 0x18], eax
push 1
push esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [ebp - 0x10], edi
mov ebx, eax
jne 0x40fa3b
mov dword [ebp - 0x2c], esi
jmp 0x40fa70
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0042b690
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 2
cmp eax, esi
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 1
mov ebx, eax
jne 0x40fa98
xor eax, eax
jmp 0x40faca
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0042b690
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x40fb16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00438d2e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00438d2e
xor al, al
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.00438e92
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 8]
push edx
call fcn.00438e92
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x40fb4d
push eax
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fb57
push eax
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00438d2e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00438d2e
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x40]
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret