joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x409010
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
lea edx, [esi - 4]
add edx, ecx
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x409042
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40903f
inc esi
cmp esi, edx
jb 0x409030
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40916a
cmp ecx, 3
jbe 0x409082
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x4090c0
cmp cl, 0xff
je 0x4090c0
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x409024
dec ecx
shl eax, cl
and eax, 7
je 0x40905a
cmp byte [eax + 0x599920], 0
je 0x4090ad
movzx ecx, byte [eax + 0x599928]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x4090aa
cmp cl, 0xff
jne 0x40905a
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x409024
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x4090ee
lea edx, [edi + ebx]
add edx, esi
jmp 0x4090f4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x409132
movzx edi, byte [eax + 0x599928]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x40911e
cmp cl, 0xff
jne 0x409132
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x4090e1
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
neg cl
mov byte [esi + 1], dl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x409024
pop edi
pop esi
cmp ecx, 3
jbe 0x40917f
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4119b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589ea8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x18], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005523ef
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415f40
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a16d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x415fa1
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
xor eax, eax
mov byte [ebp - 4], 0
test ecx, ecx
cmovne eax, ecx
test eax, eax
jne 0x415fdf
call fcn.0040d9d0
add eax, 0xb0
cmp dword [eax + 0x14], 7
jbe 0x415fc2
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x415fe5
test esi, esi
je 0x415fdb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov bl, 1
jmp 0x415fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
test esi, esi
je 0x415ff2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419420
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a5dd
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
test eax, eax
je 0x41958c
mov ecx, 2
mov dword [ebp - 0x220], 0
cmp eax, ecx
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
cmovb ecx, eax
cmp dword [ebp + 0x20], 7
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x18]
push 3
push eax
call fcn.005611a7
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
cmp ecx, 7
jbe 0x419507
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4194fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4195d1
push ecx
push edx
call fcn.0055241f
add esp, 8
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x419589
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
shrd ecx, eax, 0x1e
lea eax, [ebp - 0x218]
push ecx
push str._dGB
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [esi], xmm0
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419570
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x4195a4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x59a304
mov dword [esi + 0x14], 0
mov ecx, esi
call fcn.0040b6c0
lea ecx, [ebp + 0xc]
call fcn.0040bf90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0055bf8b
int3
Function at 0x41c020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0x14
mov dword [esi + 0x51c], 3
call fcn.00466e10
push 0x5dc
push 0x14
mov ecx, esi
call fcn.0046a0c0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [esi + 0x38c]
push eax
push 0x419bf0
push 0
push 0
call fcn.0055bbde
add esp, 0x18
mov dword [esi + 0x50c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420a00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b085
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x68]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00415900
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x420a66
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x420a66
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.0041ed80
mov eax, dword [ebp + 8]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x420a70
sub edx, esi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.00410b40
cmp dword [ebp - 0x14], 7
lea ebx, [ebp - 0x28]
mov esi, dword [0x5f0130]
cmova ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x420aec
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x420aa3
sub edi, ecx
sar edi, 1
je 0x420aec
lea eax, [edi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x420aec
mov dword [eax], 1
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax + 8], edi
mov word [eax + edi*2 + 0xc], cx
lea eax, [edi + edi]
push eax
push ebx
push esi
call fcn.005577f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x420b04
test al, 0x10
mov eax, 1
cmove edi, eax
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 2
or esi, 0xffffffff
cmp ecx, dword [0x5f012c]
je 0x420b2a
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x420b2a
push ecx
call fcn.00408c50
add esp, 4
test edi, edi
je 0x420b44
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
jmp 0x420b49
mov ebx, 1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x420b83
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420b79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420bde
push ecx
push edx
call fcn.0055241f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov dword [ebp - 4], 3
cmp eax, dword [0x5f012c]
je 0x420bbe
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x420bbe
push eax
call fcn.00408c50
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 4
call fcn.0055bf8b
int3
Function at 0x421740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b24d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
cmp dword [ebx], 0
mov dword [ebp - 4], 0
je 0x421783
mov dword [ebx], 0
cmp dword [ebp + 0x24], 7
lea eax, [ebp + 0x10]
cmova eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x421804
push edi
push dword [esi + 0x398]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4217b7
push eax
jmp 0x4217fe
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4217fd
mov eax, dword [ebp - 0x10]
push edi
push dword [eax + 0x398]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jle 0x4217fd
lea eax, [edi + 1]
push eax
call fcn.0055278b
push edi
push esi
push eax
mov dword [ebx], eax
call fcn.005577f0
mov eax, dword [ebx]
add esp, 0x10
push esi
mov byte [edi + eax], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x421807
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
or edi, 0xffffffff
mov ecx, dword [ebp + 0x24]
cmp ecx, 7
jbe 0x42183d
mov edx, dword [ebp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421833
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421853
push ecx
push edx
call fcn.0055241f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call fcn.0055bf8b
int3
Function at 0x424290
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x180], 0
je 0x4242eb
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esi + 0x184], 7
lea eax, [esi + 0x170]
jbe 0x4242db
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00551e44
mov esp, ebp
pop ebp
ret
Function at 0x4248a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b590
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x68]
push eax
lea ecx, [ebp - 0x230]
call fcn.00415900
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x424917
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x424917
push 0x5c
lea ecx, [ebp - 0x230]
call fcn.0041ed80
cmp dword [esi + 0xdc], 7
lea eax, [esi + 0xc8]
mov ecx, dword [eax + 0x10]
jbe 0x42492b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00410b40
push str._start_by_setup
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005611a7
add esp, 0xc
cmp dword [esi + 0x350], 0
je 0x424980
cmp dword [esi + 0x354], 7
lea eax, [esi + 0x340]
jbe 0x42496b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00562c0c
add esp, 0xc
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x274], 0x44
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
push 0
push 0
lea eax, [ebp - 0x230]
movlpd qword [ebp - 0x270], xmm0
cmova eax, dword [ebp - 0x230]
push ecx
push eax
movlpd qword [ebp - 0x268], xmm0
movlpd qword [ebp - 0x260], xmm0
movlpd qword [ebp - 0x258], xmm0
movlpd qword [ebp - 0x250], xmm0
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x284], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x21c]
neg eax
sbb esi, esi
neg esi
cmp ecx, 7
jbe 0x424a52
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x424a48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424a6e
push ecx
push edx
call fcn.0055241f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret
call fcn.0055bf8b
int3

Function at 0x425110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b60d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.005523ef
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x425070
push 0
push 0
call fcn.0055bbde
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x42517f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00554811
int3
Function at 0x42d0a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bde0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ecx], vtable.SOUI::IMessageFilter.0
mov eax, dword [0x5f0130]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push str.MessageFilter_destory__p_r_n
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c5f0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
or edi, 0xffffffff
add ecx, 0xfffffff4
mov dword [ebp - 4], 0
cmp ecx, dword [0x5f012c]
je 0x42d117
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42d117
push ecx
call fcn.00408c50
add esp, 4
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 0xfffffff4
mov dword [ebp - 4], 1
cmp esi, dword [0x5f012c]
je 0x42d145
lock xadd dword [esi], edi
dec edi
test edi, edi
jg 0x42d145
push esi
call fcn.00408c50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x43178f
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 0x14]
push edi
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4317b0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4317d0
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4318f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jle 0x4318f9
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
mov dword [ebp - 4], edx
cmp esi, edx
ja 0x431832
mov dword [ebp + 0x10], edi
mov eax, edi
cmp edx, 0xf
jbe 0x43180d
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
push esi
push ebx
push eax
mov dword [edi + 0x10], esi
call fcn.005577f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push ebx
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x7fffffff
ja 0x43190a
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x431852
mov ecx, SysReAllocString
jmp 0x431876
mov eax, edx
shr eax, 1
mov dword [ebp + 0x10], eax
mov eax, SysReAllocString
sub eax, dword [ebp + 0x10]
cmp edx, eax
jbe 0x43186c
mov ecx, SysReAllocString
jmp 0x431876
mov eax, dword [ebp + 0x10]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ecx
push eax
push edi
call fcn.0040b600
mov ecx, dword [ebp + 0x10]
push esi
push ebx
push eax
mov dword [ebp + 0xc], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call fcn.005577f0
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov eax, dword [ebp - 4]
mov byte [ecx + esi], 0
cmp eax, 0xf
jbe 0x4318e7
lea ecx, [eax + 1]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4318c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43190f
mov eax, edx
push ecx
push eax
call fcn.0055241f
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040c990
call fcn.0055bf8b
int3
Function at 0x433cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c77d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.005523ef
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005553c4
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043a1d0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [ebp - 4], 1
shl ecx, 2
mov edx, ecx
or edx, 2
test bl, 2
cmovne edx, ecx
mov ecx, edx
or ecx, 8
test bl, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
test bl, 4
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp dword [ecx + 0x14], 0xf
mov ebx, dword [ecx + 0x10]
jbe 0x433dbd
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
cmp ebx, 0x7fffffff
ja 0x433e83
test ebx, ebx
je 0x433e63
and eax, 6
cmp al, 6
je 0x433e60
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00432480
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.005577f0
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + esi]
mov dword [edi + 0x38], ecx
add esp, 0x14
mov ecx, eax
and ecx, 4
mov dword [ebp + 8], ecx
jne 0x433e20
mov eax, dword [edi + 0xc]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
test al, 2
jne 0x433e5b
mov edx, dword [edi + 0x38]
test al, 0x18
mov eax, dword [edi + 0x10]
mov ecx, esi
cmovne ecx, edx
sub edx, ecx
cmp dword [ebp + 8], 0
mov dword [eax], esi
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
je 0x433e58
mov eax, dword [edi + 0xc]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
or eax, 1
jmp 0x433e6a
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.005531fd
int3
Function at 0x438e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438e8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x438e8b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x438e7a
cmp esi, edx
jae 0x438e8b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x438e68
cmp esi, edx
jae 0x438e8b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret