joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f914
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40
push dword [esp + 0x20]
mov ebx, 0x645280
push ebx
mov esi, eax
call fcn.0046fbb5
push 0x40
push ebx
push ebx
mov eax, 0x5d4a08
call fcn.0046fb3e
add esp, 0x18
cmp byte [esp + 0x20], 0
mov ebp, 0x645a20
jne 0x46f99d
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0x10
push 8
pop ecx
push dword [esp + 0x20]
mov esi, 0x6452a0
mov edi, ebp
push 0x6452a0
rep movsd dword es:[edi], dword [esi]
call fcn.0046fa99
pop ecx
pop ecx
xor esi, esi
lea eax, [esi + 0x6452a0]
mov cl, byte [eax - 0x20]
xor byte [eax], cl
inc esi
cmp esi, 0x20
jl 0x46f973
add dword [esp + 0x20], 0x30
dec dword [esp + 0x10]
push 8
pop ecx
mov esi, ebp
mov edi, 0x645280
rep movsd dword es:[edi], dword [esi]
jne 0x46f955
jmp 0x46f9f6
add esi, 0x2d0
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x20], esi
push 8
pop ecx
push dword [esp + 0x20]
mov esi, 0x645280
mov edi, ebp
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0046fa99
pop ecx
pop ecx
xor esi, esi
lea eax, [esi + 0x645280]
mov cl, byte [eax + 0x20]
xor byte [eax], cl
inc esi
cmp esi, 0x20
jl 0x46f9c9
dec dword [esp + 0x10]
sub dword [esp + 0x20], 0x30
cmp dword [esp + 0x10], 0
push 8
pop ecx
mov esi, ebp
mov edi, 0x6452a0
rep movsd dword es:[edi], dword [esi]
jge 0x46f9af
push 0x40
push ebx
push ebx
mov eax, 0x5d4a48
call fcn.0046fb3e
mov ebp, dword [esp + 0x24]
xor eax, eax
mov edi, ebp
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor eax, eax
mov dl, byte [eax + 0x645280]
mov ecx, eax
sar ecx, 3
lea esi, [ecx + ebp]
mov ecx, eax
and ecx, 7
shl dl, cl
or byte [esi], dl
inc eax
cmp eax, 0x40
jl 0x46fa13
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46fa36
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push dword [esp + 0x1c]
mov esi, 0x645240
push esi
call fcn.0046fbb5
push 0x38
push esi
push esi
mov eax, str.91__
call fcn.0046fb3e
mov ebp, dword [esp + 0x2c]
add esp, 0x18
xor edi, edi
movsx ebx, byte [edi + 0x5d4b40]
mov eax, esi
call fcn.0046fb81
mov eax, 0x64525c
call fcn.0046fb81
push 0x30
push esi
push ebp
mov eax, 0x5d4b10
call fcn.0046fb3e
add esp, 0xc
inc edi
add ebp, 0x30
cmp edi, 0x10
jl 0x46fa62
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46fa99
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x30
push ebx
mov esi, 0x6459f0
push esi
mov eax, 0x5d4a88
call fcn.0046fb3e
mov edi, dword [ebp + 0xc]
add esp, 0xc
xor ecx, ecx
sub edi, esi
lea eax, [ecx + 0x6459f0]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jl 0x46fac0
mov esi, 0x6459f2
xor edi, edi
mov dword [ebp - 4], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
shl ecx, 4
push 4
lea eax, [eax + ecx + 0x5d4b50]
push eax
push ebx
call fcn.0046fbb5
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 4]
jne 0x46fadf
push 0x20
push dword [ebp + 8]
mov eax, 0x5d4ab8
push dword [ebp + 8]
call fcn.0046fb3e
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46fbe4
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
mov eax, dword [esi]
cmp eax, ebp
jne 0x46fc1a
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x46fc43
push dword [esp + 0x14]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x46fc3a
mov dword [esp + 0xc], 1
jmp 0x46fc43
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x46fe2f
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor ebx, ebx
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46fea5
cmp esi, ebx
je 0x46fea5
push 0x5dec58
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ebp - 0x70], ebx
call fcn.0059308d
add esp, 0xc
test eax, eax
jne 0x46ff7f
lea eax, [ebp - 0x74]
push eax
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
call fcn.0046fbe4
pop ecx
test eax, eax
jne 0x46febf
push dword [ebp - 0x70]
call fcn.00593912
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x59c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x5a0
leave
ret
push 0x3ff
lea eax, [ebp - 0x6b]
push ebx
xor edi, edi
push eax
inc edi
mov byte [ebp - 0x6c], bl
call fcn.00596530
push dword [ebp - 0x70]
mov esi, 0x400
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0059369a
add esp, 0x1c
jmp 0x46ff14
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.0046fc4c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x46ff18
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push esi
push 1
push eax
call fcn.0059369a
add esp, 0x10
cmp eax, ebx
jne 0x46feec
xor eax, eax
push 0x206
mov word [ebp + 0x394], ax
lea eax, [ebp + 0x396]
push ebx
push eax
call fcn.00596530
add esp, 0xc
cmp edi, ebx
je 0x46ff69
push dword [ebp - 0x74]
lea edi, [ebp + 0x394]
call fcn.0046fc71
pop ecx
test eax, eax
je 0x46ff69
mov eax, edi
push eax
push 0x5db9e0
push 0x3f
push dword [ebp - 0x80]
call fcn.0058f42f
add esp, 0x10
mov dword [ebp - 0x78], 1
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
call fcn.0046fd35
push dword [ebp - 0x70]
call fcn.00593912
add esp, 0xc
mov eax, dword [ebp - 0x78]
jmp 0x46fea7

Function at 0x46ffa6
Capabilities:
Check if file exists
Set file attributes

Disassembly:
mov eax, esi
call fcn.00470045
xor eax, eax
cmp dword [esp + 4], eax
je 0x46ffdf
push dword [esp + 4]
mov ecx, 0x104
mov edx, esi
call fcn.004054f9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ffdc
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
inc eax
ret 4

Function at 0x46ffe2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x208]
cmp dword [esi], 0
je 0x470005
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470005
xor eax, eax
inc eax
jmp 0x47003f
lea eax, [ebp - 4]
push edi
push eax
call fcn.0047f493
mov edi, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 8], eax
push 0
setne al
lea eax, [eax*4 + 2]
push eax
push esi
push edi
call sym.hao123Juzi.exe_sqlite3_open_v2
mov esi, eax
add esp, 0x18
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
call fcn.00407b6b
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x470070
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x5bbc04
call fcn.00598f2b
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470096
mov eax, esi
jmp 0x470119
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.0046ffe2
test eax, eax
je 0x470116
mov eax, str.PRAGMA_quick_check_1__
cmp dword [ebp + 0xc], ebx
jne 0x4700b4
mov eax, str.PRAGMA_integrity_check_1__
push eax
push dword [ebp + 8]
call fcn.0047016d
mov esi, eax
cmp esi, ebx
je 0x470116
push esi
call fcn.004701be
test eax, eax
je 0x470110
mov eax, dword [0x63696c]
mov ecx, 0x63696c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
push ebx
lea edi, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00470212
mov edi, dword [ebp + 8]
cmp eax, ebx
je 0x470108
push 0x5ecf6c
push edi
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
jne 0x470108
mov dword [ebp - 0x10], ebx
lea eax, [edi - 0x10]
call fcn.00407b6b
push esi
call fcn.004701db
mov eax, dword [ebp - 0x10]
call fcn.00599003
ret 8

Function at 0x470695
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00596530
push 0x2454
push 0
push esi
call fcn.00596530
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x470719
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp + 0xc]
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x470772
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x47074e
cmp eax, 4
je 0x47074e
cmp eax, 1
jne 0x470772
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x470776
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x47078b
xor eax, eax
jmp 0x470823
mov edi, str.MetalinkFile
lea eax, [esi + 0x5d558]
push edi
push eax
call fcn.0058fdd9
pop ecx
pop ecx
cmp eax, ebx
je 0x4707cb
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
cmp di, bx
jne 0x4707ad
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
call fcn.00593d26
pop ecx
mov dword [esi + 0x2698], eax
mov ecx, esi
call fcn.00474e6b
test eax, eax
je 0x470784
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, ebx
je 0x470820
mov dword [ebp - 4], ebx
mov dword [esi + 0x5d120], 8
cmp dword [esi + 0x2480], ebx
jne 0x47081a
lea eax, [ebp - 4]
push eax
push ebx
push esi
push fcn.00470b53
push ebx
push ebx
call fcn.005905f0
add esp, 0x18
mov dword [esi + 0xc], eax
jmp 0x470820
push esi
call fcn.00470b53
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x4717c9
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x26ec]
call fcn.004750c1
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 2
cmp dword [eax + 4], edi
je 0x471840
cmp dword [ebx + 0x2484], 0
je 0x47182d
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [ebx + 0x2488]
push dword [ebx + 0x2484]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x471831
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x471866
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x471864
jmp 0x47182d
cmp dword [esi], 0
jne 0x471851
mov eax, dword [esi + 4]
test eax, eax
je 0x471851
mov dword [esi + 0x18], eax
jmp 0x47182d
mov eax, dword [ebp + 8]
and dword [esi + 0x28], 0
push edi
mov ecx, ebx
call fcn.00472f5b
test eax, eax
jne 0x47182d
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x4721c5
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
lea esi, [ebx + 0x26ec]
call fcn.004750c1
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x47223b
cmp dword [ebx + 0x2484], 0
je 0x47226a
push dword [esi + 0xc]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x2488]
push dword [ebx + 0x2484]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x472229
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x47226a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x47226d
cmp dword [esi], 0
jne 0x47224c
mov eax, dword [esi + 4]
test eax, eax
je 0x47224c
mov dword [esi + 0x18], eax
jmp 0x47226a
push 1
mov eax, edi
mov ecx, ebx
mov dword [esi + 0x28], 4
call fcn.00472f5b
test eax, eax
jne 0x47226a
push edi
mov eax, ebx
call fcn.004729c8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x47254b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
add esi, 0x26ec
call fcn.004750c1
mov esi, dword [eax]
push 0xa
lea edx, [esi + 0x8044]
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x8000
push edi
push eax
lea ebx, [esi + 0x40]
push ebx
mov dword [edx], 0x28
call fcn.00596530
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0xc
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test eax, eax
je 0x4725d8
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
test eax, eax
jb 0x4725d1
ja 0x4725cb
cmp ecx, edi
jbe 0x4725d1
and dword [ebp - 4], 0
jmp 0x472611
mov edi, ecx
mov dword [ebp - 4], eax
jmp 0x472611
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d128]
mov ecx, dword [edx + 0x5d12c]
cmp eax, 0xffffffff
jne 0x4725f0
cmp ecx, eax
je 0x472613
sub eax, dword [edx + 0x5d138]
sbb ecx, dword [edx + 0x5d13c]
test ecx, ecx
jb 0x47260c
ja 0x472606
cmp eax, edi
jbe 0x47260c
and dword [ebp - 4], 0
jmp 0x472611
mov edi, eax
mov dword [ebp - 4], ecx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x472672
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x472651
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x47266b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x47264d
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004729c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x472640
Function at 0x472d81
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.005a41d0
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], 0x5ed01c
cmp dword [edi + 0x2484], ebx
je 0x472dc0
mov dword [ebp - 0x1010], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x1006]
push ebx
push eax
mov dword [ebp - 0x100c], ebx
mov dword [ebp - 0x1020], 0x5ed030
mov dword [ebp - 0x101c], ebx
call fcn.00596530
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x5def50
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
call fcn.0058f42f
add esp, 0x14
mov eax, 0x8400c300
cmp dword [edi + 0x62ee4], ebx
je 0x472e2d
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x472e3b
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x1020]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x472f47
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x1010]
push ecx
push 2
push eax
mov dword [ebp - 0x1010], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1018]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1018], 1
call edi
push 0xa
mov dword [ebp - 0x100c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1048], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.0058e040
mov edi, eax
pop ecx
cmp edi, ebx
je 0x472f22
push 0xa2d0
push ebx
push edi
call fcn.00596530
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push dword [ebp - 0x100c]
mov edx, esi
push edi
call fcn.00473029
mov eax, edi
mov dword [ebp - 0x1040], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x472f0e
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x103c], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1048]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x100c], eax
cmp edi, ebx
je 0x472f47
push edi
call fcn.0058f807
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x473902
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x473926
xor eax, eax
inc eax
jmp 0x473a8d
lea ebx, [edi + 0x5d148]
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push esi
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x473a8b
mov ecx, dword [edi + 0x5d128]
mov eax, dword [edi + 0x5d12c]
cmp ecx, 0xffffffff
jne 0x473981
cmp eax, ecx
je 0x4739a0
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x4739a0
jb 0x473991
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x4739a0
mov dword [edi + 0x2470], 2
jmp 0x473a8b
push esi
push 0x20
push 4
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x473a75
cmp dword [edi + 0x271c], esi
je 0x47391e
lea ebx, [edi + 0x2704]
mov eax, ebx
call fcn.0047503a
call fcn.00473d15
test eax, eax
jne 0x47391e
lea eax, [edi + 0x2468]
cmp dword [eax], esi
ja 0x4739f6
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x4739ff
mov dword [eax], ecx
mov eax, dword [edi + 0x5d128]
mov ecx, dword [edi + 0x5d12c]
add eax, 0xffffffff
mov dword [edi + 0x5cff0], eax
lea eax, [edi + 0x5cfe0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
adc ecx, 0xffffffff
push eax
mov eax, ebx
mov dword [edi + 0x5cfe8], esi
mov dword [edi + 0x5cfec], esi
mov dword [edi + 0x5cff4], ecx
call fcn.0047b54d
mov eax, dword [edi + 0x5d128]
mov edx, dword [edi + 0x5d12c]
mov cl, 0x20
call fcn.005b0510
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x5d128]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x47391e
mov dword [edi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2474], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x473b46
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call fcn.00596530
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0xb6
push ebx
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x7c], ebx
jne 0x473c29
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x78]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x473be1
test cx, cx
je 0x473bdd
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x473be1
add eax, 4
add edx, 4
test cx, cx
jne 0x473bbb
xor eax, eax
jmp 0x473be6
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x473c29
push 1
push ebx
push 0xffffff46
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x80]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x194
leave
ret

Function at 0x473c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
xor ebx, ebx
lea esi, [edi + 0x2704]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push ebx
push ebx
push dword [edi + 8]
sar eax, 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], ebx
je 0x473d05
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 4], 0
sar eax, 2
mov dword [ebp - 0x10], 4
test eax, eax
jbe 0x473cd9
mov edi, dword [ebp - 4]
call fcn.004750c1
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add dword [ebp - 0x10], 0x20
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jb 0x473ca7
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xb6
push str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
push dword [edi + 8]
call ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret 4