joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42cee8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x438928]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x438928]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x411824
cmp byte [ebx + 0x45], 0
je 0x411824
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x411730
xor al, al
jmp 0x411826
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x411770
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4117b1
dec eax
je 0x4117b5
sub eax, 2
je 0x41180b
xor bl, bl
jmp 0x41180d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4117ec
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00415029
add esp, 0x10
cmp esi, eax
jne 0x4117ad
cmp byte [ebx + 0x45], 0
je 0x41180b
test esi, esi
jne 0x411770
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004113d0
jmp 0x411770
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x411820
push dword [esp + 0x18]
call fcn.00413c44
add esp, 4
mov al, bl
jmp 0x411826
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00413c49
mov esp, ebp
pop ebp
ret
Function at 0x412430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x438928]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x46e7d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040d600
mov edx, 0x46e7ac
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d600
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, 0x6a
mov byte [ebp - 4], 3
call fcn.00407150
test eax, eax
je 0x4124b7
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406cb0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x412575
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x412575
cmp dword [esi - 0xc], 0
je 0x412575
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.004123b0
test eax, eax
jne 0x41254b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412520
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41254e
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x412560
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x412575
mov eax, dword [ebp - 0x18]
jmp 0x4124e0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412595
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4125b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4125d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412971
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41293f
cmp eax, 2
jne 0x41295b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41296b
test ecx, ecx
je 0x412966
test cl, 1
jne 0x41295b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41296b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x424388
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438928]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418b5d
mov dword [ebp - 0x14], eax
cmp dword [0x46fdc8], edi
jne 0x424479
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x424406
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424559
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x424559
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424559
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46fdc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46fdcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46fdd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46fdd8], eax
test eax, eax
je 0x424476
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46fdd4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42449e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424491
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4244b3
push 4
pop eax
jmp 0x42455b
cmp dword [ebp - 0x14], edi
je 0x4244b3
push dword [0x46fdc8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424498
mov eax, dword [0x46fdd4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x424511
cmp dword [0x46fdd8], esi
je 0x424511
push eax
call ebx
push dword [0x46fdd8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424511
test eax, eax
je 0x424511
call ecx
test eax, eax
je 0x424506
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 0x424506
test byte [ebp - 8], 1
jne 0x424511
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x424541
mov eax, dword [0x46fdcc]
cmp eax, esi
je 0x42453e
push eax
call ebx
test eax, eax
je 0x42453e
call eax
mov edi, eax
test edi, edi
je 0x42453e
mov eax, dword [0x46fdd0]
cmp eax, esi
je 0x42453e
push eax
call ebx
test eax, eax
je 0x42453e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46fdc8]
call ebx
test eax, eax
je 0x424559
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42455b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c49
leave
ret
Function at 0x42934b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041b08b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x429383
xor eax, eax
jmp 0x4293af
cmp esi, dword [ebp - 4]
je 0x4293ac
cmp dword [ebp + 0xc], 0
je 0x4293ac
push dword [edi + 0x9c]
call fcn.00428f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00418fcd
pop ecx
pop ecx
cmp esi, eax
je 0x42937f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40162a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40161b
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
invalid
inc ebp
lodsb al, byte [esi]

Function at 0x4017a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004013e6
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040139b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004013e6
push eax
push esi
push dword [ebp + 8]
call fcn.0040139b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004013d6
adc ch, byte [ebx - 0x6277914e]
jl 0x40185b
invalid
invalid

Function at 0x401ab0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401aad
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x401acb
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
invalid
invalid
Function at 0x401c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
scasd eax, dword es:[edi]
cld
invalid
inc dword [eax]
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
jne 0x401be8
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
jne 0x401be8
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
jmp [ebp - 0x3a]
test dword [ebx + 0x40fffffc], edi
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004013e6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
jne 0x401c96
call fcn.0040139b
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
invalid
invalid
inc esi

Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x40199d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push edi
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x4019c4
xor eax, eax
jmp 0x401a0c
cmp dword [ebp - 4], 2
jne 0x4019c0
push esi
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jb 0x401a09
cmp word [esi], 0x43
jne 0x401a09
cmp word [esi + 2], 0x4e
jne 0x401a09
cmp word [esi + 4], 0x3d
jne 0x401a09
push 0x104
lea ecx, [esi + 6]
mov edx, ebx
call fcn.00402dbc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x401a0b
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021d3
Capabilities:
Get graphical window text
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x81
push dword [0x4c6e98]
mov ebx, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x4d2bc0
push esi
push 0x480740
push 0x15
push 0
push 0x480720
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4022b8
mov edx, eax
mov ecx, esi
call fcn.0040e7c8
test eax, eax
js 0x4022b8
cmp dword [0x4d2bc0], 0
je 0x4022b8
push 0x3ea
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
mov ebx, eax
mov ecx, dword [0x4d2bc0]
pop eax
sub esp, 0x10
mov word [ebp - 0x14], ax
mov edi, esp
mov dword [ebp - 0xc], 0x1e
lea esi, [ebp - 0x14]
mov edx, dword [ecx]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
mov esi, 0x480710
push 0
push 0xfffffffffffffffc
push ebx
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x18]
push 0x824
mov esi, 0x4c5e50
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x4d2bc0]
push esi
sub esp, 0x10
mov esi, 0x480730
mov edi, esp
mov ecx, dword [eax]
push 0
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffc
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x1c]
mov ebx, dword [ebp - 4]
call fcn.0040c4ae
push eax
push str.officeredir.microsoft.com
push str.http:___s_r_rlidVBASelfCert_clid_d
push 0xffffffffffffffff
push 0x4c5e50
call fcn.00402d55
add esp, 0x14
push 0
push 0x103
push 0xc5
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402fdb
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4ad15c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x4c6ea4], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
xor ebx, ebx
test si, si
je 0x403021
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
movzx esi, word [0x4c6ea4]
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
mov esi, 0x409
mov ecx, esi
call fcn.00402e68
test eax, eax
jne 0x403136
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftOffice12.0CommonLanguageResourcesInstalledUIs
push 0x80000002
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031b3
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xa
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x64
push eax
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
inc edi
test ebx, ebx
jne 0x4031b3
and dword [esp + 0xc], eax
lea edx, [esp + 0xc]
push 1
lea ecx, [esp + 0x28]
call fcn.0040d4cd
mov ecx, dword [esp + 0xc]
movzx esi, cx
call fcn.00402e68
test eax, eax
jne 0x40312a
test ebx, ebx
jne 0x4031b3
jmp 0x4030b9
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov eax, dword [0x4c6ea4]
push ebx
push 0x55
push 0x4d2510
cmp si, ax
je 0x40314b
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x403170
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ebx
call fcn.0040e920
test eax, eax
js 0x403170
mov ecx, dword [esp + 0xc]
call fcn.0040c487
lea ecx, [esp + 0x18]
mov word [0x4c6ea0], si
push ecx
lea edx, [esp + 0x17]
mov ecx, esi
call fcn.0040da59
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x4c6ea0]
lea edx, [esp + 0x17]
call fcn.0040da59
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a72f
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 0
je 0x4031c4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40319e
Function at 0x4031c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftShared
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403214
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.OfficeUILanguage
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406026
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c4a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4ad15c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x4812cc
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x406101
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e368
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, ecx
push eax
push 0x20019
push 0
push 0x481d78
push Ordinal_1
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e3ff
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e3f4
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e3f4
cmp dword [ebp - 0xc], edi
jne 0x40e3f4
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x40e3f4
cmp dword [ebp - 4], eax
je 0x40e401
push dword [ebp - 4]
call esi
jmp 0x40e401
cmp dword [ebp - 4], 0
je 0x40e3ff
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x40e40c
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret