joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x407fea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4016b8
call fcn.004082b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40803d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40803d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x408055
cmp ecx, 0x20b
je 0x408042
mov dword [ebp - 0x60], ebx
jmp 0x408069
cmp dword [eax + 0x84], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x408063
cmp dword [eax + 0x74], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x40aa94], edi
mov dword [0x40aa98], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40aa88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40aa84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aa90], eax
call fcn.004082ac
cmp dword [0x40a040], ebx
jne 0x4080c6
push fcn.004082ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040829a
push 0x40a018
push 0x40a014
call sub.msvcrt.dll__initterm
mov eax, dword [0x40aa80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x40aa7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x40a010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x408151
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408131
cmp cl, 0x22
jne 0x408122
cmp byte [eax], 0x22
jne 0x40813a
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408145
cmp cl, 0x20
jbe 0x408136
test byte [ebp - 0x30], 1
je 0x40815c
movzx ecx, word [ebp - 0x2c]
jmp 0x40815f
cmp byte [eax], 0x20
jbe 0x40813a
inc eax
mov dword [ebp - 0x78], eax
jmp 0x408151
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407a92
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40817d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4081b9
mov eax, esi
jmp 0x4081cd
call fcn.004082eb
ret

Function at 0x402aa0
Capabilities:
Accept command line arguments

Disassembly:
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
ret 0x10

Function at 0x402d76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402d80
repz ret
jmp fcn.004031ad
Function at 0x40175c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4012e0
push 0x4018a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x404608], 0xffffffff
or dword [0x40460c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4045f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4045f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404604], eax
call fcn.00401893
cmp dword [0x4040e4], 0
jne 0x4017df
push 0x401890
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040187e
push 0x404010
push 0x40400c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4045ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4045e8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404008
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401617
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5ad4ac5
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x9c92729
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3e33167c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x46064588
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1b08458a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, str._m
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5b1c34dd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, reloc.kernel32.dll_LoadLibraryW
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00431219
Function at 0x460400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
jmp 0x46041a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x460421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460410
mov eax, 1
add ebx, ebx
jne 0x460433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x460444
jne 0x460463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460463
dec eax
add ebx, ebx
jne 0x460450
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x460428
add ebx, ebx
jne 0x46045f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4604b5
xor ecx, ecx
sub eax, 3
jb 0x46047b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4604ea
sar eax, 1
mov ebp, eax
jmp 0x460486
add ebx, ebx
jne 0x460486
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460454
inc ecx
add ebx, ebx
jne 0x460494
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460454
add ebx, ebx
jne 0x4604a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x460496
jne 0x4604b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x460496
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4604d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4604c6
jmp 0x460416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4604d4
add edi, ecx
jmp 0x460416
pop esi
mov edi, esi
mov ecx, 0x13f8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4604f2
cmp byte [edi], 0x11
jne 0x4604f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4604f7
lea edi, [esi + 0x5e000]
mov eax, dword [edi]
or eax, eax
je 0x46056f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a924]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6aa00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x460524
mov ecx, edi
jns 0x460553
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6aa04]
or eax, eax
je 0x460569
mov dword [ebx], eax
add ebx, 4
jmp 0x460541
call dword [esi + 0x6aa14]
mov ebp, dword [esi + 0x6aa08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4605a3
sub esp, 0xffffff80
jmp 0x424c3a
Function at 0x401e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401e68
cmp byte [esi + ebx - 1], 0xa
je 0x401e3c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402910
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x10001560
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.10001530
test eax, eax
je 0x100015ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x100020a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10002d13
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.10001ed0
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x101c]
lea ecx, [esp + 8]
stosw word es:[edi], ax
push esi
mov dword [esp + 0x1018], 0
stosb byte es:[edi], al
call fcn.10001c4a
push 0x22
lea ecx, [esp + 0xc]
mov byte [esp + 0x1018], 1
call sub.MFC42.DLL_CString::operator_2
push esi
lea ecx, [esp + 0xc]
call fcn.10002ab2
push 0x22
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x100055d4
push 0x100055d0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x1020]
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x10]
push 0x1000
push ecx
push 0x100056a8
push edx
push str.language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
jne 0x10002182
mov eax, dword [esp + 0x1024]
test eax, eax
je 0x100021a1
mov eax, dword [esp + 0x1020]
push eax
mov eax, dword [esp + 0xc]
push eax
push eax
push str.language
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x100021a1
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10001c08
push 0x100055d0
push 0x100055d4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
mov byte [esp + 0x1014], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1020]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1010
ret
Function at 0x10002780
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push edi
call fcn.10001cfd
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x10003470
call dword [sym.imp.ole32.dll_StringFromCLSID]
push 0x100
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.CLSID_
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
call fcn.10002bc6
push str.InProcServer32
lea ecx, [esp + 8]
call fcn.10002bc6
lea edx, [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.Apartment
lea ecx, [esp + 8]
call fcn.10001c08
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov edx, dword [esp + 0x18]
push 0
push str.ThreadingModel
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
pop edi
mov dword [ecx + 4], edx
add esp, 0x114
ret
Function at 0x401840
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov eax, ebx
mov esi, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
xor ecx, ecx
push edi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401875
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, ebx
jb 0x401868
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x4018f6
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + 0xa9a640]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + 0xa9a640]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
movzx ecx, byte [ecx + 0xa9a640]
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + 0xa9a640]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401949
cmp edi, 4
jne 0x40194c
cmp ebx, 6
jbe 0x40194c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + 0xa9a640]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa9a640]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
movzx ecx, byte [ecx + 0xa9a640]
movzx eax, byte [eax + 0xa9a640]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
add esi, 4
mov dword [esi + ebx*4 - 4], eax
dec edi
cmp esi, ecx
jne 0x401890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4027b3
call fcn.00402760
test eax, eax
je 0x4027b3
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4027c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x11
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
jne 0x4027d7
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4027fc
call fcn.00402760
test eax, eax
je 0x4027fc
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov ecx, dword [ebp - 8]
jmp 0x4027fe
xor ecx, ecx
mov eax, ecx
shr eax, 1
and eax, ecx
test eax, 0x8000000
je 0x4027d1
xor ecx, ecx
xgetbv
mov ecx, eax
shr ecx, 2
shr eax, 1
and eax, ecx
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402836
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.00402760
cmp eax, 7
jb 0x402830
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402893
call fcn.00402760
test eax, eax
je 0x402893
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402990
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xad82f0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4029d9
push str.SetDefaultDllDirectories
push 0xa9a7d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4029d9
push 0xc00
call eax
test eax, eax
jne 0x402a77
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402a77
cmp eax, 0x104
ja 0x402a77
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402a17
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402a76
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
inc esi
mov ecx, edi
test al, al
je 0x402a50
movzx eax, al
mov word [ecx], ax
mov al, byte [esi]
add ecx, 2
inc esi
test al, al
jne 0x402a40
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx], 0x64002e
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x402a37
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a0fe04
mov esp, ebp
pop ebp
ret