joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10013e36
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x10199a64], 0xda3
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10199a68], 0xffffecc6
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x10013d11
jmp 0x10013c5d
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10199a64], 0x47ea
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x10199a68], 0x114b
mov dword [ebp - 0x24], edx
jmp 0x10013d11
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jmp 0x10013cc4
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x10013ce0
mov eax, dword [ebp - 0x3c]
add eax, 1
mov cl, byte [ebp - 0x3d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x10013c71
jmp 0x10013ce0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x10013c71
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x10013c29
jmp 0x10013ced
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x28]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
jb 0x10013cc4
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013fd3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10199a6c], 0
mov dword [0x10199a70], 0
mov dword [0x10199a7c], 0
mov dword [0x10199a64], 0x2bc
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x10014051
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x10199a6c]
mov ecx, dword [0x10199a70]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10199a6c], edx
mov dword [0x10199a64], 0x97e
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10199a70], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10199a74], cl
mov ebx, dword [0x10199a68]
add ebx, 0xfffff27d
mov dword [0x10199a64], ebx
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10199a74]
mov edx, dword [0x10199a70]
mov byte [ebx + edx], cl
mov edx, dword [0x10199a6c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10199a70]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10199a7c], ecx
mov dword [0x10199a64], 0x2e2
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x10199a64], 0x130b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x2c], edi
je 0x10014032
jmp 0x1001403a
Function at 0x10014133
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x10199a64], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100138be
lea ecx, [0x10012d16]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], 0x169200
mov dword [0x10199a68], 0x894
mov edx, dword [0x10199a50]
mov dword [esp + 0x44], edx
mov edx, dword [0x10199a54]
mov dword [esp + 0x8c], edx
mov edx, dword [0x10199a58]
mov dword [esp + 0x54], edx
mov edx, dword [0x10199a5c]
mov dword [esp + 0x80], edx
mov edx, dword [0x10199a60]
mov dword [esp + 0x48], edx
mov dword [0x10199a64], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1001421b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [0x10199a68], 0xe2d
mov dword [0x10199a64], 0xf67
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x40], edx
call fcn.100135f0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1001423e
jmp 0x10014272
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100141c9
jmp 0x1001422a
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x10014205
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1001421b
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1001319b
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10199a68], 0x5b1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.00401a40
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x401c19
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x4019c0
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x401c5d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401c5d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x4024f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7da8
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x40254a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x402567
mov eax, dword [edi + 0x20]
jmp 0x40256a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x402584
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40259e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
push ecx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
call fcn.004b0b15
push eax
call fcn.004b538e
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a2e40
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x402657
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x402648
test eax, eax
je 0x402648
add eax, eax
cmp eax, 0x412
jae 0x402643
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x40264e
call fcn.0044820e
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.00401e50
mov eax, dword [edi + 0x30]
test eax, eax
je 0x402683
cmp dword [edi + 0x34], 8
jb 0x402669
mov ecx, dword [edi + 0x20]
jmp 0x40266c
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x402683
push 1
push 0x64a880
lea ecx, [edi + 0x20]
call fcn.00403b60
cmp dword [edi + 0x30], 0
jne 0x402698
push 3
push 0x64a884
lea ecx, [edi + 0x20]
call fcn.00401ea0
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
je 0x4026dc
cmp dword [edi + 0x4c], 8
lea eax, [edi + 0x38]
jb 0x4026d5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4026f3
push eax
call fcn.004482f3
add esp, 4
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x50]
cmp eax, 8
jb 0x402709
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401fa0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40271f
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40273a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401fa0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402750
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40276b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401fa0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402781
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x40279b
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.00401fa0
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x4027ba
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x40b3b0
Capabilities:
Terminate process

Disassembly:
test edx, edx
mov eax, str.undefined
push esi
cmovne eax, edx
mov esi, ecx
push eax
push str.libpng_error:__s
push 2
call fcn.004a6ca2
add esp, 4
push eax
call fcn.00405770
add esp, 0xc
push 0x64ef0c
push 2
call fcn.004a6ca2
add esp, 4
push eax
call fcn.00405770
add esp, 8
test esi, esi
je 0x40b408
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40b408
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40b408
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419400
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41940b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00419420
Function at 0x41fc79
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x41fc81
mov dword [edx*4 + 0x66d7a0], ecx
inc edx
cmp edx, 0x100
jb 0x41fc7c
mov esi, 0x800
jmp 0x41fcca
mov ecx, dword [edx*4 + 0x66d3a0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x66d7a0]
mov dword [edx*4 + 0x66d7a0], ecx
inc edx
cmp edx, esi
jb 0x41fcae
mov dword [0x66f7a0], 0x41b912
call fcn.0042007d
mov ecx, dword [0x66f7a0]
test eax, eax
mov edx, 0x41b9ab
cmove ecx, edx
mov dword [0x66f7a0], ecx
pop esi
ret

Function at 0x42011f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x420131
xor eax, eax
jmp 0x420158
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.004a71ee
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x42014f
xor eax, eax
jmp 0x420157
push dword [ebx]
call fcn.004a6e47
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4201ab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x4201bd
xor eax, eax
jmp 0x4201e4
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.004a7d8e
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x4201db
xor eax, eax
jmp 0x4201e3
push dword [ebx]
call fcn.004a6e47
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x420d8f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x420db0
xor eax, eax
jmp 0x420f05
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x420ddc
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x420dd9
inc edx
cmp edx, ecx
jb 0x420dcc
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x420ee9
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x420e14
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x420e51
cmp al, 0xff
je 0x420e51
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x420ee2
dec ecx
shl esi, cl
and esi, 7
je 0x420df4
movzx eax, byte [esi + 0x5e18f8]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x5e18f0], 0
mov al, byte [ecx + 4]
je 0x420e3b
test al, al
je 0x420e3b
cmp al, 0xff
jne 0x420df4
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x420dc3
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x420e7e
add ebx, edi
add ebx, edx
jmp 0x420e82
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x420eb8
movzx eax, byte [esi + 0x5e18f8]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x420ea7
cmp al, 0xff
jne 0x420eb8
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x420e72
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x420e46
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420fcc
Capabilities:
Read .ini file

Disassembly:
push 0x258
mov eax, 0x5d8164
call fcn.00447fd9
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x420ff4
xor al, al
jmp 0x421154
call fcn.00421297
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x264]
push eax
call fcn.004214df
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov esi, 0x64a7dc
push 0x104
push ecx
push esi
push eax
push 0x5e19cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004ab16b
pop ecx
pop ecx
test eax, eax
jne 0x421103
and dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push ecx
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
mov ecx, edi
push eax
push 0x5e19cc
call fcn.0042115c
test al, al
jne 0x4210cd
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401de0
xor bl, bl
jmp 0x421143
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a6b8d
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00401de0
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042139e
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x421132
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004020b0
push 0
push 1
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401de0
mov al, bl
call fcn.00447f83
ret 8
Function at 0x425580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x425615
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x4255c5
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004a2340
push esi
push esi
push dword [ebp - 0x14]
call fcn.00424866
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x4255ee
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.004a2340
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x4255bc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x42850d
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xac
mov eax, 0x5d8adc
call fcn.00447fd9
mov ebx, ecx
lea ecx, [ebp - 0xac]
call fcn.00494e3e
lea esi, [ebx + 0x244]
cmp dword [esi + 0x14], 8
jb 0x428539
mov eax, dword [esi]
jmp 0x42853b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428640
cmp dword [esi + 0x14], 8
jb 0x428552
mov esi, dword [esi]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x428640
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xb0], eax
inc eax
push eax
mov dword [ebp - 0xb4], eax
call fcn.004482ea
mov edi, eax
pop ecx
test edi, edi
je 0x428640
push dword [ebp - 0xb4]
push 0
push edi
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0xb8]
push 0
push eax
push dword [ebp - 0xb0]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
push edi
call fcn.0049583d
push edi
call fcn.004482f3
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xac]
call fcn.0049508b
push eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0049d987
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00422a84
cmp dword [ebp - 0x18], esi
jbe 0x428635
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
push str.FileMD5
push str.Setting
call fcn.004822d5
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
call fcn.00447f83
ret
Function at 0x42934c
Capabilities:
Check if file exists

Disassembly:
add ecx, 0x1e4
cmp dword [ecx + 0x14], 8
jb 0x42935a
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
ret

Function at 0x42941a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x414]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004a2e40
lea eax, [edi + 0x44]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x429455
mov eax, dword [eax]
lea ecx, [ebp - 0x414]
push ecx
push str.WanNengWBInfo.ini
push eax
call fcn.0049c4f1
add esp, 0xc
test eax, eax
je 0x4294d2
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.guanf
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
je 0x4294bf
lea eax, [ebp - 0x20c]
push eax
call fcn.004a6baf
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x1fc]
call fcn.00401ea0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x429b22
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x3b0]
push eax
xor eax, eax
push eax
push esi
push 0x429b10
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3ac], eax
pop esi
ret 4

Function at 0x429b47
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
xor edi, edi
mov esi, ecx
push edi
push eax
call fcn.004a2e40
push ebx
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004a2e40
add esp, 0x18
lea eax, [ebp - 0x20c]
push edi
push 0x2b
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esi, 0x1cc
cmp dword [esi + 0x14], 8
jb 0x429ba4
mov esi, dword [esi]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004a6b8d
mov esi, 0x64a880
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b0beb
lea eax, [ebp - 0x20c]
push str.WanNengWBInput
push eax
call fcn.004b0beb
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b0beb
lea eax, [ebp - 0x20c]
push eax
call fcn.0047ea82
mov esi, 0x5e1980
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b0beb
lea eax, [ebp - 0x20c]
push str..ini
push eax
call fcn.004b0beb
add esp, 0x34
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004a2e40
lea eax, [ebp - 0x414]
push 0x5e27d4
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004b0beb
add esp, 0x1c
lea eax, [ebp - 0x620]
push edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x429ca7
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 1
push edi
push str.InstallPath
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret