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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x487ad8
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 0x44e349
inc eax
mov dword [esi + 0x10], eax
jmp 0x44e45c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44e35d
mov eax, 0xffffffc7
jmp 0x44e45e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44e36e
cmp dword [esi + 8], eax
jne 0x44e35d
cmp dword [esi + 8], eax
jne 0x44e387
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x44e387
mov eax, 0xffffffc7
jmp 0x44e45e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44e39b
push eax
mov ecx, ebx
call fcn.0044db40
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.0041b810
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44e3cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0041b830
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044d2b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x44e3ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x60fed0
call fcn.0041ba10
mov eax, dword [esp + 0x38]
jmp 0x44e45e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0044e170
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x44e443
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0044e190
mov esi, eax
test esi, esi
jne 0x44e473
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0044e170
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x44e415
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x60fed0
call fcn.0041ba10
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], 0x60fed0
call fcn.0041ba10
mov eax, esi
jmp 0x44e45e

Function at 0x4516f0
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x488178
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.00480839
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00457280
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.00480767
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.0047d030
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.0047d030
push 1
push 0
push 0
mov ecx, esi
call fcn.0047cfd8
push 1
push 0
push 1
mov ecx, esi
call fcn.0047cfd8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004808ab
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x457a60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x488198
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.00480839
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00457280
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.00480767
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 0x457b24
cmp dword [esp + 0x40], 1
jne 0x457b22
cmp ecx, eax
jge 0x457b24
mov eax, ecx
cmp eax, 0xc8
jge 0x457b30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004578e0
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.004808ab
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4582b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x488203
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.0047b449
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.00480ae1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004820f7
test eax, eax
je 0x4583cc
mov ecx, dword [esp + 0x3c]
call fcn.00480b0e
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 0x458390
push edi
mov ecx, esi
call fcn.0047e177
mov ecx, esi
call fcn.00458530
cmp dword [esp + 0x38], 1
jne 0x4583c5
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.0047e2b2
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 0x45ade0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45ae13
push esi
call fcn.0045def0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45ae0c
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 0x45ae99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45ae82
mov eax, dword [esi + 8]
test eax, eax
je 0x45ae37
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 0x45ae7e
cmp eax, 2
je 0x45ae82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45ae2a
cmp eax, 3
je 0x45ae5d
cmp eax, 1
jne 0x45ae2a
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 0x45ae2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45ae2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045aec0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45aea8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045aec0
add esp, 4
pop esi
ret

Function at 0x47c23e
Capabilities:
Get graphical window text

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

Function at 0x47d934
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 0x47d976
call fcn.004834e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47d976
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47d96d
xor eax, eax
jmp 0x47d97e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047d984
pop edi
pop esi
pop ebx
ret 4

Function at 0x483a18
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 0x483a46
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483a64
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048397e
jmp 0x483a64
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483a64
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048397e
test edi, edi
mov eax, edi
jne 0x483a4e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012c0
Capabilities:
Create thread

Disassembly:
push esi
push edi
cmp dword [ecx + 0xc], 0
mov esi, ecx
je 0x4012d1
xor eax, eax
pop edi
pop esi
ret 4
mov ecx, esi
call fcn.00401190
mov edi, eax
test edi, edi
jl 0x40131e
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x10]
push ecx
mov dword [esi + 0x44], eax
push 0
push esi
push 0x4015e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40130b
call fcn.00403d40
mov edi, eax
jmp 0x40131e
push 0xffffffffffffffff
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 8]
test edi, edi
jge 0x40132c
mov ecx, esi
call fcn.00401240
mov eax, edi
pop edi
pop esi
ret 4
xor eax, eax
pop edi
mov dword [esi + 0x38], 0
pop esi
ret 4

Function at 0x4022b0
Capabilities:
Listen for remote procedure calls

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
push 0
call sub.RPCRT4.dll_RpcMgmtIsServerListening
test eax, eax
jne 0x4022ca
xor eax, eax
pop edi
pop esi
add esp, 8
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x41d028
push eax
push 0
push 4
push ecx
push 0x41d330
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
jl 0x402387
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push 0
call sub.RPCRT4.dll_RpcMgmtIsServerListening
test eax, eax
jne 0x402311
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push 1
push 0x4d2
push 0x4d2
call sub.RPCRT4.dll_RpcServerListen
test eax, eax
je 0x402344
cmp eax, 0x6b1
jne 0x402335
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push eax
call fcn.00403d20
add esp, 4
pop edi
pop esi
add esp, 8
ret
add esi, 8
push 0
mov ecx, esi
call fcn.004012c0
test eax, eax
jl 0x402387
push 0x2c
call fcn.00405b60
add esp, 4
mov edi, eax
test edi, edi
je 0x402373
mov ecx, edi
call fcn.00401c40
mov dword [edi], 0x41d03c
jmp 0x402375
xor edi, edi
push 0xffffffffffffffff
mov ecx, esi
push edi
push 0
call fcn.00401510
test eax, eax
jl 0x402387
xor eax, eax
pop edi
pop esi
add esp, 8
ret
Function at 0x402410
Capabilities:
Get session user name

Disassembly:
sub esp, 0x58
cmp dword [0x422840], 0
push esi
push edi
je 0x402428
mov ecx, 0x422844
call fcn.00401c20
lea eax, [esp + 0x68]
push eax
call fcn.00401b40
mov esi, dword [esp + 0x9c]
add esp, 4
test esi, 0x40000000
je 0x40245a
lea eax, [esp + 0x88]
push eax
call fcn.00403710
add esp, 4
mov edi, eax
test edi, edi
jl 0x40247f
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x88]
mov edx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x7c]
push esi
push ecx
push edx
push eax
call fcn.00402c00
add esp, 0x14
mov edi, eax
cmp dword [0x422840], 0
je 0x402492
mov ecx, 0x422844
call fcn.00401c30
test edi, edi
jge 0x40256e
lea eax, [esp + 0x38]
push 0x27
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.00403d60
add esp, 0xc
test eax, eax
jge 0x4024ba
mov byte [esp + 0x38], 0
test esi, 0x80000000
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
je 0x4024ef
mov ecx, dword [0x4227e4]
test ecx, ecx
je 0x40256e
lea eax, [esp + 8]
mov esi, dword [ecx]
push eax
push 1
push 5
push edi
call dword [esi + 0x18]
mov eax, edi
pop edi
pop esi
add esp, 0x58
ret
mov byte [esp + 0x14], 0
cmp dword [0x42126c], 0
jne 0x402525
push 0
call sub.RPCRT4.dll_RpcImpersonateClient
test eax, eax
jne 0x402525
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0x21
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call sub.RPCRT4.dll_RpcRevertToSelf
cmp byte [esp + 0x14], 0
je 0x402555
lea eax, [esp + 0x14]
mov ecx, dword [0x4227e4]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x40256e
lea eax, [esp + 8]
mov esi, dword [ecx]
push eax
push 2
push 0xf
push edi
call dword [esi + 0x18]
mov eax, edi
pop edi
pop esi
add esp, 0x58
ret
mov ecx, dword [0x4227e4]
test ecx, ecx
je 0x40256e
lea eax, [esp + 8]
mov esi, dword [ecx]
push eax
push 1
push 4
push edi
call dword [esi + 0x18]
mov eax, edi
pop edi
pop esi
add esp, 0x58
ret

Function at 0x4042d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 4
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push esi
mov eax, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x404358
cmp eax, 0xe
jg 0x404308
je 0x40433a
cmp eax, 2
je 0x404330
jmp 0x404316
cmp eax, 0xea
je 0x404344
cmp eax, 0x3f2
je 0x40434e
test eax, eax
je 0x404329
and eax, 0xffff
pop esi
or eax, 0x80070000
add esp, 4
ret
xor eax, eax
pop esi
add esp, 4
ret
mov eax, 0x80040152
pop esi
add esp, 4
ret
mov eax, 0x8007000e
pop esi
add esp, 4
ret
mov eax, 0x80040153
pop esi
add esp, 4
ret
mov eax, 0x80040152
pop esi
add esp, 4
ret
cmp byte [esi], 1
pop esi
sbb eax, eax
add esp, 4
and eax, 0x80040153
ret
Function at 0x4043a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
lea ecx, [esp + 8]
push esi
mov ebx, dword [esp + 0x118]
push edi
mov esi, dword [esp + 0x118]
push ebp
mov dword [esp + 0x10], 0x104
push eax
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x404408
cmp eax, 2
je 0x404458
cmp eax, 0x3f2
je 0x404458
test eax, eax
je 0x4043fb
and eax, 0xffff
pop ebp
or eax, 0x80070000
pop edi
pop esi
pop ebx
add esp, 0x108
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
cmp dword [esp + 0x128], 0
mov ebp, dword [esp + 0x124]
je 0x404442
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [esp + 0x14]
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jbe 0x404442
mov byte [esp + edx + 0x14], 0
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00418560
add esp, 8
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x404464
mov eax, 1
mov ebp, dword [esp + 0x124]
test eax, eax
je 0x40449a
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push 1
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x40449a
and eax, 0xffff
pop ebp
or eax, 0x80070000
pop edi
pop esi
pop ebx
add esp, 0x108
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x4044b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x124]
push eax
push ebp
push esi
call fcn.00404260
add esp, 0xc
mov edi, eax
test edi, edi
jge 0x4044f5
cmp edi, 0x80040152
jne 0x404559
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x14]
push 0x105
mov ecx, dword [esp + 0x14]
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x40452c
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004044b0
add esp, 8
mov edi, eax
test edi, edi
jge 0x4044fb
jmp 0x404559
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404559
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp dword [esp + 0x10], 0
je 0x40456b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x4045f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
push eax
mov edi, dword [esp + 0x20]
push ecx
mov esi, dword [esp + 0x20]
push edx
mov dword [esp + 0x14], 4
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40464a
cmp eax, 2
je 0x404663
cmp eax, 0x3f2
je 0x404663
test eax, eax
je 0x404642
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
cmp dword [esp + 0xc], 4
jne 0x404663
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
push 4
push eax
push 4
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40468a
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
Function at 0x404c10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
mov ebx, ecx
push ebp
xor ebp, ebp
lea ecx, [ebx + 0x10]
call fcn.00401c20
mov esi, dword [ebx + 4]
push 2
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x404de2
cmp dword [ebx + 0xc], eax
jae 0x404d2f
push 2
mov eax, dword [ebx + 8]
neg eax
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x404de2
xor edi, edi
push ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x17]
push eax
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404de2
cmp dword [esp + 0x14], 0
je 0x404cbc
cmp byte [esp + 0x13], 0xa
je 0x404d5e
cmp byte [esp + 0x13], 0xd
je 0x404d5e
test edi, edi
je 0x404d63
push 1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x404de2
mov edi, dword [esp + 0x18]
sub edi, dword [ebx + 8]
push edi
call fcn.00405b60
add esp, 4
mov ebp, eax
test ebp, ebp
je 0x404def
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404de2
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x404de2
lea eax, [esp + 0x1c]
push 0
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404de2
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x404de2
cmp dword [esp + 0x18], 0
je 0x404d82
mov edi, 0x4211a8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404d87
mov edi, 1
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x17]
push eax
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c81
jmp 0x404de2
mov byte [esp + 0x20], 0
mov edi, dword [esp + 0x124]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x20]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x20]
lea edi, [esp + 0x24]
push eax
mov ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebp, ebp
je 0x404def
push ebp
call fcn.00405bb0
add esp, 4
lea ecx, [ebx + 0x10]
call fcn.00401c30
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
Function at 0x4069e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push ebp
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0
mov ebx, eax
mov edi, dword [sym.imp.USER32.dll_CharNextA]
je 0x406a0b
cmp byte [ebx], 0x20
je 0x406a0b
push ebx
call edi
cmp byte [eax], 0
mov ebx, eax
jne 0x4069fc
mov dword [esp + 0x14], 0
cmp byte [ebx], 0
je 0x406b30
cmp byte [ebx], 0x20
jne 0x406a2b
push ebx
call edi
cmp byte [eax], 0x20
mov ebx, eax
je 0x406a21
mov al, byte [ebx]
cmp al, 0x2d
je 0x406a3a
mov esi, 0
cmp al, 0x2f
jne 0x406a44
push ebx
mov esi, 1
call edi
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp byte [ebx], 0
je 0x406a65
mov al, byte [ebx]
cmp al, 0x20
je 0x406a65
cmp al, 0x2f
je 0x406a65
cmp al, 0x2d
je 0x406a65
push ebx
call edi
cmp byte [eax], 0
mov ebx, eax
jne 0x406a4d
mov al, byte [ebx]
test esi, esi
mov byte [esp + 0x13], al
mov byte [ebx], 0
je 0x406b05
mov eax, dword [esp + 0x14]
push str.RegServer
push eax
call fcn.00418560
add esp, 8
test eax, eax
jne 0x406a95
mov dword [ebp + 0x1c], 1
jmp 0x406b01
mov eax, dword [esp + 0x14]
push str.UnregServer
push eax
call fcn.00418560
add esp, 8
test eax, eax
jne 0x406ab4
mov dword [ebp + 0x20], 1
jmp 0x406b01
mov eax, dword [esp + 0x14]
push str.Automation
push eax
call fcn.00418560
add esp, 8
test eax, eax
je 0x406b01
mov eax, dword [esp + 0x14]
push str.Embedding
push eax
call fcn.00418560
add esp, 8
test eax, eax
je 0x406b01
mov eax, dword [esp + 0x14]
push str.Hidden
push eax
call fcn.00418560
add esp, 8
test eax, eax
jne 0x406aff
mov dword [ebp + 0x24], 1
jmp 0x406b01
xor esi, esi
test esi, esi
jne 0x406b22
cmp dword [0x4227e4], 0
je 0x406b22
lea eax, [esp + 0x14]
mov ecx, dword [0x4227e4]
push eax
push 1
push 0xb
mov esi, dword [ecx]
call dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov byte [ebx], al
test al, al
jne 0x406a1c
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret