joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034e7b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10034e9d
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10034e9d
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10034e9d
ret
cmp word [ebx + 4], 0x14c
jne 0x10034e9d
test word [ebx + 0x16], 2
je 0x10034e9d
test word [ebx + 0x16], 0x100
je 0x10034e9d
cmp word [ebx + 0x18], 0x10b
jne 0x10034e9d
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10034e9d
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10034f29
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10034ebd
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001be08
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10034e9d
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10034f29
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10034e9d
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10034e9d
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10034e9d
ret
cmp word [ebx + 4], 0x14c
jne 0x10034e9d
test word [ebx + 0x16], 2
je 0x10034e9d
test word [ebx + 0x16], 0x100
je 0x10034e9d
cmp word [ebx + 0x18], 0x10b
jne 0x10034e9d
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10034e9d
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10034f29
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10034ebd
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001be08
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10034e9d
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10034fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10035039
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10034fe0
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10034fef
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043ac92
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10035040
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001beb6
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100350df
add edi, 4
add eax, 2
dec ecx
jne 0x10035025
call 0x1003508c
loope 0x10035082
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100350dc
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100350ed
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100350a0
cmp eax, ecx
ja 0x100350a0
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003512a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10035120
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.1001c395
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10034fef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10035039
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10034fe0
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10034fef
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043ac92
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10035040
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001beb6
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100350df
add edi, 4
add eax, 2
dec ecx
jne 0x10035025
call 0x1003508c
loope 0x10035082
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100350dc
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100350ed
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100350a0
cmp eax, ecx
ja 0x100350a0
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003512a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10035120
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.1001c395
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40a732
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43219d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x860
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a765
xor eax, eax
jmp 0x40a8ae
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::CFileFind
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
push str._s.
lea edx, [ebp - 0x86c]
push edx
call fcn.0040e990
add esp, 0xc
push 0
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::FindFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a864
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::FindNextFileW
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::IsDots
test eax, eax
jne 0x40a85f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::GetFileName
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
call fcn.00408ad0
test eax, eax
je 0x40a833
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x43c]
push edx
call fcn.0040e990
add esp, 0x10
lea eax, [ebp - 0x43c]
push eax
call 0x40a730
add esp, 4
jmp 0x40a85f
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x63c]
push eax
call fcn.0040e990
add esp, 0x10
lea ecx, [ebp - 0x63c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a7a0
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFileFind::Close
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a895
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420b2e
mov eax, dword [ebp - 0x1c]
jmp 0x40a8ae
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420b2e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x422f76
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422fb5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422fb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422fb5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x422fb5
cmp dword [ecx + 0x74], 0xe
jbe 0x422fb5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x425d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433954
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x44a340]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x425e25
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call sub.mfc140u.dll_CListCtrl::InsertItem
mov edi, eax
test edi, edi
js 0x425e28
mov ecx, ebx
call fcn.00425660
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.mfc140u.dll_operator_2
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x425dda
push 0x423ff0
push 0x423e60
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.00421d8f
jmp 0x425ddc
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x425e25
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call sub.mfc140u.dll_CListCtrl::SetItem
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0xb4def5
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
pop ebp
ret
Function at 0x406f70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x406fa9
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406f99
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x406fb9
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x406fce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
pop ebp
ret 4

Function at 0x407350
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x407360
mov eax, dword [edi]
jmp 0x407362
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x40736a
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40737d
pop edi
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x40738b
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x407393
mov esi, dword [esi]
push eax
push 3
push edi
push esi
push str.move_file_from____s___to____s___flag___d_failed__error___d.
push 0xa9
push str.utility::ufile::moveFile
call fcn.0040b300
add esp, 0x1c
xor al, al
pop edi
pop esi
ret

Function at 0x407ec0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x407ee3
mov eax, dword [edi]
jmp 0x407ee5
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x407eed
mov ecx, dword [esi]
push 0
push 1
push eax
push ecx
push str.shell_filename____s___param____s___runas___d__show___d
push 0xb
push str.utility::process::shell
call fcn.0040b300
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0049fd20
add esp, 0x28
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x407f4c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov eax, str.runas
mov ecx, str.open
cmovb eax, ecx
cmp dword [edi + 0x14], 8
jb 0x407f68
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x407f70
mov esi, dword [esi]
push 0
push 0
push edi
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x407fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x18
push str.utility::process::shell
call fcn.0040b300
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493b03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00493b03
mov esp, ebp
pop ebp
ret
Function at 0x4080d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c854e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40810b
mov eax, dword [esi]
jmp 0x40810d
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x408115
mov ecx, dword [edi]
push 0
push eax
push ecx
push str.createProcess_filename____s___param____s___show___d
push 0xea
push str.utility::process::create
call fcn.0040b300
push edi
mov edx, 0x4ead54
lea ecx, [ebp - 0x98]
call fcn.004082a0
push 0x4ead54
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407850
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x84], 8
jb 0x408172
push dword [ebp - 0x98]
call fcn.0047ad70
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
cmp dword [esi + 0x10], eax
je 0x4081d4
push esi
mov edx, 0x4ead58
lea ecx, [ebp - 0xb0]
call fcn.004082a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00407d10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x9c], 8
jb 0x4081d4
push dword [ebp - 0xb0]
call fcn.0047ad70
add esp, 4
push 0x40
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0049fd20
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x7c], 0
xor eax, eax
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x50], eax
push ecx
push 0
push 0
push 0x10
push 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x54], 1
movdqu xmmword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408265
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0xfd
push str.utility::process::create
call fcn.0040b300
add esp, 0x10
xor esi, esi
jmp 0x408271
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x14], 8
jb 0x408282
push dword [ebp - 0x28]
call fcn.0047ad70
add esp, 4
mov eax, esi
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.00493b03
mov esp, ebp
pop ebp
ret

Function at 0x40acf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0049fd20
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40ad4b
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.00493b03
mov esp, ebp
pop ebp
ret
Function at 0x40ae70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x38
lea eax, [ebp - 0x3c]
mov esi, ecx
push 0
push eax
call fcn.0049fd20
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x34], str.open
jb 0x40aeb2
mov eax, dword [esi]
jmp 0x40aeb4
mov eax, esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40aeeb
cmp dword [esi + 0x14], 8
jb 0x40aed4
mov esi, dword [esi]
push 5
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00493b03
mov esp, ebp
pop ebp
ret

Function at 0x40cf20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x50a8c8]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x40cf7a
push 0
push str.CoInitialize_error
push str.Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.00493b03
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 0x18
xor ecx, ecx
mov eax, esp
sub esp, 0x18
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov ecx, esp
xor eax, eax
push eax
push 0x4ea648
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00406060
call fcn.0043b9c0
mov dword [0x5132a0], 0x43db20
call fcn.0040b490
push 0x4ebaac
push str.downloader_start._version_is_:__s_
push 0x62
push str.wWinMain
call fcn.0040b300
add esp, 0x40
push str.commoninit_end
push 0x64
push str.wWinMain
call fcn.0040b300
add esp, 8
mov ecx, esi
call fcn.0040cd40
add esp, 4
push str.duilibInit2_end
push 0x67
push str.wWinMain
call fcn.0040b300
add esp, 0xc
call fcn.0040cdf0
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push edi
movdqa xmmword [esp + 0x14], xmm0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x18], vtable.DNDownloaderImpl.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call fcn.0040dda0
test al, al
je 0x40d066
call fcn.00451c90
lea ecx, [esp + 0x10]
call fcn.0040e090
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1cc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00493b03
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40dc90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x5132a8], 0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x40e5e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x118
push 0
push eax
mov dword [ebp - 0x124], 0
call fcn.0049fd20
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40e649
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, esi
push 0xffffffffffffffff
jb 0x40e65d
push str.mainframe.xml
jmp 0x40e662
push str.mainframe_xp.xml
call fcn.0044a0c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00493b03
mov esp, ebp
pop ebp
ret 4
Function at 0x412ec0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
push 0x10
lea esi, [ebx + 0x54c]
mov dword [ebx + 0x5b4], esi
call fcn.00493c52
mov edi, eax
add esp, 4
test edi, edi
je 0x412f01
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi], vtable.MemberFuncRunable_class_DNDownloaderMainFrame_.0
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x413350
mov dword [edi + 0xc], 0
jmp 0x412f03
xor edi, edi
cmp dword [esi + 4], 0
jne 0x412f39
push 0
push 0
push 0
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x406fe0
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi], edi
call fcn.00494713
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4148b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50a8c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x513bb8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
test esi, esi
jne 0x41491d
push 0x38
call fcn.00493c52
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x41490e
mov ecx, eax
call fcn.0040c1b0
mov esi, eax
jmp 0x414910
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x513bb8], esi
push 2
push 0x4eaff4
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00405380
test eax, eax
jne 0x41493a
mov eax, 0x84
jmp 0x414957
push 2
push 0x4eb2e8
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00405380
neg eax
sbb eax, eax
neg eax
add eax, 0x8a
movzx eax, ax
push 0x4ed168
push eax
call fcn.0044ea20
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x414991
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x4ea648
mov word [edi], ax
call fcn.00406060
jmp 0x414a14
push ebx
call fcn.0044ea20
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
push ebx
test eax, eax
jne 0x4149ba
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4ea648
mov ecx, edi
call fcn.00406160
jmp 0x414a14
call fcn.0044ea20
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
shr esi, 1
push esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00406060
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00405ff0
cmp dword [ebp - 0x18], 8
jb 0x414a14
push dword [ebp - 0x2c]
call fcn.0047ad70
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493b03
mov esp, ebp
pop ebp
ret 4