joyce8/EMBER2024-capa huggingface dataset:
Function at 0x640116c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
sub ebx, dword [ecx + 0x3c]
mov esi, dword [ecx + 0x34]
sub ebx, esi
cdq
inc ebx
mov edi, eax
mov dword [ebp - 0x18], ebx
xor edi, edx
lea eax, [ebp - 0x68]
sub edi, edx
mov edx, 1
sub edx, dword [ecx + 0x38]
sub edx, dword [ecx + 0x30]
add edi, edx
push eax
mov dword [ebp - 0x14], edi
call fcn.6400cc10
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov ecx, edx
imul ecx, esi
add ecx, dword [ebp - 0x64]
test edi, edi
jle 0x6401182e
lea eax, [ebx*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
add esi, ecx
add ecx, dword [ebp - 0x44]
lea ebx, [esi + eax]
add eax, ecx
mov dword [ebp - 0xc], eax
sub eax, edx
movzx eax, byte [eax]
mov dword [ebp + 8], eax
mov eax, ebx
sub eax, edx
movzx eax, byte [eax]
add dword [ebp + 8], eax
mov eax, ecx
sar dword [ebp + 8], 1
sub eax, edx
mov edi, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp - 8], eax
mov eax, esi
sub eax, edx
movzx eax, byte [eax]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sar eax, 1
sub edi, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x14]
jle 0x64011812
mov edi, dword [ebp - 0xc]
sub ecx, ebx
mov edx, dword [ebp + 0x10]
sub edi, ebx
sub edx, dword [ebp + 0xc]
sub esi, ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], ecx
lea ecx, [ecx]
movzx edi, byte [edi + ebx]
lea eax, [eax + 4]
movzx ecx, byte [ebx]
movzx esi, byte [esi + ebx]
add edi, ecx
mov ecx, dword [ebp - 0x28]
sar edi, 1
mov edx, edi
movzx ecx, byte [ecx + ebx]
add esi, ecx
sar esi, 1
mov ecx, esi
mov dword [ebp - 0x30], esi
sub ecx, dword [ebp - 8]
sub edx, esi
sub ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x2c]
add ecx, edi
sar ecx, 2
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0xc]
mov dword [esi + eax - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
add ecx, edx
sar ecx, 2
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x3c]
add ebx, edx
dec dword [ebp - 0x20]
mov dword [eax - 4], ecx
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x34]
jne 0x640117b0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [edx + eax]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x10], eax
dec edi
mov dword [ebp - 0x14], edi
jne 0x64011730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x64014050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64054398
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6407b1c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x6401409d
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.6400df20
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x640140b4
lea esi, [eax - 2]
jmp 0x6401417e
cmp dword [edi + 0x2a8], 0xffffffff
jne 0x640140cd
cmp dword [esi + 0x28cc], 0
je 0x640140cd
xor esi, esi
jmp 0x6401417e
mov ebx, dword [edi + 8]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
cmp byte [ebx + 0x15e0], 0
mov dword [esp + 0x28], eax
je 0x6401411b
lea eax, [eax + eax*2]
lea esi, [ebx + eax*8]
lea eax, [esp + 0x1c]
mov dword [esi + 0x1410], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1400], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1404], eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], 0
cmp dword [edi + 0xb8fc], 1
jge 0x64014140
mov ecx, dword [edi + 0xc]
call fcn.6400df20
mov eax, dword [eax + 0x2904]
mov dword [edi + 0xb8fc], eax
push dword [ebp + 8]
mov ecx, esi
call fcn.6401af10
mov esi, eax
test esi, esi
jne 0x6401415c
push dword [ebp + 8]
mov ecx, edi
call fcn.640145b0
mov esi, eax
cmp byte [ebx + 0x15e0], 0
je 0x6401417a
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x140]
lea ecx, [eax + ecx*2]
lea ecx, [ebx + ecx*8]
call fcn.64001c10
test esi, esi
je 0x64014188
mov dword [edi + 0x2a8], 0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x640272e9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x64027324
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6402730b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x6402731c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x64027326
inc edi
add eax, 0x28
cmp edi, esi
jb 0x64027301
xor eax, eax
pop edi
pop esi
ret
Function at 0x640275b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x27], 0xf4
mov byte [ebp - 0x26], 0xf9
mov byte [ebp - 0x25], 0xd4
mov byte [ebp - 0x24], 0xf9
mov byte [ebp - 0x23], 0xf9
mov byte [ebp - 0x22], 0xfa
mov byte [ebp - 0x21], 0xf6
mov byte [ebp - 0x20], 0x95
call fcn.640272b9
push eax
push edi
push dword [ebp + 8]
call fcn.6402726e
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0xfb
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x16], 0x76
mov byte [ebp - 0x15], 0x70
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x42
mov byte [ebp - 0x10], 0x76
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 4
call fcn.640272b9
push eax
push edi
push dword [ebp + 8]
call fcn.6402726e
add esp, 0x20
mov dword [ebp - 0xc], eax
call fcn.640272a9
jge 0x640276b7
mov ebp, 0x94458dfa
mov byte [ebp - 0x6c], bl
push eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xd2
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x7b
mov byte [ebp - 0x67], 0x44
mov byte [ebp - 0x66], 0x5f
mov byte [ebp - 0x65], 0x59
mov byte [ebp - 0x64], 0x58
mov byte [ebp - 0x63], 0x4c
mov byte [ebp - 0x62], 0x41
mov byte [ebp - 0x61], 0x7d
mov byte [ebp - 0x60], 0x5f
mov byte [ebp - 0x5f], 0x42
mov byte [ebp - 0x5e], 0x59
mov byte [ebp - 0x5d], 0x48
mov byte [ebp - 0x5c], 0x4e
mov byte [ebp - 0x5b], 0x59
mov byte [ebp - 0x5a], 0x2d
call fcn.640272b9
push eax
push edi
push dword [ebp + 8]
call fcn.6402726e
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x66
mov byte [ebp - 0x3c], 0x4e
mov byte [ebp - 0x3b], 0x6b
mov byte [ebp - 0x3a], 0x60
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x70
mov byte [ebp - 0x36], 0x7b
mov byte [ebp - 0x35], 0x43
mov byte [ebp - 0x34], 2
call fcn.640272b9
push eax
push edi
push dword [ebp + 8]
call fcn.6402726e
add esp, 0x20
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0x7b
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0xc3
mov byte [ebp - 0x7f], 0xe1
mov byte [ebp - 0x7e], 0xf0
mov byte [ebp - 0x7d], 0xc9
mov byte [ebp - 0x7c], 0xeb
mov byte [ebp - 0x7b], 0xe0
mov byte [ebp - 0x7a], 0xf1
mov byte [ebp - 0x79], 0xe8
mov byte [ebp - 0x78], 0xe1
mov byte [ebp - 0x77], 0xcc
mov byte [ebp - 0x76], 0xe5
mov byte [ebp - 0x75], 0xea
mov byte [ebp - 0x74], 0xe0
mov byte [ebp - 0x73], 0xe8
mov byte [ebp - 0x72], 0xe1
mov byte [ebp - 0x71], 0xc5
mov byte [ebp - 0x70], 0x84
call fcn.640272a9
dec eax
mov bh, 0x72
cmp dword [ebp - 0x837b], ecx
call dword [eax - 0x18]
inc esp
sti
invalid
Function at 0x6402ca00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x6404ccc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x1000
call fcn.6402ead6
mov edi, eax
add esp, 4
test edi, edi
jne 0x6404cce0
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [ebp + 8]
call fcn.64041fac
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jns 0x6404cd09
push edi
call fcn.6402ea9e
add esp, 4
or eax, 0xffffffff
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.6404ceb0
mov ebx, eax
test ebx, ebx
jne 0x6404cd28
push edi
call fcn.6402ea9e
add esp, 4
or eax, 0xffffffff
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x1000
push edi
push esi
call fcn.640411eb
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x6404cd5f
lea ecx, [ecx]
push esi
push edi
push ebx
call fcn.6404ce40
push 0x1000
push edi
push dword [ebp - 4]
call fcn.640411eb
mov esi, eax
add esp, 0x18
test esi, esi
jg 0x6404cd40
push dword [ebp - 4]
call fcn.6403b5a7
add esp, 4
test esi, esi
jns 0x6404cd87
push ebx
call fcn.6404ce20
push edi
call fcn.6402ea9e
add esp, 8
or eax, 0xffffffff
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebx]
call fcn.6404baa0
push ebx
mov esi, eax
call fcn.6404ce20
push edi
call fcn.6402ea9e
add esp, 0xc
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402d40
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x440040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x3a8], 0xffffffff
mov eax, dword [0x440b34]
mov esi, dword [eax + 0xc]
je 0x402dad
mov ecx, esi
call fcn.004183b0
push str.Please_wait_for_the_current_operation_to_complete_before_attempting_this_action._r_n
push 0xff
push esi
call fcn.00418430
add esp, 0xc
jmp 0x402eb7
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x3c]
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [ebp - 0x14], ecx
mov al, byte [eax]
mov byte [edi + 0x3a5], al
test al, al
jne 0x402e0a
push 2
push 0x321
push ecx
call esi
push 0
push 0x323
push dword [ebp - 0x14]
call esi
mov eax, dword [edi + 0x3a8]
cmp eax, 0xffffffff
je 0x402e20
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3a8], 0xffffffff
jmp 0x402e20
push 0
push 0x321
push ecx
call esi
push 0
push 0x323
push dword [ebp - 0x14]
call esi
push 0
push 0
push edi
push 0x402ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x3a8], eax
cmp eax, 0xffffffff
jne 0x402eb7
mov esi, dword [0x440b34]
lea ecx, [ebp - 0x2c]
push 0x32
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.An_error_occured_while_creating_the_worker_thread.
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.00402500
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00421e40
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402eb7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b893
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x417500
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
sar esi, 1
add esi, esi
je 0x417531
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x417520
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x418430
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dae5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x440040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x14]
push eax
call fcn.00418c70
mov esi, eax
xor ecx, ecx
add esp, 4
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b8ab
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 0
push eax
push ecx
push dword [ebx + 0x10]
lea edx, [esi + 1]
mov ecx, edi
call fcn.00418c30
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, edi
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4184e5
sub eax, edx
lea ecx, [ebp - 0x38]
sar eax, 1
push eax
push edi
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x38]
inc eax
cmp dword [esi + 0x30], eax
ja 0x418514
push ecx
lea ecx, [esi + 0x28]
call fcn.00418a50
mov ecx, dword [esi + 0x30]
lea eax, [ecx - 1]
and dword [esi + 0x34], eax
lea eax, [ecx - 1]
mov edi, dword [esi + 0x38]
add edi, dword [esi + 0x34]
and eax, edi
lea ecx, [eax*4]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x20], ecx
cmp dword [ecx + eax], 0
jne 0x41854e
push 0x1c
call fcn.0042b863
mov ecx, dword [esi + 0x2c]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
dec ecx
movups xmm0, xmmword [ebp - 0x38]
and ecx, edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x3c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
movups xmmword [ecx + 4], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [ecx + 0x14], xmm0
inc dword [esi + 0x38]
cmp dword [eax + 0x38], 1
jne 0x418594
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x18]
call fcn.0042b8a6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b832
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x418d60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x440040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x418d9f
mov eax, dword [eax]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esi + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x418dd6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0x418e01
lea eax, [esi + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x418e1a
jmp 0x418e01
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.An_error_occured_while_getting_the_file_size.
lea ecx, [ebp - 0x2c]
call fcn.00402600
push 0x43dcb8
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x419800
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x68]
cmp eax, 2
jae 0x41987a
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
jne 0x419832
push eax
push dword [ebx + 0x40]
call esi
push 1
push dword [ebx + 0x48]
call esi
push 0x435b78
jmp 0x419863
mov eax, dword [ebx + 0x64]
mov edi, dword [eax + 0x168]
xor eax, eax
test edi, edi
sete al
push eax
push dword [ebx + 0x40]
call esi
push edi
push dword [ebx + 0x48]
call esi
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x6c]
add eax, ebx
cmp dword [eax + 0x14], 7
jbe 0x419862
mov eax, dword [eax]
push eax
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, ebx
call fcn.00419960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x64]
cmp dword [eax + 0x168], 0
je 0x419944
push 0
push dword [ebx + 0x48]
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx + 0x4c]
call esi
push 0
push dword [ebx + 0x5c]
call esi
push 5
push dword [ebx + 0x60]
call esi
mov esi, dword [ebx + 0x64]
lea eax, [esi + 0x58]
push eax
lea ecx, [esi + 0xd0]
call fcn.0042b3a0
test eax, eax
je case.default.0x41990c
mov ecx, esi
call fcn.0041b680
push 0
mov ecx, esi
call fcn.0041b330
mov eax, dword [esi + 0x180]
test eax, eax
je 0x4198e5
cmp dword [eax], 0
jne 0x4198f7
mov ecx, dword [esi + 0x17c]
test ecx, ecx
je case.default.0x41990c
mov eax, dword [ecx + 0x30]
or eax, dword [ecx + 0x34]
je case.default.0x41990c
mov eax, dword [esi + 0x170]
mov dword [esi + 0x164], 1
cmp eax, 3
ja case.default.0x41990c
jmp dword [eax*4 + 0x419950]
mov ecx, esi
call fcn.0041a9d0
jmp 0x41993e
mov eax, dword [esi + 0x184]
cmp byte [eax + 1], 2
jg case.0x41990c.0
cmp byte [eax + 2], 1
jg case.0x41990c.0
push 1
mov ecx, esi
call fcn.0041b330
mov ecx, esi
call fcn.0041aae0
test eax, eax
jne 0x419949
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a9d0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
push esi
mov eax, dword [0x440040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push esi
push 0x41abf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x174], eax
cmp eax, 0xffffffff
jne 0x41aabc
mov esi, dword [0x440b34]
lea ecx, [ebp - 0x28]
push 0x39
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.An_error_occured_while_creating_the_EraseFirmware_thread.
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00402500
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00421e40
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x41aaa7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41aa9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41aa9d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b893
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x41aae0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
push esi
mov eax, dword [0x440040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push esi
push 0x41aec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x178], eax
cmp eax, 0xffffffff
jne 0x41abcc
mov esi, dword [0x440b34]
lea ecx, [ebp - 0x28]
push 0x3b
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.An_error_occured_while_creating_the_InstallFirmware_thread.
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00402500
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00421e40
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x41abb7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41abad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41abad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b893
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41c630
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x440b34]
push ebx
push esi
mov ebx, ecx
mov esi, dword [eax + 0xc]
push edi
mov edi, dword [eax + 4]
push dword [ebx + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebx + 4]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, 0xffffffff
je 0x41c671
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0xffffffff
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x41c683
push ecx
call eax
mov dword [ebx + 8], 0xffffffff
mov eax, dword [0x440b34]
cmp dword [eax + 0x20], 0
jne 0x41c767
cmp dword [ebx + 0x144], 0xffffffff
je 0x41c767
mov ecx, esi
call fcn.004183b0
push str.The_connection_to_the_Cronus_Zen_has_been_terminated._r_n
push 0xff
push esi
call fcn.00418430
add esp, 0xc
mov ecx, esi
push 1
push 0
call fcn.0041e490
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 2
push 0x323
push dword [esi + 0x3c]
call edi
push 0x402
push 3
push dword [esi + 0x3c]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov edi, dword [ebp - 4]
mov esi, 0x6e
push 0
push esi
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, 0x73
jbe 0x41c6f3
mov eax, dword [0x440b34]
mov edi, dword [ebp - 8]
push 2
push 0x321
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x3c]
push esi
mov byte [edi + 0x3a5], 0
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x323
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [edi + 0x3a8]
cmp eax, 0xffffffff
je 0x41c767
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3a8], 0xffffffff
push dword [ebx + 0x144]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp byte [edi + 0x3a5], 2
jne 0x41c7d2
mov eax, dword [0x440b34]
push 2
push 0x321
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x3c]
push esi
mov byte [edi + 0x3a5], 0
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x323
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [edi + 0x3a8]
cmp eax, 0xffffffff
je 0x41c7d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x3a8]
call ebx
mov dword [edi + 0x3a8], 0xffffffff
mov ecx, dword [ebp - 4]
call fcn.0041db60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret