joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7360
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3428
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x61ce74]
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, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4e7397
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4e74f4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e73b1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e74f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e74f4
push esi
lea ecx, [ebp - 0x28]
call fcn.00439650
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4e7423
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4e741d
lea ebx, [ebx]
cmp ecx, edx
je 0x4e7423
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4e7410
sub ecx, edx
sar ecx, 1
jmp 0x4e7426
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x4e7444
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x4e74b4
xor eax, eax
mov dword [ebp - 0x30], 0
cmp ebx, ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00439df0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b730
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4e74b4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e74aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e7520
push edx
push ecx
call fcn.0053d0af
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x4e7514
lea eax, [ebp - 0x28]
push eax
call fcn.004e7360
add esp, 4
test eax, eax
je 0x4e7514
cmp dword [esi + 0x14], 8
jb 0x4e74d2
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e74ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e7514
lea ecx, [ebp - 0x28]
call fcn.00430d50
mov eax, 1
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.0053d079
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00430d50
xor eax, eax
jmp 0x4e74f9
call fcn.0054b0c3
int3
Function at 0x4e8f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004eac20
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x4e8fc3
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e8fc3
test al, 0x10
je 0x4e8fc3
mov bl, 1
jmp 0x4e8fc5
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4e8ffb
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e8ff1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e900c
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
int3

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

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x4e9a61
cmp dword [ecx + 0x14], 8
jb 0x4e9a4e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e9a61
test al, 0x10
je 0x4e9a61
mov al, 1
ret
xor al, al
ret
Function at 0x4ea3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3978
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x4ea591
mov esi, dword [ebp + 0xc]
jg 0x4ea44d
test esi, esi
je 0x4ea591
cmp dword [ebx], 0xffffffff
je 0x4ea591
push esi
lea ecx, [ebp - 0x1c]
call fcn.004ea610
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x4ea490
lea ebx, [edi + esi]
jmp 0x4ea4c0
jbe 0x4ea4c3
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x4ea4b0
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004e4ac0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x4ea4c3
sub esi, ecx
push esi
push 0
push ebx
call fcn.00540d70
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x4ea54e
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x4ea519
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4ea5bc
push eax
call fcn.0042fbc0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ea5c1
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x4ea52d
test ecx, ecx
je 0x4ea52b
push ecx
call fcn.0042fbc0
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x4ea52d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.00540ed0
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x4ea57b
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4ea571
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea5c1
push ecx
push edi
call fcn.0053d0af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00426580
call fcn.0054b0c3
int3
Function at 0x4ef4e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ecx*4 + 2]
mul ecx
mov ebx, dword [edi + 4]
mov ecx, ebx
mov esi, edx
mov byte [ebp - 1], 0
mov edx, dword [edi]
sub ecx, edx
shr esi, 1
cmp esi, ecx
jae 0x4ef515
lea eax, [edx + esi]
jmp 0x4ef53f
jbe 0x4ef542
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4ef52e
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.004e4ac0
jmp 0x4ef542
sub esi, ecx
push esi
push 0
push ebx
call fcn.00540d70
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov edx, dword [edi]
mov esi, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], ecx
mov bl, byte [edi]
cmp edi, ecx
jae 0x4ef5d9
lea ecx, [ecx]
mov al, bl
cmp esi, 6
jbe 0x4ef571
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x4ef5a5
inc edi
cmp edi, ecx
jae 0x4ef57a
mov bl, byte [edi]
jmp 0x4ef57c
xor bl, bl
mov ecx, 6
sub ecx, esi
mov dword [ebp + 8], ecx
je 0x4ef59f
mov dl, byte [ecx*4 + 0x5d6fec]
mov ecx, esi
and dl, bl
shl dl, cl
mov cl, byte [ebp + 8]
or al, dl
mov edx, dword [ebp + 0x10]
shr bl, cl
mov ecx, dword [ebp + 0xc]
add esi, 2
cmp al, 0xa
jae 0x4ef5ad
add al, 0x30
jmp 0x4ef5cf
cmp al, 0x24
jae 0x4ef5b5
add al, 0x37
jmp 0x4ef5cf
cmp al, 0x3e
jae 0x4ef5bd
add al, 0x3d
jmp 0x4ef5cf
mov eax, 0x2d
mov ecx, 0x5f
cmove ecx, eax
mov al, cl
mov ecx, dword [ebp + 0xc]
mov byte [edx], al
inc edx
mov dword [ebp + 0x10], edx
cmp edi, ecx
jb 0x4ef560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4efe10
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x24]
push esi
push edi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x20c], ebx
mov ebx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], ebx
mov ebx, dword [ebp + 0x34]
mov dword [ebp - 0x224], ebx
lea ebx, [ebp - 0x208]
push ebx
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
push ebx
lea ebx, [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp - 0x20c]
push eax
push ecx
push dword [ebp + 0x28]
mov ecx, dword [ebp - 0x218]
push edx
push dword [ebp + 0x20]
mov dword [ebp - 0x214], 0
push esi
push ebx
push edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x208], 0
call fcn.004ef8a0
test eax, eax
je 0x4effa7
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 0x21c]
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push 5
push dword [ebp - 0x208]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4effa7
cmp dword [ebp - 0x220], 0
je 0x4eff72
mov ebx, dword [ebp + 0x30]
test ebx, ebx
je 0x4eff72
lea eax, [ebp - 0x204]
push eax
call fcn.005544de
mov edi, eax
add esp, 4
cmp edi, ebx
cmova edi, ebx
xor esi, esi
mov dword [ebp - 0x20c], esi
lea eax, [ebp - 0x20c]
push eax
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x220]
add eax, esi
push eax
push dword [ebp - 0x208]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x20c]
add esi, ecx
test eax, eax
je 0x4eff66
test ecx, ecx
je 0x4eff66
cmp esi, edi
jb 0x4eff31
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4eff72
mov dword [eax], esi
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004ef7e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret 0x30
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004ef7e0
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d079
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4f0130
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x4f016d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f0164
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.004f0250
lea ecx, [ebp - 0xb4]
call fcn.004effe0
push 0x42
mov ebx, eax
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00540d70
add esp, 0xc
lea edi, [ebp - 0x48]
xor esi, esi
lea esp, [esp]
movzx eax, byte [esi + ebx]
push eax
push str._02x
push 3
push edi
call fcn.0045dd10
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x10
jl 0x4f01e0
mov ebx, dword [ebp - 0xb8]
lea ecx, [ebp - 0x48]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0220
sub ecx, edx
lea eax, [ebp - 0x48]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00439df0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d079
mov esp, ebp
pop ebp
ret
Function at 0x4f0310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004f0440
add esp, 4
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test esi, esi
je 0x4f03e4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0xffffffff
dec esi
cmp esi, eax
cmovb eax, esi
cmp word [ecx + eax*2], 0x5c
lea eax, [ecx + eax*2]
je 0x4f0383
cmp eax, ecx
je 0x4f03df
sub eax, 2
cmp word [eax], 0x5c
jne 0x4f0376
sub eax, ecx
sar eax, 1
cmp eax, esi
je 0x4f03aa
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp - 0x28]
call fcn.004f0600
cmp eax, esi
je 0x4f03aa
push 1
push 0x5b14ac
lea ecx, [ebp - 0x28]
call fcn.00439c70
push 0x14
push 0x5be630
lea ecx, [ebp - 0x28]
call fcn.00439c70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.IEProxySwitch
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4f03e4
mov bl, 1
jmp 0x4f03e6
or eax, 0xffffffff
jmp 0x4f0387
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f041c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0412
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0439
push edx
push ecx
call fcn.0053d0af
add esp, 8
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.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
int3

Function at 0x4f0520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
mov dword [ebp - 0x214], esi
push eax
mov dword [ebp - 0x210], 0
call fcn.00540d70
add esp, 0xc
test edi, edi
jne 0x4f0570
push 0x5b0144
jmp 0x4f05dd
lea eax, [ebp - 0x210]
push eax
cmp ebx, 0x80000002
jne 0x4f058a
push 0x20219
push 0
push edi
push ebx
jmp 0x4f0593
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f05d6
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x103
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.InstallRoot
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004396f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d079
mov esp, ebp
pop ebp
ret
Function at 0x4f30a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x4f3149
mov eax, dword [edi]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x4f3139
push esi
push 0x28
call fcn.0053d0bd
mov ecx, dword [0x5bbd08]
mov esi, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 4], 0x28
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, dword [str.DISCONNET_REQUEST110]
mov dword [esi + 0x14], ecx
mov eax, dword [0x5da028]
mov dword [esi + 0x18], eax
mov eax, dword [0x5da02c]
mov dword [esi + 0x1c], eax
mov eax, dword [0x5da030]
mov dword [esi + 0x20], eax
mov eax, dword [0x5da034]
mov dword [esi + 0x24], eax
lea eax, [ebp - 4]
push 0
push eax
push 0x28
push esi
push dword [edi + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0053d0c6
add esp, 4
pop esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4f4100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x34], eax
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x38], ecx
xor ebx, ebx
call fcn.0055acce
add esp, 4
nop
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
mov eax, dword [ebp - 0x34]
push edi
add eax, ebx
push eax
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x30], 0
jne 0x4f4169
cmp eax, 0xea
jne 0x4f41cd
lea eax, [ebp - 0x24]
push eax
call fcn.0055acce
mov ecx, dword [ebp - 0x24]
add esp, 4
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x10]
push 0
push 0x3e8
push eax
push ecx
call fcn.0053d490
mov dword [ebp - 0x28], eax
mov ecx, edx
movzx eax, word [ebp - 0xc]
cdq
sub dword [ebp - 0x28], eax
movzx eax, word [ebp - 0x1c]
sbb ecx, edx
cdq
add dword [ebp - 0x28], eax
adc ecx, edx
test ecx, ecx
jg 0x4f41cd
jl 0x4f41b7
cmp dword [ebp - 0x28], 0xbb8
ja 0x4f41cd
mov eax, dword [ebp - 0x2c]
add ebx, eax
sub edi, eax
cmp dword [ebp - 0x30], 0
jne 0x4f41e2
cmp esi, dword [ebp + 0xc]
jne 0x4f4130
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret 8
cmp esi, dword [ebp + 0xc]
jne 0x4f41cd
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d079
mov esp, ebp
pop ebp
ret 8
Function at 0x4f4e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x4f4ecf
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 4]
mov esi, dword [esi + 0xc]
sub esi, edi
lea eax, [esi + 0x14]
push eax
call fcn.0053d0bd
mov ecx, dword [0x5bbd08]
push esi
push edi
mov dword [eax], ecx
lea ecx, [esi + 0x14]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x14]
push ecx
mov dword [ebp - 8], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 0
call fcn.00541450
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
lea edi, [esi + 0x14]
mov esi, dword [ebp - 8]
push 0
push eax
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x20], 0
mov ecx, dword [eax + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jne 0x4f4eb2
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0
push esi
call fcn.0053d0c6
add esp, 4
cmp dword [ebp - 8], 0
je 0x4f4ec6
cmp dword [ebp - 4], edi
je 0x4f4ecd
mov ecx, ebx
call fcn.004f30a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x532af0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9c99
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004e5b60
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.004e5b60
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e5b60
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.004e5b60
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.004e5b60
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.004e5b60
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.004e5b60
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.004e5b60
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.004e5b60
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.004e5b60
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.004e5b60
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.004e5b60
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.004e5b60
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.004e5b60
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.004e5b60
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.004e5b60
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.004e5b60
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.004e5b60
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x539a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597cc0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.004039c0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x539aa7
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x539ab8
push 0x3c
push esi
call fcn.0053d0af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x53ca60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x53caea
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00439df0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053d079
mov esp, ebp
pop ebp
ret