joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a70
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x43ecdb
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
xor ebx, ebx
push 0x12c
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004307b0
add esp, 0xc
push 0xff
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x414bb9
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov edi, dword [esp + 0x14]
cmp dword [ecx + edi*4], ebx
lea eax, [ecx + edi*4]
je 0x414ba8
mov edx, dword [eax]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
cmp esi, ebx
je 0x414ba8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414b32
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004060e0
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414b50
sub eax, edx
mov edi, eax
cmp edi, 0x1e
jge 0x414b78
push edi
lea ecx, [esp + ebp + 0x3c]
push esi
push ecx
call fcn.004290d0
lea edx, [edi + ebp]
add esp, 0xc
mov byte [esp + edx + 0x38], bl
add dword [esp + 0x14], 1
add ebp, 0x1e
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x414af3
mov eax, dword [esp + 0x20]
push eax
call fcn.004293c2
add esp, 4
jmp 0x414af3
cmp edi, ebx
jle 0x414bb9
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x414bbb
xor eax, eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042877c
add esp, 0x260
ret
Function at 0x416960
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call ebp
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call ebp
mov edi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x416994
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x416990
xor eax, eax
mov ecx, 0x10
mov edx, edi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x14]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x20]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x1c]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
sub ecx, 1
jne 0x4169b1
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ebx, dword [esp + 0x2c]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x416a44
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x416a40
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x416a70
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x416a70
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret
Function at 0x417740
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43fbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push edi
call fcn.0041c220
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x34]
mov dword [edi + 0x20], eax
push edx
lea eax, [esp + 0x14]
mov dword [edi + 0x24], ecx
lea ecx, [esi + 0x10]
push eax
mov edx, esi
mov dword [edi], vtable.XFQuery::CCryptMemory.0
call fcn.00416840
push 0x1c
mov byte [esp + 0x30], 1
call fcn.004294f4
mov esi, eax
add esp, 4
test esi, esi
je 0x417810
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4177c6
mov ecx, dword [esp + 0x18]
sub ecx, eax
jne 0x4177cf
call fcn.0042931e
mov eax, dword [esp + 0x14]
mov dword [esi], vtable.XFQuery::CCrypt.0
mov dword [esi + 0x18], 0
mov byte [esi + 0x14], 1
mov byte [esi + 0x15], 1
mov edx, dword [eax]
mov dword [esi + 4], edx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0xc]
push 0
mov dword [esi + 0x10], eax
call fcn.0042958d
add esp, 4
push eax
call fcn.0042955e
add esp, 4
jmp 0x417812
xor esi, esi
mov dword [edi + 0x1c], esi
mov dword [esi + 0x18], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41782d
push eax
call fcn.004293c2
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0xc
Function at 0x41aa20
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
mov eax, 0x55555556
imul dword [esp + 0x1c]
push edi
mov edi, ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
xor ebp, ebp
add ebx, edx
cmp edi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
mov eax, 0x13
je 0x41abce
cmp esi, ebp
je 0x41abce
cmp dword [esp + 0x24], ebp
je 0x41abce
test ebx, ebx
mov dword [esp + 0x14], ebp
jl 0x41ab33
cmp ebp, ebx
jne 0x41aaa3
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x41ab19
mov ebp, eax
lea esp, [esp]
movzx edx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi - 4], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shl ecx, 6
mov byte [esi - 3], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shr ecx, 0x14
and ecx, 0x3f
sub ebp, 1
mov byte [esi - 2], dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi - 1], cl
jne 0x41aab0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add ebp, 1
cmp ebp, ebx
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jle 0x41aa8a
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
je 0x41abb7
lea ebp, [ecx + 1]
test ebp, ebp
je 0x41abb7
xor eax, eax
test ecx, ecx
jle 0x41ab51
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x41ab61
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x41ab6e
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x41ab98
mov ecx, ebp
jmp 0x41ab80
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x41ab80
add dword [esp + 0x10], ebp
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x41abb3
push edi
push 0x3d
push esi
call fcn.004307b0
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x41b560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x41b6ef
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov eax, 0x103
call fcn.0041b880
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x41b6e8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x41b6e1
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.004307b0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x41b6e1
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x41b6d1
push ebp
lea edx, [esp + 0x24]
push 0x447340
push edx
call fcn.0042a885
add esp, 0xc
test eax, eax
jne 0x41b6ac
xor ebp, ebp
jmp 0x41b6e1
cmp dword [esp + 0xc], esi
jne 0x41b6d1
push 3
lea eax, [esp + 0x24]
push 0x447340
push eax
call fcn.0042a885
add esp, 0xc
test eax, eax
je 0x41b6d1
mov ebp, 2
jmp 0x41b6e1
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0042877c
add esp, 0x11c
ret
Function at 0x41b7d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43fac8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00413000
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41b824
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.0041b8a0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00413000
cmp dword [esp + 0x24], 8
jb 0x41b86a
mov eax, dword [esp + 0x10]
push eax
call fcn.004293c2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x41d440
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [edi + 4]
push esi
lea ebx, [esp + 0x4c]
lea eax, [esp + 0x18]
mov esi, edi
mov byte [esp + 0xf], 0
call fcn.0041e190
mov esi, eax
cmp edi, dword [esi]
je 0x41d468
call fcn.0042931e
cmp ebp, dword [esi + 4]
je 0x41d5a3
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
lea eax, [esp + 0x10]
push eax
lea esi, [edi + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
call fcn.0041e350
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
je 0x41d4a5
cmp eax, esi
je 0x41d4ae
call fcn.0042931e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
je 0x41d4fa
test eax, eax
jne 0x41d4c5
call fcn.0042931e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 4]
jne 0x41d4d3
call fcn.0042931e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x41d598
mov dword [ecx + 0x1c], eax
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
cmp byte [edi + 0x19], 0
je 0x41d548
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x28]
push ecx
lea esi, [edi + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
call fcn.0041e3e0
mov byte [edi + 0x18], 1
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov ecx, ebp
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov byte [esp + 0x28], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
push edx
mov ebx, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], eax
call fcn.0041e200
mov byte [edi + 0x18], 1
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x41f9c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x440c18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [esi + 0xc], 0
jne 0x41fa90
cmp dword [esi + 0x60], 0
mov dword [esi + 0xb4], 0x5dc
jne 0x41fa46
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 0x421640
push 0
push 0
call fcn.0042901e
add esp, 0x18
mov dword [esi + 0x60], eax
lea eax, [esi + 0x88]
lea edi, [eax + 4]
push edi
mov dword [esp + 0xc], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
push ecx
lea eax, [esi + 0x74]
mov dword [esp + 0x14], 1
call fcn.004218f0
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 + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x1c
ret

Function at 0x41fb50
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ea48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x44e2d0]
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.004218f0
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 0x41fc19
mov ecx, dword [esi + 0x68]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41fc0c
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 0x420570
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43f9c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00439a70
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x1038]
mov dword fs:[0], eax
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x39]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x40], bl
call fcn.004307b0
add esp, 0xc
push ebx
push ebx
push 0x1000
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push ebx
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
call fcn.004230c0
lea eax, [edi + 0x40]
lea ebp, [eax + 4]
push ebp
mov dword [esp + 0x30], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x1040], ebx
mov eax, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420626
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x18]
call fcn.00412f00
mov edx, esi
push edx
mov ebx, edi
mov byte [esp + 0x1044], 1
call fcn.00421430
xor ebx, ebx
mov byte [esp + 0x1040], bl
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x420671
mov eax, dword [esp + 0x14]
push eax
call fcn.004293c2
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
je 0x42069b
mov dword [esi + 0x5c], 1
lea ecx, [esi + 4]
lea esi, [edi + 0xa4]
call fcn.00411000
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1038]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.0042877c
add esp, 0x1034
ret
Function at 0x423e40
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4409e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
cmp dword [edi + 0x70], 0
je 0x423e83
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, edi
call fcn.004226a0
cmp byte [esp + 0x3c], 0
jne 0x423eae
mov eax, dword [edi + 0x88]
cmp eax, 1
ja 0x423eae
add eax, 1
mov ecx, edi
mov dword [edi + 0x88], eax
call fcn.004224b0
jmp 0x423ebb
mov esi, edi
call fcn.00424c70
mov dword [edi + 0x70], eax
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x8c]
push eax
mov eax, edi
call fcn.00423ab0
mov ecx, dword [edi + 0x90]
push ecx
mov eax, edi
call fcn.00423b80
cmp dword [edi + 0x9c], 0
je 0x423eee
lea edx, [edi + 0xa0]
push edx
mov eax, edi
call fcn.00423d30
cmp dword [edi + 0x94], 0
je 0x423f04
mov ebx, dword [edi + 0x98]
mov eax, edi
call fcn.00423c50
push 0x44752c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi + 0x11ec]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00425170
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov edx, dword [edi + 0x11fc]
mov eax, dword [edx + 4]
lea esi, [edi + 0x11f8]
push eax
mov ecx, esi
call fcn.0040aad0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
lea ebx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebp, dword [esp + 0x20]
je 0x423f73
lea edx, [esp + 0x1c]
cmp ebx, edx
je 0x423f78
call fcn.0042931e
cmp esi, ebp
je 0x423fdf
test ebx, ebx
jne 0x423f85
call fcn.0042931e
cmp esi, dword [ebx + 4]
jne 0x423f99
call fcn.0042931e
cmp esi, dword [ebx + 4]
jne 0x423f99
call fcn.0042931e
mov eax, dword [esi + 0xc]
push eax
push 0
lea ecx, [esi + 0x10]
push ecx
push edi
call fcn.00422770
test eax, eax
jne 0x423fcc
cmp esi, dword [ebx + 4]
jne 0x423fb7
call fcn.0042931e
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x80]
push edx
push 0x59
push eax
or ecx, 0xffffffff
call fcn.00420d40
lea esi, [esp + 0x14]
call fcn.00427520
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x423f63
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004263a0
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4