joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e614
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e62b
add esp, 0xfffffff0
call fcn.00403398
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417cbc
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40f734]
call fcn.00403028
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40f734]
call fcn.00403028
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x419ae8]
call fcn.00421414
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x44e79c
mov eax, dword [0x5065f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004217b8
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4500f4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5065f0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd04
test eax, eax
je 0x44e71b
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409234
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd2c
test eax, eax
je 0x44e72f
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403e78
mov eax, dword [0x50636c]
cmp byte [eax], 0
jne 0x44e760
mov eax, ebx
call fcn.0044e888
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e792
call fcn.004033f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44eae4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5077b0]
cmp dword [eax + 0x24], 0
je 0x44eb74
cmp dword [ebx + 0x7c], 0
jne 0x44eb71
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ea78
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44eb71
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44eb40
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44eb71
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00411168
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44eb4c
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44f4c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44f4f9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d30
jmp 0x44f503
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403ce4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450424
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x45045c
mov eax, esi
call fcn.00438b14
test al, al
je 0x45045c
mov eax, dword [ebx + 0x6c]
call fcn.004386ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45045c
push 0
mov eax, dword [ebx + 0x6c]
call fcn.004386ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a1ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a2c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x507858], 0
jne 0x45a2a8
lea eax, [ebp - 4]
mov edx, 0x45a2dc
call fcn.00403ce4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040408c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45a2a8
mov eax, ebx
call fcn.00402798
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45a2a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45a28b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45a2ec
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45a28b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x507858], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2a8
mov eax, dword [ebp - 0xc]
call fcn.004027b0
ret
mov ebx, dword [0x507858]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2cb
lea eax, [ebp - 4]
call fcn.00403c4c
ret
Function at 0x4668fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x466ade
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x466946
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004663cc
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c8b0
cmp al, 1
jne 0x466946
dec ebx
mov edi, ebx
mov eax, esi
call fcn.004666e0
test al, al
je 0x466a7e
test edi, edi
jge 0x46695d
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004663cc
mov eax, dword [ebp - 0x204]
call fcn.00403ec8
cmp ebx, eax
jge 0x4669a4
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004663cc
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x506b84]
and eax, 0xff
bt dword [edx], eax
jae 0x4669a4
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x4669b2
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.004668d8
cmp ebx, edi
je 0x466a76
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4669dc
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00403234
and eax, 0x7f
movzx eax, word [eax*2 + 0x503dd4]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403234
and eax, 0x7f
movzx eax, word [eax*2 + 0x503dd4]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.004386ec
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403234
and eax, 0x7f
movzx eax, word [eax*2 + 0x503dd4]
push eax
push 0x101
mov eax, esi
call fcn.004386ec
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x466ac5
test edi, edi
jge 0x466a84
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004663cc
mov eax, dword [ebp - 0x204]
call fcn.00403ec8
cmp edi, eax
jl 0x466aba
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004663cc
mov eax, dword [ebp - 0x204]
call fcn.00403ec8
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.004668d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ae5
lea eax, [ebp - 0x204]
call fcn.00403c4c
ret

Function at 0x47c043
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x504b36
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47c09b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x504b57
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c091
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47c09f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4884d4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x48850f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4884f6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x488507
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x488511
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4884ec
xor eax, eax
pop edi
pop esi
ret

Function at 0x488550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
dec esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00488494
movsb byte es:[edi], byte [esi]
add dword [edx - 0xf], eax
push esi
push ebx
call fcn.004884d4
pop ecx
test eax, eax
pop ecx
je 0x488627
mov al, 0
add byte [eax], al
push edi
push esi
push ebx
call fcn.00488514
add esp, 0xc
call fcn.00488494
push 0x8b5fe711
jbe 0x488606
test esi, esi
je 0x488627
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00488494
jg 0x488573
cmp esi, edi
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
je 0x488636
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.00488494
sub al, ch
or eax, dword ss:[ebx + 0x7400f07d]
inc ebx
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
lock add byte gs:[ecx + 0x5d89f445], cl
clc
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x488607
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.0048842a
pop ecx
test eax, eax
pop ecx
je 0x48862e
daa
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x4885e5
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x4885c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x48866b
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x488656
call fcn.00488494
fdivr dword [ebx + 0x458be04d]
invalid
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x48863b
jmp 0x488627
add eax, dword [ebp + 8]
jmp 0x488629
Function at 0x491b84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x491d27
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041ae74
cmp byte [ebp + 8], 0
je 0x491bdd
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041ad44
jmp 0x491beb
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041ad44
mov eax, dword [ebx + 0x10]
call fcn.0041ae6c
dec eax
jle 0x491c31
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041ad3c
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041ae6c
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041ae04
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.00403234
test al, al
je 0x491c7a
test esi, esi
jne 0x491c7a
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x491cb0
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041b998
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a460c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a469d
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.004a4278
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040408c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4a4687
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x5067ec]
call fcn.00405f00
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4a4130]
call fcn.0040c04c
call fcn.00403744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a46a4
lea eax, [ebp - 0x10]
call fcn.00403c4c
ret

Function at 0x4a46b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a474b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040408c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a4725
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x506bb8]
call fcn.00405f00
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4a4130]
call fcn.0040c04c
call fcn.00403744
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a42a8
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4752
lea eax, [ebp - 0x10]
call fcn.00403c4c
ret

Function at 0x4b3ecc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4b3f10
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.0040943c
add esp, 0x200
pop ebx
ret
Function at 0x4fb438
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040407c
mov eax, dword [ebp - 8]
call fcn.0040407c
mov eax, dword [ebp - 0xc]
call fcn.0040407c
xor eax, eax
push ebp
push 0x4fb4fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4fb514
call fcn.00403ed0
lea eax, [ebp - 0xc]
mov edx, 0x4fb514
call fcn.00403ed0
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00404098
push eax
lea eax, [ebp - 8]
call fcn.00404098
push eax
lea eax, [ebp - 4]
call fcn.00404098
push eax
push 0x4fb518
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x4fb4e2
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x4fb528
call fcn.00403f14
mov eax, dword [ebp - 0x10]
mov cx, word [0x4fb53c]
mov dl, 1
call fcn.004564d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb504
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403c70
ret
Function at 0x684c3c70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x24c
cmp dword [eax], 1
je 0x684c3d08
xor edx, edx
lea eax, [ebp - 0x220]
mov word [ebx], dx
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ActivateActCtx]
sub esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], str..dll
mov eax, dword [esi + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SearchPathW]
mov eax, dword [ebp - 0x220]
sub esp, 0x18
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_DeactivateActCtx]
xor eax, eax
sub esp, 8
cmp word [ebx], 0
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x224]
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x228]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x684ee000
mov eax, dword [esi + 4]
mov dword [ebp - 0x224], 0x20a
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edx, eax
sub esp, 0x18
xor eax, eax
test edx, edx
jne 0x684c3cfd
cmp dword [ebp - 0x228], 2
je 0x684c3e10
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x22
mov dword [esp], edi
mov dword [ebp - 0x22c], ecx
call ecx
mov esi, eax
test eax, eax
je 0x684c3ddb
lea edx, [eax + 2]
mov dword [esp + 4], 0x22
mov ecx, dword [ebp - 0x22c]
mov dword [esp], edx
mov dword [ebp - 0x230], edx
call ecx
test eax, eax
je 0x684c3ddb
mov edx, dword [ebp - 0x230]
sub eax, esi
mov dword [esp], edi
mov ecx, eax
lea eax, [eax - 2]
mov dword [ebp - 0x22c], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll_memmove]
mov ecx, dword [ebp - 0x22c]
mov eax, ecx
xor ecx, ecx
sar eax, 1
mov word [ebp + eax*2 - 0x222], cx
mov eax, edi
lea esi, [esi]
movzx edx, word [eax]
test dx, dx
je 0x684c3df9
add eax, 2
lea ecx, [ebp - 0x18]
add ebx, 2
mov word [ebx - 2], dx
cmp eax, ecx
jne 0x684c3de0
xor eax, eax
mov word [ebx], ax
mov eax, 1
jmp 0x684c3cfd
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
cmp eax, 0x104
setbe al
movzx eax, al
jmp 0x684c3cfd
Function at 0x684c56c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
lea eax, [edi + 0x24]
add edi, 0x54
mov dword [ebp - 0x24], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x28], eax
call eax
mov ebx, dword [edi]
sub esp, 4
mov esi, dword [ebx]
cmp ebx, edi
je 0x684c5890
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0x927c0
cmovne eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x684c57fe
lea esi, [esi]
call eax
test eax, eax
jne 0x684c57fe
cmp dword [ebp + 0xc], 0xffffffff
je 0x684c5848
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x684c5763
mov ecx, dword [ebx + 0xc]
mov edx, dword [sym.imp.kernel32.dll_GetTickCount]
test ecx, ecx
je 0x684c5830
mov dword [ebp - 0x30], edx
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x30]
test eax, eax
jle 0x684c5830
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov edi, dword [ebx + 8]
lock sub dword [edi], 1
mov eax, dword [sym.imp.ucrtbase.dll_free]
jne 0x684c57e0
mov eax, dword [ebp - 0x28]
mov dword [esp], 0x684eb040
call eax
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 4
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
mov dword [esp], 0x684eb040
call eax
sub esp, 4
test byte [0x684eb0a0], 8
jne 0x684c5860
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [edi + 4]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x30], eax
call eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x30]
mov dword [esp], ebx
call eax
mov eax, dword [esi]
mov ebx, esi
cmp esi, dword [ebp - 0x1c]
je 0x684c5815
mov esi, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x684c5720
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x684c57e5
mov dword [ebx + 0xc], 0
mov ebx, esi
mov eax, dword [esi]
cmp esi, dword [ebp - 0x1c]
jne 0x684c57ee
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call edx
mov edx, 1
add eax, dword [ebp - 0x2c]
cmove eax, edx
mov dword [ebx + 0xc], eax
jmp 0x684c57e5
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x684c573b
jmp 0x684c5763
mov eax, dword [edi + 8]
mov dword [esp + 0xc], str.freeing__p_n
mov dword [esp + 8], str.apartment_release_dll
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x684eb0a0
mov dword [esp], 3
call fcn.684c40b0
jmp 0x684c57b6
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], eax
jmp 0x684c5815