joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab36e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [edi + 8]
mov esi, ecx
push eax
push dword [esi + 0x30]
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
je 0x5ab44a
mov ecx, dword [edi + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5ab3b2
sub eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 4]
push edx
inc eax
push eax
push ecx
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x5ab415
and dword [ebp - 8], 0
cmp dword [edi], 0
jbe 0x5ab415
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4082ea
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
mov ecx, esi
call fcn.005aafd5
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x5ab47f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi]
jb 0x5ab3de
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4239aa
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x24], ecx
jne 0x5ab451
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x4239a9
push dword [esi + 0x30]
call ebx
test eax, eax
jne 0x5ab47c
mov eax, 0x8007000e
jmp 0x5ab47f
mov eax, dword [eax + 0x20]
cmp eax, ecx
mov dword [ebp - 0x10], eax
je 0x5ab462
cmp dword [eax], ecx
mov dword [ebp + 8], ecx
ja 0x5ab489
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x4239aa
push dword [esi + 0x30]
call ebx
test eax, eax
mov eax, 0x8007000e
je 0x5ab47f
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
push 4
lea esi, [eax + 4]
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x18], esi
mov edi, 0x40b454
push eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0xc]
push 1
je 0x5ab4f8
push 0x4082ea
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5ab4cc
push 0
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
push 0
lea eax, [ebp - 4]
push eax
push 0x10
push dword [ebp - 0x18]
jmp 0x5ab526
push 0x4239ab
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5ab514
sub eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5ab44a
inc dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
jb 0x5ab486
mov esi, dword [ebp - 0xc]
xor ecx, ecx
jmp 0x5ab462
Function at 0x5afa20
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5afa43
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5afa69
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5afa50
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x5afb20
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5afb57
push esi
call fcn.005b2d60
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5afb50
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x5afbd6
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5afbc0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x5afb7a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x5afbb9
cmp eax, 2
je 0x5afbc0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5afb70
cmp eax, 3
je 0x5afb9d
cmp eax, 1
jne 0x5afb70
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x5afb70
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x5afb70
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005afa20
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x5afbed
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.005afa20
pop esi
pop ebp
ret 4

Function at 0x5bb4d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x625894]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x425a48
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x108]
push 0x425a40
push ecx
mov byte [ebp - 5], 0
call sub.msvcrt.dll__tempnam
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5bb558
push 0
push 0x4000100
push 1
push 0
push 0
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x5bb558
mov dword [esi], 0x5bb3b0
mov dword [esi + 4], 0x5bb420
mov dword [esi + 8], 0x5bb490
jmp 0x5bb58c
mov edx, dword [edi]
mov dword [edx + 0x14], 0x3f
mov eax, dword [edi]
mov edx, 0x4082ea
mov esi, 0x50
add eax, 0x18
mov cl, byte [edx]
test cl, cl
je 0x5bb57f
mov byte [eax], cl
inc eax
inc edx
dec esi
jne 0x5bb570
jmp 0x5bb583
test esi, esi
jne 0x5bb584
dec eax
mov byte [eax], 0
mov eax, dword [edi]
push edi
call dword [eax]
test ebx, ebx
je 0x5bb599
push ebx
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.006056c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5bf2a0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [ebx + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov esi, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push esi
mov dword [ebp - 8], edi
call fcn.005bf030
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x5bf321
mov ebx, dword [ebp + 8]
mov edx, esi
sub ebx, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], eax
mov ecx, dword [ebx + edx]
mov eax, dword [edx]
xor esi, esi
test edi, edi
jbe 0x5bf312
mov edi, edi
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
add edx, esi
add ebx, edx
sar ebx, 1
mov byte [ecx], bl
inc ecx
xor esi, 1
add eax, 2
dec edi
jne 0x5bf2f0
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add edx, 4
dec eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
jne 0x5bf2e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5bf3e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [esi + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov ebx, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push ebx
mov dword [ebp - 0x14], edi
call fcn.005bf030
mov esi, dword [esi + 0xc]
xor ecx, ecx
test esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
jle 0x5bf490
mov edx, ebx
mov dword [ebp - 0xc], edx
test edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [ebp - 4], 1
jbe 0x5bf47f
mov ecx, dword [edx + 4]
sub ecx, eax
mov dword [ebp - 8], edi
jmp 0x5bf440
movzx edi, byte [ecx + eax]
movzx edx, byte [ecx + eax + 1]
mov ebx, dword [ebp - 4]
add edx, edi
movzx edi, byte [eax + 1]
add edi, ebx
movzx ebx, byte [eax]
add edi, edx
mov edx, dword [ebp - 8]
add ebx, edi
sar ebx, 2
mov byte [esi], bl
mov ebx, dword [ebp - 4]
xor ebx, 3
inc esi
add eax, 2
dec edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jne 0x5bf440
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add edx, 8
inc ecx
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jl 0x5bf420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d4e44
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6067ae
call fcn.00605168
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x426a4c
call fcn.005dcb4b
lea eax, [esi + 0x50]
lea ecx, [esi + 0x8c]
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], edi
call fcn.005d3ea3
lea eax, [esi + 0xa8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push 4
pop ecx
mov dword [eax + 0x10], ecx
lea eax, [esi + 0xbc]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x5f0263
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5f0276
xor eax, eax
jmp 0x5f0357
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x5f0337
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
inc edx
dec edi
jne 0x5f0294
pop edi
test eax, eax
je 0x5f0351
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426ba8]
inc edx
dec eax
jne 0x5f033b
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
Function at 0x5f0894
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x5f08c2
test ecx, ecx
jne 0x5f08cc
test esi, esi
jne 0x5f08cc
mov eax, edx
jmp 0x5f093d
cmp eax, 0xffffffff
jne 0x5f08cc
push 0xfffffffffffffffe
pop eax
jmp 0x5f093d
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x5f093d
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x5f0902
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x5f0921
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x5f09ea
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x5f0962
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5f096c
xor ecx, ecx
jmp 0x5f09ab
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x5f098e
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.005f18c6
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x5f09d6
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x5f09ea
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5f08a4
pop edi
pop esi
leave
ret

Function at 0x6056c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x625894]
jne 0x6056d1
test ecx, 0xffff0000
jne 0x6056d1
ret
jmp fcn.006056db
Function at 0x60596e
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x625894]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], esi
jne 0x6059a5
mov eax, 0x8876086c
jmp 0x605ac9
cmp dword [ebp + 0xc], esi
je 0x605a4c
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x605a2e
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp - 0xa4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x9c], eax
jne 0x605a04
mov eax, 0x8007000e
jmp 0x605ac9
push esi
push esi
push dword [ebp - 0xa4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp + 0xc], esi
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x605a4c
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x605a63
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x9c]
mov dword [edi], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x605ab7
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x605ab7
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x605ab7
cmp eax, esi
je 0x605ac4
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x605ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x605ac9
mov dword [edi + 8], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.006056c0
leave
ret 8
Function at 0x605c95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x605caa
call fcn.00605c6f
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x605cbb
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x605cd0
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x605ce0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x605d0f
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x605d0f
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x605d0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x605d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x605d1e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x605d2a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
mov esi, ecx
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi + 4], ecx
lea eax, [ecx + eax - 1]
dec ecx
not ecx
and eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esi + 4], eax
jne 0x605d6f
mov ecx, 0x100000
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
mov dword [esi + 0x14], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x571370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x57138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x59a074
push ecx
mov edi, eax
call fcn.00585198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5713cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0058502e
push esi
call fcn.00584fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x574850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5748ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x59f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5748ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005851e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5748ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x59f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00586082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x574957
mov word [eax], si
add eax, 2
push eax
call fcn.00586030
add esp, 4
jmp 0x574959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5748ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5748b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x574ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x575080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5750c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x59a458
push ecx
call fcn.005851e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005851e1
add esp, 0x10
jmp 0x5750d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0058520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00584dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00575050
mov eax, dword [0x59f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x57513b
push esi
call fcn.00574fb0
add esp, 4
mov dword [0x59f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x57514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00574ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x578440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5784b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x57848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x578471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57847e
add edx, ecx
cmp ebx, edx
jb 0x57848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x578467
xor ecx, ecx
jmp 0x5784a2
test eax, eax
jne 0x578492
xor ecx, ecx
jmp 0x5784a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005783c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret