joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.004045b0
test al, al
jne 0x40f8e7
mov ecx, dword [esp + 8]
call fcn.004045c0
jmp 0x40f8e9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40f911
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x40f913
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x40f940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5339c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x40f986
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041faa0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40f9af
lea ebx, [esi + 8]
jmp 0x40f9b1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.004045b0
test al, al
jne 0x40f9c7
mov ecx, dword [ebp - 0x18]
call fcn.004045c0
jmp 0x40f9c9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40f9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f9ea
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40fa13
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fa28
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00509dd1
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret 4

Function at 0x40fa80
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00509b07
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0050c400
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40fadc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00509af6
add esp, 0x120
ret
Function at 0x412430
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57f518
push 0x50b8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x59e074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040a5a0
mov ecx, edi
call fcn.00412550
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4124c3
test bl, bl
jne 0x412532
cmp edi, 0x1a
jne 0x412532
mov ecx, esi
call fcn.0040a5a0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.0050c400
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00404920
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00404720
mov ecx, esi
call fcn.004045b0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret

Function at 0x412da0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.0050c400
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412e1e
cmp dword [esp + 0x14], 6
jb 0x412e1e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.00412c10
add esp, 0xc
test al, al
je 0x412e1e
cmp word [esi], 0
jne 0x412e76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.00412c10
add esp, 0xc
test al, al
je 0x412e4a
cmp word [esi], 0
jne 0x412e76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.00412c10
add esp, 0xc
test al, al
je 0x412e8b
cmp word [esi], 0
je 0x412e8b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00509af6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00509af6
mov esp, ebp
pop ebp
ret
Function at 0x4133f0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533feb
mov eax, dword fs:[0]
push eax
mov eax, 0x285c
call fcn.0050ab80
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.0050c400
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x413604
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x413604
push esi
call edi
cmp eax, 0xffa
jge 0x413604
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x565644
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2868]
call fcn.00404610
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2868]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2868]
call fcn.00404600
test esi, esi
je 0x413604
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x284c], eax
test eax, eax
je 0x413604
lea ecx, [ebp - 0x2848]
call fcn.00412ea0
xor edi, edi
lea esi, [ebp - 0x2848]
nop dword [eax]
cmp word [esi], 0
je 0x413524
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x284c]
cmp eax, 0x20
ja 0x413532
inc edi
add esi, 0x210
cmp edi, 3
jl 0x413500
jmp 0x413554
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2640], 0
mov ebx, dword [ebp + ebx - 0x263c]
jne 0x41354c
add ebx, 0x10
test ebx, ebx
jne 0x413600
mov edi, dword [ebp - 0x284c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4135fb
mov dword [ebp - 0x2850], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x284c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050c400
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2850]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4135f1
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4135fb
inc esi
cmp esi, 2
jb 0x413590
mov eax, ebx
jmp 0x413606
mov ebx, 0x10
mov eax, ebx
jmp 0x413606
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret
Function at 0x4136c0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0050c400
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413802
cmp dword [esi + 4], 6
push edi
ja 0x413716
jne 0x41379e
cmp dword [esi + 8], 2
jb 0x41379e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41379e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41379e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41379e
movups xmm0, xmmword [0x566378]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x566388]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41379e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41379e
cmp word [edi + 2], ax
jbe 0x41379e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4137e9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0050c400
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4137e9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00509af6
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00509af6
add esp, 0x140
ret
Function at 0x415f70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533bc8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x415fab
xor al, al
jmp 0x41604e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x415fc7
mov eax, dword [edi]
test eax, eax
je 0x415fc7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x41602b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x415b10
push 0
push 0
call fcn.00514001
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x41606a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x416023
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00415ce0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41604c
mov eax, dword [edi]
test eax, eax
je 0x416045
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x416082
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41600d
mov bl, 1
jmp 0x41602d
Function at 0x419c90
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.0050c400
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x419d27
cmp dword [esp + 8], 6
jb 0x419d27
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00509af6
add esp, 0x118
ret

Function at 0x419d40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534c50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00404610
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404600
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00404610
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404600
test ebx, ebx
je 0x419e55
test esi, esi
je 0x419e55
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
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 0x41d7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535538
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0041f180
test al, al
jne 0x41d830
mov eax, 1
jmp 0x41d9ad
push 0x10000
call fcn.00509f18
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.0050c400
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x41d986
test ebx, ebx
je 0x41d986
cmp dword [eax], 0xffffffff
je 0x41d986
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d986
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x41d97c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.0042dda0
test al, al
je 0x41d96f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41d922
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x41d911
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x41d97c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x41d92c
add ebx, eax
cmp ebx, 0x8000
je 0x41d93c
cmp dword [ebp - 0x28], 0xf
ja 0x41d965
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x41d8c0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41d95e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x41d946
mov esi, 4
jmp 0x41d997
mov esi, 5
jmp 0x41d997
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x41d997
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x41d991
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x41d997
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41d9ab
push ebx
call fcn.00509f13
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d9d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535578
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.004056c0
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x566788
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.0040a610
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.0042ca50
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a5c0
test bl, bl
jne 0x41da93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x41db4e
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0042c620
test al, al
jne 0x41dac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x41db4e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x41db3b
cmp eax, 0xce
je 0x41db3b
cmp eax, 0x12e
jne 0x41db6f
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x41db03
push 0x800
call fcn.00509f18
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.0050c400
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0042c690
test al, al
je 0x41db6f
push esi
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404720
mov ebx, dword [ebp - 0x38]
jmp 0x41db5f
cmp dword [ebp + 0x14], 0
ja 0x41db47
cmp dword [ebp + 0x10], 0
jbe 0x41db73
cmp eax, 0xce
je 0x41db73
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x41db6f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x41da33
xor bl, bl
jmp 0x41db7f
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x41db90
push esi
call fcn.00509f13
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f090
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41f0c8
mov edx, dword [esp + 4]
test edx, edx
je 0x41f0c8
cmp dword [eax], 0xffffffff
je 0x41f0c8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f0c8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41f100
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x41f163
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41f163
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f13e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f163
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00509af6
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00509af6
add esp, 8
ret 4

Function at 0x41f210
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x41f247
xor al, al
jmp 0x41f2aa
and esi, 0xffffb1af
push esi
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41f262
mov al, 1
jmp 0x41f2aa
lea ecx, [ebp - 0x28]
call fcn.00404660
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041f9d0
test al, al
je 0x41f297
push esi
lea ecx, [ebp - 0x28]
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41f297
mov bl, 1
jmp 0x41f299
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret