joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a380
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x20]
push 0
mov byte [edi + 0x210], 1
call ebx
push 1
call ebx
mov eax, dword [edi + 0x284]
mov ebx, dword [edi + 0x288]
push eax
call fcn.004085a0
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call ebx
push 0xfffffffffffffff0
push esi
call ebx
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x40a440
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57c170
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5e9db0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov eax, dword [0x5e9db0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x40a488
xor eax, eax
jmp 0x40a48b
mov eax, dword [esi + 0x20]
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x34], 0x32
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
test byte [0x5f2698], 1
jne 0x40a4c1
or dword [0x5f2698], 1
push esi
lea ecx, [esp + 0x30]
mov dword [0x5f2690], 5
mov dword [0x5f2694], 5
call fcn.0046c3b3
push 8
mov dword [esp + 0x9c], ebx
call fcn.0046343d
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
cmp eax, ebx
je 0x40a513
push 0xff
push 1
push ebx
mov ecx, eax
call fcn.0046c690
mov esi, eax
jmp 0x40a515
xor esi, esi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], bl
call fcn.0046c5bc
mov edx, dword [0x5f2694]
mov eax, dword [0x5f2690]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0046bf14
push 5
push 0x64
lea ecx, [esp + 0x34]
call fcn.0046b96f
cmp esi, ebx
je 0x40a55d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov esi, vtable.CRgn.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
push 0xdc
push 0x15e
push 0x28
push 0x32
mov byte [esp + 0xa8], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.0046c4cf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ecx
push edx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov byte [esp + 0x98], bl
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.004025b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x98], 0xffffffff
call fcn.0046c407
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x419dc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5839a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e9db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004081a0
cmp dword [edi + 0xb70e8], 0
jne 0x419fa8
push 1
mov ecx, edi
call fcn.00465890
push 0x5afbc8
lea ecx, [ebp - 0x10]
call fcn.00401d50
lea ecx, [edi + 0xb70c8]
push eax
mov dword [ebp - 4], 0
call fcn.00405080
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419e47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.download
lea ecx, [ebp - 0x10]
call fcn.00401d50
lea ecx, [edi + 0xb70cc]
push eax
mov dword [ebp - 4], 1
call fcn.00405080
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x419e86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x2ac]
sub eax, 0x10
push eax
call fcn.004052f0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
lea esi, [edi + 0x27c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00405080
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419ed9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x419f9d
push 0
push eax
push 0
call dword [sym.imp.urlmon.dll_IsValidURL]
test eax, eax
jne 0x419f9d
mov ecx, dword [edi + 0xb7100]
mov eax, dword [edi + 0x20]
lea ebx, [edi + 0xb70ec]
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0xb7100]
push esi
lea ecx, [edi + 0xb70f4]
mov dword [edi + 0xb70f0], edx
call fcn.00405080
lea ecx, [edi + 0xb70f8]
call fcn.00401ee0
push 0
push 4
push 0
push 0
push ebx
push 0x419fc0
call fcn.0047335d
mov dword [edi + 0xb70e8], eax
test eax, eax
je 0x419fa8
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0xb70e8]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x20
call fcn.0046343d
add esp, 4
test eax, eax
je 0x419f7e
mov esi, eax
call fcn.00408130
jmp 0x419f80
xor eax, eax
push 0
push 0
push 0
push 0
push eax
push 0x41b590
mov dword [eax], edi
call fcn.0047335d
mov dword [edi + 0xb7108], eax
jmp 0x419fa8
push 0xffffffffffffffff
push 0x10
push 0x66
call fcn.0046cf3e
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 0x41cbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x41cbc2
push 0x80004005
call fcn.00401090
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x41cc27
mov ecx, dword [edi]
test ecx, ecx
je 0x41cc22
mov edx, dword [ebp - 4]
test edx, edx
je 0x41cc4c
cmp edx, 2
jbe 0x41cc2d
cmp edx, 7
jne 0x41cc4c
test cl, 1
jne 0x41cc1d
shr ecx, 1
cmp ecx, 1
jb 0x41cc1d
cmp word [esi + ecx*2 - 2], 0
jne 0x41cc1d
cmp ecx, 1
jbe 0x41cc27
cmp word [esi + ecx*2 - 4], 0
je 0x41cc27
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 8
test cl, 1
jne 0x41cc3c
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41cc27
xor edx, edx
mov word [esi], dx
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
Function at 0x424780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579d98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5e9db0]
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, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4247bc
xor eax, eax
jmp 0x42494c
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4247e5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4247e5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x42494c
cmp dword [edi + 0x54], 0
je 0x424949
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x42480d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x424833
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0055086d
add esp, 8
cmp eax, 0xffffffff
je 0x424949
mov eax, ebx
jmp 0x42494c
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00425100
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x424850
mov edx, eax
cmp ebx, 0x10
jae 0x42485c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x42493a
cmp eax, 1
jg 0x4248f0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42489c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4248c5
cmp ebx, 0x10
jae 0x4248ab
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005516e4
add esp, 0x10
cmp esi, eax
jne 0x42493a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x424926
test esi, esi
jne 0x424850
cmp dword [ebp - 0x1c], 0x20
jae 0x42493a
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00425160
jmp 0x424845
cmp eax, 3
jne 0x42493a
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.0055086d
add esp, 8
cmp eax, 0xffffffff
je 0x424910
mov esi, dword [ebp + 8]
jmp 0x424913
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00423ef0
mov eax, esi
jmp 0x42494c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00423ef0
mov eax, dword [ebp + 8]
jmp 0x42494c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00423ef0
or eax, 0xffffffff
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.0054f72c
mov esp, ebp
pop ebp
ret 4
Function at 0x4254d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4255f1
cmp byte [edi + 0x49], 0
je 0x4255f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4255de
lea esi, [ebp - 0x2c]
call fcn.00425100
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x425543
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x425573
dec eax
je 0x425577
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x4255d9
jmp 0x4255ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x425587
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4255b0
cmp ebx, 0x10
jae 0x425596
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005516e4
add esp, 0x10
cmp esi, eax
jne 0x4255cf
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4255e2
test esi, esi
jne 0x425537
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00425160
jmp 0x425531
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00423ef0
xor al, al
jmp 0x4255f3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00423ef0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x425950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579d0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e9db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0056d5f0
push 4
mov dword [ebp - 4], 0
call fcn.0046343d
mov edi, eax
add esp, 4
test edi, edi
je 0x4259cc
call fcn.0056d4c8
mov dword [edi], eax
call fcn.0056d287
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0056d5b1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4259c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0056d5d9
jmp 0x4259ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x426dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x426df6
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x426e0f
cmp dword [ebp - 8], 0
je 0x426de4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x426e30
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cf3c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x427026
test eax, eax
je 0x427026
push 0
call fcn.00551b5f
push eax
call fcn.005519cb
add esp, 8
xor esi, esi
call fcn.005519dd
xor edx, edx
mov ecx, 0x3e
div ecx
inc esi
mov dl, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov byte [ebp + esi - 0x1d], dl
cmp esi, 0xa
jl 0x426e93
mov byte [ebp - 0x12], 0
call fcn.00469967
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x426ecf
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x426f11
mov edx, ecx
movzx esi, dx
push esi
call fcn.004636d7
test eax, eax
je 0x426f20
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00401f60
jmp 0x426f20
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041bd10
lea ecx, [ebp - 0x228]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00405080
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.0041bc30
push 0x5af97c
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], 2
call fcn.0041bb50
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00405080
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x426fdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ecx
push eax
call esi
test eax, eax
jne 0x426ff7
call fcn.00402290
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427022
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call esi
test eax, eax
jne 0x427015
call fcn.00402290
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x427026
mov al, 1
jmp 0x427028
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x43c870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca8b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
push eax
mov ecx, esi
xor bl, bl
call fcn.00405080
mov eax, dword [edi]
mov dword [ebp - 0x428], 0x400
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x43c8d5
call fcn.00402290
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c922
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c902
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, esi
call fcn.00402180
mov bl, 1
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x43c9d0
mov edi, dword [edi]
mov dword [ebp - 0x420], 0
mov eax, dword [edi - 0xc]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x43c94e
call fcn.00402290
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c9d0
mov edx, dword [ebp - 0x420]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.0056db4e
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0041b810
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00405080
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c9ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret 8
Function at 0x43d530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e9db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5af97c
xor ebx, ebx
push 0x5b3d28
mov byte [ebp - 0xd], bl
call fcn.00404a70
push 0x5af97c
push 0x5b28c8
mov ecx, esi
call fcn.00404a70
push 0x5b49fc
lea ecx, [ebp - 0x1c]
call fcn.00401d50
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.0041ba90
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00405080
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d5cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d5f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x43d61e
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, esi
cmp dword [ebp - 0x14], ebx
je 0x43d62c
push str.Program_Files__x86_
jmp 0x43d631
push str.Program_Files
push str.pf
call fcn.00404a70
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
jne 0x43d651
call fcn.00402290
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov al, 1
jne 0x43d662
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43eab0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x43ead9
jmp 0x43eac0
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x43eac0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret