joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ead80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
mov ecx, dword [ebx + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [ebx + 8]
sub eax, dword [ecx]
mov esi, 1
sub eax, 8
sar eax, 3
sub eax, edi
mov dword [esp + 0x2c], esi
je 0x100eaf3a
jmp 0x100eadb4
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
dec eax
mov dword [esp + 0x30], eax
test edi, edi
jle 0x100eae13
mov eax, dword [edx]
lea eax, [eax + edi*8]
cmp eax, dword [ebx + 8]
jb 0x100eae51
lea eax, [esp + 0x34]
push eax
mov eax, ebx
call fcn.100d5ce0
add esp, 4
test eax, eax
je 0x100eaf45
test esi, esi
je 0x100eaf24
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x34]
push ecx
push esi
push 1
push eax
call fcn.101061b1
add esp, 0x10
cmp eax, esi
jne 0x100eaf24
mov esi, 1
jmp 0x100eaf26
cmp edi, 0xfff0b9d8
jle 0x100eae23
mov ecx, dword [ebx + 8]
lea eax, [ecx + edi*8]
jmp 0x100eae51
jne 0x100eae2d
mov eax, dword [ebx + 0xc]
add eax, 0x28
jmp 0x100eae51
mov ecx, dword [edx]
mov eax, 0xfff0b9d8
sub eax, edi
cmp dword [ecx + 4], 0x7ff7a516
je 0x100eadce
mov ecx, dword [ecx]
movzx esi, byte [ecx + 6]
cmp eax, esi
mov esi, dword [esp + 0x2c]
jg 0x100eadce
lea eax, [ecx + eax*8 + 8]
cmp eax, 0x10164550
je 0x100eadce
mov eax, dword [eax + 4]
mov ecx, eax
and ecx, 0x7fffff00
cmp ecx, 0x7ff7a500
je 0x100eae76
mov eax, 3
jmp 0x100eae7b
and eax, 0xff
and eax, 0xf
cmp eax, 3
jne 0x100eadce
test esi, esi
je 0x100eaf24
test edi, edi
jle 0x100eae9f
mov edx, dword [edx]
lea eax, [edx + edi*8]
cmp eax, dword [ebx + 8]
jae 0x100eaed9
jmp 0x100eaede
cmp edi, 0xfff0b9d8
jle 0x100eaeaf
mov eax, dword [ebx + 8]
lea eax, [eax + edi*8]
jmp 0x100eaede
jne 0x100eaeb9
mov eax, dword [ebx + 0xc]
add eax, 0x28
jmp 0x100eaede
mov ecx, dword [edx]
mov eax, 0xfff0b9d8
sub eax, edi
cmp dword [ecx + 4], 0x7ff7a516
je 0x100eaed9
mov ecx, dword [ecx]
movzx edx, byte [ecx + 6]
cmp eax, edx
lea eax, [ecx + eax*8 + 8]
jle 0x100eaede
mov eax, 0x10164550
mov ecx, dword [eax + 4]
and ecx, 0x7fffff00
cmp ecx, 0x7ff7a500
jne 0x100eaf00
lea esi, [esp + 0x38]
call fcn.100da580
test eax, eax
jne 0x100eaf00
fldz
jmp 0x100eaf02
fld qword [eax]
mov edx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
push str._.14g
push edx
call fcn.101080dc
add esp, 0x10
test eax, eax
jle 0x100eaf24
mov esi, 1
jmp 0x100eaf26
xor esi, esi
inc edi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
jne 0x100eadb0
test esi, esi
je 0x100eaf53
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.string]
push edx
mov eax, ebx
call fcn.100d7670
call fcn.10108093
mov eax, dword [eax]
mov ecx, dword [ebx + 8]
mov dword [ecx + 4], 0x7ff7a500
mov esi, 8
add dword [ebx + 8], esi
push eax
mov dword [esp + 0x38], eax
call fcn.10107fe5
add esp, 4
mov edi, ebx
call fcn.100d5f90
fild dword [esp + 0x34]
mov edx, dword [ebx + 8]
pop edi
fstp qword [edx]
add dword [ebx + 8], esi
lea eax, [esi - 5]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4580df
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x475190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x18
call fcn.00413287
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x404d2c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esi + 0x10], 0
mov ecx, edx
mov dword [esi + 0x14], 7
xor eax, eax
mov word [esi], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d12
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00407960
jmp 0x404d2e
xor esi, esi
push esi
push 0
push 0x4c9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
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 4
Function at 0x4061d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406229
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40621a
cmp esi, edx
jae 0x406229
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406208
cmp esi, edx
jae 0x406229
cmp word [esi], 0
je 0x406229
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x408820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458458
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x475190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00413287
mov edi, eax
add esp, 4
test edi, edi
je 0x4088c3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040c856
add esp, 4
mov dword [edi + 4], eax
jmp 0x4088c5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00402b50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x408925
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x408925
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x408949
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40896b
cmp byte [ebp + 0xc], 0
je 0x408958
push esi
call fcn.0040ce66
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x408977
mov esi, str.ios_base::badbit_set
jmp 0x408987
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004089b0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004037c0
push 0x46f7e0
lea eax, [ebp - 0x30]
push eax
call fcn.0042ff49
int3
Function at 0x40aea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40af27
test ebx, ebx
je 0x40af27
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40af27
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40af27
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af21
push esi
push ebx
push edi
call fcn.00430370
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af21
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041355f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041355f
mov esp, ebp
pop ebp
ret
Function at 0x410d30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a5a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x475190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00404a40
mov ecx, eax
test ecx, ecx
je 0x410ef4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00404a40
mov ecx, eax
test ecx, ecx
je 0x410efe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00404a40
mov ecx, eax
test ecx, ecx
je 0x410f08
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x410e12
xor ecx, ecx
jmp 0x410e30
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410e20
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00405090
push edi
mov ecx, ebx
call fcn.00409780
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410e4c
xor ecx, ecx
jmp 0x410e64
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410e54
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00405090
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00411af0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00409780
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ea5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x410ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410ede
cmp dword [esi + 0x10], 0
je 0x410ed5
push dword [edi]
call fcn.0043d0e6
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404820
push 0x80004005
call fcn.00404820
push 0x80004005
call fcn.00404820
int3
Function at 0x411810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458b78
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4119e4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x411865
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4119e4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x411883
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4119e4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4118a1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4119e4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4118bf
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4119e4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4119e4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4118e4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x411917
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x41192f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x41196d
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00407330
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00430370
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x46028c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004125e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41199b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x4119d4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4119d4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0040ffcd
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00403be0
lea ecx, [ebp - 0x28]
call fcn.00403be0
lea ecx, [ebp - 0x34]
call fcn.00410fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041355f
mov esp, ebp
pop ebp
ret 4
Function at 0x411ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458c37
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x411eea
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411ef6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00407960
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x411f63
push 0x48
call fcn.00413287
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x411f57
push 0x48
push 0
push ebx
call fcn.00430e70
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00410d30
jmp 0x411f59
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f90
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00407960
push 3
push 0x46028c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004100e8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411fdf
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x41202e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x41202e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00407960
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00403be0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412064
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41205a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4120a1
push edx
push ecx
call fcn.004132b7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x412083
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041355f
mov esp, ebp
pop ebp
ret 0x14
call fcn.00433e1a
int3
Function at 0x417130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4593c1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00404a40
mov ecx, eax
test ecx, ecx
je 0x4172c4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417285
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417277
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417285
add eax, 0x10
push 0x479814
push eax
mov dword [ebp - 0x20], eax
call fcn.00456d2e
mov esi, eax
add esp, 8
test esi, esi
je 0x417285
push dword [ebp - 0x20]
push 0
push esi
call fcn.00430e70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41723a
push esi
call fcn.004135a1
add esp, 4
jmp 0x417285
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417240
sub ecx, edx
sar ecx, 1
je 0x41726e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417256
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00405090
push esi
call fcn.004135a1
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417285
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4172a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041355f
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404820
int3
Function at 0x4172d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4172f4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x417356
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x417356
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x417371
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041355f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418270
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4595c3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x418315
cmp word [esi], di
je 0x418315
test eax, eax
je 0x4182d1
cmp word [eax], di
je 0x4182d1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x418315
jmp 0x418310
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00430e70
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x418315
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x41838c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x418377
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x418345
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x418366
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x4183ac
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x418377
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x41838c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041355f
mov esp, ebp
pop ebp
ret 0x30
call fcn.0040c16a
int3