joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004cfad
Capabilities:
Check if file exists

Disassembly:
push 0x264
mov eax, 0x100777d6
call fcn.1005d50a
and word [ebp - 0x224], 0
push 0x208
lea eax, [ebp - 0x222]
push 0
push eax
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 0x10
lea esi, [ebp - 0x250]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
call fcn.10052498
add esp, 0x10
test eax, eax
je 0x1004d20d
xor edi, edi
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], edi
mov word [ebp - 0x23c], di
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 4], edi
call fcn.10054c67
pop ecx
lea ecx, [ebp - 0x224]
lea esi, [ebp - 0x240]
call fcn.100035ef
mov ebx, 0x10086948
push ebx
call fcn.10054c67
mov edx, dword [ebp - 0x22c]
cmp edx, edi
pop ecx
mov dword [ebp - 0x254], eax
jbe 0x1004d0bf
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x1004d07c
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
lea edi, [ecx + edx*2]
mov ecx, dword [ebp - 0x23c]
jae 0x1004d0bb
lea ecx, [ebp - 0x23c]
jmp 0x1004d0bb
mov eax, dword [ebp - 0x254]
test eax, eax
mov edx, ebx
jbe 0x1004d0af
movzx esi, word [ecx]
cmp word [edx], si
je 0x1004d0b1
inc edx
inc edx
dec eax
jne 0x1004d0a5
xor edx, edx
test edx, edx
je 0x1004d13f
inc ecx
inc ecx
cmp ecx, edi
jb 0x1004d096
or ecx, 0xffffffff
push ecx
xor edi, edi
lea esi, [ebp - 0x240]
call fcn.100039ff
push ebx
call fcn.10054c67
pop ecx
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jbe 0x1004d17a
or edx, 0xffffffff
cmp ecx, edx
ja 0x1004d0ef
lea edx, [ecx - 1]
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x1004d104
lea ecx, [ebp - 0x23c]
lea ecx, [ecx + edx*2]
test eax, eax
mov edi, eax
mov edx, ebx
jbe 0x1004d11c
movzx esi, word [ecx]
cmp word [edx], si
je 0x1004d11e
inc edx
inc edx
dec edi
jne 0x1004d112
xor edx, edx
test edx, edx
je 0x1004d15d
cmp dword [ebp - 0x228], 8
mov edx, dword [ebp - 0x23c]
jae 0x1004d137
lea edx, [ebp - 0x23c]
cmp ecx, edx
je 0x1004d17a
dec ecx
dec ecx
jmp 0x1004d107
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x1004d154
lea eax, [ebp - 0x23c]
sub ecx, eax
sar ecx, 1
jmp 0x1004d0c2
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x1004d172
lea eax, [ebp - 0x23c]
sub ecx, eax
sar ecx, 1
mov eax, ecx
jmp 0x1004d17d
or eax, 0xffffffff
push 0xffffffffffffffff
lea edi, [eax + 1]
lea esi, [ebp - 0x240]
call fcn.100039ff
lea eax, [ebp - 0x258]
mov ecx, esi
call fcn.10006bc3
mov esi, eax
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x240]
call fcn.1000a3dd
mov edi, eax
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x240]
call fcn.10006bc3
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x260]
push eax
call fcn.1004da5d
mov eax, dword [ebp - 0x23c]
add esp, 0x1c
cmp dword [ebp - 0x228], 8
jae 0x1004d1f3
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea esi, [ebp - 0x240]
mov edi, eax
call fcn.100031e5
mov eax, edi
call fcn.1005d58d
ret
Function at 0x1004db77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x1004db95
cmp word [eax], 0
je 0x1004db95
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004db95
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret

Function at 0x1004db98
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x10078194
call fcn.1005d50a
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov esi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.1005c9e9
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x1004dc7d
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x228], edi
call fcn.10050dca
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.10050dca
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.10050dca
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.10050dca
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.10050d35
call fcn.1004d213
jmp 0x1004dda3
push esi
call fcn.10053d45
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.10054f10
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x1004dcc5
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x1004dc1c
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x10086b60
push ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x258], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x1004dd09
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x1004dc1c
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.10055010
mov eax, dword [ebp - 0x284]
shr eax, 0x10
add esp, 0xc
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x228], eax
call fcn.10050dca
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.10050dca
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.10050dca
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.10050dca
push dword [ebp - 0x240]
call fcn.10055375
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.10050d35
lea esi, [ebp - 0x254]
call fcn.1004d213
mov eax, dword [ebp - 0x22c]
call fcn.1005d58d
ret
Function at 0x1004f507
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x10079c9b
call fcn.1005d4a1
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x1004f521
xor eax, eax
jmp 0x1004f655
mov eax, ebx
call fcn.1004e33e
cmp byte [ebp + 8], 0
jne 0x1004f547
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x1004f547
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.1004e14e
jmp 0x1004f554
mov edi, ebx
call fcn.1004fe6b
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.1004f1ce
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.1004f28b
cmp dword [ebx + 0x98], esi
je 0x1004f584
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.1004f415
cmp dword [ebx + 0x90], esi
je 0x1004f599
push dword [ebx + 0x94]
mov eax, ebx
call fcn.1004f349
push 0x10090ffc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.10050534
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10048213
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x20]
je 0x1004f5e0
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x18], eax
je 0x1004f5e5
call fcn.10055955
cmp dword [ebp - 0x14], esi
je 0x1004f63b
lea esi, [ebp - 0x18]
call fcn.1004d514
push dword [eax]
push 0
call fcn.1004d514
add eax, 4
push eax
push ebx
call fcn.1004e3fa
test eax, eax
jne 0x1004f631
push 0x38
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10054f10
or dword [ebp - 0x5c], 0xffffffff
add esp, 0xc
call fcn.1004d514
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
call fcn.1004c4a2
lea esi, [ebp - 0x18]
call fcn.100516a7
jmp 0x1004f5cf
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.100511c4
xor eax, eax
inc eax
call fcn.1005d579
ret 4
Function at 0x10052498
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.10054f10
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.10059109
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.10059109
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1005257b
xor eax, eax
jmp 0x100525bf
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100525b1
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.10054c7d
add ebp, 0x68
leave
ret

Function at 0x10052a17
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x10052a32
xor eax, eax
pop edi
ret
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x10052a51
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x10052a2e
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret
Function at 0x10052ae9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov byte [0x100a1fc4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10052b55
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.EnableLogToView
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10052b4c
cmp dword [ebp - 8], 1
jne 0x10052b4c
mov byte [0x100a1fc4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret

Function at 0x10052dfe
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [edi], ebx
mov word [ebp - 0x20c], bx
call fcn.10054f10
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10052e88
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x10052e88
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.1005a5c7
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.1005cd95
add esp, 0x1c
jmp 0x10052e9b
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.1005a633
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.10054c7d
leave
ret

Function at 0x10052eab
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x10052ed4
push edi
push 0x20
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [esi], eax
je 0x10052f18
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10052f18
cmp eax, 0x2800
ja 0x10052f18
push 2
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.100557a0
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4
Function at 0x10053157
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
jne 0x10053175
jmp 0x100532e6
push ebx
push esi
lea eax, [edx + 0x20]
mov esi, eax
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x40]
mov ecx, 0x4d34d34d
add esi, ecx
add dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
mov eax, 0x2cb2cb2d
sbb esi, esi
neg esi
sub esi, eax
add dword [edx + 0x24], esi
mov esi, dword [edx + 0x24]
cmp esi, dword [ebp - 0x48]
mov esi, 0x34d34d34
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x28], edi
mov edi, dword [edx + 0x28]
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, ecx
add dword [edx + 0x2c], edi
mov edi, dword [edx + 0x2c]
cmp edi, dword [ebp - 0x40]
sbb edi, edi
neg edi
sub edi, eax
add dword [edx + 0x30], edi
mov edi, dword [edx + 0x30]
cmp edi, dword [ebp - 0x3c]
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x34], edi
mov esi, dword [edx + 0x34]
cmp esi, dword [ebp - 0x38]
sbb esi, esi
neg esi
add esi, ecx
add dword [edx + 0x38], esi
mov ecx, dword [edx + 0x38]
cmp ecx, dword [ebp - 0x34]
mov esi, edx
sbb ecx, ecx
neg ecx
sub ecx, eax
add dword [edx + 0x3c], ecx
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 8], esi
sbb eax, eax
neg eax
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x2c]
sub eax, edx
mov ecx, dword [esi + 0x20]
add ecx, dword [esi]
movzx edi, cx
mov esi, ecx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, ecx
imul esi, ecx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [eax + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1005321e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, eax
rol esi, 0x10
add esi, ecx
rol edi, 0x10
add edi, esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [edx], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x24]
rol edi, 0x10
add edi, esi
rol ecx, 0x10
add ecx, edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, esi
rol ecx, 8
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
add edi, ecx
add esi, edi
mov dword [edx + 0x10], esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [edx + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, eax
rol ecx, 0x10
add ecx, esi
rol eax, 8
add eax, dword [ebp - 0x18]
pop esi
add eax, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret
Function at 0x1005332e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
jne 0x1005333b
xor eax, eax
leave
ret
push ebx
push edi
push 0xc
mov edi, str.QQPCMgrLibrary_s
pop ecx
mov eax, edi
call fcn.100532e9
mov ebx, eax
push 8
pop ecx
mov eax, edi
call fcn.100532e9
mov dword [ebp - 8], eax
push 4
pop ecx
mov eax, edi
call fcn.100532e9
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, edi
call fcn.100532e9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [esi + 0x10], ecx
shr ecx, 0x10
mov edi, eax
shl edi, 0x10
or edi, ecx
mov dword [esi + 4], edi
mov ecx, eax
shr ecx, 0x10
mov edi, ebx
shl edi, 0x10
or ecx, edi
mov dword [esi + 0xc], ecx
mov ecx, edx
shl ecx, 0x10
mov edi, ebx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
shl ecx, 0x10
mov edi, edx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
rol ecx, 0x10
mov dword [esi + 0x20], ecx
mov ecx, eax
rol ecx, 0x10
mov dword [esi + 0x28], ecx
mov ecx, ebx
rol ecx, 0x10
mov edi, edx
mov dword [esi + 0x30], ecx
mov ecx, edx
xor edi, ebx
rol ecx, 0x10
mov dword [esi + 0x38], ecx
mov ecx, 0xffff
and edi, ecx
xor edi, ebx
mov dword [esi + 0x24], edi
mov edi, dword [ebp - 4]
xor edi, edx
mov dword [esi + 8], edx
and edi, ecx
xor edi, edx
mov edx, eax
xor edx, dword [ebp - 4]
mov dword [esi], ebx
and edx, ecx
xor edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], edx
mov edx, eax
xor edx, ebx
mov dword [esi + 0x2c], edi
and edx, ecx
xor edx, eax
and dword [esi + 0x40], 0
push 4
mov dword [esi + 0x3c], edx
pop edi
mov edx, esi
call fcn.10053157
dec edi
jne 0x10053419
push 0xfffffffffffffffc
pop edx
push 8
mov ecx, esi
pop edi
mov ebx, dword [ecx]
mov eax, edx
and eax, 7
lea eax, [esi + eax*4 + 0x20]
xor dword [eax], ebx
add ecx, 4
inc edx
dec edi
jne 0x1005342b
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x10053797
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.100536d6
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100537e6
cmp dword [ebp - 0x1c], 5
jb 0x100537fe
jmp 0x100537fa
cmp dword [ebp - 0x10], 1
jne 0x100537fe
cmp dword [ebp - 0x1c], 4
ja 0x100537fa
jne 0x100537fe
cmp dword [ebp - 0x18], 0
jbe 0x100537fe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1007b6bc
call fcn.10001b31
test eax, eax
jge 0x1005381f
mov byte [0x100a1ce4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10054c7d
add ebp, 0x78
leave
ret
Function at 0x10053d30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100a0fb8], 0
push esi
jne 0x10053ca3
call fcn.10053bce
test eax, eax
je 0x10053ce6
mov eax, dword [0x100a0fb8]
cmp eax, 1
jne 0x10053cc4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10053ce6
pop esi
ret
push eax
call dword [0x100a0fc0]
test eax, eax
jne 0x10053d2e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10053cea
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100a0fb8]
call dword [0x100a0fc0]
mov edi, eax
test edi, edi
je 0x10053d11
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10053d2d
lea edi, [esi + 0xff0]
push esi
push dword [0x100a0fb8]
call dword [0x100a0fbc]
add esi, 0x10
cmp esi, edi
jb 0x10053d17
mov eax, esi
pop edi
pop esi
ret
jmp 0x10053c90

Function at 0x10054c7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009d600]
jne 0x10054c87
repz ret
jmp fcn.10060718
Function at 0x10062aed
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1009de60]
je 0x10062b08
inc edi
cmp edi, 0x17
jb 0x10062af9
cmp edi, 0x17
jae 0x10062c88
push ebp
push 3
call fcn.100722ee
cmp eax, 1
pop ecx
je 0x10062c54
push 3
call fcn.100722ee
test eax, eax
pop ecx
jne 0x10062b3c
cmp dword [0x100a1218], 1
je 0x10062c54
cmp ebx, 0xfc
je 0x10062c87
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a1608
push ebp
call fcn.1006279b
add esp, 0xc
test eax, eax
je 0x10062b72
push esi
push esi
push esi
push esi
push esi
call fcn.10055835
add esp, 0x14
push 0x104
mov esi, 0x100a1621
push esi
push 0
mov byte [0x100a1725], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10062bb6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1006279b
add esp, 0xc
test eax, eax
je 0x10062bb6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10055835
add esp, 0x14
push esi
call fcn.100557a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10062bfb
push esi
call fcn.100557a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a191c
push 0x1007c9c4
sub ecx, eax
push ecx
push eax
call fcn.1005cbb2
add esp, 0x14
test eax, eax
je 0x10062bfb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10055835
add esp, 0x14
jmp 0x10062bfd
xor esi, esi
push 0x1007c9c0
push ebx
push ebp
call fcn.1007041d
add esp, 0xc
test eax, eax
je 0x10062c1d
push esi
push esi
push esi
push esi
push esi
call fcn.10055835
add esp, 0x14
push dword [edi*8 + 0x1009de64]
push ebx
push ebp
call fcn.1007041d
add esp, 0xc
test eax, eax
je 0x10062c3f
push esi
push esi
push esi
push esi
push esi
call fcn.10055835
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10072131
add esp, 0xc
jmp 0x10062c87
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10062c87
cmp ebp, 0xffffffff
je 0x10062c87
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1009de64]
push dword [esi]
call fcn.100557a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret