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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004043d0
test eax, eax
je 0x4214d4
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.004043d0
test eax, eax
je 0x4214d4
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 0x4e2b88
call fcn.00403470
test al, al
jne 0x421369
push 3
push 0x4e2b88
lea ecx, [ebp - 0x18]
call fcn.004035e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x4e2b88
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004218d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4213a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
test al, al
jne 0x4213b6
push 0x18
push str.Unable_to_get_temp_file
jmp 0x42145a
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], 0x4df930
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x4213f4
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4df930
push eax
jmp 0x421446
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 0x421436
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 0x421475
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4df930
test esi, esi
je 0x421453
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.004035e0
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00402420
xor bl, bl
jmp 0x42149f
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4df930
test esi, esi
je 0x421492
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.004214e0
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 0x4214be
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.00402570
int3
Function at 0x4218d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2da5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x507074]
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.00406a70
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00421b90
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x421934
mov edx, dword [edx]
test edx, edx
jne 0x42193c
xor ecx, ecx
jmp 0x421950
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421941
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004035e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403e10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403e10
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.0049665e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4252e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c34b7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0
lea eax, [ebx + 0x70]
mov dword [ebx], 0x4e314c
mov dword [ebp - 0x18], eax
mov dword [eax], 0x4e3140
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], 0x4e3144
mov dword [ebp - 4], 1
lea edi, [ebx + 0x10]
mov eax, dword [ebx]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x4e3148
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
push ecx
push edi
call fcn.00425ea0
mov dword [ebp - 4], 4
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x4e3154
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [edi], 0x4e3158
call fcn.004969ce
push 1
mov esi, eax
call fcn.00480857
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00425d10
mov byte [ebp - 4], 5
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea esi, [edi + 8]
mov dword [edi + 0xc], ebx
lea ecx, [eax + 0x28]
mov dword [edi], 0x4e3194
lea edx, [eax + 0x34]
mov byte [edi + 0x48], 0
mov byte [edi + 0x3e], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x30], ecx
mov dword [eax + 0x2c], edi
mov dword [eax + 0x3c], edx
add eax, 0x38
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
lea ecx, [ebx + 0x10]
mov eax, dword [0x50a394]
mov edx, dword [0x50a398]
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov dword [ecx + 0x38], 0
mov byte [ebp - 4], 6
sub esp, 8
push dword [ebp + 8]
call fcn.00425ab0
test eax, eax
jne 0x42549b
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00428e00
mov dword [ebp - 4], 0xffffffff
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 0x10
Function at 0x429890
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
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 0x4298d6
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.004043d0
test eax, eax
je 0x429a48
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.00408700
mov esi, dword [ebp - 0x14]
add esp, 0x10
call fcn.004043d0
test eax, eax
je 0x429a48
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.00403470
test al, al
jne 0x429979
test esi, esi
jne 0x429953
xor ecx, ecx
jmp 0x42996f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429960
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004035e0
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 0x4299a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x34], 0
je 0x4299ef
mov eax, dword [edi + 0x24]
test eax, eax
je 0x429a48
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4299e6
test dx, dx
je 0x4299e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4299e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4299c0
xor eax, eax
jmp 0x4299eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4299fa
push dword [ebp + 8]
lea ecx, [edi + 0x24]
call fcn.00409440
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 0x429a16
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 0x429a34
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.00402570
int3
Function at 0x42ab80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c40bb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x507074]
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 0x42ad35
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x42abf8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x42abf0
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 0x42ac04
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 0x42ac4a
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.0049665e
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 0x42acce
lea ecx, [ebp - 0x21c]
call fcn.0042ad40
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x42ac89
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x42ac80
movzx eax, word [ecx]
test ax, ax
je 0x42aca2
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42ac93
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 0x42ad04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42ad04
cmp word [esi], 0
je 0x42acdd
add esi, 2
cmp word [esi], 0
jne 0x42acd4
movzx eax, word [ecx]
test ax, ax
je 0x42acff
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42acf0
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 0x42ad10
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004035e0
mov al, 1
jmp 0x42ac2c
call fcn.00496b2e
int3
Function at 0x432850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c54fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x507074]
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]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
je 0x4328aa
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebx + 0x10], 1
mov dword [ebp - 0x10], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x432960
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.00432640
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x432903
cmp dword [ebp + 0x10], eax
je 0x432903
mov esi, 0x2ee2
jmp 0x43291b
test esi, esi
jne 0x43291b
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x432919
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 0x43294a
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.00402570
int3
Function at 0x433f90
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 0x434020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x434016
cmp byte [esi + 0x38], 0
jne 0x43402c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
lea ecx, [esi + 0xc]
call fcn.004353d0
test al, al
jne 0x43400b
push 0xa
push dword [esi + 0x68]
call edi
cmp byte [esi + 0x38], 0
je 0x433ff0
jmp 0x43402c
pop edi
pop esi
mov eax, 0xe0000008
pop ebx
ret 0x1c
test eax, eax
je 0x43402c
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 0x43403b
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 0x435550
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x43558a
mov ecx, dword [esp + 0x14]
mov ebx, 1
cmp ecx, 0x110
jne 0x435592
sub esp, 8
mov dword [edi + 0x40], ebx
mov ecx, edi
call fcn.00435aa0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
cmp dword [edi + 0x40], 0
jne 0x43571e
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
mov esi, dword [esp + 0x18]
cmp ecx, 0x111
jne 0x435680
movzx eax, si
mov edx, eax
cmp bx, ax
jne 0x435608
lea eax, [edi + 0x44]
push eax
lea ecx, [edi + 0x5c]
call fcn.0041ec00
lea eax, [edi + 0x48]
push eax
lea ecx, [edi + 0x60]
call fcn.0041ec00
push 0x428
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x20]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword [ecx], 0
ret 0x18
mov eax, 2
cmp ax, dx
jne 0x43562e
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
ret 0x18
mov eax, esi
mov edx, 0x300
shr eax, 0x10
cmp dx, ax
jne 0x435680
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x5c]
cmp eax, dword [ecx]
jne 0x43566e
lea esi, [edi + 0x44]
push esi
call fcn.0041ec00
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
ret 0x18
lea edx, [edi + 0x20]
cmp ecx, 5
jne 0x4356ef
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x4356c1
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x4356b2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4356c6
test esi, esi
jne 0x4356c1
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4356c6
cmp esi, 1
je 0x435714
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.00436280
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
ret 0x18
cmp ecx, 0x24
jne 0x43558a
cmp dword [edx + 0x14], 0xffffffff
je 0x435714
cmp dword [edx + 0x18], 0xffffffff
je 0x435714
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x20]
mov dword [eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x18
Function at 0x43ead0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c79b5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004043d0
test eax, eax
je 0x43ec35
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.0043faa0
or esi, 0xffffffff
test al, al
jne 0x43eb37
xor bl, bl
jmp 0x43ec00
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.004043d0
test eax, eax
je 0x43ec35
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.00409440
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 0x43eba1
xor bl, bl
jmp 0x43ebc6
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 0x43ebd8
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 0x43ec00
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 0x43ec1f
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.00402570
int3
Function at 0x43ef30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7a2d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x43f124
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.0043faa0
or edi, 0xffffffff
test al, al
jne 0x43ef97
xor bl, bl
jmp 0x43f0b3
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.004043d0
mov ecx, eax
test ecx, ecx
je 0x43f124
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.00409440
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 0x43f077
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 0x43f077
mov eax, dword [ebp + 8]
test eax, eax
je 0x43f077
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496a03
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 0x43f0e8
mov byte [ebp - 4], 4
push esi
call fcn.004969fe
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 0x43f08b
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 0x43f0b3
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 0x43f0d2
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 0x43f0f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004035e0
mov byte [ebp - 4], 4
push esi
call fcn.004969fe
add esp, 4
mov dword [ebp + 0xc], 0
mov bl, 1
jmp 0x43f079
push 0x80004005
call fcn.00402570
int3