joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10081191
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x158], eax
lea esi, [esp + 0x54]
push 0x104
push 0xff
push esi
call fcn.101db130
add esp, 0xc
mov dword [esi - 0xc], esi
mov dword [esi - 8], esi
lea eax, [esp + 0x154]
mov dword [esi - 4], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
xorps xmm0, xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
mov dword [eax + 0x28], 0xffff
xor edi, edi
dec edi
lea ebx, [esp + 8]
mov dword [ebx], edi
mov dword [ebx + 4], edi
push eax
push dword [ebp + 0xc]
push ebx
call fcn.100807f3
add esp, 0xc
cmp dword [ebx], esi
je 0x1008123a
mov esi, dword [ebp + 8]
call fcn.101ad951
cmp dword [esp + 0xc], eax
jne 0x10081286
cmp dword [esp + 8], 2
jne 0x10081286
cmp byte [ebp + 0x10], 0
je 0x10081286
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081290
mov esi, dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [esp + 0x48]
push eax
push dword [ebp + 0xc]
push esi
call fcn.10080c93
add esp, 0xc
cmp dword [esi], 0
lea edi, [esp + 0x54]
jne 0x10081294
cmp dword [esp + 0x34], 3
jne 0x100812bd
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x100812de
movsd xmm0, qword [esp + 8]
movsd qword [esi], xmm0
lea edi, [esp + 0x54]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x100812a5
push eax
call fcn.101e1d65
add esp, 4
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x1008130f
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.1007f423
add esp, 8
call fcn.101ad951
cmp dword [esi + 4], eax
jne 0x10081294
cmp dword [esi], 2
jne 0x10081294
cmp byte [ebp + 0x10], 0
je 0x10081294
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081294
Function at 0x8679a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x427000]
push edi
or ebp, 0xffffffff
jmp 0x8679c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8679c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8679b8
mov eax, 1
add ebx, ebx
jne 0x8679db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8679ec
jne 0x867a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867a0b
dec eax
add ebx, ebx
jne 0x8679f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8679d0
add ebx, ebx
jne 0x867a07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x867a5d
xor ecx, ecx
sub eax, 3
jb 0x867a23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x867a92
sar eax, 1
mov ebp, eax
jmp 0x867a2e
add ebx, ebx
jne 0x867a2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8679fc
inc ecx
add ebx, ebx
jne 0x867a3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8679fc
add ebx, ebx
jne 0x867a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x867a3e
jne 0x867a5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x867a3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x867a7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x867a6e
jmp 0x8679be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x867a7c
add edi, ecx
jmp 0x8679be
pop esi
mov edi, esi
mov ecx, 0xc45
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x867a9a
cmp byte [edi], 6
jne 0x867a9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x867a9f
lea edi, [esi + 0x465000]
mov eax, dword [edi]
or eax, eax
je 0x867b0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46a040]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46a0a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x867acc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46a0a8]
or eax, eax
je 0x867b08
mov dword [ebx], eax
add ebx, 4
jmp 0x867ae9
call dword [esi + 0x46a0a4]
mov ebp, dword [esi + 0x46a0ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x867b42
sub esp, 0xffffff80
jmp 0x40ad30
Function at 0x413a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edx + 4]
push ebx
push esi
mov esi, dword [edx]
mov edx, eax
push edi
mov edi, dword [ebp + 8]
and edx, 0x3fff
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
shl eax, 0x10
lea ecx, [edi + 1]
sar eax, 0x1e
sar ecx, 1
mov dword [ebp - 8], ecx
cmp ecx, eax
jne 0x413aba
cmp edx, 0x1021
jb 0x413b2c
inc esi
xor edx, edx
lea ebx, [edx + 1]
xor ecx, ecx
cmp ebx, 2
jb 0x413add
nop word [eax + eax]
movzx eax, word [ecx*2 + 0x4a3a84]
inc ecx
cmp ebx, eax
jae 0x413ad0
movzx eax, byte [ecx + 0x4a4380]
add esi, eax
mov eax, dword [ebp + 8]
mov ecx, eax
sar eax, 0x1e
shr ecx, 0x10
and ecx, 0x3fff
test edi, edi
je 0x413b57
sar edi, 1
cmp edi, eax
jne 0x413b0a
cmp ecx, 0x1021
jb 0x413b4e
inc esi
xor ecx, ecx
inc ecx
xor edx, edx
cmp ecx, 2
jb 0x413b21
movzx eax, word [edx*2 + 0x4a3a84]
inc edx
cmp ecx, eax
jae 0x413b14
movzx eax, byte [edx + 0x4a4380]
add esi, eax
jmp 0x413b59
xor ecx, ecx
cmp edx, 2
jb 0x413b40
movzx eax, word [ecx*2 + 0x4a3a84]
inc ecx
cmp edx, eax
jae 0x413b33
movzx eax, byte [ecx + 0x4a4380]
sub esi, eax
jmp 0x413abc
call fcn.004136c0
sub esi, eax
jmp 0x413b0c
mov edi, eax
mov eax, dword [ebp - 8]
and ebx, 0x3fff
mov edx, dword [ebp - 4]
and eax, 3
shl edi, 0x10
and ecx, 0x3fff
or edi, eax
shl ecx, 0x10
shl edi, 0xe
or edi, ebx
mov dword [edx], esi
xor edi, ecx
mov dword [edx + 4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 8], edi
mov edx, dword [edi]
mov byte [edx + 0x16], al
mov edx, dword [edi]
mov byte [edx + 0x17], al
mov edx, dword [edi]
mov byte [edx + 0x18], al
mov edx, dword [edi]
mov byte [edx + 0x19], al
cmp dword [edi + 4], eax
jle 0x4222ab
mov ebx, dword [edi]
nop dword [eax]
movzx edx, byte [ebx + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4b2db0]
cmp esi, dword [edi + 4]
jl 0x422290
mov ebx, dword [edi + 0xc]
xor esi, esi
test ebx, ebx
jle 0x4222d4
mov edi, dword [edi + 8]
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4b2db0]
cmp esi, ebx
jl 0x4222b7
mov edi, dword [ebp - 8]
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov ecx, dword [edi]
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [edi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [edi]
pop edi
pop esi
pop ebx
mov byte [ecx + 0x19], al
mov esp, ebp
pop ebp
ret

Function at 0x4265b5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0xf4240
xor ebx, ebx
push 0x54
mov dword [edi + 4], ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x4265ee
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov ecx, dword [edi]
call dword [ecx]
pop ecx
mov dword [esi], fcn.00425c20
xor ecx, ecx
mov dword [esi + 4], fcn.00425d34
inc ecx
mov dword [esi + 8], fcn.00425dca
mov dword [esi + 0xc], fcn.00425e66
mov dword [esi + 0x10], 0x425f18
mov dword [esi + 0x14], 0x425f7d
mov dword [esi + 0x18], 0x425fe2
mov dword [esi + 0x1c], 0x426254
mov dword [esi + 0x20], 0x42637a
mov dword [esi + 0x24], fcn.004264a3
mov dword [esi + 0x28], 0x42658a
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
sub ecx, 1
mov dword [eax - 8], ebx
mov dword [eax], ebx
lea eax, [eax - 4]
jns 0x42664d
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x4266b6
lea ecx, [ebp - 1]
mov byte [ebp - 1], 0x78
push ecx
lea ecx, [ebp - 8]
push ecx
push str._ld_c
push eax
call fcn.00425bf4
add esp, 0x10
test eax, eax
jle 0x4266b6
mov al, byte [ebp - 1]
cmp al, 0x6d
je 0x4266a6
cmp al, 0x4d
mov eax, dword [ebp - 8]
jne 0x4266ad
imul eax, dword [ebp - 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a2f5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov esi, 0x100
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx + 0x4c]
cmp edx, 1
mov edi, dword [ebx + 0x1b8]
sete al
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edx
mov byte [edi + 0x1c], al
mov eax, 0x2fe
push dword [ebx + 0x64]
mov ecx, dword [ebx + 4]
cmovne eax, esi
push eax
push 1
push ebx
call dword [ecx + 8]
xor esi, esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x14]
add esp, 0x10
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x64], esi
jle 0x42a419
mov ecx, dword [edi + esi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 8], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jne 0x42a369
mov eax, dword [edi + 0x18]
add dword [eax + esi*4], 0xff
mov eax, dword [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0xfe]
lea ebx, [esi*2 - 2]
cdq
idiv ebx
mov dword [ebp - 0x18], ebx
xor edi, edi
mov edx, eax
cmp edi, edx
jle 0x42a3b9
imul eax, ecx, 0x1fe
lea ebx, [esi + 0xfe]
add ebx, eax
add ebx, 0x1fe
inc ecx
mov eax, ebx
cdq
idiv dword [ebp - 0x18]
mov edx, eax
cmp edi, edx
jg 0x42a3a3
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
inc edi
mov ecx, dword [ebp - 4]
cmp edi, 0xff
jle 0x42a391
cmp dword [ebp - 8], 1
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
jne 0x42a406
mov edi, eax
xor ecx, ecx
inc ecx
lea edx, [edi - 1]
mov al, byte [edi]
mov byte [edx], al
mov al, byte [edi + 0xff]
mov byte [edi + ecx + 0xff], al
inc ecx
dec edx
cmp ecx, 0xff
jle 0x42a3eb
mov edi, dword [ebp - 0x20]
inc esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
cmp esi, dword [ebx + 0x64]
jl 0x42a34c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49582c
Capabilities:
Encode data using xor

Disassembly:
stosd dword es:[edi], eax
pop ebp
adc eax, 0x911128a1
and dword [edx + 0x71], ecx
and dword [ebx + 0x65], 0x11
and dh, byte [ebp + eax*2 + 0x5d]
sbb byte [eax], bh
movsd dword es:[edi], dword [esi]
inc edx
push edx
xor al, 0x2a
inc esp
xchg edx, eax
sbb edi, dword [ecx + 0x5e989fdd]
sbb dword [edx - 0x6c], ecx
lds ebp, [ebp + 0x50]
lcall 0x39e7, 0x6d353615
cld
test byte [eax + ebx - 0xc], bl
adc esi, dword [esi]
inc esp
adc byte [ecx - 0x53ac8b9e], 0x33
sbb al, 8
leave
pop esi
sbb dword [ebp + 0x56], ebp
scasb al, byte es:[edi]
cmp ebx, dword [ebp - 0x50]
xchg edx, eax
push es
pop esi
dec esi
jle 0x4957f7
or bh, byte [ebx - 0x19]
adc ah, byte [ecx + ebx]
and byte [ebp + 0x7bb0028], ah
lcall 0xe621, 0x22eecec2
sbb esi, ebp
stosd dword es:[edi], eax
or byte [eax + eax], dl
adc byte [ebx + 0x64], ah
xchg dword [0xa8ff5091], esp
jmp 0x4589c56e
Function at 0x5ac370
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 0x5ac38e
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 0x5d3074
push ecx
mov edi, eax
call fcn.005bf7c8
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ac3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005bf65e
push esi
call fcn.005bf5e1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5ae920
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 0x5ae97e
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 0x5f0a78
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ae98a
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.005bf811
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 0x5ae97e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5f0a78
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ae9fa
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.005c03a2
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5aea27
mov word [eax], si
add eax, 2
push eax
call fcn.005c0350
add esp, 4
jmp 0x5aea29
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 0x5ae97e
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5ae980
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5af0c0
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 0x5af150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5af194
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5d338c
push ecx
call fcn.005bf811
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005bf811
add esp, 0x10
jmp 0x5af1a2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005bf83b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005bf42f
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005af120
mov eax, dword [0x5f0a80]
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 0x5af20b
push esi
call fcn.005af080
add esp, 4
mov dword [0x5f0a80], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5af21c
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.005af0c0
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 0x5b23e0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5b2457
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 0x5b242e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b2411
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5b241e
add edx, ecx
cmp ebx, edx
jb 0x5b242a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b2407
xor ecx, ecx
jmp 0x5b2442
test eax, eax
jne 0x5b2432
xor ecx, ecx
jmp 0x5b2442
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.005b2360
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5b2750
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b2781
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5b27a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5b27ce
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5b27f3
push ecx
push esi
call fcn.005b2460
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x5b3830
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
mov ebx, dword [ecx + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x5b3955
xor eax, eax
xor esi, esi
mov ax, word [ecx + 0x14]
mov si, word [ecx + 6]
xor edi, edi
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x5b3955
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b386d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5b387a
add edx, ecx
cmp ebx, edx
jb 0x5b388a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b3863
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
je 0x5b3955
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
sub edi, edx
add edi, ebx
add edi, eax
je 0x5b3955
mov esi, dword [edi + 4]
test esi, esi
je 0x5b3955
cmp dword [edi], 0
je 0x5b3955
cmp esi, 8
jb 0x5b3955
mov eax, dword [esp + 0x2c]
mov ecx, edi
add esi, 0xfffffff8
lea ebp, [edi + 8]
mov edx, dword [eax]
sub ecx, edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
lea ecx, [eax + 8]
lea eax, [esp + 0x10]
push edx
push eax
shr esi, 1
call fcn.005b2b40
test esi, esi
mov dword [esp + 0x28], 0
jbe 0x5b3947
mov ax, word [ebp]
mov bx, ax
shr bx, 0xc
cmp bx, 3
jne 0x5b392d
mov ecx, dword [edi]
and eax, 0xfff
add eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [eax + 8]
call fcn.005b2b40
cmp bx, 4
jne 0x5b3937
add ebp, 2
dec esi
mov eax, dword [esp + 0x28]
add ebp, 2
inc eax
cmp eax, esi
mov dword [esp + 0x28], eax
jb 0x5b38f9
add edi, dword [edi + 4]
mov esi, dword [edi + 4]
test esi, esi
jne 0x5b38b3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x5b3980
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x5b39ca
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5b39ab
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5b39b8
add edx, eax
cmp ebx, edx
jb 0x5b39c6
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5b39a1
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5b39d0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x5b39f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
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 0x5b3a30
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b3a1b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5b3a28
add edx, ecx
cmp ebx, edx
jb 0x5b3a32
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b3a11
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x5b3c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005c0465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5b3ceb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5b3ccd
lea eax, [esp + 0x18]
push eax
jmp 0x5b3cd2
push 0x5f0a78
call fcn.005c0881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5b3ca0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5b3c30
push 4
push ecx
push eax
call fcn.005c06b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5b4000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005c0465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5b409b
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5b407d
lea eax, [esp + 0x18]
push eax
jmp 0x5b4082
push 0x5f0a78
call fcn.005c0881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5b4050
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5b3c30
push 4
push ecx
push eax
call fcn.005c06b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret