joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417595
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov esi, 0x206
lea edi, [ebp - 4]
push esi
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.004237a0
xor eax, eax
push esi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
call fcn.004237a0
xor eax, eax
push 0x81e
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc46]
push ebx
push eax
call fcn.004237a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push 0x103
push eax
call fcn.0040a93d
lea eax, [ebp - 0x220]
push 0x3a
push eax
call fcn.00421ae5
add esp, 0x38
cmp eax, ebx
je 0x41763b
lea ecx, [ebp - 0x220]
sub eax, ecx
sar eax, 1
jmp 0x41763e
or eax, 0xffffffff
cmp eax, ebx
jle 0x417707
xor ecx, ecx
mov word [ebp + eax*2 - 0x21e], cx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4176c0
push 0x104
push 0x23
lea eax, [ebp - 0x428]
call fcn.0040b351
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.00416529
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
push 0x30
add ecx, 0xc
push ecx
lea ecx, [ebp - 0xc48]
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x417709
cmp dword [ebp - 4], ebx
ja 0x417707
jb 0x4176d0
cmp dword [ebp - 8], 0x3200000
jae 0x417707
push 0x104
push 0xe
lea eax, [ebp - 0x428]
call fcn.0040b351
push 0x32
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.00416529
add esp, 0x10
jmp 0x4176a0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4177b4
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x4177d1
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x4177d1
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x4177e1.211
jmp dword [ecx*4 + 0x41780c]
mov eax, edi
pop esi
jmp fcn.00416b20
push edi
call fcn.004172eb
pop esi
ret
mov eax, edi
pop esi
jmp fcn.00417100
pop esi
jmp fcn.004172e7
mov dword [ebx], eax
pop esi
ret
Function at 0x417bb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004237a0
add esp, 0xc
call fcn.0041796c
push 6
push dword [esi + 4]
call fcn.0040b2ff
push 0x102
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esi + 0x60]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x64]
call fcn.00416512
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x68]
call ebx
push 0x104
push 0x10
lea eax, [ebp - 0x208]
call fcn.0040b351
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0xc4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0xe4]
call fcn.00416512
push 0
push dword [esi + 0xe8]
call ebx
push 0x104
push 0x12
lea eax, [ebp - 0x208]
call fcn.0040b351
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x144]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x164]
call fcn.00416512
push 0
push dword [esi + 0x168]
call ebx
push 0x104
push 0x11
lea eax, [ebp - 0x208]
call fcn.0040b351
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x1c4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x418125
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 0x54]
push esi
xor esi, esi
cmp dword [eax + 0x82c], esi
jbe 0x418155
mov ecx, dword [eax + 0x834]
imul ecx, esi
add ecx, dword [eax + 0x828]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [edi + 0x54]
inc esi
cmp esi, dword [eax + 0x82c]
jb 0x418133
mov eax, dword [edi + 0x54]
xor ecx, ecx
cmp ecx, dword [eax + 0x82c]
pop esi
sbb eax, eax
neg eax
ret

Function at 0x418166
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push esi
push edi
lea eax, [ebp - 0x21c]
mov edi, ecx
call fcn.00406448
cmp dword [ebp + 8], 0
je 0x418219
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x43976c
call fcn.0040179f
pop ecx
pop ecx
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418219
test byte [ebp - 0x46c], 0x10
je 0x418200
cmp word [ebp - 0x440], 0x2e
je 0x418200
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push str._s_s
call fcn.0040179f
add esp, 0xc
push dword [ebp - 0x218]
mov ecx, edi
call fcn.00418166
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4181b7
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
leave
ret 4
Function at 0x41821f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
lea eax, [ebp - 0x218]
call fcn.00406448
mov eax, dword [esi + 0x54]
add eax, 0x414
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x218]
call fcn.0040179f
pop ecx
pop ecx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4182a0
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4182a0
mov ecx, dword [esi + 0x54]
xor edx, edx
cmp dword [ecx + 0x844], 2
push 0
setne dl
dec edx
and edx, 0xffffff00
add edx, 0x20206
mov ecx, edx
push ecx
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4182b1
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test edi, edi
je 0x4182bc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
leave
ret
Function at 0x41889a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov esi, 0x3fe
push esi
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.004237a0
xor eax, eax
push esi
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.004237a0
add esp, 0x18
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call fcn.00412b1c
call fcn.004186fa
push 5
push dword [edi + 4]
call fcn.0040b2ff
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
lea esi, [ebp - 0x804]
call fcn.00416529
add esp, 0xc
mov eax, esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00416529
add esp, 0xc
mov eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 0x80]
call esi
mov eax, dword [edi + 0x54]
add eax, 4
push eax
push dword [edi + 0xa4]
call esi
push 0
push 0
push 0xf1
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418e05
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.004237a0
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call fcn.00412b1c
lea esi, [edi + 0x54]
lea ecx, [edi + 0x60]
push 0x10b
mov eax, esi
call fcn.00418611
lea ecx, [edi + 0x84]
push 0x10e
mov eax, esi
call fcn.00418611
lea ecx, [edi + 0xa8]
push 0x10f
mov eax, esi
call fcn.00418611
lea ebx, [edi + 0xf0]
mov ecx, ebx
mov eax, esi
call fcn.0041937f
lea ecx, [edi + 0xcc]
push 0x112
mov eax, esi
call fcn.00418611
push 8
push dword [edi + 4]
call fcn.0040b2ff
call fcn.004191a3
push 0x104
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or dword [ebx + 0x54], 2
push 0
push 0
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov esi, ebx
call fcn.00419296
lea eax, [ebp - 0x268]
push eax
call fcn.00408307
lea eax, [ebp - 0x268]
push eax
lea esi, [ebx + 0x74]
call fcn.0040adba
lea eax, [ebp - 0x268]
push eax
mov eax, ebx
call fcn.0041948b
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0xee0000
mov dword [edi + 0x158], eax
push ecx
mov eax, ebx
call fcn.004082bd
xor ebx, ebx
push ebx
push ebx
mov dword [edi + 0x15c], ebx
push 0x31
push dword [edi + 0xd0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov dword [ebp - 4], eax
cmp dword [edi + 0x5c], ebx
jne 0x418f93
cmp eax, ebx
je 0x418f93
push 0x58
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call fcn.004237a0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x43978c
lea eax, [ebp - 0x44]
push 0x20
push eax
mov dword [ebp - 0x60], 0xfffffff7
call fcn.0040a93d
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x418fa7
push 1
push eax
push 0x30
push dword [edi + 0xd0]
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4191a3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
xor eax, eax
mov esi, 0x40e
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004237a0
xor eax, eax
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004237a0
add esp, 0x18
mov esi, 0x208
push esi
lea eax, [ebp - 0x824]
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0xc
push eax
lea eax, [ebp - 0x824]
push eax
push esi
lea esi, [ebp - 0x414]
call fcn.00416529
add esp, 0xc
mov eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 0x64]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 8]
dec eax
je 0x419242
dec eax
je 0x419237
dec eax
dec eax
je 0x419242
dec eax
jne 0x419293
push 0x29
mov dword [ebp - 4], 0x2a
jmp 0x41924b
push 0x2b
mov dword [ebp - 4], 0x2c
pop eax
push ebx
mov ebx, 0x207
push ebx
push eax
lea eax, [ebp - 0x414]
call fcn.0040b351
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0x88]
call esi
cmp dword [ebp - 4], 0
je 0x419292
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x414]
call fcn.0040b351
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0xac]
call esi
pop ebx
pop esi
leave
ret
Function at 0x41b19d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.004237a0
and dword [ebp - 8], 0
or ebx, 0xffffffff
add esp, 0xc
cmp dword [ebp + 8], 0
mov edi, 0x437584
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
jne 0x41b1dc
xor al, al
jmp 0x41b293
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, ebx
jne 0x41b201
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b1fa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41b293
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00401877
test al, al
jne 0x41b22c
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b1d5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b1d5
push 0x40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
call fcn.00401832
cmp eax, 0x40
jne 0x41b219
mov ax, word [ebp - 0x30]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x2e]
push 0
mov word [ebp - 6], ax
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.004017e4
and eax, edx
cmp eax, ebx
je 0x41b219
lea eax, [ebp - 0x10]
push eax
call fcn.004016fd
test al, al
je 0x41b277
cmp dword [esi + 0x14], 1
jne 0x41b264
cmp dword [esi + 0x14], 1
mov dword [ebp - 0x10], edi
sete byte [ebp + 0xb]
cmp dword [ebp - 0xc], ebx
je 0x41b290
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b29a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
xor edi, edi
lea eax, [ebp - 0x4e]
push edi
push eax
call fcn.004237a0
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41b2cc
xor al, al
jmp 0x41b381
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41b2c5
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov ebx, 0x437584
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.00401877
test al, al
jne 0x41b312
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], esi
je 0x41b2c5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b2c5
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401832
cmp eax, 0x40
jne 0x41b2ff
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push edi
mov word [ebp - 2], ax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.004017e4
and eax, edx
cmp eax, esi
je 0x41b2ff
push 2
push edi
push edi
lea eax, [ebp - 0x10]
call fcn.004017e4
and eax, edx
cmp eax, esi
je 0x41b2ff
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 8]
call fcn.00416188
cmp dword [ebp - 0xc], 0xffffffff
mov byte [ebp + 0xf], al
mov dword [ebp - 0x10], ebx
je 0x41b37e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41bf66
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x60], ax
xor ebx, ebx
lea eax, [ebp - 0x5e]
push ebx
push eax
call fcn.004237a0
or esi, 0xffffffff
add esp, 0xc
mov edi, 0x437584
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
cmp dword [ebp + 0xc], ebx
je 0x41c0b6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
jne 0x41bfd2
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], esi
je 0x41bfcb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41c0b8
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
call fcn.00401877
test al, al
jne 0x41bff2
cmp dword [ebp - 0x18], esi
jmp 0x41c0a8
push 0x40
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x1c]
call fcn.00401832
cmp eax, 0x40
jne 0x41bfea
mov ax, word [ebp - 0x3c]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x3a]
push ebx
mov word [ebp - 6], ax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
call fcn.004017e4
and eax, edx
cmp eax, esi
je 0x41bfea
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004016fd
test al, al
je 0x41c040
mov eax, esi
cmp dword [eax + 0x14], 4
jne 0x41c028
cmp dword [esi + 0x14], 4
jne 0x41c0a4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
mov ecx, esi
call fcn.0041629d
test al, al
je 0x41c0a4
mov edx, dword [ebp - 0xc]
cmp edx, ebx
je 0x41c0a4
mov eax, dword [ebp - 0x10]
cmp eax, 4
jb 0x41c0a4
mov ecx, dword [edx]
cmp ecx, 1
ja 0x41c0a4
lea ecx, [esi + 0x68]
mov ebx, dword [ecx]
lea esi, [ebp - 0x14]
push esi
lea esi, [edx + 4]
sub eax, esi
add eax, edx
push eax
push esi
call dword [ebx + 4]
test al, al
jne 0x41c08d
mov byte [ebp - 1], al
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c09f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x41c0b8
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c0b6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c0bf
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41c0dc
xor al, al
jmp 0x41c205
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41c0d5
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push edi
mov ebx, 0x437584
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.004237a0
add esp, 0xc
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00401877
test al, al
jne 0x41c137
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
je 0x41c0d5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41c0d5
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401832
cmp eax, 0x40
jne 0x41c124
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push 2
push edi
mov word [ebp - 2], ax
push edi
lea eax, [ebp - 0x10]
call fcn.004017e4
and eax, edx
cmp eax, esi
je 0x41c124
mov esi, dword [ebp + 8]
add esi, 0x68
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
add edi, 4
push 0x4407c8
push edi
call fcn.00421e0b
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c198
cmp dword [ebp - 0xc], 0xffffffff
jmp 0x41c127
mov dword [eax], 1
mov edx, dword [esi]
lea ecx, [ebp - 8]
push ecx
add eax, 4
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, eax
push ecx
add eax, 4
push eax
mov ecx, esi
call dword [edx + 8]
test al, al
jne 0x41c1c3
mov byte [ebp + 0xb], al
jmp 0x41c1e7
mov esi, dword [ebp + 8]
push 4
call fcn.00401918
push dword [ebp + 0xc]
push 7
pop eax
call fcn.0041bcc5
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 4]
call fcn.00416188
mov byte [ebp + 0xb], al
push dword [ebp + 0xc]
call fcn.00421976
cmp dword [ebp - 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0x10], ebx
je 0x41c202
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c47d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
push ebx
push esi
mov esi, 0x441678
push edi
mov eax, esi
call fcn.0040ada0
test al, al
je 0x41c671
lea eax, [ebp - 0x2cc]
call fcn.0040e41f
lea eax, [ebp - 0x4dc]
call fcn.0040e41f
push 8
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x2cc]
call fcn.0041d98a
lea eax, [ebp - 0x4dc]
call fcn.0041d8df
mov eax, dword [ebp - 8]
push 0x64
pop ecx
cdq
idiv ecx
push dword [ebp - 0x28]
push edx
push eax
push 0x23e
push dword [ebp + 8]
mov eax, esi
push str._s_5._d__Windows_NT__d._d___d
call fcn.0040179f
add esp, 0x18
push 0x439c2c
call fcn.0041631e
lea eax, [ebp - 0x4dc]
call fcn.0040ada0
test al, al
jne 0x41c53b
push 0x439c34
call fcn.0041631e
lea edi, [ebp - 0x4dc]
call fcn.0041d94a
push 0x439c3c
call fcn.0041631e
xor eax, eax
push 0x7e
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0xba]
push ebx
push eax
call fcn.004237a0
add esp, 0xc
push 0x40
mov ebx, 0x439c40
push ebx
mov edi, str.SOFTWAREMetaQuotes_Software
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0xbc]
call fcn.004163cb
add esp, 0x10
test al, al
jne 0x41c5a3
push 0x40
push ebx
push edi
push SysReAllocStringLen
call fcn.004163cb
add esp, 0x10
test al, al
jne 0x41c5a3
xor eax, eax
mov word [ebp - 0xbc], ax
mov ebx, 0x440520
push 0x437280
mov esi, ebx
call fcn.0040adba
cmp word [ebp - 0xbc], 0
je 0x41c5e7
lea eax, [ebp - 0xbc]
push eax
push str.uniq_s_
mov eax, ebx
call fcn.0040179f
push 0x80
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.004237a0
add esp, 0x14
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 4
pop ecx
lea edi, [ebp - 0x18]
mov esi, 0x44188c
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41c60c
call fcn.0041d739
mov esi, 0x44188c
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.tid
mov esi, ebx
call fcn.0041631e
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x18]
push eax
push str._02X
lea eax, [ebp - 0x2cc]
call fcn.0040179f
pop ecx
pop ecx
lea edi, [ebp - 0x2cc]
mov esi, ebx
call fcn.0041d94a
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jl 0x41c628
push 0x23e
push str._build_d
mov eax, edi
call fcn.0040179f
pop ecx
pop ecx
call fcn.0041d94a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c676
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea esi, [edi + 0x46c]
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x41c696
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], ebx
jne 0x41c6a2
xor al, al
jmp 0x41c7d4
cmp dword [edi + 8], ebx
je 0x41c6d0
push dword [ebp + 8]
lea ecx, [edi + 0x10]
call fcn.0041ced4
test eax, eax
jne 0x41c6d0
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x220], eax
jne 0x41c6d0
mov al, byte [ebp + 0x10]
cmp byte [edi + 0x224], al
je 0x41c7d2
mov eax, edi
call fcn.0041c7da
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41c6f3
mov cl, byte [ebp + 0x10]
cmp cl, byte [edi + 0x224]
je 0x41c6f3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 4], ebx
mov al, byte [ebp + 0x10]
mov byte [edi + 0x224], al
mov eax, 0x441678
call fcn.0040ada0
test al, al
je 0x41c715
push 0x439cb8
call fcn.0041c47d
pop ecx
cmp dword [edi + 4], ebx
jne 0x41c75f
push ebx
push ebx
cmp byte [edi + 0x224], bl
je 0x41c72f
mov eax, dword [edi + 0x22c]
push eax
push 3
jmp 0x41c732
push ebx
push 1
push dword [0x44167c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x41c75f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
mov eax, esi
call fcn.0040179f
pop ecx
pop ecx
jmp 0x41c69b
push dword [ebp + 8]
lea esi, [edi + 0x10]
call fcn.0040adba
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x220], eax
movzx ecx, word [edi + 0x220]
mov eax, dword [edi + 0x14]
push ebx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, edi
mov dword [edi + 8], eax
call fcn.0041cd1d
test al, al
jne 0x41c79e
mov eax, edi
call fcn.0041c7da
cmp dword [edi + 8], 0
jne 0x41c7d2
cmp byte [edi + 0x224], 0
push dword [edi + 0x220]
mov eax, dword [ebp - 4]
push dword [edi + 0x14]
je 0x41c7c0
push str._s:_d_via_proxy_failed
jmp 0x41c7c5
push str._s:_d_failed
call fcn.0040179f
add esp, 0xc
jmp 0x41c69b
mov al, 1
pop esi
pop ebx
leave
ret 0xc