joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402810
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c4db8
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x50cb30]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x50cb30]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4e9b6c
mov byte [ecx + 4], bl
call fcn.00401e80
push ebx
mov byte [esp + 0x644], 3
call fcn.004212e5
push eax
call fcn.004a9baa
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.004203a0
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x402971
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.004203a0
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40294e
cmp eax, ebx
je 0x40294e
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00401df0
jmp 0x402971
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402955
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004020c0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4029a8
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x402985
call fcn.004206f2
cmp dword [edi + 0x18], 8
jb 0x402990
mov eax, dword [edi + 4]
jmp 0x402993
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x4029a8
push 1
push 0x4e9b70
mov ecx, edi
call fcn.00403e10
cmp dword [esi + 0x38], ebx
jne 0x4029bb
push 3
push 0x4e9b74
mov ecx, edi
call fcn.004020c0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00420385
add esp, 0x634
ret
Function at 0x4029f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c4d11
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x50cb30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], 2
cmp dword [esi + 0x54], ebx
mov ebp, 8
je 0x402a3f
cmp dword [esi + 0x58], ebp
jb 0x402a35
mov eax, dword [esi + 0x44]
jmp 0x402a38
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x402a51
mov eax, dword [esi + 0x60]
push eax
call fcn.00498fe3
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov byte [esp + 0x18], 1
cmp dword [esi + 0x58], ebp
jb 0x402a74
mov eax, dword [esi + 0x44]
push eax
call fcn.00498fe3
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
mov byte [esp + 0x18], bl
cmp dword [esi + 0x3c], ebp
jb 0x402a97
mov eax, dword [esi + 0x28]
push eax
call fcn.00498fe3
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x20], ebp
jb 0x402abe
mov eax, dword [esi + 0xc]
push eax
call fcn.00498fe3
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], bx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x404020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4e71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x50cb30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402370
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.00403f10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402370
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4040c3
mov edx, dword [esp + 0x14]
push edx
call fcn.00498fe3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x4040e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c4e71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x50cb30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402370
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404140
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403e10
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402370
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404197
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498fe3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404ae0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x404b1f
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404b1f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x404b30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c4ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x50cb30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b76
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004020c0
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
mov edi, 1
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], edi
call fcn.00403f10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402370
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], edi
jb 0x404bdf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498fe3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404e55
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
jne 0x404e65
xor eax, eax
jmp 0x404e8e
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx]
push edi
push 1
push dword [esp + 0x20]
call fcn.0041fc78
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x404e85
xor eax, eax
jmp 0x404e8d
push dword [ebx]
call fcn.0041f8b7
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x4053bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4053d8
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4053fb
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x405400
inc esi
cmp esi, dword [ebp - 4]
jb 0x4053f2
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4054f5
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x405454
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x40542b
cmp cl, 0xff
jne 0x40547f
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40548d
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x405494
dec ecx
shl edx, cl
and edx, 7
je 0x40541c
movzx ecx, byte [edx + 0x4c6744]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4c673c], 0
mov cl, byte [ebx + 4]
je 0x40547c
test cl, cl
je 0x40547c
cmp cl, 0xff
jne 0x40541c
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4053ed
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4054c8
movzx edi, byte [edx + 0x4c6744]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4054b3
cmp al, 0xff
jne 0x4054c5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x405446
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4053ed
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x408ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408ae8
mov dword [ecx*4 + 0x50f2e0], eax
inc ecx
cmp ecx, 0x100
jl 0x408ae3
mov edx, 0x800
jmp 0x408b35
mov eax, dword [ecx*4 + 0x50eee0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x50f2e0]
inc ecx
mov dword [ecx*4 + 0x50f2dc], eax
cmp ecx, edx
jb 0x408b14
mov dword [0x5112e0], 0x4056a2
call fcn.0040560f
test eax, eax
pop esi
jne 0x408b57
mov dword [0x5112e0], 0x405738
ret
Function at 0x409b6b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0042054a
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x409bd4
cmp eax, 3
jle 0x409bd4
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.004203a0
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0042058b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409bf8
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409beb
mov eax, dword [eax]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c28
push ebx
jmp 0x409c1c
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c10
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c28
push 1
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420385
leave
ret 4

Function at 0x40a1b7
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4c14b9
call fcn.00420e9c
lea ecx, [ebp - 0x40]
call fcn.0040c543
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040c51a
test eax, eax
je 0x40a250
lea eax, [ebp - 0x10]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a2b7
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c6ac4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a229
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a2b7
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
jmp 0x40a2b5
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a2b7
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c6ac4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a290
push dword [ebp - 0x14]
jmp 0x40a21e
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040c43d
call fcn.00420f74
ret 8
Function at 0x40a52f
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
mov ebx, 0x206
xor esi, esi
push ebx
lea eax, [ebp + 0x39a]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x80], edi
mov word [ebp + 0x398], si
call fcn.004203a0
push ebx
lea eax, [ebp + 0x192]
push esi
push eax
mov word [ebp + 0x190], si
call fcn.004203a0
add esp, 0x18
push esi
push 0x2b
lea eax, [ebp + 0x398]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [edi + 0x7c]
cmp dword [eax + 0x18], 8
jb 0x40a5a5
mov eax, dword [eax + 4]
jmp 0x40a5a8
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0042052e
mov edi, 0x4e9b70
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.00420504
lea eax, [ebp + 0x398]
push 0x4c6ac4
push eax
call fcn.00420504
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.00420504
lea eax, [ebp + 0x398]
push eax
call fcn.004159cb
lea eax, [ebp + 0x398]
push str.DongFang
push eax
call fcn.00420504
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.00420504
add esp, 0x34
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push eax
mov edi, str.InstallPath
push edi
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x190]
push eax
push edi
call fcn.0040a1b7
push ebx
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.004203a0
lea eax, [ebp - 0x78]
push str.SOFTWARE_
push eax
call fcn.0042052e
lea eax, [ebp - 0x78]
push 0x4c6ac4
push eax
call fcn.00420504
add esp, 0x1c
push esi
lea eax, [ebp - 0x7c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a6ad
push 0x104
lea eax, [ebp + 0x190]
push eax
push 1
push esi
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420385
add ebp, 0x5a4
leave
ret
Function at 0x40acb9
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x5f4]
push edi
push esi
lea eax, [ebp + 0x1d8]
push str._s.
push eax
mov dword [ebp - 0x80], ecx
call fcn.00421321
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 0x7c], ebx
je 0x40adad
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40adad
cmp word [ebp - 0x4c], 0x2e
je 0x40ad16
cmp word [ebp - 0x4a], bx
je 0x40ad16
cmp word [ebp - 0x4a], 0x2e
jne 0x40ad43
cmp word [ebp - 0x48], bx
je 0x40ad16
test byte [ebp - 0x78], 0x10
je 0x40ad16
push 0x206
lea eax, [ebp + 0x3e2]
push ebx
push eax
mov word [ebp + 0x3e0], bx
call fcn.004203a0
push str.DongFangInfo.ini
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp + 0x3e0]
push 0x4c6b5c
push eax
call fcn.00421321
add esp, 0x20
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ad16
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x3e0]
push eax
add ecx, 0xd0
mov dword [ebp - 0x7c], 1
call fcn.00401df0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x5e8]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420385
add ebp, 0x5ec
leave
ret 4

Function at 0x40b200
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x4c159a
call fcn.00420e9c
mov esi, ecx
lea eax, [esi + 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039b0
mov eax, dword [ebp - 0x24]
xor edi, edi
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], edi
jae 0x40b243
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040acb9
test eax, eax
je 0x40b2a7
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.004203a0
lea eax, [esi + 0xd0]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b276
mov eax, dword [eax + 4]
jmp 0x40b279
add eax, 4
push eax
push 0x104
lea eax, [ebp]
push eax
push 0x4e9b90
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x98]
call fcn.00401df0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00420385
add ebp, 0x20c
leave
ret
Function at 0x40b2d5
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x1c
mov eax, 0x4c15ca
call fcn.00420e9c
mov esi, ecx
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039b0
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], ebx
jae 0x40b318
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040acb9
test eax, eax
jne 0x40b32a
push ebx
jmp 0x40b3e3
mov edi, 0x206
push edi
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call fcn.004203a0
push edi
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.004203a0
add esp, 0x18
cmp dword [esi + 0xe8], 8
jb 0x40b367
mov eax, dword [esi + 0xd4]
jmp 0x40b36d
lea eax, [esi + 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea eax, [ebp + 0x208]
push eax
push 0x4e9b90
push 0x4c6c14
mov ebx, str.AppUpdate
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x40b3a3
mov eax, dword [esi + 0xd4]
jmp 0x40b3a9
lea eax, [esi + 0xd4]
push eax
push 0x104
lea eax, [ebp]
push eax
push 0x4e9b90
push str.MinVer
push ebx
call edi
lea eax, [ebp + 0x208]
push eax
lea ecx, [esi + 0xec]
call fcn.00401df0
lea eax, [ebp]
push eax
lea ecx, [esi + 0x108]
call fcn.00401df0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00420385
add ebp, 0x414
leave
ret

Function at 0x40bd30
Capabilities:
Create thread

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

Function at 0x40c47a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4c6ce0
mov esi, ecx
call ebp
test eax, eax
mov dword [esi], eax
je 0x40c4f8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push 0x4c7084
mov dword [esi + 0x10], eax
call ebp
test eax, eax
mov dword [esi + 4], eax
je 0x40c4f6
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x40f82a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50cb30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push str.mainframe_title
lea ecx, [esi + 0x2c]
call dword [0x4e9ce4]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x2f0], eax
je 0x40f8a0
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.004203a0
push 0x4c6d90
lea eax, [ebp - 0x20c]
push 0x4c7580
push eax
call fcn.00421321
mov ecx, dword [esi + 0x2f0]
mov eax, dword [ecx]
add esp, 0x18
lea edx, [ebp - 0x20c]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2f4]
cmp ecx, ebx
je 0x40f8af
call fcn.00413fb3
mov ecx, dword [esi + 0x2f8]
cmp ecx, ebx
je 0x40f8be
call fcn.0040fddb
mov ecx, dword [esi + 0x2fc]
cmp ecx, ebx
je 0x40f913
call fcn.004152a8
mov eax, dword [esi + 0x2fc]
cmp eax, ebx
je 0x40f8de
add eax, 0x4f4
jmp 0x40f8e0
xor eax, eax
push eax
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x210], esp
push 0xffffffffffffffff
mov edi, str.WelcomeBar
push edi
call dword [0x4e9d14]
lea ecx, [esi + 0x10]
call dword [0x4e9d34]
mov ecx, dword [esi + 0x2fc]
push edi
call dword [0x4e9d30]
mov ecx, dword [esi + 0x300]
cmp ecx, ebx
je 0x40f922
call fcn.004101eb
mov ecx, dword [esi + 0x304]
cmp ecx, ebx
je 0x40f931
call fcn.00413e19
mov ecx, dword [esi + 0x308]
cmp ecx, ebx
je 0x40f940
call fcn.0040c0cf
mov ecx, dword [esi + 0x30c]
cmp ecx, ebx
je 0x40f94f
call fcn.00409d42
lea ecx, [esi + 0x2dc]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.0040c9ec
call fcn.0040c706
mov ecx, eax
call fcn.0040a2e3
test eax, eax
je 0x40f98d
lea eax, [esi + 0x340]
push eax
push ebx
push esi
push 0x40f81b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x33c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420385
leave
ret 4