joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1177d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1177d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x1177d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1177d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1177d94
push eax
push esi
call fcn.0117a20b
add esp, 8
pop esi
ret 0x10

Function at 0x1177da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1177e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x1177e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x1190320
push ecx
mov dword [esp + 0x1c], 4
call fcn.01179dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x1177dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x1177e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1177ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x1177eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x1190320
push ecx
mov dword [esp + 0x1c], 4
call fcn.01179dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x1177eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x1177e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x1178000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1178131
push esi
call fcn.0117b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0116a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x1178131
push 0
push ebp
call fcn.0116a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0116a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x117808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0116a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1178121
push 0x1190918
push edi
call fcn.011793f0
push eax
push ebx
push esi
call fcn.01177f60
push 0x11908f8
push edi
call fcn.011793f0
push eax
push ebx
push esi
call fcn.01177f60
push 0x11908d8
push edi
call fcn.011793f0
push eax
push ebx
push esi
call fcn.01177f60
push 0x11908c0
push edi
call fcn.011793f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.01177f60
push 0x11908a0
push edi
call fcn.011793f0
push eax
push ebx
push esi
call fcn.01177f60
push 0x1190888
push edi
call fcn.011793f0
push eax
push ebx
push esi
call fcn.01177f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x11791b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.01179140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.01179140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.01179140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.01179140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x1179bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1179c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x118b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1179c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1179c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x408c60
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x408c86
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x408c70
ret
Function at 0x4161a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x58], 0
pop esi
pop ebp
ret
Function at 0x416d90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x5c
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0
call fcn.00416860
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push ecx
push edx
call fcn.00416c20
add esp, 0x20
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416f43
mov edx, dword [ebp + 0x10]
test edx, edx
jle 0x416f43
cmp edx, 8
push esi
mov esi, dword [ebp + 8]
not esi
jl 0x416f15
push ebx
push edi
mov edi, edx
shr edi, 3
mov eax, edi
neg eax
lea edx, [edx + eax*8]
jmp 0x416e40
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5cecd0]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x416e40
pop edi
pop ebx
test edx, edx
je 0x416f3c
lea esp, [esp]
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5cecd0]
add ecx, 1
sub edx, 1
jne 0x416f20
mov eax, esi
not eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x416fa0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x14]
xor edx, edx
bswap eax
bswap ecx
sub esi, edi
jmp 0x416fc0
lea edi, [esi + edx*4]
mov edi, dword [ebp + edi - 0x14]
bswap edi
mov dword [ebp + edx*4 - 0x14], edi
add edx, 1
cmp edx, 4
jl 0x416fc0
xor edx, edx
mov dword [ebp - 4], 0x10
mov edi, edi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x10]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0x14]
sub edx, 0x61c88647
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
add eax, esi
mov esi, eax
shr esi, 5
add esi, dword [ebp - 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
add ecx, esi
sub dword [ebp - 4], 1
jne 0x416fe0
mov edx, dword [ebp + 0xc]
bswap eax
bswap ecx
pop edi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417030
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x14]
xor edx, edx
bswap ecx
bswap eax
sub esi, edi
jmp 0x417050
lea edi, [esi + edx*4]
mov edi, dword [ebp + edi - 0x14]
bswap edi
mov dword [ebp + edx*4 - 0x14], edi
add edx, 1
cmp edx, 4
jl 0x417050
mov edx, 0xe3779b90
mov dword [ebp - 4], 0x10
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 8]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [ebp - 0x10]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0x14]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
sub ecx, esi
add edx, 0x61c88647
sub dword [ebp - 4], 1
jne 0x417071
mov edx, dword [ebp + 0xc]
bswap ecx
bswap eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417e40
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x417e4b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp fcn.00417e60
Function at 0x417e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x417e92
lea esp, [esp]
test cl, 3
je 0x417e92
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5cccd0]
add ecx, 1
sub esi, 1
jne 0x417e70
cmp esi, 0x20
push ebx
push edi
jb 0x41807c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5cd0d0]
xor edx, dword [ebx*4 + 0x5cd4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5cccd0]
add ecx, 4
xor edx, dword [eax*4 + 0x5cd8d0]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5cd0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5cd4d0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5cccd0]
add ecx, 4
xor eax, dword [edx*4 + 0x5cd8d0]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5cd0d0]
xor edx, dword [ebx*4 + 0x5cd4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5cccd0]
xor edx, dword [eax*4 + 0x5cd8d0]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5cd0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5cd4d0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5cccd0]
xor eax, dword [edx*4 + 0x5cd8d0]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5cd0d0]
xor edx, dword [ebx*4 + 0x5cd4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5cccd0]
xor edx, dword [eax*4 + 0x5cd8d0]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5cd0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5cd4d0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5cccd0]
and edx, 0xff
xor eax, dword [edx*4 + 0x5cd8d0]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5cd0d0]
xor edx, dword [ebx*4 + 0x5cd4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5cccd0]
add ecx, 4
xor edx, dword [eax*4 + 0x5cd8d0]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5cd0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5cd4d0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5cccd0]
and edx, 0xff
xor eax, dword [edx*4 + 0x5cd8d0]
sub edi, 1
jne 0x417ea2
cmp esi, 4
jb 0x4180c9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5cd0d0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5cd4d0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5cccd0]
and eax, 0xff
xor edi, dword [eax*4 + 0x5cd8d0]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x418086
test esi, esi
pop edi
pop ebx
je 0x4180ed
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5cccd0]
add ecx, 1
sub esi, 1
jne 0x4180d0
not eax
pop esi
ret
Function at 0x4197b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x419840
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41980f
sub eax, ebp
jmp 0x419811
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x419800
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x419830
sub eax, ebp
jmp 0x419832
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x419821
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x419972
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, ecx
mov dword [esp + 0x10], edx
jbe 0x419868
mov ebx, ecx
test ebx, ebx
je 0x4198bc
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41988a
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0041e010
jmp 0x4198a3
cmp eax, 2
jne 0x4198aa
mov ecx, dword [edi]
test ecx, ecx
mov eax, dword [edi + 0x30]
jne 0x41989c
xor eax, eax
jmp 0x4198a7
mov edx, ebx
call fcn.00417e60
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call sub.MSVCR80.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x4198e6
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4198fa
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4197c0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x419972
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x419941
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x419921
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x419972
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x41995b
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41f210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x610304]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [esi + 0xc], 0
jne 0x41f2e7
cmp dword [esi + 0x60], 0
mov dword [esi + 0xb4], 0x5dc
jne 0x41f29d
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x64], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x68], eax
call edi
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x70]
push eax
push 0
push esi
push 0x420e40
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x60], eax
lea eax, [esi + 0x88]
lea edi, [eax + 4]
push edi
mov dword [esp + 0x10], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
push ecx
lea eax, [esi + 0x74]
mov dword [esp + 0x18], 1
call fcn.00421360
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41f380
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1048
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x610304]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea edi, [esi + 0x88]
mov dword [esp + 0x10], edi
add edi, 4
push edi
mov dword [esp + 0x10], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
lea eax, [esi + 0x74]
mov dword [esp + 0x18], 2
call fcn.00421360
mov ecx, dword [esi + 0x6c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x64]
push edx
call ebx
mov eax, dword [esi + 0x6c]
push eax
call ebx
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41f449
mov ecx, dword [esi + 0x68]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41f43c
mov edx, dword [esi + 0x60]
push 0x3ff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x60]
push eax
call edi
mov dword [esi + 0x60], 0
mov ecx, dword [esi + 0x6c]
push ecx
call edi
mov edx, dword [esi + 0x64]
push edx
call edi
mov eax, dword [esi + 0x68]
push eax
call edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423b30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a1bde
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x610304]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CDownloadDispatcher.0
push esi
mov dword [esp + 0x18], 6
call fcn.00424840
mov eax, esi
call fcn.00423e30
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi + 0x1238]
push eax
mov dword [esi + 0x1234], 0x5d1414
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x1218]
mov dword [esi + 0x1234], 0x5d140c
mov byte [esp + 0x14], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esi + 0x11fc]
mov byte [esp + 0x14], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esi + 0x11f0]
mov byte [esp + 0x14], 2
call fcn.00422350
lea eax, [esi + 0x11e4]
mov byte [esp + 0x14], 1
call fcn.00427100
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret