joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401484
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401480
lea ebx, [ebx]
cmp esi, eax
jae 0x401484
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401470
cmp esi, eax
jb 0x40148a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5c2578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
sub esp, 8
mov esi, ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x5dbe20
call fcn.0043bf90
mov dword [esp + 0x24], 0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5dbdd0
call fcn.0043bf90
mov byte [esp + 0x2c], 1
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 0xffffffff
mov ecx, 0x659c00
call fcn.004414f0
mov dword [esp + 0x1c], 2
mov eax, dword [eax]
push eax
push 0x418
mov ecx, esi
call fcn.004e4b84
mov ecx, eax
call fcn.004e4d9c
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004381e0
push 5
push 0x418
mov ecx, esi
call fcn.004e4b84
mov ecx, eax
call fcn.004e4e67
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret

Function at 0x40e940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c4228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.00553065
mov dword [esp + 0x28], 0
mov edi, dword [0x658d24]
mov ecx, 0x66f3a4
mov dword [esp + 0xc], edi
call fcn.004087f0
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x40e9b1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40e9b5
cmp byte [eax + 0x14], 0
je 0x40e9b5
call fcn.005531ec
cmp esi, dword [eax + 0xc]
jae 0x40e9bb
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x40e9b7
xor ecx, ecx
jmp 0x40e999
mov esi, ecx
test esi, esi
jne 0x40ea0d
test edi, edi
je 0x40e9c3
mov esi, edi
jmp 0x40ea0d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0040e7a0
add esp, 8
cmp eax, 0xffffffff
jne 0x40e9f3
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0051cfba
push 0x6267d8
lea ecx, [esp + 0x18]
push ecx
call fcn.0051d2d8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x658d24], esi
call fcn.00408860
push esi
call fcn.005532db
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0055308d
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40f3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c4368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.00553065
mov dword [esp + 0x28], 0
mov edi, dword [0x658d28]
mov ecx, 0x658d34
mov dword [esp + 0xc], edi
call fcn.004087f0
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x40f421
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40f425
cmp byte [eax + 0x14], 0
je 0x40f425
call fcn.005531ec
cmp esi, dword [eax + 0xc]
jae 0x40f42b
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x40f427
xor ecx, ecx
jmp 0x40f409
mov esi, ecx
test esi, esi
jne 0x40f47d
test edi, edi
je 0x40f433
mov esi, edi
jmp 0x40f47d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0040ec70
add esp, 8
cmp eax, 0xffffffff
jne 0x40f463
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0051cfba
push 0x6267d8
lea ecx, [esp + 0x18]
push ecx
call fcn.0051d2d8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x658d28], esi
call fcn.00408860
push esi
call fcn.005532db
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0055308d
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x413180
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c4700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
lea eax, [esp + 0x24]
push edi
push eax
mov esi, ecx
call fcn.004094b0
add esp, 4
mov dword [esp + 0x7c], 0
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call fcn.00439f20
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004381e0
call fcn.004e31d4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x60]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043bf90
mov dword [esp + 0x7c], 1
lea ecx, [esp + 0x30]
call fcn.004108b0
mov byte [esp + 0x7c], 2
push 1
push str._a_zA_Z0_9___
lea ecx, [esp + 0x28]
call fcn.004130d0
mov byte [esp + 0x7c], 3
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x413220
push ecx
push 0
sub eax, esi
lea edx, [esp + 0x28]
push edx
sar eax, 1
lea edx, [esp + 0x3c]
push edx
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00412790
add esp, 0x18
test al, al
je 0x4132de
push 0
lea ecx, [esp + 0x34]
call fcn.0040b060
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
call fcn.0043bf90
mov byte [esp + 0x7c], 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x41327a
or eax, 0xffffffff
jmp 0x4132a2
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jge 0x413289
or eax, 0xffffffff
jmp 0x4132a2
push ecx
push eax
call fcn.0051d47a
add esp, 8
test eax, eax
jne 0x41329c
or eax, 0xffffffff
jmp 0x4132a2
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040de10
mov byte [esp + 0x7c], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00439f50
mov byte [esp + 0x7c], 4
lea ecx, [esp + 0xc]
call fcn.0040d310
mov byte [esp + 0x7c], 3
lea ecx, [esp + 0x28]
call fcn.004381e0
push str._rfr
lea ecx, [esp + 0x1c]
call fcn.0043bf90
mov byte [esp + 0x7c], 6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41331c
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x41331c
push ecx
push eax
call fcn.0051d47a
add esp, 8
test eax, eax
je 0x41331c
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x41333a
mov byte [esp + 0x7c], 3
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x7c], 2
lea ecx, [esp + 0x20]
call fcn.0040c380
jmp 0x413389
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
add ecx, eax
push ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0040e2b0
mov byte [esp + 0x7c], 8
push eax
mov ecx, edi
call fcn.00439f50
mov byte [esp + 0x7c], 6
lea ecx, [esp + 0xc]
call fcn.0040d310
mov byte [esp + 0x7c], 3
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x7c], 2
lea ecx, [esp + 0x20]
call fcn.0040c380
mov byte [esp + 0x7c], 1
lea ecx, [esp + 0x34]
call fcn.0040e8d0
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004381e0
mov ecx, dword [esp + 0x74]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4133c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5c473c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
push str.SavedInstSettings
mov esi, ecx
push str.SoftwareMail.RuAgent
xor edi, edi
push reloc.WSOCK32.dll_accept
mov dword [esi + 0x6c], edi
mov dword [esp + 0x30], 0x111111
call fcn.00424280
mov eax, dword [esi + 0x6c]
push edi
push eax
mov ebx, 1
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x80], ebx
call fcn.004266c0
add esp, 0x20
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 4]
mov dword [esi + 0x6c], eax
call fcn.0043a980
lea ecx, [esp + 0x10]
call fcn.00438090
mov dword [esp + 0x834], edi
lea ecx, [esp + 0x18]
call fcn.00438090
mov byte [esp + 0x834], bl
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x4134d5
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00426910
add esp, 8
mov byte [esp + 0x834], 2
push eax
lea ecx, [esp + 0x14]
call fcn.00439f20
mov byte [esp + 0x834], bl
lea ecx, [esp + 0x24]
call fcn.004381e0
lea ecx, [esp + 0x10]
call fcn.00437d00
test eax, eax
je 0x4134d5
push str.magent.exe
lea ecx, [esp + 0x14]
call fcn.0043a8a0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00423350
mov edx, dword [esp + 0x14]
add esp, 4
push edx
mov dword [esi + 0x54], eax
call ebp
cmp eax, 0xffffffff
jne 0x4134d5
mov dword [esi + 0x54], edi
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00426910
add esp, 8
mov byte [esp + 0x834], 3
push eax
lea ecx, [esp + 0x1c]
call fcn.00439f20
mov byte [esp + 0x834], bl
lea ecx, [esp + 0x24]
call fcn.004381e0
lea ecx, [esp + 0x18]
call fcn.00437d00
test eax, eax
je 0x41353f
push str.magent.exe
lea ecx, [esp + 0x1c]
call fcn.0043a8a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00423350
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
mov dword [esi + 0x58], eax
call ebp
cmp eax, 0xffffffff
jne 0x41353f
mov dword [esi + 0x58], edi
mov ecx, esi
call fcn.00413180
call fcn.004286c0
test eax, eax
je 0x41355e
call fcn.0042a270
test eax, eax
je 0x41355e
mov dword [esi + 0x80], edi
mov dword [esi + 0x60], edi
mov byte [esp + 0x834], 0
lea ecx, [esp + 0x18]
call fcn.004381e0
mov dword [esp + 0x834], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004381e0
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x828
ret

Function at 0x413600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x659bcc
call fcn.00430160
mov ecx, 0x6596c0
mov dword [esi + 0x20], ecx
pop esi
jmp fcn.004e0b7f

Function at 0x413620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x659628
call fcn.0040dd30
mov ecx, 0x659bcc
call fcn.00430160
mov eax, dword [0x659694]
mov ecx, 0x659b50
mov dword [0x659bc4], eax
mov dword [esi + 0x20], ecx
pop esi
jmp fcn.004e0b7f
Function at 0x4143d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c48e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push 0x40b
mov ecx, 0x659bcc
call fcn.00435bc0
mov eax, dword [0x659694]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00426910
mov dword [esp + 0x28], 0
push 0x5dc7b4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00406610
mov byte [esp + 0x34], 1
push 0x5dc79c
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406610
add esp, 0x20
mov byte [esp + 0x20], 3
lea ecx, [esp]
call fcn.004381e0
call fcn.004234d0
test eax, eax
je 0x4144f4
mov edx, dword [esp + 0x10]
push 0x1f4
push 0x14
push edx
call fcn.00425740
add esp, 0xc
test eax, eax
je 0x4144f4
push 0
sub esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.00438190
mov byte [esp + 0x2c], 4
mov ecx, dword [0x659694]
push ecx
mov byte [esp + 0x30], 3
call fcn.0042f920
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.00438190
mov byte [esp + 0x28], 5
mov byte [esp + 0x28], 3
call fcn.0042a050
add esp, 8
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.004381e0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.004381e0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.004381e0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.004381e0
mov ecx, dword [esp + 0x18]
mov eax, 2
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x417d30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c5179
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0
call fcn.00438090
mov dword [esp + 0x30], 1
push 0x19b2
push 0x5dbe20
lea ecx, [esp + 0x10]
call fcn.004044c0
mov byte [esp + 0x34], 2
push eax
lea eax, [esp + 0xc]
push 0x5de74c
push eax
call fcn.004172d0
add esp, 0xc
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5dbe20
call fcn.0043bf90
mov byte [esp + 0x40], 4
sub esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5de6b0
call fcn.0043bf90
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x4c], 3
mov ecx, 0x659c00
call fcn.004414f0
mov byte [esp + 0x38], 6
mov eax, dword [eax]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00403bb0
add esp, 0x10
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.004381e0
mov byte [esp + 0x30], 2
lea ecx, [esp + 4]
call fcn.00402be0
mov byte [esp + 0x30], 1
lea ecx, [esp + 8]
call fcn.00402be0
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00438190
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x18]
call fcn.004381e0
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x30
ret

Function at 0x41d860
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d8d6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x41d8a5
cmp eax, 2
jne 0x41d8c1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x41d8d0
test eax, eax
je 0x41d8cb
test al, 1
jne 0x41d8c1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41d8d0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x41d8e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x41d8f4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x41fa10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5c60d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x34]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x10], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
call fcn.0040e340
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41fa65
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004151d0
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040e340
mov dword [esp + 8], 1
mov byte [esp + 0x30], bl
cmp dword [esp + 0x24], 8
jb 0x41fabe
mov eax, dword [esp + 0x10]
push eax
call fcn.004d9334
add esp, 4
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x20], ebx
pop esi
mov dword [esp + 0x20], 7
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x423350
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x18
xor eax, eax
push edi
mov word [esp + 8], ax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x4233bc
push esi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, edi
je 0x4233b4
push 9
lea ecx, [esp + 0x10]
push ecx
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0xc]
push edx
call fcn.0051e4c9
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, edi
pop edi
add esp, 0x18
ret
lea eax, [esp + 0x20]
push eax
push 0x4232c0
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42340f
mov eax, dword [0x659550]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
push 0x1f4
push 3
push edi
push edi
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x42340f
mov eax, dword [esp + 4]
pop edi
add esp, 0x18
ret
or eax, 0xffffffff
pop edi
add esp, 0x18
ret
Function at 0x4234d0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
jmp 0x4234f0
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push 0x4232c0
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov dword [esp + 0x18], ebx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4235fa
mov ecx, dword [0x659550]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x1f4
push 3
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4235fa
cmp dword [esp + 0x18], ebx
jle 0x4235fa
lea eax, [esp + 0x14]
push eax
push 0x423420
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x423597
push 0x3e8
call ebp
inc edi
cmp edi, 6
jl 0x4234f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push ebx
push 0x100000
call edi
mov esi, eax
cmp esi, ebx
je 0x42358a
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
test eax, eax
jne 0x4235d0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push 1
call edi
cmp eax, ebx
je 0x42358a
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
xor esi, esi
jmp 0x423610
push 0x5dde70
push 0
push 0x1f0003
call ebx
test eax, eax
je 0x42358a
push eax
call edi
push 0x64
call ebp
inc esi
cmp esi, 0x64
jl 0x423610
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x423980
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [esp + 0x80c]
lea edx, [esp + 8]
push edi
mov eax, ebp
sub edx, ebp
jmp 0x4239a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4239a0
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4239b6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xa], 0x5c
je 0x4239e7
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4239d4
mov eax, dword [0x5dc7b4]
mov dword [edi], eax
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x423a0d
push ebp
call fcn.0045e090
add esp, 4
test eax, eax
jne 0x423a0d
push ebp
call fcn.0045e7c0
add esp, 4
mov ebx, eax
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x423a14
push esi
push 0
mov ecx, 6
mov esi, 0x5dfa5c
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
cmp eax, 0xffffffff
jne 0x423a6b
test ebx, ebx
je 0x423a5f
push ebp
call fcn.0045f2c0
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x423a8a
push ebp
call fcn.0045f2c0
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret
Function at 0x424080
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push eax
push ebp
call fcn.0052062e
add esp, 8
test eax, eax
jne 0x4240a0
mov eax, 1
pop ebp
pop ecx
ret
push ebx
push esi
xor esi, esi
cmp dword [esp + 0x1c], esi
push edi
jle 0x4241e7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push connect
push ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4240eb
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x4240b5
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jle 0x424125
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x424134
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, dword [esp + 0x28]
jl 0x4240f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
je 0x4241db
cmp ebp, 0xffffffff
je 0x4241db
push ebp
call fcn.0051f5e5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4241db
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4241be
cmp dword [esp + 0x10], ebp
jne 0x4241be
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4241be
cmp dword [esp + 0x10], ebp
jne 0x4241be
push ebx
call fcn.0051d4db
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push ebx
call fcn.0051d4db
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x424280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4242d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4242d0
lea esi, [eax + 1]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret