joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424a90
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x20000000
push 0
push 0
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x424acb
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
push esi
push 0x34
push str.magictoolsvr
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x424af9
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x424b1d
cmp dword [ebp - 0x1c], 1
jne 0x424b8d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x424b3b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x424b8c
nop dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
je 0x424b7c
inc edi
cmp edi, 0xa
je 0x424b76
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x424b50
jmp 0x424b8c
mov byte [ebp - 0x21], 0
jmp 0x424b8c
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
mov byte [ebp - 0x21], 1
pop edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop esi
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x424bb0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x20000000
push 0
push 0
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x424beb
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
push esi
push 0x34
push str.magictoolsvr
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x424c19
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x424c46
mov ecx, dword [ebp - 0x1c]
cmp ecx, 4
je 0x424c35
cmp ecx, 2
jne 0x424cb3
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x424c64
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x424cb2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x424ca2
inc edi
cmp edi, 0xa
je 0x424c9c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x424c76
jmp 0x424cb2
mov byte [ebp - 0x21], 0
jmp 0x424cb2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
mov byte [ebp - 0x21], 1
pop edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop esi
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret

Function at 0x426e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x426e79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x426eb6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x426eb2
nop word [eax + eax]
cmp esi, edx
jae 0x426eb6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x426ea0
cmp esi, edx
jb 0x426ebd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x427a60
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x427a80
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x38
and edx, 0x3f
mov eax, 0x78
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovb eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.00427990
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00427990
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub edi, 1
jne 0x427af0
xor eax, eax
mov edi, esi
xorps xmm0, xmm0
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
movups xmmword [ebx], xmm0
pop edi
movups xmmword [ebx + 0x10], xmm0
pop esi
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret 4
Function at 0x428320
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597693
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0xbc], vtable.MD5_CTX.0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb8], 0x67452301
mov dword [ebp - 0xb4], 0xefcdab89
mov dword [ebp - 0xb0], 0x98badcfe
mov dword [ebp - 0xac], 0x10325476
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x60], 0x80
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4283db
push 0x80070057
call fcn.00427410
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4283f8
push esi
lea ecx, [ebp + 8]
call fcn.004258f0
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0xbc]
call fcn.00427990
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00427a60
push ecx
lea edx, [ebp - 0x20]
mov dword [edi], 0
mov ecx, edi
call fcn.00428280
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42844a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x428e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5977d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x14], 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428f3f
mov edx, dword [ebp - 0x14]
add edx, 2
jns 0x428ed8
push 0x80070057
call fcn.00427410
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x428ef3
push edx
mov ecx, esi
call fcn.00427130
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push 0
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428f3f
mov eax, dword [esi]
test eax, eax
jne 0x428f16
xor ecx, ecx
jmp 0x428f28
push dword [eax - 8]
push eax
call fcn.004d3454
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x428ece
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x428ece
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
lea esi, [edx + 1]
mov word [eax + ecx*2], dx
jmp 0x428f41
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x428f63
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret 8
Function at 0x42c230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597ba2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6073a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov esi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x42c38c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push esi
call fcn.0043c4c7
add esp, 4
mov dword [ebp - 4], 0
push 0x5f9140
push 0x86
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42c38c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
call fcn.0043c4c7
add esp, 4
push dword [ebp - 0x14]
push edi
call fcn.0043c6f3
add esp, 8
push 0x4ac
call fcn.004c9268
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x4ac
push 0
push esi
mov byte [ebp - 4], 1
call fcn.004cbb60
add esp, 0xc
mov ecx, esi
push ebx
call fcn.004202d0
mov byte [ebp - 4], 0
mov esi, eax
mov ecx, esi
push 0
push closesocket
push closesocket
push closesocket
push closesocket
test bl, bl
jne 0x42c346
push 0x100
push 0x96c80000
push 0x5f8c44
push 0
call fcn.0043de71
push 0x6b
mov ecx, esi
call fcn.0043e252
mov ecx, esi
call fcn.0043dd1d
push 1
jmp 0x42c36e
push 0x81
push 0x96c80000
push 0x5f8c44
push 0
call fcn.0043de71
push 0x6b
mov ecx, esi
call fcn.0043e252
mov ecx, esi
call fcn.0043dd1d
push 0
mov ecx, esi
call fcn.0043e2e5
test edi, edi
je 0x42c380
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c3b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597bcb
mov eax, dword fs:[0]
push eax
sub esp, 0xa10
mov eax, dword [0x6073a4]
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
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004cbb60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.0042c5b0
add esp, 4
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x42c433
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa1c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa1c]
push str._smain.ini
push eax
call fcn.00425da0
mov esi, dword [ebp - 0xa1c]
mov ecx, 1
add esp, 0xc
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x42c48b
push 0
lea ecx, [ebp - 0xa1c]
call fcn.00427130
mov esi, dword [ebp - 0xa1c]
mov ecx, esi
call fcn.0042c790
test eax, eax
je 0x42c574
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.004cbb60
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
add esp, 0xc
or eax, ecx
jge 0x42c4d2
push 0
lea ecx, [ebp - 0xa1c]
call fcn.00427130
mov esi, dword [ebp - 0xa1c]
push esi
push 0x400
lea eax, [ebp - 0xa18]
push eax
push 0x5f8c44
push 0x5f8514
push 0x5f8294
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test ebx, ebx
je 0x42c512
lea ecx, [ebp - 0xa18]
mov eax, ecx
sub ebx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x42c502
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x42c534
push 0
lea ecx, [ebp - 0xa1c]
call fcn.00427130
mov esi, dword [ebp - 0xa1c]
push esi
push 0x400
lea eax, [ebp - 0xa18]
push eax
push 0x5f8c44
push 0x5f850c
push 0x5f8294
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test edi, edi
je 0x42c574
lea ecx, [ebp - 0xa18]
mov eax, ecx
sub edi, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x42c564
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42c593
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x42c5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x6073a4]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push str.DATA
mov edi, ecx
mov dword [esp + 0x10], edx
push 0x84
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x42c6a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov edx, esi
mov ecx, eax
call fcn.00435440
mov esi, eax
add esp, 8
test esi, esi
je 0x42c690
cmp dword [esi], 1
je 0x42c626
mov dword [0x6155cc], 0x80000
jmp 0x42c637
push dword [esp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004347b0
mov dword [0x6155cc], eax
cmp dword [esi], 1
mov dword [esp + 0xc], 0xffffffff
jne 0x42c66c
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
sub esp, 8
call fcn.00434e60
mov dword [0x6155cc], eax
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x42c69a
cmp dword [esi], 1
je 0x42c678
mov dword [0x6155cc], 0x80000
jmp 0x42c69a
sub esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.00435080
mov dword [0x6155cc], eax
jmp 0x42c69a
mov dword [0x6155cc], 0x10000
mov ecx, esi
call fcn.00435560
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret

Function at 0x42c6c0
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42c6f4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 8]
push eax
push 0x59c7d0
push 1
push 0
push 0x59c810
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x42c722
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 0x59c830
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x42c710
mov eax, dword [ebp - 8]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
push 2
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x42d9a0
Capabilities:
Access peb ldr_data
Check os version
Get process heap force flags
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597e79
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6073a4]
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
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], ebx
mov dword [ebx], 0
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x42d9ff
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
pushal
mov ebx, dword fs:[0x18]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa8]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
popal
cmp dword [ebp - 0x38], 5
jl 0x42daad
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42da6f
lea ecx, [ebp - 0x34]
push ecx
call eax
jmp 0x42da79
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x34]
cmp ax, 9
je 0x42da8e
cmp ax, 6
mov eax, 0x20
jne 0x42da93
mov eax, 0x40
mov esi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push str.w_02d_02dx_d
push esi
call fcn.00425da0
add esp, 0x14
jmp 0x42dab0
mov esi, dword [ebp - 0x40]
mov eax, esi
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.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x432a00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x432a0b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x432ac7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
sub edi, 1
jne 0x432a20
pop edi
test esi, esi
je 0x432aea
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f6998]
sub esi, 1
jne 0x432ad0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4331c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x433206
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x433201
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x43322e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x433217
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004cc330
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
Function at 0x433250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x433295
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x433290
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x4332c2
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4332a6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004cc330
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4332e0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4332cd
cmp byte [esi + 8], 0
je 0x4332cd
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret