joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4669c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b2396
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14a]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x150], ax
call fcn.00476c30
add esp, 0xc
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x466a2d
mov eax, dword [esi + 8]
add eax, 4
push eax
lea edx, [esp + 0x148]
push 0x104
push edx
call fcn.0047149d
lea eax, [esp + 0x150]
push 0x5c
push eax
call fcn.0047030c
add esp, 0x14
cmp eax, ebp
jne 0x466a81
cmp byte [esi + 0x11c], 0
je 0x466a67
add esi, 0xc
jmp 0x466a6a
mov esi, dword [esi + 8]
add esi, 4
push esi
push 0x4deb80
push edi
call fcn.0041a530
add esp, 0xc
jmp 0x466c04
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x20]
call fcn.0041ead0
lea eax, [esp + 0x144]
lea edx, [esp + 0x20]
call fcn.0041ed00
mov ebx, 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x358], ebx
call fcn.0041c660
test al, al
je 0x466add
cmp byte [esp + 0x13c], 0
mov dword [esp + 0x20], 0x4d4d70
jne 0x466c02
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
cmp eax, edx
jmp 0x466bf7
push ebp
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x466b0a
lea ecx, [esp + 0x144]
push ecx
push 0x4deb94
push edi
call fcn.0041a530
add esp, 0xc
mov bl, al
jmp 0x466ab8
push ebx
push 0x10000000
lea eax, [esp + 0x14c]
push ebx
push eax
call fcn.00423e10
add esp, 0x10
cmp byte [0x4fb78f], 0
jne 0x466b3a
mov byte [0x4fb78f], bl
call fcn.004202f0
mov byte [0x4fd794], al
cmp byte [0x4fd794], 0
je 0x466bdb
lea eax, [esp + 0x144]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x466b51
sub eax, edx
lea ecx, [esp + 0x144]
sar eax, 1
push ecx
call fcn.00420250
add esp, 4
test eax, eax
jne 0x466bdb
push ebp
lea edx, [esp + 0x14]
push edx
push ebx
push str.S:_ML__NW___LW_
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x466bdb
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x466bd0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push ebp
push ebp
push 0x10
push ebx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x13c], 0
mov dword [esp + 0x20], 0x4d4d70
jne 0x466c02
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x466c02
push eax
call fcn.00470027
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x33c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x34c
ret
Function at 0x469fa0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x4d3dec
push eax
lea ecx, [esp + 8]
push ecx
mov dword [ebx], 0
mov dword [esp + 0xc], 0
call fcn.004707d3
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x469fcc
pop ecx
ret
push esi
push 2
push 0
push eax
call fcn.00475836
mov edx, dword [esp + 0x10]
push edx
call fcn.0047573e
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x469ffc
mov eax, dword [esp + 4]
push eax
call fcn.00471059
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 4]
push edi
push 0
push 0
push ecx
call fcn.00475836
push esi
call fcn.004706a8
mov edx, dword [esp + 0x18]
push edx
push esi
mov edi, eax
push 1
push edi
call fcn.00475584
mov eax, dword [esp + 0x28]
push eax
call fcn.00471059
add esp, 0x24
mov dword [ebx], edi
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x46b540
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0898
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.00423550
mov dword [esp + 0x18], 0x4c2f08
mov edi, dword [esp + 0x30]
push 0x4fa2a0
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00423590
mov ebx, dword [esp + 0x34]
test al, al
je 0x46b5ed
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0046abd0
test eax, eax
je 0x46b5ca
mov eax, dword [eax + 4]
test eax, eax
jne 0x46b5d7
push ebx
push edi
mov ecx, esi
call fcn.0046b260
test eax, eax
je 0x46b5ed
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
mov ecx, eax
call fcn.0046a5e0
test al, al
jne 0x46b62e
push ebx
push str.UserEnv::MergeFrom
push edi
call fcn.0041a530
add esp, 0xc
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], 0x4c2f08
call fcn.00423570
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], 0x4c2f08
call fcn.00423570
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x46b660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0898
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.00423550
mov dword [esp + 0x18], 0x4c2f08
mov edi, dword [esp + 0x30]
push 0x4fa2a0
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00423590
mov ebx, dword [esp + 0x34]
test al, al
je 0x46b70d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0046abd0
test eax, eax
je 0x46b6ea
mov eax, dword [eax + 4]
test eax, eax
jne 0x46b6f7
push ebx
push edi
mov ecx, esi
call fcn.0046b260
test eax, eax
je 0x46b70d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
mov ecx, eax
call fcn.0046a730
test al, al
jne 0x46b74e
push ebx
push str.UserEnv::MergeGet
push edi
call fcn.0041a530
add esp, 0xc
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], 0x4c2f08
call fcn.00423570
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], 0x4c2f08
call fcn.00423570
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x46cd70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0cf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x2c]
test bl, bl
je 0x46cde6
push str.UserManager
call fcn.0046cc00
add esp, 4
cmp esi, eax
jne 0x46cde6
call fcn.0042e840
test al, al
je 0x46cde6
call fcn.0046cab0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push ebx
push edx
mov ecx, eax
call fcn.0046cd70
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
push edi
mov ecx, 0x4fa6f8
mov byte [esi], bl
mov dword [esi + 4], eax
call fcn.0042e050
test al, al
jne 0x46ce2a
push 0x4c3580
push edi
call fcn.0041a530
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push 0x4c3554
push edi
mov ecx, 0x4fa930
call fcn.00423680
test al, al
je 0x46ce07
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00423550
mov dword [esp + 0x10], 0x4c3310
push 0x4fa930
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00423590
test al, al
jne 0x46cea6
push 0x4c3580
push edi
call fcn.0041a530
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00423570
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
xor bl, bl
cmp byte [esi + 0xa78], bl
jne 0x46cf46
call fcn.004175c0
mov ecx, eax
call fcn.00415a60
test al, al
jne 0x46cefd
push edi
call fcn.004175c0
mov ecx, eax
call fcn.00415b60
test al, al
jne 0x46cefd
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00423570
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
call fcn.004175c0
mov ecx, eax
call fcn.00402d40
test al, al
je 0x46cf14
mov byte [esi + 0xa78], 1
mov ecx, esi
call fcn.0046bdf0
push 1
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0046c810
test al, al
je 0x46cf48
lea edx, [esp + 0x10]
push edx
push edi
mov ecx, esi
call fcn.0046c570
test al, al
je 0x46cf48
mov byte [esi + 0xa78], 1
mov bl, 1
call fcn.004175c0
mov ecx, eax
call fcn.00402d40
test al, al
jne 0x46cf60
test bl, bl
je 0x46ced5
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00423570
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc

Function at 0x46fdae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f4930]
jne 0x46fdb8
repz ret
jmp fcn.004778a8
Function at 0x488220
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.004744b4
and dword [ebp - 4], 0
cmp dword [0x4fb6cc], 0
mov ebx, eax
jne 0x4882d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x488382
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x488382
push eax
call fcn.00474442
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4fb6cc], eax
call esi
push eax
call fcn.00474442
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fb6d0], eax
call esi
push eax
call fcn.00474442
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fb6d4], eax
call esi
push eax
call fcn.00474442
pop ecx
mov dword [0x4fb6dc], eax
test eax, eax
je 0x4882d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00474442
pop ecx
mov dword [0x4fb6d8], eax
mov eax, dword [0x4fb6d8]
cmp eax, ebx
je 0x488329
cmp dword [0x4fb6dc], ebx
je 0x488329
push eax
call fcn.004744bd
push dword [0x4fb6dc]
mov esi, eax
call fcn.004744bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x488329
test edi, edi
je 0x488329
call esi
test eax, eax
je 0x488320
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x488320
test byte [ebp - 0xc], 1
jne 0x488329
or dword [ebp + 0x10], 0x200000
jmp 0x488362
mov eax, dword [0x4fb6d0]
cmp eax, ebx
je 0x488362
push eax
call fcn.004744bd
pop ecx
test eax, eax
je 0x488362
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x488362
mov eax, dword [0x4fb6d4]
cmp eax, ebx
je 0x488362
push eax
call fcn.004744bd
pop ecx
test eax, eax
je 0x488362
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fb6cc]
call fcn.004744bd
pop ecx
test eax, eax
je 0x488382
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x488384
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497df0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x497e1f
push esi
call fcn.00498ce0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x497e18
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x497e99
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x497e89
mov eax, dword [esi + 8]
test eax, eax
je 0x497e44
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x497e85
cmp eax, 2
je 0x497e89
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x497e35
cmp eax, 3
je 0x497e6c
cmp eax, 1
jne 0x497e35
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x497e35
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x497e35
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00497c80
pop esi
ret
cmp eax, 0xcc
je 0x497ebb
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00497c80
pop esi
ret
Function at 0x4a38d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x4a38f7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4a3903
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4a3a16
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4a3948
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4a3969
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x4a39bf
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4a39a0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4a39a0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4a3986
cmp dword [esp + 0x10], 0
je 0x4a39fd
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x4a39e0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4a3940
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x403110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403127
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40313b
pop esi
pop edi
xor eax, eax
pop ebp
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40315e
lea ebx, [ebx]
cmp esi, eax
jae 0x403135
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403150
cmp esi, eax
jae 0x403135
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403230
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
push edi
lea ebp, [esi + 0x34]
push ebp
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x30]
test al, al
je 0x403266
test ebx, ebx
jbe 0x403298
mov edi, dword [esp + 0x14]
mov eax, 1
mov ecx, ebx
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ecx
ret 8
mov eax, dword [esi + 0x2c]
mov edi, dword [esp + 0x10]
xor ecx, ecx
xor eax, edi
test ebx, ebx
jbe 0x403298
mov edi, dword [esi + 0x24]
mov ebp, dword [esi + 0x1c]
mov edx, eax
shr edx, 3
mov edx, dword [edi + edx*4]
xor edx, dword [ebp + eax*4]
mov edi, dword [esp + 0x14]
mov dword [edi + ecx*4], edx
inc ecx
inc eax
cmp ecx, ebx
jb 0x403275
mov ebp, dword [esp + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ecx
ret 8
Function at 0x40a2c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x2dc
push ebx
push ebp
push esi
xor esi, esi
xor ebp, ebp
test eax, eax
mov ebx, 1
je 0x40a2e1
mov byte [esp + 0xf], 0
jmp 0x40a30c
lea eax, [esp + 0x2f8]
push eax
push 0x20019
push 0
push str.Enum
push reloc.WS2_32.dll_bind
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4b0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x300]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.class
push ecx
mov dword [esp + 0x2c], 0x40
call edi
test eax, eax
jne 0x40a3da
cmp dword [esp + 0x18], ebx
jne 0x40a3da
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0055a0a6
add esp, 8
test eax, eax
jne 0x40a3da
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x300]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.driver
push ecx
mov dword [esp + 0x2c], 0x80
call edi
test eax, eax
jne 0x40a3da
cmp dword [esp + 0x18], ebx
jne 0x40a3da
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x1f0]
push str.SystemCurrentControlSetServicesClass_s
push eax
call fcn.00553270
mov ecx, dword [esp + 0x300]
add esp, 0xc
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x1f8]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3da
mov esi, ebx
mov edi, dword [esp + 0x2f8]
cmp edi, esi
jle 0x40a4af
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x300]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x100]
push edx
push 0
push eax
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
jne 0x40a4af
mov eax, dword [esp + 0x2fc]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
lea edx, [esp + 0xf8]
push edx
push eax
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a47c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2f4]
push ecx
mov edx, edi
sub edx, esi
push edx
mov edx, dword [esp + 0x2f8]
lea ecx, [eax + esi*4]
push ecx
push edx
call fcn.0040a2c0
add esi, eax
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x300]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x100]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x40a423
pop edi
mov eax, dword [esp + 0x2f8]
test eax, eax
je 0x40a4ca
mov cl, byte [esp + 0xf]
test cl, cl
je 0x40a4ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x40aeb0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push edi
lea ebx, [esi + 0x34]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, edx
test eax, eax
jbe 0x40af42
mov edx, dword [esi + 0x20]
push ebp
mov ebp, dword [esi + 0x28]
mov eax, ecx
shr eax, 3
shl eax, 2
mov ebx, dword [edx + eax]
sub ebp, ebx
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x28], ebp
mov ebx, dword [ebx + eax]
mov ebp, dword [esi + 0x1c]
xor ebx, dword [ebp + ecx*4]
mov ebp, dword [edx + eax]
sub ebp, ebx
mov ebx, dword [esp + 0x18]
mov dword [edx + eax], ebp
mov ebp, dword [ebx + edi*4]
mov edx, dword [esi + 0x24]
mov edx, dword [edx + eax]
xor edx, ebp
mov ebp, dword [esi + 0x1c]
mov dword [ebp + ecx*4], edx
mov edx, dword [esi + 0x20]
mov ebx, dword [ebx + edi*4]
mov ebp, dword [edx + eax]
add edx, eax
add ebp, ebx
mov dword [edx], ebp
mov edx, dword [esi + 0x20]
mov eax, dword [edx + eax]
mov ebx, dword [esi + 0x28]
add ebx, eax
mov eax, dword [esp + 0x1c]
inc edi
inc ecx
cmp edi, eax
mov dword [esi + 0x28], ebx
jb 0x40aed8
mov ebx, dword [esp + 0xc]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop ecx
ret 0xc

Function at 0x40b6f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x887734]
sub esp, 0x210
test eax, eax
je 0x40b744
mov edx, dword [eax + edi*8 + 0x26da4]
push ebx
push esi
lea ecx, [esp + 8]
push ecx
push edx
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov eax, dword [esp + 8]
push eax
push edi
lea ecx, [esp + 0x20]
push str.Slot___d_gold___d_n
push ecx
call fcn.00553270
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
add esp, 0x210
ret
Function at 0x40bdc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x565e9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x124], 2
mov ebp, dword [esp + 0x134]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [0x90b80c]
mov edi, dword [esp + 0x130]
push eax
push 0x100
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov ebx, dword [esp + 0x138]
jne 0x40beaa
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x14], esp
mov esi, esp
call fcn.004185e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [esp + 0x12c], 3
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.004185e0
add eax, 0x10
mov dword [esi], eax
push ecx
lea eax, [edi - 0x10]
mov byte [esp + 0x130], 4
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004185e0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x130], 2
call fcn.0040bf40
add esp, 0xc
test eax, eax
je 0x40beaa
lea edx, [esp + 0x1c]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bea0
mov esi, dword [esp + 0x12c]
push esi
lea ecx, [esp + 0x20]
call fcn.00407cf0
add edi, 0xfffffff0
mov byte [esp + 0x124], 1
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40bedd
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x124], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf00
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x124], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf25
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x118
ret