joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a06a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40a083
mov eax, dword [ebp - 4]
jmp 0x40a15d
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x40a138
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x44bc20]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x44bc20]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x44bc20]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x44bc20]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x44bc20]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x44bc20]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x44bc20]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x44bc20]
dec ebp
jne 0x40a0a2
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x40a154
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x44bc20]
dec ecx
jne 0x40a142
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af06
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4

Function at 0x40ea3d
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40ea48
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x40eb03
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
sub eax, 8
dec edi
jne 0x40ea68
pop edi
test eax, eax
je 0x40eb1c
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x44dbb8]
inc edx
dec eax
jne 0x40eb07
mov eax, esi
pop esi
not eax
pop ebx
ret
Function at 0x40eb23
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movzx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44dbb8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44dbb8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x42f1ca
Capabilities:
Encode data using xor

Disassembly:
xor cl, byte [edx]
out 0x94, eax
sub dword [edx - 0x4381a7fe], esp
in al, 0xee
mov dword [0xbcf0d438], eax
xor cl, 0x37
lcall 0xad2b, 0xff4b7e8f
pop edx
mov esp, 0x5c961e9a
sub dword [esi + 0x5b870d72], 0xffffff92
arpl word [eax], cx
invalid
Function at 0x4018b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442af0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x44a3e8
call fcn.00401e70
mov byte [esp + 0x20], 1
mov esi, dword [esp + 0x2c]
push 0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push esi
call fcn.00401e00
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x28], 0
call fcn.004017b0
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40194b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x402100
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 0x402119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402150
lea ebx, [ebx]
cmp esi, eax
jae 0x402154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402140
cmp esi, eax
jb 0x40215a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403c10
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x443050
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.00401e70
lea eax, [esp + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00405df0
mov ecx, dword [esp + 4]
push 0x5c
push ecx
call fcn.00429d28
add esp, 8
test eax, eax
jne 0x403c6d
or eax, 0xffffffff
jmp 0x403c73
sub eax, dword [esp + 4]
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00405f30
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00401c70
mov byte [esp + 0x14], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 4]
add ecx, 0xd8
push edx
call fcn.00401c70
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4

Function at 0x403dc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x443828
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403e36
call fcn.00403e70
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x404020
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
lea eax, [esp + 8]
push 0
push eax
call fcn.0042af00
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404211
mov eax, dword [esp + 0x14]
sub eax, 1
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
je 0x404094
sub eax, 1
je 0x4040dd
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp ecx, 4
jne 0x4040dd
cmp edx, 0xa
jne 0x4040bb
mov esi, 0x29
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp edx, 0x5a
jne 0x40410f
mov esi, 0x31
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp ecx, 3
jne 0x40410a
cmp dword [esp + 0xc], 0x33
jne 0x404219
mov esi, 0x23
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp ecx, 4
jne 0x404134
test edx, edx
jne 0x404219
mov esi, 0x23
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp ecx, 5
jne 0x4041a6
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40415e
mov esi, 0x32
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp eax, 1
jne 0x404180
mov esi, 0x33
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp eax, 2
jne 0x404219
mov esi, 0x34
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp ecx, 6
jne 0x404219
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4041cd
mov esi, ecx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp eax, 1
jne 0x4041ef
mov esi, 0x3d
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
cmp eax, 2
jne 0x404219
mov esi, 0x3e
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00429384
add esp, 0x118
ret

Function at 0x404240
Capabilities:
Get session user name

Disassembly:
sub esp, 0x808
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x804], eax
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 8], 0
push 2
mov dword [esp + 0xc], 0x400
call sub.Secur32.dll_GetUserNameExW
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00401e70
mov ecx, dword [esp + 0x804]
xor ecx, esp
mov eax, esi
call fcn.00429384
add esp, 0x808
ret
Function at 0x4042a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4435e7
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4567a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea edi, [ebp - 0x81c]
mov dword [ebp - 4], 1
call fcn.00404520
push 0xb
push str.Ascentive_
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00402ce0
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40430d
mov eax, edi
call fcn.004046b0
push 0x44a3e8
lea ecx, [ebp - 0x820]
call fcn.00401e70
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x81c]
push ecx
push edx
lea eax, [ebp - 0x820]
push str._s_s
push eax
call fcn.004022a0
add esp, 0x10
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 4
call fcn.00415c6c
mov dword [ebp - method.CStdioFile.virtual_0], 0x44b784
mov byte [ebp - 0x840], 0
mov dword [ebp - 0x838], 0xffffffff
push 0
push 0xffffffffffffffff
mov bl, 5
push 0
lea ecx, [ebp - 0x834]
mov byte [ebp - 4], bl
call fcn.004061d0
lea ecx, [ebp - 0x834]
push ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x820]
push 0x25012
push edx
lea ecx, [ebp - 0x854]
call fcn.0040abe0
test eax, eax
je 0x4043cb
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x854]
call fcn.0040aef0
lea ecx, [ebp - 0x854]
call fcn.0041600b
lea ecx, [ebp - 0x854]
call fcn.00416034
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 4
call fcn.00416070
mov dword [ebp - 4], 3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404436
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40445c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40447f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429384
mov esp, ebp
pop ebp
ret 8
Function at 0x404520
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x442966
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x22]
push ebx
mov dword [esp + 0x14], ebx
push eax
mov word [esp + 0x28], bx
call fcn.0042af00
add esp, 0xc
call fcn.00413b0f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404591
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push 0x23
push ebx
mov dword [esp + 0x44c], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4045d3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push 0x44a9bc
push eax
call fcn.004022a0
jmp 0x40464f
push 0x206
lea eax, [esp + 0x22a]
push ebx
push eax
mov word [esp + 0x230], bx
call fcn.0042af00
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov byte [esp + 0x444], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404631
lea ecx, [esp + 0x10]
lea ebx, [esp + 0x224]
mov esi, str.AppData
call fcn.00409940
xor ebx, ebx
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x10]
push 0x44a9bc
push eax
call fcn.004022a0
mov byte [esp + 0x444], bl
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00401e00
or edx, 0xffffffff
add eax, 0x10
mov dword [esp + 0x448], edx
lea ecx, [esi + 0xc]
mov dword [edi], eax
add esp, 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404684
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00429384
add esp, 0x430
ret
Function at 0x4046b0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
xor esi, esi
lea eax, [esi + 1]
test eax, eax
jl 0x404727
mov ecx, dword [edi]
cmp eax, dword [ecx - 0xc]
jge 0x404727
lea eax, [ecx + eax*2]
push 0x5c
push eax
call fcn.00429d06
add esp, 8
test eax, eax
je 0x404727
sub eax, dword [edi]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x404727
push esi
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00405f30
mov edx, dword [eax]
push 0
push edx
call ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4046c6
mov ecx, dword [edi]
push 0
push ecx
call ebx
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x404744
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401b80
mov edi, dword [edi]
push 6
push edi
call fcn.00429c94
add esp, 8
neg eax
pop edi
sbb eax, eax
pop esi
add eax, 1
pop ebx
pop ecx
ret
Function at 0x405220
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428c3
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4567a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call fcn.0040f601
cmp eax, edi
mov dword [ebp - 0x22c], eax
jne 0x4052ae
push str.pWnd_is_NULL_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4053d8
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
push 0x206
lea ecx, [ebp - 0x222]
push edi
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x224], di
call fcn.0042af00
mov eax, dword [ebx + 0xc0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x40533d
push str.StartupScreenLoaded
lea ecx, [ebp - 0x228]
call fcn.00409aa0
cmp eax, 1
jne 0x40533d
mov eax, dword [ebx + 0xc0]
lea ecx, [ebp - 0x228]
push ecx
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x40533d
lea ecx, [ebp - 0x228]
lea ebx, [ebp - 0x224]
mov esi, str.StartupScreenLoaded
call fcn.00409940
mov ecx, str.True
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40536e
cmp dx, di
je 0x40536a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40536e
add eax, 4
add ecx, 4
cmp dx, di
jne 0x405348
xor eax, eax
jmp 0x405373
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
mov esi, dword [ebp - 0x22c]
jne 0x40538a
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
jmp 0x405396
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
mov ecx, esi
call fcn.0041402e
mov esi, dword [esi + 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4053da
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00429384
mov esp, ebp
pop ebp
ret 4
Function at 0x405a80
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4426b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
movzx eax, word [ebp + 8]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x405b9d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x405aff
push str.Can_not_allocate_enough_memory_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.00431120
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 0x18]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x405b4c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
push 0x44993c
push 0
push edi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x14], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0x14]
push 4
push edi
push edi
push edi
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
mov dword [ebp + 8], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406430
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x44afe8
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push esi
push 0x44b080
push 1
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40648b
push str.Scheduled_Task:_CoCreateInstance_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00429384
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov al, 1
call fcn.00429384
add esp, 0x1c
ret