joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f050
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492388
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f089
inc eax
mov dword [esi + 0x10], eax
jmp 0x42f19c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f09d
mov eax, 0xffffffc7
jmp 0x42f19e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f0ae
cmp dword [esi + 8], eax
jne 0x42f09d
cmp dword [esi + 8], eax
jne 0x42f0c7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42f0c7
mov eax, 0xffffffc7
jmp 0x42f19e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42f0db
push eax
mov ecx, ebx
call fcn.0042e880
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402310
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f10c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402330
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042dff0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42f13f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x816e18
call fcn.00402510
mov eax, dword [esp + 0x38]
jmp 0x42f19e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042eeb0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42f183
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042eed0
mov esi, eax
test esi, esi
jne 0x42f1b3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042eeb0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42f155
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x816e18
call fcn.00402510
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x816e18
call fcn.00402510
mov eax, esi
jmp 0x42f19e

Function at 0x433b90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433bf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433bf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433bf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433bf0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x442330
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442363
push esi
call fcn.004506f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44235c
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 0x4423e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4423d2
mov eax, dword [esi + 8]
test eax, eax
je 0x442387
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 0x4423ce
cmp eax, 2
je 0x4423d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44237a
cmp eax, 3
je 0x4423ad
cmp eax, 1
jne 0x44237a
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 0x44237a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44237a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442410
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4423f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442410
add esp, 4
pop esi
ret

Function at 0x442c90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x442cb1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x442cb1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x442cb1
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 0x460160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x850dec]
xor edx, edx
cmp eax, edx
jne 0x460186
xor eax, eax
mov byte [eax + 0x850cec], al
inc eax
cmp eax, 0x100
jl 0x46016e
mov dword [0x850dec], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x850cec
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x460217
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 0x4601ea
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 0x4601b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x460290
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 0x4602e3
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 0x4602ca
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 0x466c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49322e
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.004675b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x81a9c4
call fcn.00484de2
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x466d23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00484de2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x466d1c
push 0
mov ecx, eax
call fcn.0045dd90
mov dword [esi + 0xc], eax
jmp 0x466d25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x466d25
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 0x487448
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x487480
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.004854fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004854d4
jmp 0x48748c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488b3a
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 0x488b7c
call fcn.0048e5ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488b7c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488b73
xor eax, eax
jmp 0x488b84
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488b8a
pop edi
pop esi
pop ebx
ret 4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, reloc.kernel32.dll_GetTimeFormatA
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
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x406af6
Capabilities:
Encode data using xor

Disassembly:
sub byte [ecx], cl
mov dword [eax], 0xc03190bf
call fcn.004069ec
xor ecx, ecx
sub ecx, 0xffffff85
call 0x406af6
rcr byte [esi - 0x7f], 0x76
push cs
js 0x406ab1
xor dword [esi + 0xe], 0x2824b378
and al, 0x28
sub esi, 0xfffffffc
loop 0x406af9
test byte [eax], cl
wait
xor byte [ecx + 0x14], cl
iretd

Function at 0x40a940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov edi, dword [edi + 0x4108e485]
add byte [ecx], bl
xor al, 0x85
in al, 8
mov dword [eax], 0x5375c985
mov ebx, dword [0x40c40b85]
clc
push eax
sbb byte [ecx + 0x18], al
rol byte [eax], 0x85
js 0x40a946
push es
jne 0x40a970
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
ret 0x9c0d

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5011e800
pop ebp
ret
push ebp
mov ebp, esp
push ecx
push esi
cmp byte [ebp + 8], dh
mov al, byte [ebx + 0x2c]
test al, al
cmovb edi, dword [esi - 0x48000000]
dec esi
dec eax
adc al, 0xc0
push ebx
cmp ecx, 1
push edi
mov eax, ecx
loop 0x40b27a
inc ebp
or byte [edi], cl
test dword [eax + eax + 0x7e9a0000], ebx
cmp al, 0x3b
clc
je 0x1449b395
mov ebx, dword [esi + 0x38]
sbb dword [ecx - 1], 0xffffff9a
add eax, 0xebffc883
add cl, byte [ebx + 0x4568b17]
lea ecx, [ebp - 4]
push 0
push ecx
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
cmc
scasb al, byte es:[edi]
mov eax, dword [ebp - 4]
invalid
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x615335c4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2b5e0f7f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x100092c3
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push pe_nt_image_headers32
call sub.glib_lite.dll_Ordinal_406
mov edi, eax
pop ecx
test edi, edi
je 0x1000934d
push edi
xor ebp, ebp
push ebp
push 0x1001d834
push 0x10023880
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x10009352
push ebx
push ebp
mov ebx, 0x4000100
push ebx
push 2
push ebp
push 5
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
push ebp
push ebx
push 3
push ebp
push 7
push Ordinal_1
push edi
mov dword [edi + 0x108], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp dword [edi + 0x108], 0xffffffff
mov dword [edi + 0x104], eax
pop ebx
je 0x10009352
cmp eax, 0xffffffff
je 0x10009352
mov dword [edi + 0x118], ebp
mov dword [edi + 0x11c], ebp
mov dword [edi + 0x110], ebp
mov dword [edi + 0x114], ebp
mov eax, edi
pop edi
pop ebp
ret
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
jmp 0x1000934f

Function at 0x10010530
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [eax*4 + 0x1001e2c8]
push esi
push edi
push 0xffffffffffffff80
mov dword [esp + 0x18], ecx
lea edi, [ecx + ecx]
pop esi
mov ebx, esi
xor edx, edx
sar ebx, 0x1f
mov eax, ebx
xor eax, esi
sub eax, ebx
cmp eax, edi
cmovl edx, eax
mov al, bl
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
xor dl, cl
sub al, dl
add al, cl
mov ecx, dword [esp + 0x14]
add al, cl
xor al, bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0x80
jle 0x1001054d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10013a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10013a33
pop dword [ebp - 0x34]
mov eax, 0x10013a33
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xc236b802
sub dword [ebp - 0x44], 0x73e472b7
mov dword [ebp - 0x40], 0x929b3a30
sub dword [ebp - 0x40], 0x6067edeb
mov dword [ebp - 0x3c], 0xc5ab7798
add dword [ebp - 0x3c], 0x86a0cc96
mov dword [ebp - 0x38], 0xbd57f92b
add dword [ebp - 0x38], 0x42a806d5
lea eax, [ebp - 0x44]
push eax
mov eax, 0xd079054b
add eax, 0x3f88bb35
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd23bb1c2
sub dword [ebp - 0x44], 0x5dc9486c
mov dword [ebp - 0x40], 0xc0e378f8
sub dword [ebp - 0x40], 0x7f771783
mov dword [ebp - 0x3c], 0x2e23585d
add dword [ebp - 0x3c], 0x354c140f
mov dword [ebp - 0x38], 0x63339d45
sub dword [ebp - 0x38], 0x63339d45
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37671
push 0
call eax
mov ecx, 0xd5e6b695
sub ecx, 0xd5e66e9e
mov edx, eax
mov ebx, 0x5ccfd2aa
sub ebx, 0x4ccd6aaa
add ebx, dword [ebp - 0x34]
mov edi, 0x1d5a973c
sub edi, 0x7be8fc57
sub dword [ebp - 8], 0xfabcd9cf
mov esi, dword [ebx]
add dword [ebp - 0x1c], edi
add esi, edi
xor dword [ebp - 0x30], eax
mov dword [edx], esi
sub dword [ebp - 0x1c], 0x180670c5
add edx, 4
add ebx, 0x21c1aa9d
sub ebx, 0x21c1aa99
loop 0x10013b4b
add eax, 0x112af
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x418e9884
add ecx, 0xce71677c
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x414a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x414a9f
pop dword [ebp - 0x20]
mov eax, 0x414a9f
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3be07
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x7337a62e
sub ecx, 0x7337642c
xor edi, edi
add edi, eax
mov ebx, 0x1bd411f3
sub ebx, 0x1b90b1f3
add ebx, dword [ebp - 0x20]
mov esi, 0xbc8f6b4
add esi, 0xebe8e548
xor dword [ebp - 8], ecx
mov edx, dword [ebx]
mov dword [ebp - 8], 0xaff37a1e
xor edx, esi
sub dword [ebp - 4], esi
mov dword [edi], edx
xor dword [ebp - 8], 0xa60c69cf
add edi, 4
add ebx, 4
loop 0x414af6
add eax, 0x828cd492
sub eax, 0x828bd9b7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4010e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010fb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401132
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40112e
jmp 0x401120
cmp esi, eax
jae 0x401132
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401120
cmp esi, eax
jb 0x401139
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457a53
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x474238
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0xc
mov dword [ebp - 4], 0
call fcn.0043f95b
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x401488
mov ecx, eax
call fcn.00421ff0
jmp 0x40148a
xor eax, eax
mov dword [edi + 4], eax
mov dword [esi], vtable.CAgentExe.0
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
mov dword [ebp - 4], 0xffffffff
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x3c], eax
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404b53
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x404b2f
cmp eax, 2
jne 0x404b41
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x404b4f
test eax, eax
je 0x404b4c
cmp byte [eax + esi - 1], 0
je 0x404b4f
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458110
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push str.Software_
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00402280
push 0x475988
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00401e80
push 0x45f7dc
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.00401f40
mov edx, dword [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.00401e80
mov eax, dword [eax]
add esp, 0x24
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x30]
call fcn.00404a30
test eax, eax
mov eax, dword [ebp - 0x18]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fe8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40500b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40502e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x405077
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x405063
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
push ebx
push eax
mov edi, 4
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4050a8
cmp dword [ebp - 0x20], edi
je 0x4050c7
cmp esi, ebx
je 0x4050b3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4050d6
push esi
call edi
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp esi, ebx
je 0x4050e5
push esi
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret