joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a660
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47a693
push esi
call fcn.00488a20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47a68c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47a719
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47a702
mov eax, dword [esi + 8]
test eax, eax
je 0x47a6b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47a6fe
cmp eax, 2
je 0x47a702
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47a6aa
cmp eax, 3
je 0x47a6dd
cmp eax, 1
jne 0x47a6aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47a6aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47a6aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047a740
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47a728
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047a740
add esp, 4
pop esi
ret

Function at 0x47afc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47afe1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x47afe1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47afe1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4987f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52d400]
xor edx, edx
cmp eax, edx
jne 0x498816
xor eax, eax
mov byte [eax + 0x52d300], al
inc eax
cmp eax, 0x100
jl 0x4987fe
mov dword [0x52d400], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52d300
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4988a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49887a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x498848
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4988b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x498903
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4988ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc61e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049fbb0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4e6dc4
call fcn.004be0fb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49f323
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004be0fb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49f31c
push 0
mov ecx, eax
call fcn.00496430
mov dword [esi + 0xc], eax
jmp 0x49f325
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49f325
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4c0788
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c07c0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004be815
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004be7ed
jmp 0x4c07cc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c1e7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c1ebf
call fcn.004c7932
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1ebf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1eb6
xor eax, eax
jmp 0x4c1ec7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c1ecd
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c7e62
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c7e90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c7eae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c7dc8
jmp 0x4c7eae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7eae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c7dc8
test edi, edi
mov eax, edi
jne 0x4c7e98
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x41ef50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x41ef72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ef79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ef68
mov eax, 1
add ebx, ebx
jne 0x41ef8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ef80
jne 0x41ef9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ef80
xor ecx, ecx
sub eax, 3
jb 0x41efb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f022
mov ebp, eax
add ebx, ebx
jne 0x41efbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41efc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41efec
inc ecx
add ebx, ebx
jne 0x41efd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41efcd
jne 0x41efe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41efcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f00c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41effd
jmp 0x41ef6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f00c
add edi, ecx
jmp 0x41ef6e
pop esi
mov edi, esi
mov ecx, 0x349
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f02a
cmp byte [edi], 7
jne 0x41f02a
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 0x41f02f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41f0a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f7f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f8f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f05c
mov ecx, edi
jns 0x41f08b
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 + 0x1f8f8]
or eax, eax
je 0x41f0a1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f079
call dword [esi + 0x1f908]
mov ebp, dword [esi + 0x1f8fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x41f0db
sub esp, 0xffffff80
jmp 0x4074a1
Function at 0x406627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
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 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
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 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7008]
jne 0x401010
repz ret
jmp fcn.0040189a

Function at 0x40923e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004053ae
and dword [ebp - 4], 0
cmp dword [0x4a9774], 0
mov ebx, eax
jne 0x4092ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a0
push eax
call fcn.0040533c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a9774], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a9778], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a977c], eax
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x4a9784], eax
test eax, eax
je 0x4092ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x4a9780], eax
mov eax, dword [0x4a9780]
cmp eax, ebx
je 0x409347
cmp dword [0x4a9784], ebx
je 0x409347
push eax
call fcn.004053b7
push dword [0x4a9784]
mov esi, eax
call fcn.004053b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409347
test edi, edi
je 0x409347
call esi
test eax, eax
je 0x40933e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40933e
test byte [ebp - 0xc], 1
jne 0x409347
or dword [ebp + 0x10], 0x200000
jmp 0x409380
mov eax, dword [0x4a9778]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409380
mov eax, dword [0x4a977c]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a9774]
call fcn.004053b7
pop ecx
test eax, eax
je 0x4093a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b750
Capabilities:
Set console window title

Disassembly:
sub esp, 0x1c
cmp dword [0x2b621b4], 0x930
jne 0x40b76a
push str.tiyayejetupoxasowujozizoc
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x2b621b4], 0x114e
mov eax, dword [esp + 0x20]
mov dword [0x2b61ed0], eax
jne 0x40b791
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
lea ecx, [esp]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
add esp, 0x1c
ret
Function at 0x401040
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x4010c8
cmp dword [esp + 0x10], 1
jb 0x4010ca
lea edx, [esp]
push edx
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
jne 0x4010e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4010b5
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 4], eax
push 0x410d74
lea eax, [esp + 8]
push eax
call sub.MSVCR100.dll__CxxThrowException
ja 0x40108b
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040be38
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
mov ax, word [esp]
xor ecx, esp
call fcn.0040be38
add esp, 0xa0
ret
Function at 0x401100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [eax + 4]
cmp byte [ebx + 0xf], 0
push esi
mov esi, ebx
jne 0x40114f
lea ebx, [ebx]
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.00402f10
mov esi, dword [esi]
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esi + 0xf], 0
mov ebx, esi
je 0x401130
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
push 0x90
lea edx, [esp + 0x38]
push ebx
mov dword [eax + 8], eax
push edx
mov dword [edi + 8], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x34]
cmp eax, 6
jne 0x4011e3
cmp dword [esp + 0x38], 1
jb 0x4011e5
push str.GetNumaNodeProcessorMaskEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
jne 0x401214
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4011d0
and eax, 0xffff
or eax, 0x80070000
push 0x410d74
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
call sub.MSVCR100.dll__CxxThrowException
ja 0x40119b
lea ecx, [esp + 0xc]
push ecx
mov esi, edi
mov dword [esp + 0x10], ebx
call fcn.00405580
push eax
push edi
lea esi, [esp + 0x18]
call fcn.00404d50
pop esi
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0040be38
mov esp, ebp
pop ebp
ret
call fcn.00401040
movzx eax, ax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
push ecx
pxor xmm0, xmm0
push ebx
mov dword [esp + 0x2c], 0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x401284
cmp dword [esp + 0x24], 0
je 0x401264
lea edx, [esp + 0xc]
push edx
mov esi, edi
call fcn.00405580
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00404d50
mov esi, dword [esp + 0x18]
inc ebx
mov dword [esp + 0xc], ebx
cmp bx, word [esp + 0x10]
jbe 0x401224
mov ecx, dword [esp + 0xcc]
pop esi
pop ebx
xor ecx, esp
call fcn.0040be38
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401298
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
push 0x410d74
lea eax, [esp + 0x14]
push eax
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x403a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40cb3b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x413034]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_CPinglWatchdog_.0
pxor xmm0, xmm0
movq qword [esi + 0x14], xmm0
movq qword [esi + 0x1c], xmm0
movq qword [esi + 0x24], xmm0
mov byte [esi + 0x2c], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0x1388
mov dword [esi + 0x50], 0x3e8
mov dword [esi + 0x54], 0xc8
mov dword [esi + 0x58], 0x1e
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_CPinglWatchdog_.0
mov dword [esi + 0x10], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x413e1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x405760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40577d
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4057b2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4057ae
lea ebx, [ebx]
cmp esi, eax
jae 0x4057b2
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4057a0
cmp esi, eax
jb 0x4057b9
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x4072f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x407300
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x407310
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407c40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x13c]
mov eax, dword [edi + 4]
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [edi]
xor esi, esi
push ecx
lea edx, [esp + 0x1c]
or eax, 0x2001f
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00407b80
mov ebx, eax
cmp ebx, esi
je 0x407ca5
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x407c9e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x407d3f
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
push esi
push eax
mov dword [esp + 0x40], 0x100
call ebp
test eax, eax
jne 0x407d0b
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407c40
mov ebx, eax
cmp ebx, esi
jne 0x407c8f
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebp
test eax, eax
je 0x407cd1
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x407d20
push eax
call ebx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
push eax
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.00407df0
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x407d3d
push eax
call ebx
mov eax, edi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040be38
add esp, 0x128
ret 4