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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
test dl, dl
je 0x4ec02e
add esp, 0xfffffff0
call fcn.004034ec
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00406f34
mov eax, dword [ebp + 0xc]
call fcn.00406f34
mov eax, dword [ebp + 8]
call fcn.00406f34
xor eax, eax
push ebp
push 0x4ec0fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a30d8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [ebp - 0xc]
call fcn.00406eec
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
jle 0x4ec0d6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, al
je 0x4ec0ce
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
add al, 0xfe
sub al, 4
jae 0x4ec0ce
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x38], edx
jmp 0x4ec0d6
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x4ec0a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec103
lea eax, [ebp - 0xc]
call fcn.00406ed4
lea eax, [ebp + 8]
call fcn.00406ed4
lea eax, [ebp + 0xc]
call fcn.00406ed4
ret

Function at 0x4fe964
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fea59
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 7
mov eax, dword [ebp - 4]
call fcn.004fe668
test al, al
je 0x4fe9a7
lea eax, [ebp - 0xc]
mov edx, 0x4fea70
call fcn.00403e70
jmp 0x4fe9b4
lea eax, [ebp - 0xc]
mov edx, 0x4feb0c
call fcn.00403e70
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x230]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
jne 0x4fea08
lea edx, [ebp - 0x1c]
mov eax, dword [0x662750]
call fcn.00406e7c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x408f44]
call fcn.0040dca8
call fcn.00403898
mov edx, 0x4feb48
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fea60
lea eax, [ebp - 0x1c]
call fcn.00403dd8
lea eax, [ebp - 0x18]
call fcn.00406ed4
lea eax, [ebp - 0x14]
call fcn.00406ed4
lea eax, [ebp - 0x10]
call fcn.00406ed4
lea eax, [ebp - 0xc]
call fcn.00403dd8
ret
Function at 0x5024f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5026a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x27], 0
je 0x502528
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, 0x5026b4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov cl, 3
call fcn.004f3974
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x662814]
mov eax, dword [eax]
mov dl, 3
mov ebx, dword [eax]
call dword [ebx + 0x38]
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403f8c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov dl, 1
mov eax, dword [0x411c5c]
call fcn.0040317c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50267d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x50272c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004910bc
lea ecx, [ebp - 8]
mov edx, 1
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, 0x502738
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004910bc
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0040a2dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x50265f
lea ecx, [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004f3a80
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
jmp 0x502667
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502684
mov eax, dword [ebp - 0xc]
call fcn.004031ac
ret
Function at 0x530c54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x530df7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041d090
cmp byte [ebp + 8], 0
je 0x530cad
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041cf60
jmp 0x530cbb
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041cf60
mov eax, dword [ebx + 0x10]
call fcn.0041d088
dec eax
jle 0x530d01
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041cf58
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041d088
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041d020
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.00403388
test al, al
je 0x530d4a
test esi, esi
jne 0x530d4a
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x530d80
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041decc
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x537124
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5371bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
test esi, esi
je 0x5371a4
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00537278
mov eax, dword [ebp - 4]
call fcn.005371d0
test al, al
jne 0x5371a4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a7f8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404164
je 0x5371a4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a7f8
mov eax, dword [ebp - 8]
call fcn.00537124
test al, al
je 0x5371a2
push 0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
call sub.kernel32.dll_CreateDirectoryA_1
neg eax
sbb ebx, ebx
neg ebx
jmp 0x5371a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5371c6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dfc
ret

Function at 0x5371d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, 1
test esi, esi
je 0x5371f6
mov eax, esi
call fcn.00404218
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5371f0
test al, 0x10
jne 0x5371f4
xor ebx, ebx
jmp 0x5371f6
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x53a974
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404208
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x53aae0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x53a9be
lea eax, [ebp - 4]
mov edx, 0x53aaf8
call fcn.00403e70
cmp dword [ebp - 8], 0
jne 0x53a9d1
lea eax, [ebp - 8]
mov edx, 0x53ab04
call fcn.00403e70
xor eax, eax
push ebp
push 0x53aab6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
call fcn.00404054
test eax, eax
jne 0x53aa12
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.004027b8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x53aa62
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xe4]
mov dl, 1
call fcn.00537278
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xe4]
call fcn.00403e2c
mov eax, dword [ebx + 0xe4]
call fcn.00404054
add eax, 0xd
call fcn.004027b8
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xe4]
call fcn.00404054
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0xe4]
mov eax, dword [ebp - 0xc]
call fcn.0040af04
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x53aaa0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403f8c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.0040a764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53aabd
mov eax, dword [ebp - 0xc]
call fcn.004027d0
ret

Function at 0x53b13c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53b1db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
mov edx, esi
call fcn.00404164
je 0x53b1c0
test esi, esi
je 0x53b1b3
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040a82c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x53b1f0
call fcn.004040a0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x53b1b3
cmp eax, 6
je 0x53b1b3
push esi
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538da8
call fcn.00403898
lea eax, [ebx + 0xe4]
mov edx, esi
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b1e2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dfc
ret
Function at 0x53bf4c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x53c264
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
test eax, eax
jbe 0x53bf8e
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
call fcn.0053b9c0
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x53c136
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404218
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x100], ebx
cmp ebx, 0x20
jbe 0x53c0b1
push 0x53c274
push ebx
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x118], esi
test esi, esi
je 0x53c007
push 0x53c280
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0x53c030
push 0x53c28c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0x53c059
push 0x53c298
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 0
je 0x53c082
push 0x53c2a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0x53c11f
push 0x53c2b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
jmp 0x53c11f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xea], 0
jne 0x53c0c9
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe8], 0
je 0x53c11f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040d4b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0x53c2c4
call fcn.0040b5d0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0053ab0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c13d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x53d200
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0x53d35c
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
test ebx, ebx
je 0x53d290
push 0x53d368
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebp, eax
test ebp, ebp
je 0x53d28a
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404218
push eax
call ebp
test eax, eax
jne 0x53d28a
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0x53d31b
cmp dword [esp + 0x10], 0xffffffff
jne 0x53d31b
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404218
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x53d31b
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.004078bc
call fcn.004078bc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.004078bc
call fcn.004078bc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0x53d337
mov eax, dword [esp + 0x10]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x184], eax
test edi, 2
je 0x53d353
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1e8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1ec], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x53e800
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov esi, eax
xor eax, eax
push ebp
push 0x53e9b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
lea eax, [esi + 0x20c]
call fcn.00403dd8
mov byte [ebp - 0x114], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x158]
call fcn.00409ac0
mov eax, dword [ebp - 0x118]
mov bl, byte [eax]
cmp bl, 0x5c
je 0x53e8ea
cmp bl, 0x41
jb 0x53e898
cmp bl, 0x5a
jbe 0x53e8b5
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538da8
call fcn.00403898
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor eax, eax
mov al, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0x53e8cb
bt edi, eax
jb 0x53e8ea
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538da8
call fcn.00403898
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404218
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x53e942
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x53e93a
test byte [esi + 0x12e], 2
je 0x53e93a
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0x53e997
lea eax, [esi + 0x20c]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00404004
test byte [ebp - 6], 8
setne al
mov byte [esi + 0x210], al
mov edx, 3
mov eax, esi
call fcn.0053d200
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0x53e993
cmp bl, 0x5c
je 0x53e997
cmp dword [esi + 0x1ec], 0xffffffff
jne 0x53e991
cmp dword [esi + 0x1e8], 0xffffffff
je 0x53e997
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e9b7
lea eax, [ebp - 0x118]
call fcn.00403dd8
ret
Function at 0x552424
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6d4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x92c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x552640
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x4000000
push 0
push 0
push 0
push 0x552654
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x55261a
xor edx, edx
push ebp
push 0x552613
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x4000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5524c0
call fcn.00403938
jmp 0x55261a
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x411e2c]
call fcn.00415ad0
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5525ec
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x552556
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x928]
push eax
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x92c]
lea edx, [ebp - 0x928]
mov ecx, 0x104
call fcn.00403ebc
mov eax, dword [ebp - 0x92c]
call fcn.0040a1e4
mov edx, eax
mov eax, dword [0x6649c8]
mov eax, dword [eax + 0x2f8]
call fcn.00461b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x552560
mov eax, dword [0x6649c8]
mov eax, dword [eax + 0x38c]
mov edx, dword [eax + 0x120]
inc edx
call fcn.00461c1c
jmp 0x5525b5
cmp dword [ebp - 0x1c], 0
je 0x5525d2
lea edx, [ebp - 0x824]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004158f4
mov eax, dword [0x6649c8]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x120]
add edx, dword [ebp - 0x1c]
call fcn.00461c1c
mov eax, dword [0x66225c]
mov eax, dword [eax]
call fcn.00451218
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x552579
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5525f3
mov eax, dword [ebp - 0x18]
call fcn.004031ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552647
lea eax, [ebp - 0x92c]
call fcn.00403dd8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dfc
ret