joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x41d5b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41d5b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40a425
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40a41e
test esi, esi
je 0x40a41e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40a400
mov dword [esp], 0x41d5b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40a680
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a6b8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40a6ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40a6ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40a6a0
xor eax, eax
pop ebx
pop esi
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, 0x408f6c
nop
nop
mov ecx, 0x52a53e42
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x2def5aad
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror edx, 0x67
not ebx
rcr edi, 0xbc
inc eax
inc edx
rcl edx, 0xa5
rcr ebx, 0xe9
rcr ebx, 0xb6
inc eax
inc esi
sub edi, 0x47
imul edx
inc ebx
bswap edi
imul ebx
neg edx
rcl esi, 0xec
dec esi
rcr ebx, 0xab
and edi, 0xe5
inc edi
dec esi
imul edx
dec edx
mov edx, 0xf2
add edx, 0x4a
ror esi, 0x16
neg eax
mov esi, 0xdd
or edx, 0xf
imul edx
or esi, 0xb2
sub ebx, 0x85
dec esi
add edi, 0x92
dec esi
mov eax, 0xf8
not edx
mov edx, 0x3f
imul edi
ror esi, 0x3a
neg ebx
bswap edi
dec eax
dec ebx
neg ebx
imul edi
rol eax, 0x99
inc edi
dec esi
xor ecx, ecx
xor edi, edi
not edx
sbb eax, 0x9c
imul edi
neg edi
sub edx, 8
not edi
and ebx, 0xca
inc eax
rol eax, 0xc4
imul edx
neg edi
inc edi
rcr ebx, 0x16
inc esi
or edi, 0xc0
rol edi, 0xa6
not eax
neg ebx
dec ebx
dec eax
bswap eax
bswap eax
inc ebx
add ebx, 0xb
mov edx, 0xa9
imul edx
inc edi
neg edx
dec edx
neg esi
sub edi, 0x71
rol esi, 0xa6
dec eax
mov edx, 0x20
add esi, 0xa6
not edx
inc edi
neg ebx
not eax
ror edx, 0x10
sub edx, 0x93
mov esi, 0xb8
not esi
mov ebx, 0x26
rcr ebx, 1
and edi, 1
not eax
not edi
sbb esi, 0x15
not ebx
mov ecx, dword [ebp + 0xc]
inc edi
or ebx, 0x6a
and esi, 0
inc ebx
rcl edi, 0x96
not edx
ror ebx, 0x59
inc edx
not edi
not edx
inc esi
sub ebx, 0x63
rcr eax, 0x33
not ebx
inc edx
inc ebx
rcr edi, 0xc3
imul edi
dec edx
neg edi
rcl edx, 0x17
dec ebx
inc eax
rcr edi, 0xab
add ebx, 0x34
mov ebx, 0x4f
imul esi
inc edx
inc ebx
imul eax
neg ebx
rcr eax, 0x1b
neg ebx
bswap eax
neg edx
dec edx
and edx, 0xe3
sbb esi, 0xeb
inc ebx
bswap edx
neg edx
bswap edi
rcr edi, 0x18
neg ebx
rol eax, 0xce
dec ebx
imul eax
rcl edx, 0xf0
inc ebx
inc eax
mov edi, dword [ebp + 8]
mov esi, ebx
xor eax, esi
xor eax, ebx
not byte [edi]
xor eax, ebx
xor eax, ebx
mov ebx, eax
mov ebx, esi
mov eax, ebx
xor eax, eax
xor ebx, esi
mov esi, ebx
mov ebx, ebx
add byte [edi], 0x48
mov ebx, esi
mov ebx, esi
xor eax, eax
mov esi, ebx
mov ebx, esi
mov eax, eax
xor eax, eax
mov eax, eax
mov eax, esi
sub byte [edi], 0x97
mov ebx, esi
mov eax, ebx
xor esi, esi
xor esi, esi
mov ebx, eax
mov esi, esi
mov ebx, ebx
xor eax, eax
mov esi, eax
imul byte [edi]
inc edi
loop 0x4013a4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4089c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4496f0]
jne 0x4089ce
repz ret
jmp fcn.0040cec5
Function at 0x409333
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.00406c66
and dword [ebp - 4], 0
cmp dword [0x44a3ec], 0
mov ebx, eax
jne 0x4093e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409495
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409495
push eax
call fcn.00406bf4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44a3ec], eax
call esi
push eax
call fcn.00406bf4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44a3f0], eax
call esi
push eax
call fcn.00406bf4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44a3f4], eax
call esi
push eax
call fcn.00406bf4
pop ecx
mov dword [0x44a3fc], eax
test eax, eax
je 0x4093e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406bf4
pop ecx
mov dword [0x44a3f8], eax
mov eax, dword [0x44a3f8]
cmp eax, ebx
je 0x40943c
cmp dword [0x44a3fc], ebx
je 0x40943c
push eax
call fcn.00406c6f
push dword [0x44a3fc]
mov esi, eax
call fcn.00406c6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40943c
test edi, edi
je 0x40943c
call esi
test eax, eax
je 0x409433
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409433
test byte [ebp - 0xc], 1
jne 0x40943c
or dword [ebp + 0x10], 0x200000
jmp 0x409475
mov eax, dword [0x44a3f0]
cmp eax, ebx
je 0x409475
push eax
call fcn.00406c6f
pop ecx
test eax, eax
je 0x409475
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409475
mov eax, dword [0x44a3f4]
cmp eax, ebx
je 0x409475
push eax
call fcn.00406c6f
pop ecx
test eax, eax
je 0x409475
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a3ec]
call fcn.00406c6f
pop ecx
test eax, eax
je 0x409495
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409497
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x421d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5bdd90]
xor eax, ebp
je 0x421ded
jne 0x421ded
mov eax, dword [0xe91580]
adc dword [ecx - 0x3deecaae], edi
mov eax, 0x106de560
lea ecx, [esi + 0x37c]
cmp byte [ebx + 0xac], 1
push 0xadae0c
push 0xa29f90
mov eax, dword [0x112ae170]
push 0xacc620
push 0x114849e0
mov dword [0x100ce454], eax
lea esi, [eax*4]
push 0x7b3480
dec ecx
cld
push eax
aaa
dec esp
cli
lds edi, [edi]
cmc
push esp
loope 0x421d9c
jmp 0x52fb2ea1
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
jmp 0x4227a3
shr eax, 8
push 0x421e83
ret
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
jmp 0x4224c7
mov eax, edx
jmp 0x421e39
mov eax, 0x473530
xchg edx, eax
ja 0x4225b9
pushal
mov al, byte [0x28c496de]
popal
cli
shr eax, 8
je 0x422b79
jne 0x422b79
mov eax, 0x4a0944
push str.wU_
push 0x47e334
call dword [0x9a8358]
mov dword [0x445268], 0x445238
xor eax, 0x46e53b96
xchg esi, eax
cmp esp, ebp
inc esi
jno 0x42257a
outsb dx, byte [esi]
into
mov al, 0xb3
mov eax, dword [0xf681827]
mov dh, 0x47
invalid
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
lea edx, [esi*8]
mov eax, ecx
je 0x42258a
jne 0x42258a
mov edi, 0x4752e0
push 0xa00ddc
cmp dword [ebp - 0x264], edi
fld qword [ebx + 0x10]
push 0xd2c
add byte [0xcc00623c], ch
mov dword [edi + esi + 0x5d], eax
cmp dword [ebp - 0x114c], 0x449
add byte [ebp - 0x15], al
jmp dword [ecx*4 + 0x4b0f00]
mov eax, esi
shr eax, 0x1d
shl ecx, 3
or ecx, eax
je 0x422608
jne 0x422608
push 0x902
mov ecx, 0x103e3618
or dword [0xe482a8], 1
push 0xb50ad0
push 0x11470d40
mov edx, dword [ebp - 0x9cf8]
push 0xa8b5f0
jmp dword [ecx*4 + 0x4286f0]
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
je 0x421f93
jne 0x421f93
add ax, 0x30
call dword [0x45e178]
push 0xb14744
mov dword [ebx], 0x1010a530
adc dword [edx - 0x6deec0e8], edx
add eax, 0xe453a0
push 0x100e0cd0
push 0xb129e0
push 0xaeb480
mov edi, 0x45160a
fld dword [esp + 0x1c]
jmp dword [0x106e0370]
Function at 0x46ca80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46caad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46caad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
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
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xd44370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd4438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd6d074
push ecx
mov edi, eax
call fcn.00d58198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd443cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d5802e
push esi
call fcn.00d57fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd47850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xd478ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd72720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd478ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d581e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xd478ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd72720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd4792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d59082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd47957
mov word [eax], si
add eax, 2
push eax
call fcn.00d59030
add esp, 4
jmp 0xd47959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xd478ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd478b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd47ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xd48080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd480c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd6d458
push ecx
call fcn.00d581e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d581e1
add esp, 0x10
jmp 0xd480d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d5820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d57dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d48050
mov eax, dword [0xd72728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xd4813b
push esi
call fcn.00d47fb0
add esp, 4
mov dword [0xd72728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd4814c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00d47ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xd4b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd4b4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd4b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd4b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd4b47e
add edx, ecx
cmp ebx, edx
jb 0xd4b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd4b467
xor ecx, ecx
jmp 0xd4b4a2
test eax, eax
jne 0xd4b492
xor ecx, ecx
jmp 0xd4b4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00d4b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd4b8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xd4b921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xd4b946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xd4b96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xd4b993
push ecx
push esi
call fcn.00d4b4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xd4cc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xd4cc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd4cc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd4cc38
add edx, eax
cmp ebx, edx
jb 0xd4cc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd4cc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd4cc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xd4cc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd4ccb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd4cc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd4cca8
add edx, ecx
cmp ebx, edx
jb 0xd4ccb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd4cc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd4cf60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d59145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd4cffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xd4cfdd
lea eax, [esp + 0x18]
push eax
jmp 0xd4cfe2
push 0xd72720
call fcn.00d58fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd4cfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd4cf40
push 4
push ecx
push eax
call fcn.00d5943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd4d310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d59145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd4d3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xd4d38d
lea eax, [esp + 0x18]
push eax
jmp 0xd4d392
push 0xd72720
call fcn.00d58fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd4d360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd4cf40
push 4
push ecx
push eax
call fcn.00d5943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd4ef20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xd4efd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xd4efcf
push ebx
push edi
push 0xd72770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd4efae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd72770
push esi
call ebx
test eax, eax
je 0xd4efae
mov ebp, 3
cmp dword [0xd72774], ebp
jne 0xd4efaa
push 0x3e8
call edi
push 0xd72770
push esi
call ebx
test eax, eax
jne 0xd4ef8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd4efc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd4efbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret