joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420600
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4a27e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e2054]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x420709
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x10], edi
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x420709
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4206de
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4206de
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4206de
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4206c3
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004037d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047c73c
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x420720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a285d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00404580
test eax, eax
je 0x420916
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00404580
test eax, eax
je 0x420916
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x4c3714
call fcn.00403660
test al, al
jne 0x4207a9
push 3
push 0x4c3714
lea ecx, [ebp - 0x18]
call fcn.004037d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x4c3714
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420d20
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4207e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4207f8
push 0x18
push str.Unable_to_get_temp_file
jmp 0x42089c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], 0x4c05a4
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x420836
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4c05a4
push eax
jmp 0x420888
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420878
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4208b7
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4c05a4
test esi, esi
je 0x420895
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.004037d0
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00402670
xor bl, bl
jmp 0x4208e1
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4c05a4
test esi, esi
je 0x4208d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00420930
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x420900
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
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
push 0x80004005
call fcn.004027c0
int3
Function at 0x420d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2925
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4e2054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00406470
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420df0
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x420d84
mov edx, dword [edx]
test edx, edx
jne 0x420d8c
xor ecx, ecx
jmp 0x420da0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420d91
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004037d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403fc0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403fc0
mov al, 1
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.0047c73c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4287f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a36dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x18]
lea esi, [edi + 0x18]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0
test al, al
jne 0x428836
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [esi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00404580
test eax, eax
je 0x4289a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [edi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.004080d0
mov esi, dword [ebp - 0x14]
add esp, 0x10
call fcn.00404580
test eax, eax
je 0x4289a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push esi
call fcn.00403660
test al, al
jne 0x4288d9
test esi, esi
jne 0x4288b3
xor ecx, ecx
jmp 0x4288cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4288c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004037d0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428905
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x34], 0
je 0x42894f
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4289a8
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x428946
test dx, dx
je 0x428942
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x428946
add ecx, 4
add eax, 4
test dx, dx
jne 0x428920
xor eax, eax
jmp 0x42894b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42895a
push dword [ebp + 8]
lea ecx, [edi + 0x24]
call fcn.00408ec0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x428976
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x428994
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
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
push 0x80004005
call fcn.004027c0
int3
Function at 0x429a80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3aab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4e2054]
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 eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x429c35
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x429af8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x429af0
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x429b04
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x429b4a
xor al, al
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.0047c73c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x429bce
lea ecx, [ebp - 0x21c]
call fcn.00429f40
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x429b89
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x429b80
movzx eax, word [ecx]
test ax, ax
je 0x429ba2
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x429b93
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x429c04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x429c04
cmp word [esi], 0
je 0x429bdd
add esi, 2
cmp word [esi], 0
jne 0x429bd4
movzx eax, word [ecx]
test ax, ax
je 0x429bff
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x429bf0
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x429c10
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004037d0
mov al, 1
jmp 0x429b2c
call fcn.0047cd35
int3
Function at 0x42e6c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a48ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x42e7d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0042e4b0
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e777
cmp dword [ebp + 0x10], eax
je 0x42e777
mov esi, 0x2ee2
jmp 0x42e78f
test esi, esi
jne 0x42e78f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x42e78d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42e7be
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x10
push 0x80004005
call fcn.004027c0
int3
Function at 0x42fda0
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x68]
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x42fe30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42fe26
cmp byte [esi + 0x38], 0
jne 0x42fe3c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
lea ecx, [esi + 0xc]
call fcn.004311e0
test al, al
jne 0x42fe1b
push 0xa
push dword [esi + 0x68]
call edi
cmp byte [esi + 0x38], 0
je 0x42fe00
jmp 0x42fe3c
pop edi
pop esi
mov eax, 0xe0000008
pop ebx
ret 0x1c
test eax, eax
je 0x42fe3c
pop edi
pop esi
pop ebx
ret 0x1c
push dword [esi + 0x68]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], 0
jne 0x42fe4b
mov eax, dword [esi + 0x2c]
pop edi
pop esi
pop ebx
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x1c
Function at 0x43a3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00404580
test eax, eax
je 0x43a535
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0043b3a0
or esi, 0xffffffff
test al, al
jne 0x43a437
xor bl, bl
jmp 0x43a500
mov edi, dword [edi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.00404580
test eax, eax
je 0x43a535
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edi
call fcn.00408ec0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x43a4a1
xor bl, bl
jmp 0x43a4c6
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push dword [ebp + 0x10]
lea edx, [ebp + 0xc]
mov dword [ebp + 8], 4
push edx
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43a4d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43a500
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43a51f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004027c0
int3
Function at 0x43a830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x43aa24
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0043b3a0
or edi, 0xffffffff
test al, al
jne 0x43a897
xor bl, bl
jmp 0x43a9b3
mov esi, dword [esi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x43aa24
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call fcn.00408ec0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43a977
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 0
push dword [ebx]
mov dword [ebp + 8], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a977
mov eax, dword [ebp + 8]
test eax, eax
je 0x43a977
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047cc0a
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43a9e8
mov byte [ebp - 4], 4
push esi
call fcn.0047cc05
add esp, 4
mov dword [ebp + 0xc], 0
xor bl, bl
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43a98b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43a9b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x43a9d2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a9f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004037d0
mov byte [ebp - 4], 4
push esi
call fcn.0047cc05
add esp, 4
mov dword [ebp + 0xc], 0
mov bl, 1
jmp 0x43a979
push 0x80004005
call fcn.004027c0
int3
Function at 0x43be00
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
jne 0x43be16
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
je 0x43be7a
cmp byte [esi + 0x50], 0
jne 0x43be7a
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x58]
push eax
push 5
call edx
test al, al
je 0x43be3d
cmp dword [esp + 4], 0
je 0x43be7a
call fcn.0041fa70
test al, al
je 0x43be51
mov ecx, esi
pop esi
add esp, 4
jmp fcn.0043d5e0
push edi
push 0
push 0
push esi
push 0x43e7f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, dword [esi + 0x64]
je 0x43be79
mov edx, dword [esi + 0x60]
lea ecx, [esi + 0x60]
call dword [edx + 4]
mov dword [esi + 0x64], edi
pop edi
pop esi
pop ecx
ret

Function at 0x43cec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a76ee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x10], 0
xor edi, edi
movzx eax, word [ebp + 0xc]
mov esi, dword [0x4e33f0]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x43cf38
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43cf38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43cf38
push dword [ebp + 0xc]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.00404580
test eax, eax
je 0x43d02e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x43d02e
test ebx, ebx
jne 0x43cf7d
test edi, edi
jne 0x43d03d
mov eax, dword [ecx]
push 1
push edi
call dword [eax]
test eax, eax
je 0x43d038
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
test edi, edi
js 0x43d03d
cmp edi, dword [esi - 8]
jg 0x43d03d
mov dword [esi - 0xc], edi
mov byte [esi + edi], 0
test edi, edi
je 0x43cfde
test esi, esi
je 0x43cfce
push edi
test ebx, ebx
je 0x43cfc3
push ebx
push esi
call fcn.0047e1e0
add esp, 0xc
jmp 0x43cfde
push 0
push esi
call fcn.0047e760
add esp, 0xc
call fcn.00481b0d
mov dword [eax], 0x16
call fcn.00481a0f
mov dword [ebp - 4], 3
mov ecx, esi
mov ebx, dword [ebp + 8]
mov edx, ebx
push 0xfde9
call fcn.0040d100
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43d018
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004027c0
call fcn.004027e0
push 0x80070057
call fcn.004027c0
int3
Function at 0x440a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a83e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 4
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], 0x4c2238
mov dword [edi + 0x24], 0x4c5444
mov dword [edi], 0x4c5cd8
mov dword [edi + 0x20], 0x4c5cac
mov dword [edi + 0x24], 0x4c5ca8
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004027f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov byte [edi + 0x38], 0
mov dword [edi + 0x40], eax
mov al, byte [ebp + 0x14]
mov dword [edi + 0x44], 2
mov byte [edi + 0x48], al
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10