joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3f70fe31
Capabilities:
Parse credit card information

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea edx, [eax + eax]
mov eax, dword [esp + 0xc]
mov esi, dword [ebx]
add eax, edx
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0x3e
je 0x3f70fe76
cmp cx, 0x7d
je 0x3f70fe76
cmp cx, 0x3a
je 0x3f70fe80
cmp cx, 0x3b
je 0x3f70fe80
cmp cx, 0x38
je 0x3f70fe80
cmp cx, 0x25
je 0x3f70fe80
xor eax, eax
pop esi
pop ebx
ret 0xc
dec esi
je 0x3f70fe6f
mov cx, word [eax]
inc eax
inc eax
jmp 0x3f70fe57
dec esi
je 0x3f70fe6f
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0x2d
je 0x3f70feec
cmp cx, 0x5e
je 0x3f70feec
cmp cx, 0x28
je 0x3f70fedd
cmp cx, 0x3e
je 0x3f70fedd
cmp cx, 0x44
je 0x3f70fedd
cmp cx, 0x49
je 0x3f70fedd
cmp cx, 0x4f
je 0x3f70fedd
cmp cx, 0x6f
je 0x3f70fedd
cmp cx, 0x5c
je 0x3f70fedd
cmp cx, 0x2f
je 0x3f70fedd
cmp cx, 0x7c
je 0x3f70fedd
cmp cx, 0x30
je 0x3f70fefc
cmp cx, 0x29
jne 0x3f70fe6f
cmp word [eax - 4], 0x38
je 0x3f70fe6f
sub eax, edx
push 1
sub eax, dword [esp + 0x10]
sar eax, 1
mov dword [ebx], eax
pop eax
jmp 0x3f70fe71
dec esi
test esi, esi
je 0x3f70fe6f
mov cx, word [eax]
inc eax
inc eax
jmp 0x3f70fe94
cmp word [eax - 4], 0x38
jne 0x3f70fedd
jmp 0x3f70fed0

Function at 0x3f748d07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_FindResourceW]
push 0xa
push 0x3e7
mov esi, ecx
push dword [0x3f7ea024]
call edi
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
push eax
push dword [0x3f7ea024]
call ebx
mov ebp, dword [sym.imp.kernel32.dll_LockResource]
push eax
call ebp
push 0xa
push 0x3e6
mov dword [esi + 0x950], eax
push dword [0x3f7ea024]
call edi
push eax
push dword [0x3f7ea024]
call ebx
push eax
call ebp
push 0xa
push 0x3e5
mov dword [esi + 0x94c], eax
push dword [0x3f7ea024]
call edi
push eax
push dword [0x3f7ea024]
call ebx
push eax
call ebp
movzx eax, word [eax]
lea edi, [esi + 0x95c]
push 4
mov dword [edi], eax
shl eax, 2
push eax
call fcn.3f7448c0
mov dword [esi + 0x954], eax
mov eax, dword [edi]
shl eax, 1
push eax
call fcn.3f6e901c
add esp, 0xc
mov dword [esi + 0x958], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x3f7ae8b6
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [esp + 8], 1
jne 0x3f7ae93b
call dword [sym.imp.kernel32.dll_GetVersion]
push 0
mov dword [0x3f7ead10], eax
call fcn.3f7aebe8
test eax, eax
pop ecx
je 0x3f7e29c5
mov eax, dword [0x3f7ead10]
xor ecx, ecx
mov cl, byte [0x3f7ead11]
and eax, 0xff
shr dword [0x3f7ead10], 0x10
mov dword [0x3f7ead18], eax
mov dword [0x3f7ead1c], ecx
shl eax, 8
add eax, ecx
mov dword [0x3f7ead14], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x3f7eae40], eax
call fcn.3f7aec83
mov dword [0x3f7ead08], eax
call fcn.3f7aed2c
call fcn.3f70d0e6
call fcn.3f7af5fc
call fcn.3f7af6b6
inc dword [0x3f7ead04]
push 1
pop eax
ret 0xc
xor eax, eax
cmp dword [esp + 8], eax
jne 0x3f7ae935
cmp dword [0x3f7ead04], eax
jle 0x3f7e29c5
dec dword [0x3f7ead04]
cmp dword [0x3f7ead20], eax
jne 0x3f7ae962
call fcn.3f7ae9a8
call fcn.3f7aeb4e
call fcn.3f7aeb73
jmp 0x3f7ae935
xor eax, eax
jmp 0x3f7ae938
Function at 0x3f7ae9b7
Capabilities:
Terminate process

Disassembly:
push edi
push 1
pop edi
cmp dword [0x3f7eae64], edi
je 0x3f7e3905
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x3f7ead20], edi
mov byte [0x3f7eae60], bl
jne 0x3f7ae9fd
mov eax, dword [0x3f7eae68]
test eax, eax
jne 0x3f7e391b
push 0x3f7eae50
push 0x3f7eae48
call fcn.3f7ae96e
pop ecx
pop ecx
push 0x3f7eae5c
push 0x3f7eae54
call fcn.3f7ae96e
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x3f7e3942
pop edi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
jmp 0x3f7ae9c7
mov ecx, dword [0x3f7f9da0]
push esi
lea esi, [ecx - 4]
cmp esi, eax
jb 0x3f7e393c
mov eax, dword [esi]
test eax, eax
je 0x3f7e3931
call eax
sub esi, 4
cmp esi, dword [0x3f7eae68]
jae 0x3f7e3929
pop esi
jmp 0x3f7ae9ec
push dword [esp + 8]
mov dword [0x3f7eae64], edi
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x3f7aec83
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x3f7eb338]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x3f7e551f
call ebp
mov esi, eax
cmp esi, ebx
je 0x3f7e5503
mov dword [0x3f7eb338], 1
cmp esi, ebx
je 0x3f7e5529
cmp word [esi], bx
mov eax, esi
je 0x3f7aecd5
inc eax
inc eax
cmp word [eax], bx
jne 0x3f7aecc7
inc eax
inc eax
cmp word [eax], bx
jne 0x3f7aecc7
sub eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x3f7aed1c
push ebp
call fcn.3f6e901c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x3f7aed1c
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x3f7e5536
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x3f7e559d
mov dword [0x3f7eb338], 2
jmp 0x3f7e554e
cmp eax, 1
jne 0x3f7e5549
jmp 0x3f7aecb8
call ebp
mov esi, eax
cmp esi, ebx
je 0x3f7e559d
jmp 0x3f7aecc0
push dword [esp + 0x10]
call fcn.3f6e9364
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x3f7aed18
cmp eax, 2
jne 0x3f7e559d
cmp edi, ebx
jne 0x3f7e555e
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x3f7e559d
cmp byte [edi], bl
mov eax, edi
je 0x3f7e556e
inc eax
cmp byte [eax], bl
jne 0x3f7e5564
inc eax
cmp byte [eax], bl
jne 0x3f7e5564
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.3f6e901c
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x3f7e5584
xor esi, esi
jmp 0x3f7e558f
push ebp
push edi
push esi
call fcn.3f70d0e6
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x3f7aed25
xor eax, eax
jmp 0x3f7aed25
Function at 0x401f5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406458
cmp edx, dword [eax]
je 0x401f7f
add eax, 8
inc ecx
cmp eax, 0x4064e8
jl 0x401f70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406458]
jne 0x4020ad
mov eax, dword [0x408da0]
cmp eax, 1
je 0x402087
test eax, eax
jne 0x401fb0
cmp dword [0x406388], 1
je 0x402087
cmp edx, 0xfc
je 0x4020ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401fe7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004028a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40202a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004028a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405410
push edi
call fcn.00404070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402680
lea eax, [ebp - 0xa0]
push 0x4053f0
push eax
call fcn.00402680
push dword [esi + 0x40645c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403fe4
add esp, 0x2c
pop edi
jmp 0x4020ad
lea eax, [ebp + 8]
lea esi, [esi + 0x40645c]
push 0
push eax
push dword [esi]
call fcn.004028a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409da0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocString
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
mov esi, eax
call edi
test esi, esi
je 0x409e07
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x409df5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x409df5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0046b72d
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00468d21
mov esp, ebp
pop ebp
ret
Function at 0x409ea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.0047fd00
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x491ef8]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x491ef4]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x491efc]
mov dword [ebp - 0x2710], edx
mov dx, word [0x491f00]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.00472530
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409f24
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409f35
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x409f98
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409f56
mov cx, word [0x491f04]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409f70
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409f82
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40a03d
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x409ff7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fd4
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a018
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d21
mov esp, ebp
pop ebp
ret
Function at 0x40a060
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.0047fd00
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x491ef8]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x491ef4]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x491efc]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x491f00]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.00472530
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a0d1
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a0e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.00468d21
mov esp, ebp
pop ebp
ret
Function at 0x40f730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c7ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4a99f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x491428]
mov dword [esi + 0xc], ecx
mov edx, dword [0x49142c]
mov dword [esi + 0x10], edx
mov ecx, dword [0x491430]
mov dword [esi + 0x14], ecx
mov edx, dword [0x491434]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40f804
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40f7f5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40f804
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40f804
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40f804
cmp eax, ebx
je 0x40f804
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.0046a923
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40f835
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40f837
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40f837
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40f842
mov eax, dword [0x4ac338]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x4ac338], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413f80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x4a99f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp word [esi], 0xc
jne 0x413fc4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0xc]
jmp 0x413fdb
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dx, word [esi]
mov word [esp + 0xc], dx
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
xor ecx, ecx
cmp eax, ecx
jge 0x414048
mov dword [esp + 0x20], vtable.tcomxException.0
mov dword [esp + 0x28], vtable.tStringBuffer.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov ebx, dword [str.Internal_Error]
lea esi, [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.0040ac40
mov edx, dword [esp + 0x30]
push edx
mov ecx, 0x491568
call fcn.00408e30
add esp, 4
push 0x4a52e0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0xffffffff
call fcn.004722ce
mov edx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00412040
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419bd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x419be3.2
jmp dword [eax*4 + 0x419c8c]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041a330
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x419c41
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x419c41
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x419c41
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x419c6e
push 0x30b
push 0x4ab298
call fcn.00419110
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00419110
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41f4d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x41f4c0
call fcn.0046c18a
add esp, 4
call fcn.0041f380
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41f55e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41f524
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41f558
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00445d30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
Function at 0x41f7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x41f7d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f7d0
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.0046c220
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x41f800
mov dword [ebp - 0xc], ebx
jmp 0x41f800
cmp byte [esi], 0x5c
jne 0x41f816
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x493d34]
mov dword [ecx + esi], eax
mov edx, dword [0x493d38]
mov dword [ecx + esi + 4], edx
mov al, byte [0x493d3c]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x41f87f
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x41f87c
lea ecx, [esi + esi + 2]
push ecx
call fcn.0046ad29
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x41f881
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.0046acef
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41f8bb
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.0046bda0
add esp, 8
test eax, eax
je 0x41f8c3
cmp eax, esi
ja 0x41f8c3
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x41f800
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43fdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x492a98
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x43fde8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43fdf8
sub eax, edx
mov edi, eax
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x18], edi
mov ecx, edi
cmp edi, eax
jb 0x43fe36
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0x10]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x43fe13
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x43feb6
jmp 0x43fe50
cmp dword [edx + 0xc], edi
jne 0x43feb0
test edi, edi
je 0x43fe5f
test byte [edx + 7], 0x10
jne 0x43feb0
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x43fe84
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x43fea8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x43fe70
test eax, eax
je 0x43fef6
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x43fea8
cmp eax, 1
jbe 0x43fef6
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x43fea8
cmp eax, 2
jbe 0x43fef6
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x43fef6
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [edx]
test edx, edx
jne 0x43fe50
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.004414b0
add esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0x10]
mov eax, dword [ecx + eax]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x10c
jl 0x43fde4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x43ff14
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x43fec5