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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x42a852
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x42a843
xor eax, eax
jmp 0x42a8a5
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call ecx
jmp 0x42a883
cmp dword [esi + 8], 0
jne 0x42a873
push 0x4e40c8
push dword [eax + 8]
call fcn.0049825f
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x42a873
or eax, 0xffffffff
jmp 0x42a8a5
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00493b27
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42a8a3
mov eax, dword [esi + 8]
test eax, eax
je 0x42a89d
push eax
call fcn.00493869
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebp
ret

Function at 0x42ac8c
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x42acbe
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x42b6c3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x42b6d8
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.0040f313
push edx
push eax
call fcn.0040f329
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x42b721
push dword [ebx + 0x148]
push dword [ebx + 0x144]
call fcn.0040f313
push edx
push eax
call fcn.0040f329
mov edi, dword [edi + 0x1e0]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x42b721
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x42c8a2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x2c
mov ebx, eax
mov edi, ecx
call dword [0x4fb064]
mov esi, eax
pop ecx
test esi, esi
je 0x42c98b
lea eax, [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi], fcn.0042ac8c
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp ebx, 0x40
jbe 0x42c901
push eax
call dword [0x4dcd9c]
push ebx
push edi
push dword [esi + 4]
call dword [0x4dcda0]
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 8
push edi
call dword [0x4dcda4]
add esp, 0x18
push 0x10
pop ebx
push dword [esi + 4]
call dword [0x4dcd9c]
push dword [esi + 8]
call dword [0x4dcd9c]
and dword [ebp - 0xc], 0
pop ecx
pop ecx
test ebx, ebx
je 0x42c95d
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov al, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [0x4dcda0]
mov al, byte [edi]
xor al, 0x5c
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 8]
inc edi
call dword [0x4dcda0]
add esp, 0x18
dec dword [ebp - 8]
jne 0x42c923
cmp ebx, 0x40
jae 0x42c989
push 0x40
pop edi
sub edi, dword [ebp - 0xc]
push 1
push 0x4dcd98
push dword [esi + 4]
call dword [0x4dcda0]
push 1
push 0x4dcd99
push dword [esi + 8]
call dword [0x4dcda0]
add esp, 0x18
dec edi
jne 0x42c963
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42d267
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, 3
push 4
shl eax, 4
add eax, ecx
pop ecx
push ebx
push esi
mov dword [ebp + 0xc], ecx
push edi
xor esi, esi
mov edi, eax
mov bl, byte [edi]
xor byte [edx + esi], bl
inc esi
add edi, ecx
cmp esi, ecx
jl 0x42d285
inc eax
add edx, ecx
dec dword [ebp + 0xc]
jne 0x42d281
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42d54b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, ecx
lea edi, [ebp - 0xc]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
movzx eax, byte [edi + 4]
push eax
mov ecx, edx
call fcn.0042d3c9
mov bl, byte [edi - 8]
mov byte [ebp - 0x15], al
movzx eax, byte [edi]
push eax
call fcn.0042d3c9
push ebx
mov byte [ebp - 0x17], al
call fcn.0042d3d3
mov bl, al
movzx eax, byte [edi - 4]
push eax
call fcn.0042d3e9
xor bl, al
xor bl, byte [ebp - 0x15]
movzx eax, byte [edi - 8]
xor bl, byte [ebp - 0x17]
push eax
mov ecx, edx
mov byte [esi - 4], bl
call fcn.0042d3c9
mov byte [ebp - 0x18], al
movzx eax, byte [edi - 4]
push eax
call fcn.0042d3d3
mov bl, al
movzx eax, byte [edi]
push eax
call fcn.0042d3e9
xor bl, al
xor bl, byte [ebp - 0x18]
movzx eax, byte [edi - 4]
xor bl, byte [ebp - 0x15]
push eax
mov ecx, edx
mov byte [esi], bl
call fcn.0042d3c9
movzx ebx, byte [edi + 4]
push ebx
mov byte [ebp - 0x15], al
call fcn.0042d3e9
mov byte [ebp - 0x16], al
movzx eax, byte [edi]
push eax
mov ecx, edx
call fcn.0042d3d3
mov cl, byte [ebp - 0x16]
xor cl, al
xor cl, byte [ebp - 0x15]
movzx eax, byte [edi - 8]
xor cl, byte [ebp - 0x18]
push eax
mov byte [esi + 4], cl
mov ecx, edx
call fcn.0042d3e9
push ebx
mov ecx, edx
mov byte [ebp - 0x16], al
call fcn.0042d3d3
mov cl, byte [ebp - 0x16]
xor cl, al
xor cl, byte [ebp - 0x15]
xor cl, byte [ebp - 0x17]
inc esi
mov byte [esi + 7], cl
inc edi
dec dword [ebp - 0x1c]
jne 0x42d579
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret 4
Function at 0x42d658
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 4
movsd dword es:[edi], dword [esi]
mov ebx, ecx
lea esi, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 4
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.0042d450
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.0042d3fe
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d425
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d47b
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax - 4], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.0042d425
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.0042d450
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d47b
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d3fe
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.0042d47b
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.0042d425
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d3fe
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d450
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.0042d3fe
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.0042d47b
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d450
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.0042d425
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
inc esi
dec dword [ebp - 0x20]
mov byte [eax + 8], cl
jne 0x42d689
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret 4
Function at 0x42de98
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jbe 0x42df92
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 8], 1
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 2
sub dword [ebp - 0xc], ecx
push esi
mov esi, dword [ebp + 0x10]
jmp 0x42ded0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, dword [ebp + 0xc]
jae 0x42df67
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea edx, [ebx + edx + 1]
mov bl, byte [edx]
shr bl, 4
add bl, cl
movzx ecx, bl
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi + 1], cl
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
and cl, 0xf
add edx, edi
shl cl, 2
cmp edx, dword [ebp + 0xc]
jae 0x42df53
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
and bl, 0x3f
shr dl, 6
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi + 2], cl
movzx ecx, bl
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi + 3], cl
jmp 0x42df7b
movzx ecx, cl
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x42df7b
movzx ecx, cl
mov cl, byte [ecx + 0x4bde68]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edi, dword [ebp - 4]
add edi, 3
add eax, 4
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jb 0x42decd
pop esi
pop ebx
pop edi
leave
ret

Function at 0x42df95
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp byte [ecx + eax - 1], 0x3d
jne 0x42dfb3
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x42dfa8
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x42e065
push ebx
mov dword [ebp - 8], 2
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 3
sub dword [ebp - 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
movsx eax, byte [ecx + 1]
movsx edx, byte [ecx]
mov al, byte [eax + 0x4bdeb0]
mov dl, byte [edx + 0x4bdeb0]
shl dl, 2
mov bl, al
sar bl, 4
and bl, 3
or dl, bl
mov byte [esi + edi], dl
mov edx, dword [ebp - 8]
add edx, ecx
inc esi
cmp edx, dword [ebp + 0xc]
jae 0x42e050
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x4bdeb0]
mov bl, dl
sar bl, 2
shl al, 4
and bl, 0xf
or bl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + edi], bl
add eax, ecx
inc esi
cmp eax, dword [ebp + 0xc]
jae 0x42e050
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x4bdeb0]
and al, 0x3f
shl dl, 6
or al, dl
mov byte [esi + edi], al
inc esi
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
add ecx, 4
cmp eax, dword [ebp + 0xc]
jb 0x42dfda
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x42e752
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x42e993
Capabilities:
Read file on windows

Disassembly:
push 0x4d8
mov eax, 0x4b3026
call fcn.004935c5
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x4e4], esi
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x42eabc
push 0x3ff
lea eax, [ebp - 0x453]
push ebx
push eax
mov byte [ebp - 0x454], bl
call fcn.00492b40
push 0x4bdfac
push edi
call fcn.00493c02
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x42eabc
lea ecx, [ebp - 0x4dc]
call fcn.0042e806
mov esi, 0x400
jmp 0x42ea2f
push eax
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.0048fcf1
push edi
push esi
lea eax, [ebp - 0x454]
push 1
push eax
call fcn.00493b27
add esp, 0x10
cmp eax, ebx
jne 0x42ea1c
push edi
call fcn.00493869
pop ecx
lea ecx, [ebp - 0x4dc]
call fcn.0042e8b3
mov dword [ebp - 0x4e0], eax
xor eax, eax
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.00492b40
add esp, 0xc
xor edi, edi
lea esi, [ebp - 0x54]
mov eax, dword [ebp - 0x4e0]
movzx eax, byte [edi + eax]
push eax
push 0x4bdfa0
push 3
push esi
call fcn.0049372c
add esp, 0x10
inc edi
add esi, 4
cmp edi, 0x10
jl 0x42ea78
lea eax, [ebp - 0x54]
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x470]
call fcn.0042e40f
mov esi, dword [ebp - 0x4e4]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
call fcn.0042e51a
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.0042e109
mov eax, esi
call fcn.00493648
ret

Function at 0x42f308
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x4fb0ac]
cmp dword [0x4fb0ac], 0x64
mov eax, ecx
jl 0x42f369
and dword [0x4fb0ac], 0
push esi
lea esi, [eax + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x42f33e
mov eax, dword [esi]
jmp 0x42f340
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42f368
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x42f368
cmp dword [esi + 0x14], 8
jb 0x42f361
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004927bf
leave
ret 4
Function at 0x42fa81
Capabilities:
Delete file

Disassembly:
push 0xe88
mov eax, 0x4b3127
call fcn.004935c5
cmp dword [ebp + 8], 0xffffffff
mov edi, ecx
jne 0x42f76b
mov dword [ebp + 8], SysReAllocString
lea eax, [ebp - 0xe94]
push eax
call fcn.00493ec8
mov dword [ebp - 0xe94], eax
lea eax, [ebp - 0xe94]
push eax
mov dword [ebp - 0xe90], edx
call fcn.00493ea1
cmp dword [edi + 0x30], 8
pop ecx
pop ecx
mov esi, eax
jb 0x42f79e
mov eax, dword [edi + 0x1c]
jmp 0x42f7a1
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0xa38]
push ecx
lea ecx, [ebp - 0xc40]
push ecx
push eax
call fcn.004952f5
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xc40]
push eax
push str._s_s_s__d__02d__02d_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0049372c
lea eax, [ebp - 0x218]
push eax
call fcn.00493091
add esp, 0x40
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x1c]
call fcn.0042e40f
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00494b3e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004950c7
lea eax, [ebp - 0x420]
push 0x4be570
push eax
call fcn.00495096
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00495096
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00494e41
mov edi, eax
add esp, 0x28
cmp edi, 0xffffffff
je 0x42f96a
mov esi, 0x4be56c
test byte [ebp - 0xe8c], 0x10
jne 0x42f94b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe94]
imul eax, eax, 0x15180
cdq
sub ecx, eax
mov eax, dword [ebp - 0xe90]
sbb eax, edx
cmp dword [ebp - 0xe80], eax
jg 0x42f94b
jl 0x42f8d2
cmp dword [ebp - 0xe84], ecx
jae 0x42f94b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.0042e48d
and dword [ebp - 4], 0
push esi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc5c]
call fcn.0042edb8
lea eax, [ebp - 0xe68]
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0xe68]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.0042edb8
cmp dword [ebp - 0xc48], 8
mov eax, dword [ebp - 0xc5c]
jae 0x42f931
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc5c]
call fcn.0042e109
lea eax, [ebp - 0xe8c]
push eax
push edi
call fcn.00494f68
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x42f895
push edi
call fcn.00494e1b
pop ecx
call fcn.00493648
ret 4
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x3c]
test al, 1
je 0x42fa91
pop ebp
jmp 0x42f74d
test al, 2
je 0x42fa9b
pop ebp
jmp fcn.0042f308
pop ebp
ret 4
Function at 0x42fc83
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [eax + 0x14], 8
push edi
jb 0x42fc98
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42fce6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp + 0xc], ebx
jne 0x42fcc8
cmp edi, ebx
jmp 0x42fced
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
cmp edi, ebx
je 0x42fcf6
cmp edi, 0xffffffff
je 0x42fcf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x42fcff
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4b3203
call fcn.0049355c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42fd16
mov eax, dword [eax]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0047b7a6
test al, al
je 0x42fd88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x42fd56
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KSendInfoThread::_SaveSendInfo
push 0x109
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateinfocollectSendInfoToSvr.cpp
push esi
call fcn.0042f683
add esp, 0x18
cmp edi, esi
je 0x42fd84
cmp edi, 0xffffffff
je 0x42fd84
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42fde5
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], esi
jb 0x42fd99
mov eax, dword [eax]
push esi
lea edx, [ebp - 0x10]
push edx
add ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42fdd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x42fdc1
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x4be5f0
push str.kupdate::KSendInfoThread::_SaveSendInfo
push 0x110
jmp 0x42fd66
cmp edi, esi
je 0x42fde3
cmp edi, 0xffffffff
je 0x42fde3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.00493634
ret 8
Function at 0x430690
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x82c
mov eax, 0x4b3375
call fcn.004935c5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x834], esi
xor ecx, ecx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], esi
jb 0x4306d7
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x838], edi
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 1
call fcn.0047b7a6
test al, al
je 0x43076e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x43071c
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xea
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateinfocollectSendInfoToSvr.cpp
push 5
call fcn.0042f683
add esp, 0x18
lea eax, [ebp - 0x82c]
push eax
mov ecx, ebx
call fcn.0042e51a
cmp edi, esi
je 0x430759
cmp edi, 0xffffffff
je 0x430759
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0042e109
mov eax, ebx
jmp 0x43086d
push esi
push edi
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x400
jb 0x4307a9
push str.Send_info_file_exceed_max_filesize.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xf3
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateinfocollectSendInfoToSvr.cpp
push 5
call fcn.0042f683
add esp, 0x14
jmp 0x430837
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
call fcn.00492b40
add esp, 0xc
push esi
lea eax, [ebp - 0x834]
push eax
push ebx
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x430817
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4307f6
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xf9
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateinfocollectSendInfoToSvr.cpp
push 5
call fcn.0042f683
add esp, 0x18
jmp 0x430837
lea eax, [ebp - 0x810]
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.0042e40f
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x82c]
push eax
call fcn.0042e51a
cmp edi, esi
je 0x430859
cmp edi, 0xffffffff
je 0x430859
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0042e109
mov eax, dword [ebp - 0x830]
call fcn.00493648
ret 8
Function at 0x430ce7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0042ff9d
test al, al
jne 0x430cfb
xor eax, eax
jmp 0x430d3f
push ebx
mov bl, byte [ebp + 8]
movzx eax, bl
push eax
push str.Send_info_from_thread:_sendueic___i
push str.kupdate::KSendInfoThread::SendInfoToFromThread
push 0x2c
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateinfocollectSendInfoToSvr.cpp
push 7
call fcn.0042f683
add esp, 0x18
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x430cd8
push eax
push eax
mov byte [esi + 4], bl
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
xor eax, eax
inc eax
pop ebx
pop esi
leave
ret 4
Function at 0x435a9c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.004354a6
mov ebx, eax
cmp ebx, esi
je 0x435b0d
lea ecx, [ebp - 0x214]
call fcn.00435423
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x435b2b
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00435a9c
cmp eax, esi
jne 0x435b72
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x435b15
lea ecx, [ebp - 0x214]
call fcn.00435423
push dword [ebp - 0x218]
mov ecx, edi
call fcn.004353b3
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00435423
mov eax, esi
jmp 0x435afc