joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026a0
Capabilities:
Resume thread

Disassembly:
mov dword [ecx], 0x412718
jmp fcn.004017d0

Function at 0x403690
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4108d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, 0xa
lea edi, [esi + 0x2c]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
mov ecx, esi
push ebp
mov dword [esp + 0x20], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x48], ebp
call fcn.00403570
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::Empty
cmp dword [esi + 0x24], ebp
je 0x4036f3
dec ebx
je 0x403724
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x24], ebp
jne 0x4036e0
mov bl, byte [esp + 0x34]
mov ecx, dword [esp + 0x28]
test bl, bl
mov dword [esi + 0xc], ecx
je 0x403739
cmp dword [ecx + 0x20], 2
jne 0x403739
push 0xffffffffffffffff
call fcn.00402710
test eax, eax
jne 0x403732
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x4037eb
push ebp
push ebp
push str.box_1
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x403751
mov byte [0x4187fc], 0
cmp dword [esi + 0x10], 0xffffffff
jne 0x40376b
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40376b
push 1
mov ecx, esi
call fcn.00403570
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x4037eb
mov ecx, esi
call fcn.00404740
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x20]
lea ecx, [esi + 0x1c]
push ebp
push ecx
push edx
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00403870
test bl, bl
mov edi, eax
je 0x4037a7
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x20], 2
jne 0x4037a7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x4037cf
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edi
push ecx
push edi
push esi
push 0x404040
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x24], eax
jne 0x403800
mov edi, 1
mov ecx, esi
call fcn.00404740
push edi
mov ecx, esi
call fcn.00403570
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov dword [eax], edx
jmp 0x4037d6

Function at 0x4046d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push esi
or cl, 0xff
or dl, 0xff
mov esi, eax
dec eax
test esi, esi
mov byte [esp + 4], cl
mov byte [esp + 8], dl
je 0x404721
mov esi, dword [esp + 0x10]
push edi
lea edi, [eax + 1]
mov al, byte [esi]
xor al, cl
inc esi
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
and eax, 0xff
mov cl, byte [eax + 0x4170bc]
xor cl, dl
mov dl, byte [eax + 0x4171bc]
dec edi
jne 0x4046f5
mov byte [esp + 0xc], dl
mov byte [esp + 8], cl
pop edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
pop esi
add esp, 8
ret 8
Function at 0x40a590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_1
push 0xa
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CPtrList::CPtrList
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi], 0x413320
mov dword [esi + 0x28], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b810
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4117c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov eax, dword [0x41890c]
xor esi, esi
push eax
mov dword [esp + 0x24], esi
call fcn.0040edf0
push 0x413340
mov dword [0x41890c], esi
call fcn.0040edd0
add esp, 8
mov dword [0x41890c], eax
cmp eax, esi
mov eax, dword [esp + 0x28]
setne bl
lea eax, [eax + eax*4]
mov byte [esp + 0x10], bl
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
shl edi, 3
js 0x40b90b
test bl, bl
je 0x40b8a7
mov ecx, dword [0x41890c]
mov edx, dword [ebp + 0x164]
push 0x413340
push ecx
push edx
lea ecx, [ebp + 4]
call fcn.0040ee00
test eax, eax
sete bl
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b907
test bl, bl
jne 0x40b911
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [esp + 0x18]
push str.Open_USB_Failed__ET:__dms__n
push eax
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
add esi, 0x1f4
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, edi
jle 0x40b883
mov byte [esp + 0x10], bl
jmp 0x40b969
mov byte [esp + 0x10], bl
test bl, bl
je 0x40b969
jmp 0x40b915
mov byte [esp + 0x10], bl
mov edx, dword [0x41890c]
mov eax, dword [ebp + 0x164]
push 0x413340
push edx
push eax
lea ecx, [ebp + 0xb4]
call fcn.0040ee00
test eax, eax
sete al
test al, al
mov byte [esp + 0x10], al
je 0x40b969
mov ecx, ebp
call fcn.0040b9a0
test al, al
mov byte [esp + 0x10], al
je 0x40b969
mov ecx, ebp
call fcn.0040bba0
test al, al
mov byte [esp + 0x10], al
je 0x40b969
mov ecx, ebp
call fcn.0040ba70
mov byte [esp + 0x10], al
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
and esi, 0xff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40bce0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bd0e
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, 1
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bd3e
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call fcn.0040bcd0
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x40bd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x120]
test ebx, ebx
jne 0x40bd6c
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 8]
mov dword [esp + 4], 0x100
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bdab
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 4]
push ebp
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40bddb
xor ebp, ebp
mov edx, dword [esp + 0xc]
push edx
call fcn.0040bcd0
add esp, 4
test ebp, ebp
je 0x40be28
mov eax, dword [esp + 8]
push esi
push edi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40d000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x40cfb8
call fcn.0040cdf6
or byte [eax], cl
mov ecx, 0xf0458bc4
cmp dword [eax], 0
jne 0x40cfc7
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
add al, 0x43
dec eax
cmp ebx, eax
jbe 0x40cf9d
jmp 0x40cf89
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x40cf8b
jne 0x40cfbe
call fcn.0040cdf6
out 0x7c, eax
sub byte [edx + 0x647b70f], al
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0040cdf6
mov esi, 0x665fd1ba
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x40d050
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40d04a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40d03b
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040cdf6
or al, 0xca
les edi, [ecx - 0x73]
inc ebp
test al, 0x50
call fcn.0040ce06
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040cdbb
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40d0e4
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040cdf6
scasw ax, word es:[edi]
add byte [ebp - 0x17af3fbb], cl
invalid
Function at 0x40d1c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
inc ecx
call fcn.0040ce06
push eax
push esi
push dword [ebp + 8]
call fcn.0040cdbb
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040ce06
push eax
push esi
push dword [ebp + 8]
call fcn.0040cdbb
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040cdf6
js 0x40d1fc
push cs
sub cl, byte [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x40e1d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0040cd67
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40e203
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40e24c
invalid
test dword [eax], eax
stc
Function at 0x40f990
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40f9bc
push eax
push 0
push 0x40f9c0
call sub.MSVCRT.dll__beginthread
add esp, 0xc
push 0x40
push str.Information
push str.The_DEMO_version_of_the_USBIO_driver_delays_the_CloseHandle___noperation_for_20_seconds._During_this_time_the_driver_cannot_nbe_used._This_behaviour_defers_the_termination_of_the_application_too._nThe_delay_does_not_appear_in_the_full_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
ret
Function at 0x401660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x401679
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x4016a0
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x4016bf
jmp 0x4016b0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4016bf
add edi, 1
cmp edi, edx
jb 0x4016b0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x4017d5
cmp ecx, 3
jbe 0x4016f5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x401733
cmp cl, 0xff
je 0x401733
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x4016a0
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x4016d8
movzx ecx, byte [ebp + 0x457384]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x45737c], 0
mov cl, byte [ebx + 4]
je 0x40171f
test cl, cl
je 0x40171f
cmp cl, 0xff
jne 0x4016d8
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x4016a0
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40175e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x401764
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x4017a6
movzx esi, byte [ebp + 0x457384]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x401789
cmp dl, 0xff
jne 0x4017a2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x401750
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4016a0
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x4017e8
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x4058f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x465700], ecx
add edx, 1
cmp edx, 0x100
jl 0x4058f2
cmp edx, 0x800
jae 0x4059db
mov edi, edi
mov eax, dword [edx*4 + 0x465300]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x465700]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4656fc], eax
jb 0x4059b0
mov dword [0x467700], 0x4019e0
call fcn.00401920
test eax, eax
jne 0x4059f8
mov dword [0x467700], 0x401a90
ret
Function at 0x406fe0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.0040a460
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0
call fcn.0040a430
test eax, eax
je 0x4070ae
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40707d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
jmp 0x40712d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4070fe
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040a370
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x40
ret 8
Function at 0x407500
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebp
push esi
push edi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov ebp, ecx
mov word [esp + 0x1c], 0
call fcn.004133a0
push 0x206
lea ecx, [esp + 0x22a]
push 0
push ecx
mov word [esp + 0x230], 0
call fcn.004133a0
add esp, 0x18
push 0
push 0x2b
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp + 0x94], 8
jb 0x407574
mov ecx, dword [ebp + 0x80]
jmp 0x40757a
lea ecx, [ebp + 0x80]
lea edx, [esp + 0x218]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407581
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075a0
mov edx, dword [0x4574ac]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x4075c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075c0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075e0
lea eax, [esp + 0x10]
push eax
mov dword [edi], edx
call fcn.0040b040
lea eax, [esp + 0x14]
add esp, 4
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407602
mov ecx, dword [str.DongFang]
mov edx, dword [0x45749c]
mov dword [eax], ecx
mov ecx, dword [0x4574a0]
mov dword [eax + 4], edx
mov edx, dword [0x4574a4]
mov dword [eax + 8], ecx
mov cx, word [0x4574a8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x10]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407643
mov edx, dword [str..ini]
mov ecx, dword [0x457490]
mov dword [eax], edx
mov dx, word [0x457494]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push ecx
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0x218]
push edx
push str.InstallPath
mov ecx, ebp
call fcn.00406fe0
push 0x206
lea eax, [esp + 0x426]
push 0
push eax
mov word [esp + 0x42c], 0
call fcn.004133a0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x420], cx
add eax, 2
test cx, cx
jne 0x4076c0
lea edi, [esp + 0x420]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4076e1
push 0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x43c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
pop esi
pop ebp
jne 0x407747
mov ecx, dword [esp]
push 0x104
lea eax, [esp + 0x210]
push eax
push 1
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00413385
add esp, 0x620
ret
Function at 0x4090b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x66c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, dword [esp + 0x678]
push esi
lea eax, [esp + 0x46c]
push str._s.
push eax
mov dword [esp + 0x18], ecx
call fcn.00413e8d
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], 0
je 0x4091d9
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4091d8
cmp word [esp + 0x40], 0x2e
je 0x409114
mov ax, word [esp + 0x42]
test ax, ax
je 0x409114
cmp ax, 0x2e
jne 0x409148
cmp word [esp + 0x44], 0
je 0x409114
test byte [esp + 0x14], 0x10
je 0x409114
push 0x206
lea ecx, [esp + 0x26a]
push 0
push ecx
mov word [esp + 0x270], 0
call fcn.004133a0
push str.DongFangInfo.ini
lea edx, [esp + 0x50]
push edx
push esi
lea eax, [esp + 0x27c]
push 0x457508
push eax
call fcn.00413e8d
add esp, 0x20
lea ecx, [esp + 0x264]
push ecx
call edi
test eax, eax
je 0x409114
lea eax, [esp + 0x264]
mov dword [esp + 0xc], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4091b1
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x268]
push edx
add ecx, 0xd0
call fcn.004082e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00413385
add esp, 0x66c
ret 4