joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c59
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x416c64
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x416d1f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x493cb8]
inc edx
sub edi, 8
dec esi
jne 0x416c84
pop ebx
test edi, edi
je 0x416d38
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x493cb8]
inc edx
dec edi
jne 0x416d23
pop edi
not eax
pop esi
ret

Function at 0x416d3d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movsx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x493cb8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x493cb8]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4171eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x41721f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41721a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x417247
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x417230
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00453f70
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x419579
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41962b
cmp dword [esi + 4], 0xffffffff
jne 0x41962b
push ebx
push edi
lea ebx, [esi + 0x244]
push ebx
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call fcn.0045494d
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp ax, 0x5c
je 0x4195d1
cmp ax, 0x2f
je 0x4195d1
push 0x4a1f38
push edi
push ebx
call fcn.00454967
add esp, 0xc
cmp dword [ebp + 0x10], 1
pop edi
pop ebx
jne 0x4195f4
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4195f4
mov eax, 0x2000000
jmp 0x419630
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417019
add esp, 0x10
test eax, eax
jne 0x419612
mov eax, dword [ebp + 0x10]
jmp 0x419630
push eax
call fcn.0041905b
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x419630
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc

Function at 0x419635
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b4970]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x419669
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419669
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x41971f
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x419688
cmp cx, 0x5c
jne 0x41968a
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x41967c
push edi
cmp eax, esi
je 0x4196c9
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00453f70
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00419635
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
mov edi, 0x104
test ebx, ebx
je 0x4196ec
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00454727
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00454967
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x41971f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045466b
leave
ret
Function at 0x41a60f
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x41b4b9
Capabilities:
Get disk information

Disassembly:
push 0x34
mov eax, 0x488f6b
call fcn.00454e33
mov eax, dword [ebp + 8]
push 0x4b6d04
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.0041acdf
movsx ebx, byte [ebp + 0xc]
push ebx
lea eax, [ebp - 0x34]
push str.._c:
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0041b32d
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push dword [ebp - 0x34]
call esi
cmp eax, 1
jne 0x41b537
push dword [ebp - 0x38]
push str._08X
push dword [ebp - 0x3c]
call fcn.0041b32d
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0041a963
xor eax, eax
inc eax
jmp 0x41b585
push ebx
lea eax, [ebp - 0x34]
push str._c:_
push eax
call fcn.0041b32d
mov ebx, dword [ebp - 0x34]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push ebx
call esi
cmp eax, 1
jne 0x41b57b
push dword [ebp - 0x38]
push str._08X
push dword [ebp - 0x3c]
call fcn.0041b32d
xor edi, edi
add esp, 0xc
inc edi
lea ecx, [ebx - 0x10]
call fcn.0041a963
mov eax, edi
call fcn.00454eb6
ret
Function at 0x41c5c4
Capabilities:
Get storage device properties

Disassembly:
push 0x44
mov eax, 0x489167
call fcn.00454e69
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, esi
mov byte [ebp - 0x21], bl
call fcn.0041ade7
push edi
mov ecx, esi
call fcn.0041c293
mov eax, dword [esi]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x41c60a
xor al, al
jmp 0x41c776
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0x18
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x41c76a
mov eax, dword [ebp - 0x48]
push 0xc
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00454800
mov edi, 0xa000
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call fcn.00453559
or dword [ebp - 4], 0xffffffff
add esp, 0x10
push edi
push ebx
push eax
mov dword [ebp - 0x28], eax
call fcn.00454800
add esp, 0xc
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x9fff
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41c720
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x9fff], bl
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], ecx
cmp eax, ebx
je 0x41c6c8
cmp eax, edi
jae 0x41c6c8
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.0041c10c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x41c6e4
cmp eax, edi
jae 0x41c6e4
mov ecx, dword [ebp - 0x28]
add eax, ecx
push eax
lea ecx, [esi + 4]
call fcn.0041c10c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x41c700
cmp eax, edi
jae 0x41c700
mov ecx, dword [ebp - 0x28]
add eax, ecx
push eax
lea ecx, [esi + 0xc]
call fcn.0041c10c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x41c71c
cmp eax, edi
jae 0x41c71c
mov ecx, dword [ebp - 0x28]
add eax, ecx
push eax
lea ecx, [esi + 0x10]
call fcn.0041c10c
mov byte [ebp - 0x21], 1
push edi
push ebx
push dword [ebp - 0x28]
call fcn.00454800
add esp, 0xc
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x9fff
push dword [ebp - 0x28]
mov dword [ebp - 0x34], ebx
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41c76a
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x9fff], bl
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.0041c10c
mov byte [ebp - 0x21], 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x21]
call fcn.00454ec5
ret
Function at 0x41cb6f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cb81
xor eax, eax
ret
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
ret

Function at 0x41d522
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d5a8
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x41d593
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x41d585
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
leave
ret 0x10

Function at 0x41d88e
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x489280
call fcn.00454dca
push dword [ebp + 8]
call fcn.0041cb6f
pop ecx
test eax, eax
je 0x41d8af
xor eax, eax
call fcn.00454ea2
ret
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041d827
mov edi, dword [ebp - 0x14]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0041cbb5
push 0x5c
push edi
call fcn.0045621c
add esp, 0xc
cmp eax, esi
jne 0x41d8e5
push 0xf
pop esi
push edi
call fcn.0045471c
pop ecx
mov eax, esi
jmp 0x41d8a9
xor ecx, ecx
push edi
mov word [eax], cx
call fcn.0041d88e
pop ecx
cmp eax, esi
je 0x41d8f9
mov esi, eax
jmp 0x41d8da
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d8f5
jmp 0x41d8da

Function at 0x41e0d6
Capabilities:
Get thread local storage value

Disassembly:
push esi
call fcn.0041e0aa
mov esi, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 8]
add eax, ecx
push eax
mov ecx, esi
call fcn.0041d5e9
pop esi
ret

Function at 0x41e2a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41e2c2
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00457a35
add esp, 0xc
pop ebp
ret 0xc
Function at 0x41e521
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x489333
call fcn.00454dca
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x1108], eax
je 0x41e55a
and dword [esi + 0x10e8], 0
add esi, 0x10cc
and dword [esi + 0x20], 0
mov dword [esi + 0x18], 0x3f3
jmp 0x41e73c
xor edi, edi
cmp dword [esi + 0x10f0], edi
je 0x41e73c
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 8]
mov dword [esi + 0x1104], eax
mov dword [esi + 0x10f4], edi
call fcn.0041d3d8
lea ebx, [esi + 0x10cc]
mov ecx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0041cc38
push dword [ebp + 0xc]
mov dword [esi + 0x4c], edi
lea edi, [esi + 0x58]
mov ecx, edi
call fcn.0041c9e3
push edi
call fcn.0041cb8c
mov dword [esp], 0x4949fc
push dword [edi]
call fcn.0045506c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x30]
mov dword [esi + 0x10f8], eax
call fcn.0041d808
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041d808
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041cbd7
add esp, 0xc
mov ecx, edi
call fcn.0041c8f8
cmp eax, 3
jb 0x41e71b
lea ecx, [ebp - 0x30]
call fcn.0041c8f8
cmp eax, 2
jb 0x41e71b
lea ecx, [ebp - 0x18]
call fcn.0041c8f8
cmp eax, 2
jb 0x41e71b
lea edi, [esi + 0x60]
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.0041d7eb
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0041d7eb
mov ebx, 0x41e34a
jmp 0x41e687
mov ecx, edi
call fcn.0041c8f8
test eax, eax
je 0x41e6be
push edi
lea ecx, [ebp - 0x18]
call fcn.0041c9e3
push dword [ebp - 0x20]
call fcn.0045471c
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0045471c
mov eax, dword [edi]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.0041d7eb
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0041d7eb
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push 0
push ebx
push 0
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0041c8b4
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.0041c8b4
push eax
push dword [esi + 0x10f0]
call dword [esi + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x41e642
push dword [ebp - 0x20]
call fcn.0045471c
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0045471c
pop ecx
pop ecx
push dword [esi + 8]
mov ecx, esi
call fcn.0041db93
cmp dword [esi + 0x10f4], 0
je 0x41e6f6
cmp dword [esi + 8], 0
je 0x41e6f6
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
call fcn.0041cc50
push dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call fcn.0045471c
push dword [ebp - 0x30]
call fcn.0045471c
pop ecx
pop ecx
mov eax, esi
jmp 0x41e73e
push dword [ebp - 0x18]
and dword [ebx + 0x1c], 0
and dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0x3ea
call fcn.0045471c
push dword [ebp - 0x30]
call fcn.0045471c
pop ecx
pop ecx
xor eax, eax
call fcn.00454ea2
ret 0xc
Function at 0x41e925
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41e953
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
jmp 0x41ea8f
mov eax, dword [0x4b69cc]
cmp eax, 0xffffffff
je 0x41e977
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41e977
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41e946
push esi
push 1
call fcn.0041d3f6
pop ecx
pop ecx
test eax, eax
jne 0x41e997
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41e949
push ebx
lea ebx, [esi + 0x10cc]
mov ecx, ebx
call fcn.0041cc38
cmp dword [esi + 0x10f0], ebp
jne 0x41ea4c
cmp dword [esi + 0x110c], ebp
jne 0x41ea50
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41ea39
cmp dword [esi + 0x1114], ebp
je 0x41ea39
cmp dword [esi + 0x1118], ebp
je 0x41ea39
cmp eax, ebp
jne 0x41ea50
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41ea8e
push ebx
push 1
push 0x41e321
push fcn.0041e300
push 0x41d98c
push 0x41e2d7
push 0x41e7e7
push 0x41d42b
push 0x41d426
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop esi
pop ebp
ret
Function at 0x42084a
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov byte [esi + 0x10], 1
je 0x420887
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x420876
push dword [esi + 0x14]
jmp 0x42088a
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 4], 0
jmp 0x420890
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret 4

Function at 0x42092e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x420942
xor eax, eax
jmp 0x4209a3
push edi
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [esi + 0x14]
call edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x420894
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00457d2b
add esp, 0x18
cmp eax, ebx
ja 0x420973
xor eax, eax
jmp 0x4209a2
mov dword [esi + 4], eax
cmp byte [esi + 0x11], bl
je 0x420984
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
mov dword [ebp - 8], eax
call edi
xor eax, eax
cmp dword [ebp - 8], ebx
jne 0x4209a2
mov byte [esi + 0x10], bl
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420c6c
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x251c]
test eax, eax
jne 0x420c7d
mov eax, 0x80004005
jmp 0x420c9d
push eax
push dword [esp + 8]
push 1
push dword [ecx + 0x2548]
call fcn.00457f5c
add esp, 0x10
cmp eax, dword [esp + 4]
sbb eax, eax
and eax, 0x80004005
ret 4
Function at 0x423ad0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489a7e
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00457a70
push ebx
push esi
push edi
mov eax, dword [0x4b4970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov word [ebp - 0x1020], ax
lea eax, [ebp - 0x1020]
push eax
xor edi, edi
push str.CHttpTask::Run
lea ecx, [ebp - 0x19]
mov dword [ebp - 0x20], edi
call fcn.00422afc
push 0x1dd
mov dword [ebp - 4], edi
call fcn.00440b62
mov eax, dword [esi]
xor ebx, ebx
inc ebx
pop ecx
mov ecx, esi
cmp dword [esi + 0x2540], ebx
jne 0x423b4b
call dword [eax + 0x90]
jmp 0x423cc0
call dword [eax + 0x94]
cmp eax, edi
je 0x423ba4
cmp eax, ebx
je 0x423ba4
lea ecx, [esi + 0x24f4]
cmp dword [ecx], edi
jne 0x423b69
mov dword [ecx], 2
cmp eax, 7
je 0x423b99
push str..downloading
lea eax, [esi + 0x24c4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004223c1
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041a963
mov dword [esi + 0x256c], edi
jmp 0x423cb9
cmp dword [esi + 0x2508], ebx
jne 0x423ca7
mov dword [esi + 0x256c], ebx
cmp eax, ebx
jne 0x423bea
push str..downloading
lea eax, [esi + 0x24c4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004223c1
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041a963
jmp 0x423ca7
cmp dword [esi + 0x253c], edi
je 0x423bfe
push dword [esi + 0x24c4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esi + 0x24c4]
push edi
lea ecx, [ebp - 0x14]
call fcn.0041c0ee
and dword [ebp - 0x18], 0
push str..downloading
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004223c1
add esp, 0xc
push ebx
jmp 0x423c5e
push dword [ebp - 0x18]
push str.___d_
push edi
call fcn.00422357
add esp, 0xc
inc dword [ebp - 0x18]
push str..downloading
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004223c1
add esp, 0xc
cmp dword [ebp - 0x18], 3
jg 0x423c83
push 1
mov ecx, dword [edi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0041a963
test bl, bl
jne 0x423c2d
jmp 0x423c96
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041a963
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0041a963
xor edi, edi
cmp dword [esi + 0x256c], edi
jne 0x423cb9
mov dword [esi + 0x24f4], 2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
push 0xfffffffffffffffc
call fcn.0041e0d6
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424ca1
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489d5e
mov eax, dword fs:[0]
push eax
mov eax, 0x1810
call fcn.00457a70
push ebx
push esi
push edi
mov eax, dword [0x4b4970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov word [ebp - 0x181c], ax
lea eax, [ebp - 0x181c]
push eax
mov esi, str.CHttpTask::HttpQueryInternetFileSize
xor ebx, ebx
push esi
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x81c], ebx
call fcn.00422afc
push 0x38b
mov dword [ebp - 4], ebx
call fcn.00440b62
mov eax, dword [edi + 0x2518]
pop ecx
cmp eax, ebx
jne 0x424d70
push 0x390
push esi
lea eax, [ebp - 0x818]
push str._s__d_
push eax
call fcn.0041e3bc
push dword [eax]
mov byte [ebp - 4], 1
call fcn.00448449
lea eax, [ebp - 0x810]
add esp, 0x14
cmp dword [ebp - 0x818], eax
je 0x424d4f
push dword [ebp - 0x818]
call fcn.0045471c
pop ecx
mov ebx, 0x80004005
push 0xfffffffffffffffc
call fcn.0041e0d6
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20000005
push eax
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x424d54
or dword [esi], 0xffffffff
mov dword [edi + 0x2500], ebx
jmp 0x424d54