joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x5012cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x2c], 1
je 0x5012e5
movzx esi, word [esp + 0x30]
xor eax, eax
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x4c], 0x30
call fcn.005012c4
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x501134
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.005012b7
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x5013b0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x503758], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x503758]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x5013b0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x501395
mov esp, ebp
pop ebp
ret
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x44cd40
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453310
push 0x44f060
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetVersion]
mov dword [0x45a0e0], eax
xor eax, eax
mov al, byte [0x45a0e1]
mov dword [0x45a0ec], eax
mov eax, dword [0x45a0e0]
shr dword [0x45a0e0], 0x10
and eax, 0xff
mov dword [0x45a0e8], eax
shl eax, 8
add eax, dword [0x45a0ec]
mov dword [0x45a0e4], eax
call fcn.0044d770
test eax, eax
jne 0x44cdb4
push 0x1c
call fcn.0044cee0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0044ee80
call fcn.0044ee70
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4656c4], eax
call fcn.0044ea20
mov dword [0x4594d0], eax
test eax, eax
je 0x44cde7
cmp dword [0x4656c4], 0
jne 0x44cdf1
push 0xffffffffffffffff
call fcn.0044e630
add esp, 4
call main
call fcn.0044e930
call fcn.0044e600
mov esi, dword [0x4656c4]
mov al, byte [esi]
cmp al, 0x22
je 0x44ce18
cmp al, 0x20
jbe 0x44ce45
inc esi
cmp byte [esi], 0x20
ja 0x44ce10
jmp 0x44ce45
inc esi
cmp byte [esi], 0x22
je 0x44ce44
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x44ce3f
xor eax, eax
mov al, bl
push eax
call fcn.0044e8d0
add esp, 4
test eax, eax
je 0x44ce39
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x44ce21
cmp byte [esi], 0x22
jne 0x44ce45
inc esi
cmp byte [esi], 0
je 0x44ce55
cmp byte [esi], 0x20
ja 0x44ce55
inc esi
cmp byte [esi], 0
jne 0x44ce4a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x44ce79
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0044e630
jmp 0x44ceba
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e670
Capabilities:
Terminate process

Disassembly:
cmp dword [0x45a11c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x44e68e
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x45a118], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x45a114], bl
jne 0x44e6e8
cmp dword [0x4656b8], 0
je 0x44e6d6
mov edi, dword [0x4656b4]
sub edi, 4
cmp edi, dword [0x4656b8]
jb 0x44e6d6
mov eax, dword [edi]
test eax, eax
je 0x44e6cb
call eax
sub edi, 4
cmp edi, dword [0x4656b8]
jae 0x44e6c3
push 0x45401c
push 0x454014
call fcn.0044e720
add esp, 8
push 0x454024
push 0x454020
call fcn.0044e720
add esp, 8
test ebx, ebx
jne 0x44e70f
mov dword [0x45a11c], 1
push esi
call dword [sym.imp.kernel32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x4269d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4269e1
pop dword [ebp - 8]
mov eax, 0x6f574a5e
add eax, 0x90eb1f83
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x4f43b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x56b2a1bb
add ecx, 0xa94da3b4
xor ebx, ebx
add ebx, eax
mov esi, 0x90eb6ed0
add esi, 0x6f5d0f30
add esi, dword [ebp - 8]
mov edi, 0xd0925994
add dword [ebp - 4], ebx
mov edx, dword [esi]
xor dword [ebp - 4], eax
xor edx, edi
xor dword [ebp - 4], 0x1b07bbbb
mov dword [ebx], edx
add ebx, 0x73dd593e
add ebx, 0x8c22a6c6
add esi, 4
loop 0x426a37
add eax, 0x4159c55c
add eax, 0xbea74333
mov ebx, eax
add eax, 0x51ae6549
sub eax, 0x51ae6544
mov ecx, 0x8bbd0fa7
add ecx, 0x7482f059
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x426beb
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
jne 0x426c58
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426c34
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426c3b
mov esi, 0x80004005
push esi
push 0x1fc
push str.msuengine.cpp
call fcn.00403821
push str.Failed_to_stop_wusa_service.
push esi
call main
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 4

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404050]
mov ebx, eax
add edx, eax
mov eax, 0x404054
call fcn.0040146d
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x40388a
push eax
sub edi, fcn.00403034
push edi
push fcn.00403034
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40159f
mov eax, fcn.00403034
mov ebx, esi
mov edx, edi
call fcn.0040146d
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004012c9
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.00401c74
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403034
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4022ca
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
sub esp, 0x228
xor eax, eax
mov dword [esp + 0x21c], eax
mov dword [esp + 0x220], 0x14
mov eax, dword [esp + 0x21c]
push eax
mov eax, dword [esp + 0x220]
push eax
mov eax, dword [esp + 0x224]
push eax
mov eax, dword [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov eax, dword [esp + 0x21c]
mov word [esp], ax
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x20c]
push eax
push 1
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx eax, word [esp + 0x208]
sub eax, 0x47
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x220]
add dword [esp + 0x224], eax
mov eax, dword [esp + 0x224]
add esp, 0x228
pop edx
pop ecx
ret
Function at 0x4013fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004020d0
test esi, esi
jne 0x401432
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004021bc
jmp 0x401450
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00401310
mov edi, eax
test esi, esi
je 0x401450
cmp dword [ebx], 0
je 0x401450
dec esi
jmp 0x401439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4018d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4053b4
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x408958]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x408958]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x408958]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x408958]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4203c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4203d6
pop dword [ebp - 0x44]
mov eax, 0x4203d6
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfde1f18f
add dword [ebp - 0x54], 0x507053bc
mov dword [ebp - 0x50], 0xfdbfd7aa
add dword [ebp - 0x50], 0x3473749b
mov dword [ebp - 0x4c], 0xfc663785
sub dword [ebp - 0x4c], 0xb019f357
mov dword [ebp - 0x48], 0x5f03571
sub dword [ebp - 0x48], 0x5f03571
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf7c8936a
sub dword [ebp - 0x54], 0x83562a14
mov dword [ebp - 0x50], 0x26b592cf
sub dword [ebp - 0x50], 0xe549315a
mov dword [ebp - 0x4c], 0xdcd0561e
add dword [ebp - 0x4c], 0x869f164e
mov dword [ebp - 0x48], 0xec8db968
sub dword [ebp - 0x48], 0xec8db968
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x16f75ef
sub eax, 0x12d44cb
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x4051a
push 0
call eax
mov ecx, 0x517d
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x44]
mov esi, 0xa69d64ab
sub esi, 0xa84a79c
add dword [ebp - 0x2c], 0xdfbde2b1
mov edx, dword [ebx]
sub dword [ebp - 0x28], 0x8ee3c5a3
add edx, esi
xor dword [ebp - 0x3c], 0xdb4ccf21
mov dword [edi], edx
sub dword [ebp - 0x1c], esi
add edi, 4
add ebx, 0x693aa9aa
add ebx, 0x96c5565a
loop 0x4204e2
add eax, 0x138c7
mov ebx, eax
add eax, 0x6b29a98c
add eax, 0x94d65679
mov ecx, 0x2e58dc02
sub ecx, 0x2e18dc02
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x45a20d53
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
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
nop
nop
mov esi, 0x62347240
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406b10
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lds edx, [esi - 0x75]
jne 0x406b2e
aam 0x8b
jge 0x406b2e
mov ecx, esi
mov dh, 0xbb
push 0
jg 0x406b2f
xor al, 0x86
pop eax
push 0xa
or al, byte [ecx - 0x7417692f]
add byte [ecx + 0x2d], dl
call 0x40b540
mov ecx, edi
in al, dx
pushal
popal
adc ecx, 0x8be896
push ecx
sub eax, 0x4a04e8
add byte [ecx + 0x6160ecf9], cl
sar eax, 0xf9
fcmovu st(0), st(4)
or byte [ecx], al
mov dword [ebp - 0x10], edx
cmp eax, 0x14
jl 0xf76c39
lea ecx, [ebp - 4]
push ecx
call 0x40cd10
add esp, 4
lea edx, [ebp - 0x24]
mov esp, 0x3941ec45
push dword [ebx + sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [ebp - 4]
lea esp, [edi + 0x40]
jno 0x406bcc
inc ebx
fcom qword [edx + 0x50]
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov ebx, dword [ebp + 8]
xchg ecx, eax
dec ebp
int3
jp 0x406b4f
ficom dword [esi + 0x2e00295a]
inc eax
xchg esp, eax
str ebp
push eax
jmp 0xc0b5b9
Function at 0x402e16
Capabilities:
Query service configuration

Disassembly:
mov eax, 0x40d94c
call fcn.00405710
sub esp, 0x208
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x402e47
mov eax, dword [0x413590]
xor ebx, ebx
cmp eax, ebx
jne 0x402e71
mov dword [0x410398], 0xae
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e56
mov ecx, dword [0x410398]
mov dword [eax], ecx
mov eax, dword [0x410398]
mov ecx, dword [ebp - 0xc]
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 0x19
mov dword fs:[0], ecx
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], 1
call esi
push dword [ebp + 0xc]
call fcn.004050a2
mov edi, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edi
push dword [0x413590]
call esi
test eax, eax
je 0x402fb9
mov esi, 0x104
mov dword [0x410398], ebx
push esi
mov ebx, esi
call fcn.004050a2
pop ecx
mov dword [ebp - 0x14], eax
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebx - 2]
cmp eax, ecx
jbe 0x402ee8
push dword [ebp - 0x14]
add ebx, esi
call fcn.00405097
push ebx
call fcn.004050a2
pop ecx
jmp 0x402ec0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push esi
push esi
push ebx
call fcn.00405a45
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push ebx
call fcn.004059b4
push dword [edi + 0xc]
call fcn.00405880
push ebx
call fcn.00405880
mov eax, dword [edi + 0xc]
add esp, 0x30
cmp eax, esi
je 0x402f3e
push ebx
push eax
call fcn.00405800
pop ecx
test eax, eax
pop ecx
jne 0x402f48
mov dword [0x410398], 0xaf
cmp dword [edi], 0x10
je 0x402f59
mov dword [0x410398], 0xb0
jmp 0x402fb2
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x402fa8
push str.Adobe_LM_Service
push eax
call fcn.00405730
pop ecx
test eax, eax
pop ecx
jne 0x402fa8
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x402fb2
push str..System
push eax
call fcn.00405730
pop ecx
test eax, eax
pop ecx
je 0x402fb2
push str.LocalSystem
push dword [edi + 0x1c]
call fcn.00405730
pop ecx
test eax, eax
pop ecx
je 0x402fb2
mov dword [0x410398], 0xb2
jmp 0x402fb2
mov dword [0x410398], 0xb1
push ebx
call fcn.00405097
pop ecx
push edi
call fcn.00405097
pop ecx
jmp 0x402e47
Function at 0x4033e5
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movsx eax, byte [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
push str.._c:
push eax
xor esi, esi
call fcn.004052af
add esp, 0xc
lea eax, [ebp - 0xc]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403451
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40344a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push 1
mov dword [eax], ecx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
leave
ret

Function at 0x403711
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x403740
cmp byte [ebp - 0x103], 0x3a
mov al, byte [ebp - 0x104]
je 0x403742
mov al, 0x43
leave
ret

Function at 0x403c30
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x403bd8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x403c4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
mov esi, dword [ebp + 8]
push str.Adobe_LM_Service
push str.Adobe_Systems
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x16c]
xor ebx, ebx
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp + 8], ebx
call fcn.00405220
add esp, 0x14
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x16c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d2f
push edi
push 0x60
pop edi
lea eax, [ebp - 0x6c]
push edi
push ebx
push eax
call fcn.00404f80
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x4135a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x403d2f
cmp dword [ebp - 8], 3
jne 0x403d2f
cmp dword [ebp - 0xc], 8
jb 0x403d2f
cmp esi, ebx
je 0x403d29
lea eax, [ebp - 0x6c]
push 4
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.00404b90
lea eax, [ebp - 0x68]
push 4
push eax
push esi
call fcn.00404b90
push esi
call fcn.00403bb2
mov eax, dword [ebp - 4]
add esp, 0x1c
sub dword [esi], eax
mov ax, 1
jmp 0x403d32
xor ax, ax
pop esi
pop ebx
leave
ret
Function at 0x403d36
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
xor ebx, ebx
cmp dword [0x41358c], ebx
je 0x403e4a
push str.Adobe_LM_Service
push str.Adobe_Systems
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x168]
push 0x100
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00405220
add esp, 0x14
lea eax, [ebp - 8]
push ebx
push eax
push 0x4134a0
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x168]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403da7
xor ax, ax
jmp 0x403e4e
push esi
push 0x60
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00404f80
push ebx
call fcn.00405e63
push eax
call fcn.00405e34
call fcn.00405e41
mov esi, eax
shl esi, 0x10
call fcn.00405e41
add esi, eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], esi
push eax
call fcn.00404b90
mov eax, dword [ebp - 4]
add esp, 0x20
add dword [ebp + 8], eax
push 4
pop esi
lea eax, [ebp + 8]
push eax
call fcn.00403b97
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp + esi - 0x68]
push eax
call fcn.00404b90
mov eax, dword [ebp + 8]
add esi, 4
add eax, eax
add esp, 0x10
sub eax, dword [ebp - 4]
cmp esi, 0x60
mov dword [ebp + 8], eax
jb 0x403def
lea eax, [ebp - 0x68]
push 0x60
push eax
push 3
push ebx
push 0x4135a0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
jmp 0x403e4e
mov ax, 1
pop ebx
leave
ret

Function at 0x403e51
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4139c0
call esi
push 0x4139d8
call esi
xor eax, eax
push eax
push eax
push eax
push 0x403e98
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret