joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 0x18]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [edi], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ac4d
mov eax, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Install
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41ac54
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41ac4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x20
ret
cmp dword [esp + 0xc], 0
push 0x5499ac
lea eax, [esp + 0x10]
lea esi, [esp + 0x1c]
setne byte [esp + 0xf]
call fcn.00401730
neg al
sbb al, al
and eax, dword [esp + 0xc]
mov byte [edi], al
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41ac89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop esi
add esp, 0x20
ret

Function at 0x41b030
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x52945e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x28]
push ebp
push esi
mov ecx, 1
call fcn.0041bf10
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0xf4], vtable.GameMgr::GMHttpDownloadCallback.0
push 0xffffffffffffffff
lea ecx, [esi + 0xf8]
mov dword [esi], vtable.GameMgr::GMHttpTask.0
mov dword [esi + 0xf4], vtable.GameMgr::GMHttpTask.1.0
push ebx
mov edi, 7
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], bx
call fcn.00403310
mov dword [esi + 0x12c], edi
mov dword [esi + 0x128], ebx
mov word [esi + 0x118], bx
mov dword [esi + 0x148], edi
mov dword [esi + 0x144], ebx
mov word [esi + 0x134], bx
mov byte [esp + 0x20], 3
push 0x18
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov byte [esi + 0x160], bl
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
call fcn.004aaa2e
add esp, 4
push eax
mov dword [esi + 0x17c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x180]
mov byte [esp + 0x20], 4
call fcn.00446e80
mov edx, dword [esp + 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
mov byte [esp + 0x3c], 5
push 0xffffffffffffffff
mov dword [esi + 0x3820], ebx
mov dword [esi + 4], ebp
push ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], bx
call fcn.00403310
mov edi, esi
call fcn.0041c410
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x41b9a0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp dword [ebp + 0x14], 0
push esi
push edi
jne 0x41b9b9
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebp
call fcn.00406870
add esp, 4
test al, al
je 0x41b9af
xor bl, bl
cmp dword [ebp + 0x18], 8
jb 0x41b9d3
mov eax, dword [ebp + 4]
jmp 0x41b9d6
lea eax, [ebp + 4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x41ba16
lea ecx, [esp + 0x1c]
call fcn.0043b960
push ebp
call fcn.0043d8a0
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ba33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b9fa
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0
push ecx
call fcn.004f4500
xor ecx, ecx
add eax, edi
adc edx, ecx
or eax, edx
je 0x41b9fa
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x88], ecx
je 0x41b9fa
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x41ef60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5288e8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esi + 0xc], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.GameMgr::GMBTManager::GMSeedTask.0
mov dword [esi + 4], edi
mov dword [esi + 8], eax
push edi
lea edx, [esp + 0x24]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edx
mov word [ecx + 4], di
call fcn.00403310
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x18]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
jb 0x41efda
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004aaa59
add esp, 4
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 0x28
Function at 0x423f20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [ebp]
cmp eax, 0xffffffff
mov dword [esp + 8], 0
je 0x423fcf
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423fcf
mov ecx, dword [esp + 0xc]
test ecx, ecx
seta al
test al, al
je 0x423fcf
cmp ecx, 4
jne 0x423fcf
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0xa00000
ja 0x423fc6
test edi, edi
je 0x423fbd
call fcn.00403d20
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0043b9c0
test al, al
je 0x423fc6
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], eax
jne 0x423fc6
mov ecx, dword [esi + 4]
cmp eax, ecx
ja 0x423fb4
mov ecx, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
pop edi
pop esi
mov al, 1
pop ebp
add esp, 8
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret
pop esi
xor al, al
pop ebp
add esp, 8
ret

Function at 0x4240f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5287b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
call fcn.00403310
lea ebx, [esp + 0x24]
mov dword [esp + 0x50], edi
call fcn.00404cb0
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x28]
call fcn.0042dba0
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x42417a
cmp eax, ebx
je 0x42417f
call fcn.004ec14b
mov edx, dword [esp + 0x10]
cmp dword [edi + 4], edx
jne 0x4241b5
mov edi, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
mov ebx, esi
call fcn.0042dba0
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x4241a7
cmp eax, esi
je 0x4241ac
call fcn.004ec14b
cmp dword [ebx + 4], edi
jne 0x4241b5
xor bl, bl
jmp 0x4241b7
mov bl, 1
cmp dword [esp + 0x3c], 8
jb 0x4241cb
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004aaa59
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret 4
Function at 0x4241f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528788
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00403310
mov dword [esp + 0x48], ebx
lea ebx, [esp + 0x1c]
call fcn.00404cb0
lea eax, [esp + 0xc]
push eax
lea ebx, [edi + 0xc]
lea eax, [esp + 0x20]
call fcn.0042dba0
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], ecx
je 0x42427d
cmp eax, ebx
je 0x424286
call fcn.004ec14b
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x18]
je 0x4242da
test eax, eax
jne 0x42429d
call fcn.004ec14b
mov eax, dword [esp + 0xc]
cmp ebx, dword [eax + 4]
jne 0x4242a7
call fcn.004ec14b
xor eax, eax
push 0xffffffffffffffff
push eax
add ebx, 0x28
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
push ebx
mov ecx, esi
mov word [esi + 4], ax
call fcn.00403310
cmp dword [esp + 0x34], 8
jb 0x42436c
mov edx, dword [esp + 0x20]
push edx
jmp 0x424364
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
mov ebx, edi
call fcn.0042dba0
mov ebx, dword [eax]
test ebx, ebx
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
je 0x424302
cmp ebx, edi
je 0x424307
call fcn.004ec14b
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], eax
jne 0x42431f
push 0x547f9c
mov ecx, esi
call fcn.00401e30
jmp 0x424358
test ebx, ebx
jne 0x424328
call fcn.004ec14b
mov edx, dword [esp + 0x10]
cmp edx, dword [ebx + 4]
jne 0x424336
call fcn.004ec14b
xor eax, eax
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
mov eax, dword [esp + 0x18]
add eax, 0x28
push eax
mov ecx, esi
call fcn.00403310
cmp dword [esp + 0x34], 8
jb 0x42436c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004aaa59
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret 4
Function at 0x436e30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
mov ebx, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
cmp eax, 0xffffffff
push edi
mov dword [esp + 0xc], 0
je 0x436eb1
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
je 0x436eb1
cmp dword [esp + 0xc], 4
jne 0x436eb1
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x436e83
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
mov eax, dword [esi + 8]
test eax, eax
mov esi, edx
je 0x436eb1
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x436eb1
push 0
lea ebx, [esp + 0x10]
push ebx
push edx
push eax
push ecx
call edi
test eax, eax
je 0x436eb1
mov eax, dword [esp + 0xc]
cmp esi, eax
jne 0x436eb1
cmp eax, dword [esp + 0x10]
je 0x436e7a
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret

Function at 0x43bac0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x43bacc
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43baef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43baef
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.004f4500
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret

Function at 0x43d6d0
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x43d6df
mov eax, dword [eax + 4]
jmp 0x43d6e2
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x43d6f8
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
Function at 0x43d710
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x52a218
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, 8
cmp dword [esi + 0x18], ebp
lea edi, [esi + 4]
jb 0x43d751
mov ecx, dword [edi]
jmp 0x43d753
mov ecx, edi
cmp dword [ebx + 0x18], ebp
jb 0x43d75d
mov eax, dword [ebx + 4]
jmp 0x43d760
lea eax, [ebx + 4]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43d7e8
cmp dword [esi + 0x18], ebp
jb 0x43d775
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d80a
xor edi, edi
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00403310
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.0043dff0
test al, al
je 0x43d7f7
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.0043d6d0
test al, al
je 0x43d7f7
mov eax, esi
mov ecx, ebx
call fcn.0043d6d0
test al, al
je 0x43d7ec
lea eax, [esp + 0x10]
push eax
call fcn.0043d8a0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401e70
mov al, 1
jmp 0x43d80c
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0043d6d0
cmp dword [esp + 0x28], ebp
jb 0x43d80a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004aaa59
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ead41
add esp, 0x30
ret

Function at 0x43d8a0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea edi, [ebp + 4]
jb 0x43d8b7
mov edx, dword [edi]
jmp 0x43d8b9
mov edx, edi
push ebx
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43d8d2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402af0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x43d8ff
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esp + 0x28], esi
jb 0x43d91f
mov eax, dword [esp + 0x14]
push eax
call fcn.004aaa59
add esp, 4
test bl, bl
pop ebx
je 0x43d92d
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x43d947
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
Function at 0x43de00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
mov edi, ecx
call fcn.00401ed0
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004ec1b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call esi
test eax, eax
jne 0x43de61
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004ead41
add esp, 0x420
ret
cmp eax, 0x208
jae 0x43de48
lea ecx, [esp + 8]
push ecx
push 0x209
call esi
test eax, eax
je 0x43de48
cmp eax, 0x208
jae 0x43de48
lea edx, [esp + 8]
push edx
mov ecx, edi
mov word [esp + 0x41c], 0
call fcn.00401ea0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004ead41
add esp, 0x420
ret
Function at 0x43dff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52a1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor ebp, ebp
push 0xffffffffffffffff
mov esi, ecx
push ebp
mov edi, 7
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
call fcn.00403310
lea eax, [esp + 0x54]
push esi
push eax
mov dword [esp + 0xa0], ebp
call fcn.004076e0
add esp, 8
mov byte [esp + 0x98], 1
mov ecx, dword [esp + 0x68]
cmp ecx, ebp
je 0x43e0bd
mov eax, dword [esp + 0x84]
sub eax, ecx
lea ecx, [esp + 0x70]
push ecx
lea esi, [esp + 0x20]
call fcn.00404d20
add esp, 4
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 2
call fcn.00403310
cmp dword [esp + 0x34], 8
jb 0x43e0bd
mov edx, dword [esp + 0x20]
push edx
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
mov esi, 1
push esi
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x58]
lea edi, [esp + 0x74]
mov byte [esp + 0x9c], 3
call fcn.0043e220
add esp, 4
test al, al
je 0x43e118
add esi, 1
cmp esi, 0x100000
jg 0x43e1b0
push esi
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x58]
lea edi, [esp + 0x74]
call fcn.0043e220
add esp, 4
test al, al
jne 0x43e0f0
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x40]
push eax
call fcn.00403310
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x43e141
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0x6c], esi
mov edi, 7
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
jb 0x43e166
mov edx, dword [esp + 0x58]
push edx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
jb 0x43e189
mov eax, dword [esp + 0x74]
push eax
call fcn.004aaa59
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004ead41
add esp, 0x88
ret
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x43e1c8
mov eax, dword [esp + 0x3c]
push eax
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0x6c], esi
mov edi, 7
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
jb 0x43e1ed
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
jb 0x43e210
mov edx, dword [esp + 0x74]
push edx
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x43e18b
Function at 0x43e220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x4c
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004045d0
add esp, 8
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00403310
push 1
push 0x54de50
mov ecx, esi
call fcn.004084e0
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e265
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004084e0
push 1
push 0x54de54
mov ecx, esi
call fcn.004084e0
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.004083d0
cmp dword [esi + 0x18], 8
jb 0x43e2a6
mov esi, dword [esi + 4]
jmp 0x43e2a9
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.004ead41
add esp, 0x4c
ret
Function at 0x441310
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x441367
cmp byte [ebp + 0x2c], 0
jne 0x44135e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441340
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.00444ea0
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x441381
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x441370
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.004ebb5b
push ebx
call fcn.004f081d
push 0
push 0
push ebx
mov edi, eax
call fcn.004ebb5b
add esp, 0x1c
test edi, edi
jg 0x4413de
cmp byte [ebp + 0x2c], 0
jne 0x44135e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xc
mov ebx, dword [str.Error_document_empty.]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4413d0
jmp 0x441349
lea eax, [edi + 1]
push eax
call fcn.004aaa2e
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.004f066a
add esp, 0x14
cmp eax, 1
je 0x441435
push esi
call fcn.004aaa59
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x44135e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441427
jmp 0x441349
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x441466
mov dl, byte [eax]
cmp dl, 0xd
jne 0x441459
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x441461
jmp 0x44145e
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x441442
push 0
mov byte [ecx], 0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call eax
push esi
call fcn.004aaa59
add esp, 4
pop edi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop esi
pop ebp
sete al
pop ebx
ret 4
Function at 0x445430
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
jne 0x445442
or eax, 0xffffffff
add esp, 8
ret 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x445439
mov edx, dword [esp + 4]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esi + 4]
mov ecx, dword [esp + 4]
je 0x4454d1
mov edx, ecx
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x44548a
fadd qword [0x54eb80]
mov edx, eax
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x44549e
fadd qword [0x54eb80]
fdivp st(1)
mov edx, dword [esi + 0xc]
test edx, edx
fstp qword [esi + 0x10]
fild dword [esi + 0xc]
jge 0x4454b3
fadd qword [0x54eb80]
mov edx, eax
sub edx, dword [esi]
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x4454c9
fadd qword [0x54eb80]
fdivp st(1)
mov dword [esi + 4], eax
fstp qword [esi + 0x18]
mov eax, ecx
add esp, 8
ret 4