joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ad8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x409b70
push 0x43fc0c
push 4
push eax
call fcn.004299c8
push eax
call fcn.00402478
add esp, 0x10
push ebx
push edi
call fcn.0042a59f
mov edi, dword [eax]
call fcn.0042a59f
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042a53c
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0042a59f
cmp dword [eax], ebx
je 0x409b87
call fcn.0042a59f
push dword [eax]
call fcn.00409207
pop ecx
jmp 0x409b8e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x409b1b
jmp 0x409c15
call fcn.0042a59f
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x409c11
cmp dword [ebp - 0x234], esi
jae 0x409c11
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00429440
add esp, 0xc
push 0x43f96c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x409c00
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x409c00
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x409c00
push ebx
push ebx
push esi
jmp 0x409c09
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x409c13
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004285ca
leave
ret

Function at 0x40ad33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40ad57
cmp dword [edi + 0x54], 0
jne 0x40ad57
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040eaf6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040acf4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40b2cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40b317
call fcn.0040eaf6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b317
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b35a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40b343
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40b343
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40b357
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f29d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43bc7a
call fcn.0042a3c8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f2c2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40f308
lea ecx, [ebp - 0x10]
call fcn.00401f2f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409117
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004023f6
mov eax, esi
call fcn.0042a4a0
ret 8

Function at 0x414bd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x414c19
call fcn.0040eaf6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414c19
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414c35
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041474a
mov esi, eax
test edi, edi
je 0x414c33
test ebx, ebx
je 0x414c33
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4285ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452800]
jne 0x4285d4
repz ret
jmp fcn.0042dfc1
Function at 0x434e35
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042d9d0
and dword [ebp - 4], 0
cmp dword [0x457f20], 0
mov ebx, eax
jne 0x434ee6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x434f97
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x434f97
push eax
call fcn.0042d95e
mov dword [esp], 0x4439ac
push edi
mov dword [0x457f20], eax
call esi
push eax
call fcn.0042d95e
mov dword [esp], 0x443998
push edi
mov dword [0x457f24], eax
call esi
push eax
call fcn.0042d95e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x457f28], eax
call esi
push eax
call fcn.0042d95e
pop ecx
mov dword [0x457f30], eax
test eax, eax
je 0x434ee6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d95e
pop ecx
mov dword [0x457f2c], eax
mov eax, dword [0x457f2c]
cmp eax, ebx
je 0x434f3e
cmp dword [0x457f30], ebx
je 0x434f3e
push eax
call fcn.0042d9d9
push dword [0x457f30]
mov esi, eax
call fcn.0042d9d9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x434f3e
test edi, edi
je 0x434f3e
call esi
test eax, eax
je 0x434f35
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x434f35
test byte [ebp - 0xc], 1
jne 0x434f3e
or dword [ebp + 0x10], 0x200000
jmp 0x434f77
mov eax, dword [0x457f24]
cmp eax, ebx
je 0x434f77
push eax
call fcn.0042d9d9
pop ecx
test eax, eax
je 0x434f77
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x434f77
mov eax, dword [0x457f28]
cmp eax, ebx
je 0x434f77
push eax
call fcn.0042d9d9
pop ecx
test eax, eax
je 0x434f77
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457f20]
call fcn.0042d9d9
pop ecx
test eax, eax
je 0x434f97
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x434f99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407eb7
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4315f8]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x42dd68]
mov ecx, dword [0x431600]
mov dword [0x4315f8], eax
movzx eax, al
add eax, dword [0x4315fc]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4315fc], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dd68]
mov eax, dword [esp + 4]
mov dword [0x431600], ecx
ret

Function at 0x407f47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c9d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x430698]
mov esi, ecx
call fcn.00407f0f
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00418040
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00407e9d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00407eb7
inc esi
cmp esi, 0xc
pop ecx
jl 0x407f76
cmp dword [0x430684], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x407fb5
movzx cx, byte [0x42db47]
cmp ax, cx
je 0x407fbf
or eax, 0xffffffff
jmp 0x407fc1
movzx cx, byte [0x42db4d]
jmp 0x407fab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147a9
leave
ret

Function at 0x408823
Capabilities:
Enumerate pe sections

Disassembly:
push 4
mov eax, 0x4239a9
call fcn.00414b99
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 2]
movzx ecx, word [ebx]
mov word [esi + 4], cx
mov word [esi + 6], ax
xor eax, eax
mov dword [esi], vtable.WzExtraWin32Attr.0
lea edi, [esi + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x18]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
cmp word [esi + 4], 0xa
mov dword [ebp - 4], ecx
mov dword [esi + 0x20], ecx
mov word [esi + 0x24], cx
je 0x408886
push 0x2a8
push dword [0x42c358]
call fcn.004033af
pop ecx
pop ecx
movzx eax, word [esi + 6]
cmp eax, 0x20
jge 0x4088a3
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x428f30
lea eax, [ebp + 0xb]
push eax
call fcn.004187d9
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
add eax, 0xffffffe0
test ax, ax
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0xc], ecx
mov word [esi + 0x24], ax
jbe 0x4088f1
movzx eax, ax
push eax
call fcn.00417a5e
movzx ecx, word [esi + 0x24]
push ecx
add ebx, 0x24
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.00418040
add esp, 0x10
mov eax, esi
call fcn.00414c38
ret 4
Function at 0x408896
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x4b4294]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004085c6
mov esi, eax
test esi, esi
jne 0x408975
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x40894d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00408896
mov esi, eax
test esi, esi
jne 0x408975
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x408912
jmp 0x40894f
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x408964
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00408149
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x408986
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044f332
add esp, 0x120
ret 4
Function at 0x4097bb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4097d5
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x4097e4
push 0xd
pop eax
jmp 0x409815
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00454b60
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x4097ec
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40afa3
Capabilities:
Delete file

Disassembly:
sub esp, 0x18c
mov eax, dword [0x4b4294]
xor eax, esp
mov dword [esp + 0x188], eax
cmp dword [esp + 0x194], 0
push esi
mov esi, dword [esp + 0x194]
push edi
mov ecx, dword [esi + 0x2478]
jne 0x40b00c
mov edx, dword [esi + 0x2474]
test edx, edx
je 0x40afde
test ecx, ecx
je 0x40b00c
mov eax, dword [esi]
push edx
push ecx
push esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x40b002
push 1
call fcn.0041016c
pop ecx
test eax, eax
je 0x40b00c
mov eax, 0x80070204
jmp 0x40b1c6
call fcn.0041131c
jmp 0x40b1c4
cmp dword [esi + 0x2478], 0
je 0x40b023
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0040d4b8
push 0x104
lea eax, [esp + 0x90]
mov ecx, esi
push eax
call fcn.0040b366
mov edi, eax
test edi, edi
js 0x40b1b9
push ebx
push ebp
push str.Download_Status:_Download_Complete
call fcn.00411fd0
pop ecx
push 1
call fcn.00424fbb
mov ecx, eax
call fcn.004252a1
mov edi, str.CDownloadManager::DownloadExecInstaller
mov ebp, str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_au_jucheck_DownloadManager.cpp
test al, al
je 0x40b0b1
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00424532
push eax
lea eax, [esp + 0x34]
push str.DownloadManager_MOS_MODE
push eax
call fcn.004072c7
add esp, 0x14
push eax
push edi
push 0xa0
push ebp
push 1
call fcn.00424fbb
mov ecx, eax
call fcn.004252ad
lea ecx, [esp + 0x28]
call fcn.00405bc4
lea ecx, [esp + 0x40]
call fcn.00405bc4
lea eax, [esp + 0x94]
mov bl, 1
push eax
lea ecx, [esp + 0x14]
call fcn.0040317d
push 0
push 0x488658
lea ecx, [esp + 0x18]
call fcn.0040ca18
cmp eax, 0xffffffff
je 0x40b107
push 1
call fcn.00424fbb
mov ecx, eax
call fcn.004252a1
test al, al
je 0x40b105
push str.MOS__cb_detected__do_not_run
push edi
push 0xa6
push ebp
push 1
call fcn.00424fbb
mov ecx, eax
call fcn.004068e6
xor bl, bl
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
js 0x40b143
test bl, bl
je 0x40b143
push dword [esp + 0x1a4]
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push 1
push ecx
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jns 0x40b1ac
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x40b1a6
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.0042f64f
lea ecx, [esp + 0x58]
call fcn.0042f8dd
call fcn.0042b478
push eax
push 0x74
call fcn.0042b478
push eax
push 0x72
lea ecx, [esp + 0x68]
call fcn.0042f7da
mov ecx, eax
call fcn.0042f9c4
mov ecx, eax
call fcn.0042f94a
lea ecx, [esp + 0x70]
call fcn.00405bea
lea ecx, [esp + 0x58]
call fcn.00405bea
call fcn.004111fc
push str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
call fcn.00411fd0
pop ecx
lea ecx, [esp + 0x10]
call fcn.00405bc4
pop ebp
pop ebx
jmp 0x40b1c4
push str.Download_Status:_Download_Failed
call fcn.00411fd0
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x190]
pop edi
pop esi
xor ecx, esp
call fcn.0044f332
add esp, 0x18c
ret 8
Function at 0x40b70d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
lea eax, [ebp - 0x40]
push 0x3c
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00452680
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x140
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], eax
call fcn.0042b9a7
cmp eax, 2
mov dword [ebp - 0x24], 1
mov edx, str.open
mov ecx, str.runas
push 6
cmovl ecx, edx
push edi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
test eax, eax
je 0x40b7b8
cmp dword [ebp + 0x10], 0
je 0x40b7aa
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, 0x669
cmove eax, ecx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40b7be
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 0xc
Function at 0x40c7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x160
mov eax, dword [0x4b4294]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x170]
push edi
call fcn.0041168f
mov ecx, dword [esp + 0x178]
xor edx, edx
inc edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esi + 0x54], edx
test ecx, ecx
mov ebp, edx
sete al
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x40c82a
and dword [esi + 0x58], 0
push 0x12
push str.PreDownldStatus
push 0
call fcn.00411870
add esp, 0xc
lea ebx, [esi + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
test eax, eax
je 0x40c984
mov edi, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c984
mov eax, dword [ebx]
push ebp
push edi
push ebx
call dword [eax + 0x30]
mov edi, eax
cmp edi, 0x80070204
je 0x40c989
test edi, edi
jne 0x40c971
cmp dword [esi + 0x2370], eax
je 0x40c971
and dword [esi + 0x50], eax
call fcn.0041b04c
push eax
lea ecx, [esp + 0x94]
call fcn.0041ab57
lea eax, [esi + 0x46c]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040317d
lea eax, [esi + 0x18ec]
push eax
lea ecx, [esp + 0x64]
call fcn.0040317d
lea eax, [esi + 0x7ec]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040317d
lea eax, [esi + 0x17ec]
push eax
lea ecx, [esp + 0x34]
call fcn.0040317d
lea eax, [esi + 0x19ec]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040317d
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa4]
call fcn.0041ade4
lea ecx, [esp + 0x18]
call fcn.00405bc4
lea ecx, [esp + 0x30]
call fcn.00405bc4
lea ecx, [esp + 0x48]
call fcn.00405bc4
lea ecx, [esp + 0x60]
call fcn.00405bc4
lea ecx, [esp + 0x78]
call fcn.00405bc4
lea ecx, [esp + 0x90]
call fcn.0041b2ff
xor ecx, ecx
inc ecx
mov dword [esi + 0x50], ecx
cmp eax, 2
je 0x40c9c8
lea ecx, [esp + 0x90]
cmp dword [esp + 0x17c], edi
jne 0x40c9bd
call fcn.0041ac1c
mov eax, dword [ebx]
xor edi, edi
push ebx
inc edi
xor ebp, ebp
call dword [eax + 0x28]
test eax, eax
jne 0x40c850
mov edi, 0x80004005
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x247c], 0
je 0x40c9a0
and dword [esi + 0x54], 0
mov ecx, dword [esp + 0x16c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044f332
add esp, 0x160
ret 0xc
and dword [esi + 0x247c], 0
xor edi, edi
jmp 0x40c9d5
mov dword [esi + 0x247c], ecx
lea ecx, [esp + 0x90]
call fcn.0041ac1c
jmp 0x40c989
Function at 0x40ced0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b4294]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 1
mov dword [edi + 0xc], 0xbc2
mov eax, dword [0x4b7d98]
push ebx
mov dword [edi + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x38], eax
call fcn.0041168f
mov dword [edi + 0x3c], eax
call fcn.0040ef49
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], eax
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x38]
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push 0x40cd12
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40cf64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [edi + 0x54]
mov ebx, 0x104
push ebx
push eax
push 0x7b
push dword [edi + 0x18]
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7c
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0040cff7
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f332
leave
ret 4

Function at 0x40e030
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x40e08c
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call fcn.00403cd8
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0040ae16
mov edi, esi
cmp esi, ebx
jl 0x40e056
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x40e0ab
test al, 1
jne 0x40e0ab
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebp
add ecx, ebp
push eax
call fcn.0040ae16
mov edi, dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x18]
push edi
push ebp
call fcn.0040e151
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret