joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4827a0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 0x30], edx
mov dword [ecx + 0xc], 0
push ebx
push esi
push edi
test edx, edx
jne 0x482835
mov eax, 0x137e2179
mov dword [ebp - 0x20], 0x2b3e6c1f
mov esi, 0x5be0cd19
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov edi, 0xfb41bd6b
mov ebx, 0x1f83d9ab
mov dword [ebp - 0x24], 0x9b05688c
mov dword [ebp - 0x1c], 0x510e527f
mov edx, 0xade682d1
mov dword [ebp - 0x14], 0x5f1d36f1
mov eax, 0xfe94f82b
mov dword [ebp - 0x18], 0xa54ff53a
mov esi, 0xf3bcc908
mov dword [ebp - 0x10], 0x3c6ef372
mov dword [ebp - 8], 0x84caa73b
mov dword [ebp - 0xc], 0xbb67ae85
mov dword [ebp - 4], 0x6a09e667
jmp 0x48289d
mov eax, 0xbefa4fa4
mov dword [ebp - 0x20], 0x68581511
mov esi, 0x47b5481d
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov edi, 0x64f98fa7
mov ebx, 0xdb0c2e0d
mov dword [ebp - 0x24], 0x8eb44a87
mov edx, 0xffc00b31
mov dword [ebp - 0x1c], 0x67332667
mov dword [ebp - 0x14], 0xf70e5939
mov eax, 0x3070dd17
mov dword [ebp - 0x18], 0x152fecd8
mov esi, 0xc1059ed8
mov dword [ebp - 0x10], 0x9159015a
mov dword [ebp - 8], 0x367cd507
mov dword [ebp - 0xc], 0x629a292a
mov dword [ebp - 4], 0xcbbb9d5d
mov dword [ecx + 0x10], esi
mov esi, dword [ebp - 4]
mov dword [ecx + 0x14], esi
mov esi, dword [ebp - 8]
mov dword [ecx + 0x18], esi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 0x1c], esi
mov esi, dword [ebp - 0x2c]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x30], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x34], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x40], edi
mov dword [ecx + 0x44], ebx
mov dword [ecx + 0x48], eax
xor eax, eax
pop edi
mov dword [ecx + 0x4c], esi
pop esi
mov dword [ecx + 0xd0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484be0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edx, edx
push ebx
mov ecx, 0x367cd507
mov dword [ebp - 0xc], 0xc1059ed8
mov dword [eax], 0
mov ebx, 0xa54ff53a
mov dword [eax + 4], 0
mov edx, 0x5be0cd19
mov eax, 0xbb67ae85
cmovne eax, ecx
mov ecx, 0x3070dd17
mov dword [ebp - 0x10], eax
mov eax, 0x3c6ef372
cmovne eax, ecx
mov ecx, 0x510e527f
mov dword [ebp - 0x14], eax
mov eax, 0xf70e5939
cmovne ebx, eax
mov eax, 0x64f98fa7
push esi
push edi
mov edi, 0x1f83d9ab
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
cmovne edi, eax
mov eax, 0x68581511
mov esi, 0x9b05688c
cmovne esi, eax
test ebx, ebx
mov ebx, dword [ebp - 4]
mov eax, 0xbefa4fa4
cmovne edx, eax
mov eax, 0xffc00b31
cmovne ecx, eax
mov eax, 0x6a09e667
cmovne eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], edi
pop edi
mov dword [eax + 0x24], edx
pop esi
mov dword [eax + 0x68], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487ce0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9d25
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 1
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
jne 0x487df2
test esi, esi
je 0x487e57
test ecx, ecx
jne 0x487d6f
push str.src_was_null.
lea ecx, [ebp - 0x58]
call fcn.00403040
push str.CbcModeImpl::decrypt__
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.00403040
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
jmp 0x487e83
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x487e12
test al, 0xf
jne 0x487e12
shr eax, 4
xorps xmm0, xmm0
mov dword [ebx + 0x10], eax
movups xmmword [ebp - 0x24], xmm0
test eax, eax
je 0x487df2
sub ecx, esi
lea edx, [edi + 4]
mov dword [ebp - 0x28], ecx
nop dword [eax + eax]
movups xmm0, xmmword [ecx + esi]
lea eax, [ecx + esi]
mov ecx, edx
push eax
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x38], xmm0
call fcn.0043dc50
mov eax, dword [edi + 0x10]
lea esi, [esi + 0x10]
mov ecx, dword [ebp - 0x24]
lea edx, [edi + 4]
xor ecx, dword [edi + 0xc]
xor eax, dword [ebp - 0x20]
movups xmm0, xmmword [ebp - 0x38]
mov dword [esi - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], eax
xor ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
xor eax, dword [ebp - 0x18]
sub dword [ebx + 0x10], 1
mov dword [esi - 8], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esi - 4], eax
movups xmmword [edi + 0xc], xmm0
jne 0x487da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push str.size_was_not_a_multiple_of_kBlockSize.
lea ecx, [ebp - 0x58]
call fcn.00403040
push str.CbcModeImpl::decrypt__
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
call fcn.00403040
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x108]
call fcn.00433f80
push 0x4d8ce0
lea eax, [ebp - 0x108]
jmp 0x487e9a
push str.dst_was_null.
lea ecx, [ebp - 0x40]
call fcn.00403040
push str.CbcModeImpl::decrypt__
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00403040
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00435050
push 0x4d8d50
lea eax, [ebp - 0xb0]
push eax
call fcn.0048ab6b
int3

Function at 0x48fb88
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48fbc7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48fbc7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48fbc7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48fbc7
cmp dword [ecx + 0x74], 0xe
jbe 0x48fbc7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x492ca4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af410
push 0x4af408
push str.FlsAlloc
push 0x1f
call fcn.00492b2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492cd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ac174]
call esi
jmp 0x492cde
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x492d22
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af420
push 0x4af418
push str.FlsGetValue
push 0x21
call fcn.00492b2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492d59
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ac174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x492d61
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af428
push 0x4af420
push str.FlsSetValue
push 0x22
call fcn.00492b2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492d9b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ac174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x498398
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4983e3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00498533
test al, al
jne 0x4983dd
sub edx, 2
cmp edx, edi
jne 0x4983c3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x498405
lea eax, [edi + 2]
cmp edx, eax
je 0x498405
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004982e4
add esp, 0x10
jmp 0x4984ff
push esi
lea ecx, [ebp - 0x255]
call fcn.00498533
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x498448
push dword [ebp - 0x25c]
jmp 0x4983f5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x498485
cmp word [ebp - 0x226], 0
je 0x4984a6
cmp word [ebp - 0x226], ax
jne 0x498485
cmp word [ebp - 0x224], 0
je 0x4984a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004982e4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4984f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49845f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4984da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4984ff
push 0x498114
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049cdd0
add esp, 0x10
jmp 0x4984cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004891fb
leave
ret

Function at 0x498e7d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498e8e
pop esi
ret
push ebx
push edi
push esi
call fcn.00498e46
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00494287
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498eb6
push ebx
push esi
push edi
call fcn.0048abe0
add esp, 0xc
push 0
call fcn.0049284f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x499286
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00498ecb
Function at 0x49b4c1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004938c8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49b530
cmp esi, dword [ebp - 4]
je 0x49b52b
cmp dword [ebp + 0xc], 0
je 0x49b52b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49b508
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049b013
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49b532
xor eax, eax
inc eax
jmp 0x49b532
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49b597
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004938c8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004938c8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x49b60e
cmp word [ecx], dx
je 0x49b60e
mov eax, dword [0x4b00e4]
push edi
dec eax
push eax
push 0x4affd0
call fcn.0049b536
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x49b681
cmp word [eax], dx
je 0x49b681
mov eax, dword [edi]
test eax, eax
je 0x49b632
cmp word [eax], dx
je 0x49b632
lea eax, [ebp - 0x10]
push eax
call fcn.0049af17
jmp 0x49b63b
lea eax, [ebp - 0x10]
push eax
call fcn.0049afb4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x49b6ab
mov eax, dword [0x4affcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4afcc0
call fcn.0049b536
add esp, 0xc
test al, al
je 0x49b6ab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x49b676
cmp word [eax], di
je 0x49b676
lea eax, [ebp - 0x10]
push eax
call fcn.0049af17
pop ecx
jmp 0x49b6ad
lea eax, [ebp - 0x10]
push eax
call fcn.0049afb4
jmp 0x49b673
mov eax, dword [edi]
test eax, eax
je 0x49b698
cmp word [eax], dx
je 0x49b698
lea eax, [ebp - 0x10]
push eax
call fcn.0049aecc
pop ecx
jmp 0x49b6ab
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x49b776
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0049b3bb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49b776
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x49b776
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x49b776
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49b703
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00492ea1
test ebx, ebx
je 0x49b771
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00492ea1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49b776
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49b776
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049d470
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49b778
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004891fb
leave
ret
Function at 0x4063fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406422
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x406419
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c8], 0xffffffff
jmp 0x406495
cmp dword [0x424a80], ebx
je 0x406495
cmp byte [0x424680], bl
je 0x406461
cmp dword [0x40a8c8], 0xffffffff
jne 0x40646a
push 4
push 0x40000000
push 0x424680
call fcn.00405dd9
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406495
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c8], 0xffffffff
je 0x406495
push esi
mov esi, 0x4252a0
push 0x40ab10
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40663d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424284], 0
push esi
jne 0x406674
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40664e
mov dword [ecx*4 + 0x424280], eax
inc ecx
cmp ecx, 0x100
jl 0x406649
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066a5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424280]
xor eax, esi
inc ecx
dec edx
jne 0x406687
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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 0x401000
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x401005
push ds
jmp 0x40100a
pushfd
jmp 0x40100f
jmp 0x401013
pushal
popal
popfd
pop ds
jmp fcn.004b932d
Function at 0x6241b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00624140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00624140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00624140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00624140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x624bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x624c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x63687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x624c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x624c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x40c7fb
Capabilities:
Encode data using xor

Disassembly:
adc byte [ecx + 0x38fcfcfc], bl
or al, 0x10
adc al, 0x18
arpl word [ecx + 0x2036f8b3], di
and al, 0x28
sub al, 0x30
xor al, 0x1c
xor al, 0x1c
cmp byte [eax + 0x46c72c], bh
mov eax, 0x46c72c
push eax
push dword fs:[0]
mov dword fs:[0], esp
and eax, 0
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x40c87b
arpl word [edx + esi], si
je 0x40c898
inc ecx
sub al, 0x61
jl 0x40c7dc
sub byte [ecx], 0xcb
bound eax, qword [edi - 0x7c]
ja 0x40c80a
jno 0x40c7f7
mov byte [eax + edx*4 + 0x1dc771dc], cl
xchg esp, eax
cwde
pushfd
adc al, 0xc6
sbb eax, 0xa8a4a077
xchg edx, eax
sub al, 0x61
sub al, 0x81
dec esp
aad 0xf3
xor eax, 0x83d40ca8
cmp eax, dword [0x290d2ef8]
jae 0x40c83c
pop ebp
in eax, dx
push 0x38c2fc19
daa
arpl word [ebx], di
das
dec edi
sub al, 0x67
dec esi
hlt
sbb byte [eax], dl
sbb al, 0x14
invalid
mov eax, dword [0x3702acb1]
mov cl, 0xac
add dh, byte [edi]
sal byte [eax], 0x22
or dword [edi], ecx
stosd dword es:[edi], eax
add al, 0x24
jmp 0x40c897