joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425480
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ecx], eax
xor edx, edx
lea ebx, [edi + 0x21c]
mov word [ebx], dx
mov dword [edi + 0x430], 0xffffffff
mov dword [edi + 0x428], eax
mov dword [edi + 0x424], eax
mov byte [edi + 0x42c], al
cmp dword [ebp + 0x14], eax
jne 0x425584
mov esi, dword [ebp + 0xc]
push esi
mov eax, edi
call fcn.00425710
test eax, eax
jne 0x425645
cmp word [ebx], ax
je 0x425584
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4254e5
mov ecx, dword [edi + 0x218]
sub eax, edx
sar eax, 1
inc eax
lea edx, [ecx + eax]
cmp edx, 0x104
jg 0x425640
push eax
lea eax, [edi + ecx*2 + 0x10]
push ebx
push eax
call fcn.00524182
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ebx, [edi + 0x434]
push ebx
push 0x104
lea edx, [edi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x425640
cmp eax, 0x104
ja 0x425640
push esi
call fcn.00425880
test eax, eax
jne 0x425645
push esi
call fcn.004257e0
test eax, eax
jne 0x425645
push esi
mov esi, edi
call fcn.00425920
test eax, eax
jne 0x425645
cmp byte [edi + 0x42c], al
je 0x42558f
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0xc], 0
je 0x425640
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4255c2
test al, 0x10
jne 0x4255de
test al, 1
je 0x4255b9
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4255de
mov eax, dword [esp + 0xc]
movzx esi, word [eax]
xor ecx, ecx
push ecx
push ebx
push ecx
mov word [eax], cx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [esp + 0xc]
mov word [edx], si
mov eax, ebx
call fcn.00425a50
mov esi, eax
test esi, esi
jne 0x425608
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x425645
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [edi + 0x63c]
test eax, eax
je 0x42562a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x63c], esi
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x425660
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp word [esi + 0x21c], 0
je 0x425702
cmp dword [esp + 0xc], 0
je 0x42569c
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x425702
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x63c], 0
xor eax, eax
pop esi
ret 8
cmp dword [esi + 0x424], 0
lea ecx, [esi + 0x424]
jne 0x4256b4
cmp dword [esi + 0x428], 0
je 0x4256cd
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x4256cd
mov eax, dword [eax + 8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x4256e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x63c], 0
mov eax, dword [esi + 0x430]
cmp eax, 0xffffffff
je 0x425702
push eax
add esi, 0x434
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
ret 8

Function at 0x425aa0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425ad6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x425ad1
mov edx, dword [esp + 0xc]
mov dword [eax], edx
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x425aea
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x42f990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e163
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov dword [esp + 0x14], edi
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], edi
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x42f9f3
mov dword [eax], edi
jmp 0x42f9f5
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x42fa10
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
jmp 0x42fa12
xor eax, eax
push edi
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], edi
call fcn.00443f80
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x440fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e163
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov dword [esp + 0x14], edi
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], edi
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x441023
mov dword [eax], edi
jmp 0x441025
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x441040
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
jmp 0x441042
xor eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esi + 0x58], edi
call fcn.00443f80
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x442890
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.005299aa
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x442a09
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x4428e3
mov eax, dword [esi + 0x40]
jmp 0x4428e6
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.00441130
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x4429a4
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x442928
cmp byte [edi], dl
jmp 0x44292c
cmp word [edi], 0
sete dl
test edx, edx
je 0x442956
test eax, eax
je 0x44294f
cmp edi, eax
je 0x44294f
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00528350
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x44291b
test eax, eax
je 0x442979
cmp edi, eax
je 0x442979
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00528350
add esp, 0xc
test ebp, ebp
je 0x4429a4
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00441130
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x4429fb
test byte [esi + 4], 0x80
je 0x4429fb
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4429d6
jmp 0x4429c0
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x4429c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.00441130
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.004422d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x442f10
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x442f2c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x442fa6
test edx, edx
jne 0x442f65
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00450c1a
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00524660
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x442f82
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x442f70
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.00441130
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.0052a334
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x442fcb
push edi
call fcn.00450c25
add esp, 4
test bl, bl
je 0x44300e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x442feb
mov eax, dword [esi + 0x40]
jmp 0x442fee
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.00441130
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.004422d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x444380
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x54a479
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [ebp + 4]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov word [edi], ax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4443e0
sub eax, edx
mov esi, dword [ebp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp esi, eax
ja 0x444431
cmp dword [ebp + 0x18], eax
je 0x444431
push 1
push eax
mov ecx, ebp
call fcn.0040c7a0
test al, al
je 0x444431
cmp dword [ebp + 0x18], 8
mov dword [ebp + 0x14], esi
jb 0x44442b
mov edi, dword [edi]
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x44454b
mov esi, dword [esp + 0x38]
and esi, 0x100
mov dword [esp + 0x14], esi
test esi, esi
je 0x444468
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x444531
movzx ecx, ax
movsx edi, byte [ecx + 0x58edee]
jmp 0x44447f
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x444531
movzx ecx, ax
movsx edi, byte [ecx + 0x58ee0a]
test edi, edi
je 0x444531
test byte [esp + 0x38], 8
je 0x444507
cmp ax, 0x26
jne 0x444507
movzx eax, word [ebx + 2]
lea esi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x4444b2
movzx ecx, ax
movsx ecx, byte [ecx + 0x58ee2d]
test ecx, ecx
jne 0x4444b8
cmp ax, 0x7f
jbe 0x444507
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
je 0x4444ef
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x4444dc
movzx ecx, ax
movsx ecx, byte [ecx + 0x58ee83]
test ecx, ecx
jne 0x4444e2
cmp ax, 0x7f
jbe 0x444507
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
jne 0x4444c5
mov eax, esi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
mov ecx, ebp
call fcn.0040c4c0
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x44453b
mov edx, dword [edi*4 + 0x5b2ec4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444513
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.0040c4c0
mov esi, dword [esp + 0x14]
jmp 0x44453b
push 1
push ebx
mov ecx, ebp
call fcn.0040c4c0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x44444b
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x446d00
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
cmp byte [0x5b8531], 0
je 0x446d18
cmp byte [esp + 4], 0
jne 0x446d18
mov eax, 0x11
ret 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 8], eax
test eax, eax
jge 0x446d2c
xor eax, eax
ret 4
push esi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x446d50
cmp eax, 0x80010119
jne 0x446dad
lea esi, [edi + 4]
push esi
push 0x588eb8
push 1
push 0
push 0x588f88
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x446da7
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x58fc30
push eax
call edx
test eax, eax
jl 0x446da7
mov eax, dword [edi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x446dad
xor eax, eax
pop esi
ret 4
mov byte [0x5b8531], 1
mov eax, 1
pop esi
ret 4
Function at 0x449e90
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x54d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push esi
push 0x5902b0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [esp + 0x14]
xor eax, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call fcn.00449d80
mov dl, byte [esp + 0x12]
add byte [esp + 0x1c], dl
mov cl, byte [esp + 0x21]
mov al, byte [esp + 0x1e]
add al, byte [esp + 0x13]
add byte [esp + 0x1f], bl
add cl, dl
movzx edx, bh
push edx
movzx edx, bl
push edx
movzx edx, byte [esp + 0x28]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x2b]
push edx
push ecx
movzx ecx, byte [esp + 0x30]
movzx edx, al
movzx eax, byte [esp + 0x31]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x54]
push 0x11
push edx
call fcn.00529372
add esp, 0x2c
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x14]
call fcn.0043bff0
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov esi, dword [eax]
cmp esi, ebx
je 0x449f8e
cmp dword [esi + 4], ebx
jne 0x449f89
mov ecx, dword [esi]
push ecx
call fcn.00547000
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x449f90
xor esi, esi
push esi
lea ecx, [esp + 0x20]
call fcn.0042aa30
push eax
push str.MachId
mov ecx, edi
mov byte [esp + 0x58], 1
call fcn.0042bee0
mov ecx, eax
call fcn.0042aed0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], bl
call fcn.0042add0
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x44a000
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x44a000
cmp esi, ebx
je 0x44a000
mov eax, dword [esi]
cmp eax, ebx
je 0x449fe7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x449ff7
push eax
call fcn.00450c25
add esp, 4
push esi
call fcn.00450c25
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00523c2c
add esp, 0x48
ret
Function at 0x44a020
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
mov edi, ecx
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push 0x5902b0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [esp + 0x10]
xor eax, eax
lea esi, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
call fcn.00449d80
mov dl, byte [esp + 0xe]
add byte [esp + 0x18], dl
mov cl, byte [esp + 0x1d]
mov al, byte [esp + 0x1a]
add al, byte [esp + 0xf]
add byte [esp + 0x1b], bl
add cl, dl
movzx edx, bh
push edx
movzx edx, bl
push edx
movzx edx, byte [esp + 0x24]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x27]
push edx
push ecx
movzx ecx, byte [esp + 0x2c]
movzx edx, al
movzx eax, byte [esp + 0x2d]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x44]
push 0x11
push edx
call fcn.00529372
add esp, 0x2c
call fcn.00413ca0
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44a0e4
sub eax, ecx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.0040e2b0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00523c2c
mov esp, ebp
pop ebp
ret
Function at 0x44b2f0
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 0x44b309
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44b344
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x44b340
lea ebx, [ebx]
cmp esi, eax
jae 0x44b344
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x44b330
cmp esi, eax
jb 0x44b34a
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 0x44ba60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a3d9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov word [esi + 4], dx
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov word [esi + 0x20], dx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x54]
push ecx
mov byte [esp + 0x18], 2
call fcn.0041bcd0
lea edx, [esi + 0x6c]
push edx
mov byte [esp + 0x18], 3
call fcn.0044d0f0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x44ecbe
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.SHENGQUGAMES_INSTALLER_CHECK_SINGLE
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44ecf9
push 0
push 0x55090c
push 0x5508f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x44f184
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x5b2f00]
push 0
call fcn.004775e4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2c8]
call fcn.004035a0
pop esi
jmp dword [sym.imp.USER32.dll_PostQuitMessage]
Function at 0x450337
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x148
lea ebp, [esp - 4]
mov eax, dword [0x5b0630]
xor eax, ebp
mov dword [ebp + 0x148], eax
push 0xc
mov eax, 0x547875
call fcn.00523c3b
mov esi, ecx
mov eax, dword [esi]
push str.ZIPRES
call dword [eax + 0x14]
push eax
call fcn.0045aa7d
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x450485
push edi
call fcn.0045aa7d
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
push edi
test eax, eax
jne 0x4503a1
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x450485
call fcn.0045aa7d
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x450485
push edi
call fcn.00450c1a
pop ecx
mov dword [0x5b2f10], eax
test eax, eax
je 0x4503e0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x5b2f10]
call fcn.00524660
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
push dword [0x5b2f10]
call fcn.0045aaf4
pop ecx
pop ecx
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004775e4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004775e4
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [esi + 4]
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.0045a948
lea ecx, [ebp]
call fcn.0046282e
and dword [ebp - 4], 0
push 0
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x14], 0x550a54
lea ecx, [ebp]
mov dword [ebp - 0x10], esp
mov dword [eax], str.InstallFrame.xml
call fcn.00463056
push eax
mov ecx, edi
call fcn.0045dc0d
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.0045b143
mov ecx, esi
call fcn.0045006e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0045e9b7
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 + 0x148]
xor ecx, ebp
call fcn.00523c2c
add ebp, 0x14c
leave
ret 0x10

Function at 0x45a8c4
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x45a8da
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x45a8e6
or edi, 1
push 1
call esi
test ax, ax
jge 0x45a8f2
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x45a8fe
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x45a90a
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret