joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ecb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10002e3f
xor esi, esi
inc esi
cmp dword [0x10022c3c], esi
pop ecx
jne 0x10001ef3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10022c38], esi
mov byte [0x10022c34], al
jne 0x10001f59
mov ecx, dword [0x100243c8]
test ecx, ecx
je 0x10001f3a
mov eax, dword [0x100243c4]
sub eax, 4
cmp eax, ecx
jmp 0x10001f33
mov eax, dword [eax]
test eax, eax
je 0x10001f25
call eax
mov eax, dword [0x100243c4]
sub eax, 4
cmp eax, dword [0x100243c8]
mov dword [0x100243c4], eax
jae 0x10001f1d
mov eax, 0x10022020
mov esi, 0x10022028
cmp eax, esi
mov edi, eax
jae 0x10001f59
mov eax, dword [edi]
test eax, eax
je 0x10001f52
call eax
add edi, 4
cmp edi, esi
jb 0x10001f4a
mov eax, 0x1002202c
mov esi, 0x10022030
cmp eax, esi
mov edi, eax
jae 0x10001f78
mov eax, dword [edi]
test eax, eax
je 0x10001f71
call eax
add edi, 4
cmp edi, esi
jb 0x10001f69
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10001f89
push 8
call fcn.10002dab
jmp 0x10001f9b
push dword [ebp + 8]
mov dword [0x10022c3c], 1
call fcn.10001e24
pop ecx
pop ebp
ret
Function at 0x10002b5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10022550]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10022080]
je 0x10002b8a
inc eax
cmp eax, 0x12
jb 0x10002b7b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10022080]
jne 0x10002cbe
mov eax, dword [0x10022bf0]
cmp eax, 1
je 0x10002c99
cmp eax, edx
jne 0x10002bba
cmp dword [0x10022bf4], 1
je 0x10002c99
cmp ecx, 0xfc
je 0x10002cbe
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002bf3
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10004370
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10004470
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10002c35
lea eax, [ebp - 0x10c]
push eax
call fcn.10004470
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001fc78
push edi
call fcn.10001d00
add esp, 0x10
push edi
call fcn.10004470
push dword [esi + 0x10022084]
mov ebx, eax
call fcn.10004470
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10002b20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10004370
push edi
push ebx
call fcn.10004380
push 0x1001fc58
push ebx
call fcn.10004380
push dword [esi + 0x10022084]
push ebx
call fcn.10004380
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000483d
add esp, 0x2c
jmp 0x10002cbe
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10022084]
push dword [esi]
call fcn.10004470
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10004967
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000483d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10022ebc], ebx
push esi
push edi
jne 0x100048bd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100048f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10022ebc], eax
je 0x100048f8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10022ec0], eax
call esi
cmp dword [0x10022bfc], 2
mov dword [0x10022ec4], eax
jne 0x100048bd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10022ecc], eax
je 0x100048bd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10022ec8], eax
mov eax, dword [0x10022ec8]
test eax, eax
je 0x10004902
call eax
test eax, eax
je 0x100048e9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10022ecc]
test eax, eax
je 0x100048e9
test byte [ebp - 8], 1
jne 0x10004902
cmp dword [0x10022c08], 4
jb 0x100048fc
or byte [ebp + 0x12], 0x20
jmp 0x10004921
xor eax, eax
jmp 0x10004931
or byte [ebp + 0x12], 4
jmp 0x10004921
mov eax, dword [0x10022ec0]
test eax, eax
je 0x10004921
call eax
mov ebx, eax
test ebx, ebx
je 0x10004921
mov eax, dword [0x10022ec4]
test eax, eax
je 0x10004921
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10022ebc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004975
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10022550]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1000499e
xor eax, eax
jmp 0x10004b0c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100242c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100049d1
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.100062e2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10004aa3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x10004ade
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10004a2c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10004a1d
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x10004a00
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004a6c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10004a75
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100049f1
jmp 0x10004a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10004b07
cmp dword [ebp - 8], edi
je 0x10004ade
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x10004ad0
call fcn.10004dc5
mov dword [eax], 9
call fcn.10004dce
mov dword [eax], esi
jmp 0x10004ad9
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004ac5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10004a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10004a77
push dword [ebp - 8]
call fcn.10004dd7
pop ecx
or eax, 0xffffffff
jmp 0x10004b0a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10004af3
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x10004af3
xor eax, eax
jmp 0x10004b0a
call fcn.10004dc5
mov dword [eax], 0x1c
call fcn.10004dce
mov dword [eax], edi
jmp 0x10004ad9
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.10004967
leave
ret
Function at 0x100065ce
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10002b20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006663
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10022bfc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10006663
cmp eax, 1
je 0x1000667b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006663
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10006638
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1000665f
xor eax, eax
inc eax
jmp 0x10006697
cmp esi, ebx
jae 0x10006667
xor eax, eax
jmp 0x10006697
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10022bfc]
jmp 0x1000667d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10090299
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100902d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100902d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100902d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100902d8
cmp dword [ecx + 0x74], 0xe
jbe 0x100902d8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100910b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100910dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100910dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10091400
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009b608
push 0x1009b600
push str.FlsAlloc
push 0x1f
call fcn.100916e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10091434
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1009143a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009147e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009b618
push 0x1009b610
push str.FlsGetValue
push 0x21
call fcn.100916e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100914b5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100914bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009b620
push 0x1009b618
push str.FlsSetValue
push 0x22
call fcn.100916e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100914f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100947a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1009483d
push ebx
push esi
call fcn.10094840
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100946a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100947ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009483c
push edi
push eax
call fcn.10094877
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009480a
call fcn.100929b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009483b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100946a4
add esp, 0x20
test eax, eax
jne 0x10094829
push edi
call fcn.100929b0
jmp 0x10094831
push ebx
call fcn.100929b0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10

Function at 0x4c4bec
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
test byte [ebp - 8], 1
je 0x4c4c17
mov eax, dword [ebp - 8]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 8], eax
jmp 0x4c4c1a
shr dword [ebp - 8], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x4c4c02
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax*4 + 0x4db7c8], edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jne 0x4c4bf7
mov esp, ebp
pop ebp
ret
Function at 0x406cd7
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4192d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4192d4]
mov dword [ebp - 0x2c], eax
call fcn.00406cd0
mov esi, dword [ebp - 8]
mov eax, dword [0x4192d8]
add esi, 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x4192dc]
push 0x20
mov dword [ebp - 8], esi
mov dword [ebp - 0x38], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [0x1a47acc]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x406d6e
xor ecx, ecx
lea eax, [ebp - 0x3c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x43c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a47acc]
add eax, dword [ebp - 0x34]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a47ac8]
mov dword [ebp - 0xc], 0xedeb2e40
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp ecx, 0x3eb
mov dword [0x1a47ac8], eax
mov eax, dword [0x1a47a1c]
cmove eax, dword [ebp - 0xc]
mov dword [0x1a47a1c], eax
lea eax, [esi + edx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x24], 0
mov dword [0x1a47ac4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
mov dword [ebp - 0x10], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
nop
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
cmp dword [0x1a47acc], 0xb03
jne 0x406e45
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x406440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add esi, 0x61c88647
mov dword [ebp - 8], esi
dec edi
jne 0x406d2b
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41253b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e020
mov dword [ebp - 0x14], eax
cmp dword [0x4603bc], esi
jne 0x41262e
push 0x800
push esi
push 0x405b34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4125bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41270e
push esi
push esi
push 0x405b34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41270e
push 0x405b4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41270e
push eax
call ebx
push 0x405b58
push edi
mov dword [0x4603bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b68
push edi
mov dword [0x4603c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b7c
push edi
mov dword [0x4603c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4603cc], eax
test eax, eax
je 0x41262b
push 0x405b98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4603c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412653
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412646
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x412668
push 4
pop eax
jmp 0x412710
cmp dword [ebp - 0x14], esi
je 0x412668
push dword [0x4603bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41264d
mov eax, dword [0x4603c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4126c6
cmp dword [0x4603cc], edi
je 0x4126c6
push eax
call ebx
push dword [0x4603cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4126c6
test eax, eax
je 0x4126c6
call ecx
test eax, eax
je 0x4126bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4126bb
test byte [ebp - 8], 1
jne 0x4126c6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4126f6
mov eax, dword [0x4603c0]
cmp eax, edi
je 0x4126f3
push eax
call ebx
test eax, eax
je 0x4126f3
call eax
mov esi, eax
test esi, esi
je 0x4126f3
mov eax, dword [0x4603c4]
cmp eax, edi
je 0x4126f3
push eax
call ebx
test eax, eax
je 0x4126f3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4603bc]
call ebx
test eax, eax
je 0x41270e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x412710
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409584
mov esp, ebp
pop ebp
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x12f3b44
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12f3b4e
pushal
call 0x12f3b54
pop ebp
sub ebp, 0x10
sub ebp, 0xef3b44
jmp 0x12f3b6a
mov eax, 0xef3b44
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0xfdb6c6ee
xor byte [eax], dl
inc eax
dec ecx
jne 0x12f3b81
jmp 0x12f3b94
and esp, dword gs:[ebp + 0x67]
shr dh, cl
out dx, al
out dx, al
outsd dx, dword [esi]
das
push ss
out dx, al
out dx, al
out dx, al
in eax, dx
and edx, dword [esi - 0x15]
out dx, al
out dx, al
out dx, al
push esp
invalid