joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0063
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d9858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a00a9
cmp word [ebx], dx
jne 0x4a00a9
or byte [eax + edi + 0x28], 4
jmp 0x4a00ae
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4a0211
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4a01f1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4a00ef
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a0125
cmp eax, edx
jae 0x4a0133
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4a00ca
jmp 0x4a0211
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a01ec
cmp dword [ebp - 0x18], 0
je 0x4a01ec
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d9858]
test byte [eax + edi + 0x28], 0x48
je 0x4a01c2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4a0186
mov word [esi], cx
jmp 0x4a01bd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d9858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d9858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d9858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4a0211
pop eax
cmp word [ebp - 4], ax
jne 0x4a01d2
cmp esi, ebx
jne 0x4a01d2
mov word [esi], ax
jmp 0x4a020e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a0211
push 0xd
pop eax
jmp 0x4a01cd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d9858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4a020b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4a0211
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a3df7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a3e42
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a42af
test al, al
jne 0x4a3e3c
sub edx, 2
cmp edx, edi
jne 0x4a3e22
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a3e64
lea eax, [edi + 2]
cmp edx, eax
je 0x4a3e64
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a39f0
add esp, 0x10
jmp 0x4a3f5e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a42af
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3ea7
push dword [ebp - 0x25c]
jmp 0x4a3e54
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a3ee4
cmp word [ebp - 0x226], 0
je 0x4a3f05
cmp word [ebp - 0x226], ax
jne 0x4a3ee4
cmp word [ebp - 0x224], 0
je 0x4a3f05
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a39f0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a3f51
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a3ebe
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a3f39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a3f5e
push 0x4a33d8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405556
add esp, 0x10
jmp 0x4a3f2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403076
leave
ret

Function at 0x4a98c0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404304
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a992f
cmp esi, dword [ebp - 4]
je 0x4a992a
cmp dword [ebp + 0xc], 0
je 0x4a992a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a9907
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a92e8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a9931
xor eax, eax
inc eax
jmp 0x4a9931
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x402000
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x422606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CMenu.0
mov dword [edi + 4], ebp
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0041a2f7
lea ecx, [edi + 0x20]
mov byte [esp + 0x24], 1
call fcn.0041a2f7
mov byte [esp + 0x24], 2
mov dword [edi], method.CMenu.virtual_0
call fcn.00409bd0
mov ebx, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], vtable.CMenu.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.0041e8d4
mov eax, dword [esp + 0x2c]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402087
push 0x1e
jmp 0x402089
push 0xf
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
call esi
push 0x1e
mov dword [0x43008c], eax
mov dword [0x430070], 0xcc8b34
mov dword [0x430088], 0xfcfbf9
call esi
push 7
mov dword [0x430084], eax
call esi
push 0x11
mov dword [0x430080], eax
call esi
push 4
mov dword [0x43007c], eax
mov dword [0x430078], 0xccc3b7
mov dword [0x430074], 0xcc8b34
call esi
mov dword [0x43006c], eax
mov eax, 0x10
mov ecx, eax
mov dword [0x430060], eax
mov eax, 3
mov dword [0x430064], ecx
mov ecx, eax
mov dword [0x430058], eax
mov eax, 5
cmp ebx, ebp
mov dword [0x430068], ebp
mov dword [0x43005c], ecx
mov dword [0x430050], eax
mov dword [0x430054], ecx
je 0x40215b
push 7
call esi
push 0x11
mov dword [0x430080], eax
call esi
push 4
mov dword [0x43007c], eax
call esi
push 4
mov dword [0x430088], eax
call esi
push 0x14
mov dword [0x42c66c], eax
call esi
push 7
mov dword [0x430074], eax
mov dword [0x430070], eax
call esi
mov dword [0x430078], eax
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
mov dword [0x430080], ebp
pop esi
pop ebp
mov dword [0x43007c], 0x7f7f7f
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x403060
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40308e
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x403be0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x422788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42eadc]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
call fcn.00403490
mov edx, dword [esp + 0x20]
mov si, word [eax + edx*2]
cmp si, 0x44
jb 0x403c5f
cmp si, 0x5a
ja 0x403c5f
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
test ebx, eax
jne 0x403c5f
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e481
mov ax, si
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, 1
mov edi, 0x41
cmp di, 0x43
jbe 0x403c73
test ebx, eax
je 0x403ca2
inc edi
shl eax, 1
cmp di, 0x5a
jbe 0x403c69
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e481
pop edi
pop esi
xor ax, ax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
cmp si, 0x41
je 0x403cea
cmp di, si
je 0x403cea
mov ecx, edi
and esi, 0xffff
and ecx, 0xffff
push ecx
push esi
push edx
push str.Drive__d_r_n_r_nThe_drive_letter___C:__is_already_in_use._PowerISO_will_use___C:__for_this_drive.
push 0xab
call fcn.00407170
add esp, 8
lea edx, [esp + 0x18]
push eax
push edx
call fcn.0041a20d
mov eax, dword [esp + 0x20]
push 0x40
push eax
call fcn.00409530
add esp, 0x1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e481
mov ecx, dword [esp + 0x10]
mov ax, di
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4045b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42282b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x42d018]
mov cx, word [0x42d01c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x32]
mov dword [esp + 0x14], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
call fcn.00403150
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x154], 0
push edx
call fcn.00404560
lea eax, [esp + 0xd0]
push str.DeviceSCDEmuSCDEmuCd
push eax
call fcn.0040ddd1
lea ecx, [esp + 0xd8]
push ecx
call fcn.0040d9e8
add esp, 0x10
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, 0x41
mov dword [esp + 0x28], eax
mov ebp, ebx
cmp bx, 0x43
jbe 0x404719
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
test edx, eax
je 0x404719
lea eax, [esp + 0x4c]
push 0x40
lea ecx, [esp + 0x30]
push eax
push ecx
mov word [esp + 0x38], bx
call dword [0x42ff08]
test eax, eax
jle 0x404719
cmp eax, 0x3f
jge 0x404719
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x4c]
lea esi, [esp + 0xcc]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x404719
lea eax, [esp + 0x4c]
push eax
call fcn.0040d9e8
mov edx, dword [esp + 0x14]
add esp, 4
sub eax, edx
cmp eax, 1
je 0x4046c7
cmp eax, 2
jne 0x404719
mov ecx, dword [esp + 0x10]
lea edx, [esp + ecx*2 + 0x4c]
push edx
call fcn.0040de40
mov edi, eax
add esp, 4
test edi, edi
jl 0x404719
cmp edi, 0x17
jge 0x404719
push 0x30
call fcn.00402ed0
mov esi, eax
add esp, 4
test esi, esi
je 0x404719
push ebp
lea eax, [esi + 0xc]
push str.._c:
push eax
mov dword [esi + 0x2c], edi
call fcn.0040ddd1
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esi + 8], 0
push esi
call fcn.004031c0
mov ecx, dword [esp + 0x14]
inc ebx
inc ebp
shl ecx, 1
cmp bx, 0x5a
mov dword [esp + 0x14], ecx
jbe 0x404653
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.00403240
test eax, eax
jle 0x404796
lea ecx, [esp + 0x18]
xor esi, esi
call fcn.00403240
test eax, eax
jle 0x404783
push esi
lea ecx, [esp + 0x1c]
call fcn.00403200
cmp dword [eax + 0x2c], edi
jle 0x40476c
lea ecx, [esp + 0x18]
inc esi
call fcn.00403240
cmp esi, eax
jl 0x40474d
jmp 0x404783
mov ecx, dword [esp + 0x15c]
push eax
call fcn.004031c0
push esi
lea ecx, [esp + 0x1c]
call fcn.004032c0
inc edi
cmp edi, 0x17
jge 0x404796
lea ecx, [esp + 0x18]
call fcn.00403240
test eax, eax
jg 0x40473e
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], 0xffffffff
call fcn.00403190
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x405980
Capabilities:
Unmount volume via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x42293b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
xor esi, esi
push ebx
mov ecx, ebp
mov dword [esp + 0x1c], esi
call fcn.00403200
mov edi, eax
test edi, edi
je 0x405b2e
push edi
call fcn.004044f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x405a68
push 0x430048
lea ecx, [esp + 0x18]
call fcn.0041e4f5
mov dword [esp + 0x324], esi
call fcn.00403ab0
test eax, eax
je 0x405a4f
mov eax, dword [0x42d510]
test eax, eax
je 0x405a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x405a4f
push esi
call fcn.00402f10
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call fcn.00404be0
mov ecx, dword [esp + 0x24]
push 0x430048
push ecx
call fcn.0040e0e0
add esp, 0x18
test eax, eax
je 0x405a4f
push ebx
lea edx, [esp + 0x20]
push str._ii1__vunmount__d
push edx
call fcn.0040ddd1
lea eax, [esp + 0x28]
push eax
call fcn.00409aa0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x324], 0xffffffff
call fcn.0041e481
jmp 0x405b2e
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0
push 0
push 0
push 0x80002004
push esi
call ebx
test eax, eax
push 0
jne 0x405ab9
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call ebx
jmp 0x405b2e
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call ebx
mov eax, dword [edi + 0x2c]
lea ecx, [esp + 0x11c]
push eax
push str.ImageName
push str._s_d
push ecx
call fcn.0040ddd1
push str.SoftwarePowerISOSCDEmu_
lea edx, [esp + 0x130]
push 0x430048
push edx
call fcn.004036a0
mov ax, word [edi + 0x14]
push 0
push eax
call fcn.00405d70
add esp, 0x24
mov dword [esp + 0x18], 1
push esi
call fcn.00402f10
mov ecx, dword [esp + 0x320]
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x406470
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0xa48
push ebx
push esi
push edi
xor esi, esi
call fcn.00405dd0
mov ebx, eax
call fcn.00403330
mov edi, eax
cmp word [edi], si
je 0x40666f
push edi
call fcn.0040d9e8
push 0x42d570
mov esi, eax
call fcn.0040d9e8
add esi, eax
lea eax, [esi + esi + 0x80]
push eax
call fcn.00402ed0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40666f
push ebp
push edi
push esi
call fcn.0040ddac
push 0x42c740
push esi
call fcn.0040dd82
push 0x42d570
push esi
call fcn.0040dd82
push str.__startup
push esi
call fcn.0040dd82
add esp, 0x20
call fcn.00403ab0
mov ebp, dword [0x42fe64]
test eax, eax
je 0x40659d
mov edx, dword [0x4310f8]
mov ecx, 0x280
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
or edx, 0x20019
push ecx
push edx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push 0x80000002
call ebp
test eax, eax
jne 0x406577
lea eax, [esp + 0x18]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0x42d570
push eax
mov dword [esp + 0x30], 0x800
call dword [0x42fe6c]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x406570
cmp dword [esp + 0x14], 1
je 0x406577
mov word [esp + 0x58], 0
test bl, 1
je 0x40659d
lea edx, [esp + 0x58]
push esi
push edx
call fcn.0040e252
add esp, 8
test eax, eax
je 0x40659d
push str._ii1__vset_autorun
call fcn.00409aa0
add esp, 4
jmp 0x406606
mov ecx, dword [0x4310f8]
lea eax, [esp + 0x10]
or ecx, 0x20006
push eax
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push 0x80000002
call ebp
test eax, eax
jne 0x406606
test bl, 1
je 0x4065eb
push esi
call fcn.0040d9e8
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push 0x42d570
push eax
call dword [0x42fe70]
jmp 0x4065fb
mov ecx, dword [esp + 0x10]
push 0x42d570
push ecx
call dword [0x42fe5c]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SCDEMUAPP_C2C80BFA_WNDCLASS
call dword [0x42ff68]
test bl, 1
pop ebp
je 0x40666f
test eax, eax
jne 0x40666f
mov ecx, 0xf
lea edi, [esp + 0x18]
push 0x20
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x2c], str.open
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], 1
call fcn.0040d9a8
add esp, 8
test eax, eax
je 0x406660
mov word [eax], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], esi
push eax
call dword [0x42ff3c]
push esi
call fcn.00402f00
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0xa48
ret
Function at 0x406a30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
xor ebp, ebp
call dword [0x42fea4]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406a5e
xor ebx, ebx
jmp 0x406ac8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jle 0x406ac8
cmp esi, 0x200000
jge 0x406ac8
push esi
call fcn.0040d8d4
mov edi, eax
add esp, 4
test edi, edi
je 0x406ac8
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406ac8
push esi
push edi
call fcn.00406690
add esp, 8
test eax, eax
je 0x406ac8
push 0x210
call fcn.00402ed0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406ac8
push esi
push edi
push ebp
call fcn.00406720
add esp, 0xc
test eax, eax
jne 0x406ad3
push ebp
call fcn.00402f00
add esp, 4
xor ebp, ebp
push edi
call fcn.00402f00
push ebx
call fcn.00402f10
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4073de
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4229f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42eadc]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 8]
mov dword [ecx], eax
mov edx, dword [0x42eadc]
lea ebx, [esi + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], edx
mov al, byte [esp + 0xf]
mov dword [esi + 0x38], edi
mov byte [esi + 0x34], al
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
push 0x430048
mov byte [esp + 0x20], 2
mov dword [esi], 0x4247c0
mov dword [esi + 0x61acc], edi
mov dword [esi + 0x61ac8], edi
mov dword [esi + 0x61ac4], edi
call fcn.0041e5cd
push 0x430048
mov ecx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.0041e5cd
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407570
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push 0x430048
push 0x430048
push 0
mov esi, ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x61ac4], eax
jne 0x40759a
pop esi
ret 0x14
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0x4400000
push 3
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x61ac8], eax
jne 0x4075f5
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Failed_to_connect_to_the_server.
call fcn.0041e4f5
mov ecx, esi
call fcn.00407560
mov eax, dword [esi + 0x61ac4]
push eax
call fcn.00402f10
add esp, 4
xor eax, eax
pop esi
ret 0x14
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40763a
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Failed_to_connect_to_the_server.
call fcn.0041e4f5
mov ecx, esi
call fcn.00407560
mov ecx, dword [esi + 0x61ac8]
push ecx
call fcn.00402f10
mov edx, dword [esi + 0x61ac4]
push edx
call fcn.00402f10
add esp, 8
xor eax, eax
pop esi
ret 0x14
mov eax, 1
pop esi
ret 0x14

Function at 0x4078a0
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0x108
push esi
push edi
push 0
lea eax, [esp + 0xc]
mov esi, ecx
push 0x4400000
mov ecx, dword [esp + 0x11c]
push eax
mov edx, dword [esi + 0x61ac8]
push 0x430048
push str.HTTP_1.0
push ecx
push 0x42dac4
push edx
mov dword [esp + 0x28], 0x42dabc
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x61acc], eax
jne 0x4078ff
pop edi
pop esi
add esp, 0x108
ret 0x14
push 0x80000000
push str.Accept:___r_n
call fcn.0040d9e8
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
add esp, 4
push eax
mov eax, dword [esi + 0x61acc]
push str.Accept:___r_n
push eax
call edi
test eax, eax
jne 0x40793e
mov ecx, esi
call fcn.00407510
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret 0x14
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4079a2
push ecx
push eax
lea eax, [esp + 0x18]
push str.Range:_bytes_I64d_r_n
push eax
call fcn.0040ddd1
add esp, 0x10
lea ecx, [esp + 0x10]
push 0xa0000000
push ecx
call fcn.0040d9e8
add esp, 4
lea edx, [esp + 0x14]
push eax
mov eax, dword [esi + 0x61acc]
push edx
push eax
call edi
test eax, eax
jne 0x4079a2
mov ecx, esi
call fcn.00407510
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret 0x14
mov ecx, dword [esi + 0x61acc]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x108
ret 0x14