joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470870
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa60
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], 0x22c
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.004a17d0
add esp, 0xc
test eax, eax
je 0x4708c1
mov ecx, ebx
call fcn.0041ef50
mov ebx, eax
jmp 0x4708c3
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x470987
test ebx, ebx
je 0x4708e5
cmp ebx, dword [esp + 0x1c]
je 0x47099b
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470920
lea edi, [esp + 0x240]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x470940
push dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x244]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4709af
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4708d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa60
ret
Function at 0x484b70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x484d60
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x484bf5
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x484bb5
cmp byte [eax + 4], 6
je 0x484bb5
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00484e40
jmp 0x484bea
cmp dword [eax + 0x3c], 0
je 0x484bea
cmp byte [eax + 4], 6
je 0x484bea
mov ecx, dword [esi + 0xd4]
push 0x4bfb90
test ecx, ecx
jne 0x484be1
push str.No_object_to_invoke.
mov ecx, 0x4eb990
call fcn.0043eb10
jmp 0x484bea
push eax
push ecx
mov ecx, esi
call fcn.00485950
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x484b93
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x484c34
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x484c88
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x484c69
cmp edx, edi
jle 0x484c69
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004a5f40
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x484d4f
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x484c8c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x484d2e
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x484d04
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x484d2e
push 1
push 0
push ecx
push 0x4d4eac
mov ecx, ebx
call fcn.004a5f40
jmp 0x484d2e
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x484d2e
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
mov ecx, ebx
call fcn.004a5f40
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x484c15
cmp byte [ebp + 8], 0
je 0x484d60
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484d70
Capabilities:
Get graphical window text

Disassembly:
mov eax, edx
cmp eax, 0x2af8
jae 0x484e23
test ecx, ecx
je 0x484e23
cmp dword [ecx + 4], 0
je 0x484e23
cmp eax, dword [ecx + 0x10]
jae 0x484e23
mov edx, dword [esp + 4]
shl eax, 6
add eax, dword [ecx + 0x18]
mov ecx, dword [eax + 8]
test edx, edx
je 0x484dee
test ecx, ecx
je 0x484de2
mov ecx, dword [ecx + 0x18]
push esi
mov esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x484db3
lea eax, [edx + 2]
pop esi
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x484dd0
sub edx, eax
sar edx, 1
mov eax, edx
ret
push 0x40
push edx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
test ecx, ecx
je 0x484e10
mov eax, dword [ecx + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484e00
sub eax, edx
sar eax, 1
ret
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 0x3f
cmp eax, ecx
cmova eax, ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x484e30
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x4891e0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x48921c
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x48920b
cmp eax, 0x2b
je 0x489207
cmp dx, 0x5e
jne 0x48921c
mov al, 2
jmp 0x48920d
mov al, 1
jmp 0x48920d
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4891f0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00416200
mov bh, al
add esp, 0xc
test bh, bh
jne 0x48923f
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.00416110
movzx edx, ax
test dx, dx
jne 0x48925c
xor dl, dl
mov cl, bh
call fcn.004167d0
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x48ad60
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x48ad7d
cmp eax, 9
jne 0x48ad82
add esi, 2
jmp 0x48ad70
test ax, ax
je 0x48aeed
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x48ada6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48ae78
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x48ade4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x48addd
cmp eax, 9
jne 0x48ade4
sub edi, 2
cmp edi, esi
ja 0x48add0
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48ae02
or bl, 1
jmp 0x48ae36
push edi
push 0x4c1b4c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48ae1b
or bl, 4
jmp 0x48ae36
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48aeed
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x48ae4d
cmp eax, 9
jne 0x48ae52
add esi, 2
jmp 0x48ae40
test ax, ax
je 0x48aeed
lea eax, [esi + 2]
push 0x2b
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x48adc5
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x48aea8
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.00416320
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x48aec0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00416200
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x48aecf
or byte [edi], 8
test bl, 4
je 0x48aed7
or byte [edi], 0x10
test bl, 0x10
je 0x48aedf
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x48ce20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48ce32
sub edx, ecx
sar edx, 1
cmp edx, 0x104
ja 0x48cff9
mov edi, dword [esp + 0x78]
xor edx, edx
movzx ecx, word [ebp]
mov esi, 0x800
test cx, cx
movzx eax, word [edi + 0x1e]
cmovne esi, edx
mov edx, dword [ebx + 0x20]
and eax, 0xfffff6fb
or esi, eax
test edx, edx
jne 0x48ce89
push ebp
push edi
mov word [edi + 0x1e], si
call fcn.0048d010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
movzx eax, word [ebp]
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
test ax, ax
je 0x48ceba
movzx eax, word [edi + 0x1e]
test eax, 0x800
je 0x48cefc
movzx eax, word [edi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x48cefc
cmp dword [ebx + 0xc], edi
jne 0x48cefc
cmp ebx, dword [0x4ec4e4]
jne 0x48cee6
cmp byte [ebx + 0x10], cl
je 0x48cede
cmp byte [0x4e98c2], cl
je 0x48cede
mov eax, 0xff14
push 0
push eax
jmp 0x48ceea
or eax, 0xffffffff
push 0
push eax
jmp 0x48ceea
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
push 9
push dword [edi]
or ecx, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
call esi
push 9
push ebp
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, eax
test edx, edx
je 0x48cf46
test ecx, ecx
je 0x48cf46
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov esi, eax
jmp 0x48cf53
xor eax, eax
cmp edx, ecx
setne al
mov dword [esp + 0x7c], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
cmp dword [ebx + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x48cf85
cmp dword [0x4e980c], 0
je 0x48cf85
mov ecx, dword [ebx + 0x20]
call fcn.0047beb0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x48cff9
push ebp
push edi
call fcn.0048d010
test eax, eax
je 0x48cff9
mov ax, word [esp + 0x18]
mov word [edi + 0x1e], ax
test esi, esi
je 0x48cfa8
mov ecx, ebx
call fcn.0048d7a0
cmp word [ebp], 0
je 0x48cfea
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x48cfea
or eax, 0xffffffff
mov dword [esp + 0x40], 0x30
cmp byte [0x4ec66b], 0
mov dword [esp + 0x44], 0x80
cmovne eax, ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
Function at 0x491650
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be2bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x491778
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x4916f2
cmp dword [0x4e9810], 0
mov ecx, 0x42
mov eax, dword [0x4e7024]
mov esi, 0x4e96e0
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4ec490], xmm0
je 0x4916ef
mov eax, dword [0x4e8a24]
mov ecx, 0x4bfb90
test eax, eax
je 0x4916e8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push 0x4bfc08
call fcn.0048dde0
add esp, 0x14
test eax, eax
je 0x49175a
cmp dword [ebp - 0x14], 0
jne 0x491739
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x4916a0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x49177b
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x497320
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004bd970
push esi
mov esi, dword [esp + 0x3001c]
test esi, esi
je 0x49733c
cmp word [esi], 0
jne 0x497341
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x1000c], ax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x8000
push dword [esp + 0x3001c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x30018]
mov ecx, dword [esp + 0x30014]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x4973cd
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x10018]
push edi
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
mov ecx, dword [0x4eb028]
lea eax, [esp + 0x1000c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a5f40
pop esi
add esp, 0x30008
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10010]
push 0xffff
push eax
test dx, dx
je 0x4973ed
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4973f3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x4973aa
lea eax, [esp + 0x1000c]
mov ecx, 0xa
cmp word [eax], 0
jne 0x497413
cmp word [eax + 2], 0
je 0x4973aa
mov word [eax], cx
add eax, 2
jmp 0x497403
Function at 0x497420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004bd970
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x1000c]
mov dword [ebp - 4], esi
push eax
push 0x8000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x1000c]
call fcn.004a27d0
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x497558
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1000c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x497555
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4974a0
sub ecx, edx
sar ecx, 1
lea edi, [ebx + ecx*2]
push 0
lea eax, [ecx*2 + 2]
mov dword [ebp + 0x10], eax
mov eax, 0x5d
mov word [edi], ax
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4df4d4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4974ff
cmp dword [ebp + 0xc], 4
jne 0x4974ff
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4974ff
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
je 0x497506
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49754b
mov word [edi], ax
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x497613
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 8], eax
je 0x497514
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x497575
lea ecx, [ebp - 0x1000c]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4975d1
push 0
mov ecx, esi
call fcn.004302b0
lea eax, [eax*2 + 4]
call fcn.004bd9a0
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x4975be
mov esi, ecx
sub edi, eax
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x4975a0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x1000c]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x1000c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x497514
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4bfb90
push 0
push 0x4d4eac
call fcn.0043e390
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x497d80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x497e46
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e7024]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x497e50
mov ecx, dword [esp + 0x14]
call fcn.00497d80
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x497e50
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x497e50
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x497dd0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497e60
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x497f55
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x497e87
cmp word [edi], 0
jne 0x497e8f
test ebx, ebx
je 0x497f55
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e7024]
mov eax, dword [eax + 0xd0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x497f5a
test ebx, ebx
jne 0x497f3c
mov ecx, dword [esp + 0x18]
call fcn.00497d80
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x497f5a
mov eax, dword [0x4edcdc]
test al, 1
jne 0x497f0c
push str.RegDeleteKeyExW
or eax, 1
push str.advapi32
mov dword [0x4edcdc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4edce0], ecx
jmp 0x497f12
mov ecx, dword [0x4edce0]
mov eax, dword [0x4e7024]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x497f30
test ecx, ecx
je 0x497f30
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x497f5a
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x497f5a
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x497f5a
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
push esi
setne al
movzx eax, al
push eax
call fcn.0043e4f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4a27d0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov ebx, ecx
test ebx, ebx
je 0x4a28aa
cmp word [ebx], 0
je 0x4a28aa
push 4
push 0x4dfb10
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4a2811
mov eax, ebx
mov edi, eax
jmp 0x4a281a
lea eax, [ebx + 8]
mov edi, eax
test eax, eax
je 0x4a2861
movzx eax, word [eax]
test ax, ax
je 0x4a2861
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x4dcc38
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4a287d
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4a2840
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4a2830
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ebp, ebp
je 0x4a286f
mov dword [ebp], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4a28aa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x4a28a0
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a2f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x4a2fa3
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4a2fa3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a2fa3
shr eax, 1
lea ecx, [eax - 1]
mov dword [esp + 0x18], ecx
cmp word [edi + ecx*2], 0
jne 0x4a2f8b
mov eax, ecx
test ecx, ecx
je 0x4a2fa8
cmp word [edi + ecx*2 - 2], 0
jne 0x4a2fa8
add ecx, 0xffffffff
mov eax, ecx
mov dword [esp + 0x18], ecx
jne 0x4a2f75
pop edi
pop ecx
ret
mov dword [esp + 0x18], eax
cmp eax, 0x104
jae 0x4a2fa3
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [esp + 0x18]
pop edi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop ecx
ret