joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x80
push 3
push 7
push SysReAllocString
mov esi, edx
xor edi, edi
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edi
call fcn.0040a27f
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40afe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40afd0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40b0bb
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40b0bb
push edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b02d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40b018
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40b0af
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40b0af
cmp dword [ebp - 0x30], 0x24
je 0x40b03c
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40b0af
mov eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], eax
je 0x40b06e
cmp dword [ebp + 0xc], edi
jne 0x40b065
cmp eax, 0xb0c50000
je 0x40b06e
cmp eax, 0xb0c50001
je 0x40b06e
cmp eax, 0xb0c50002
je 0x40b06e
cmp eax, 0xb0c50003
je 0x40b06e
mov dword [ebp - 0x2c], 0x8007000d
jmp 0x40b0af
cmp dword [ebp + 0x10], edi
je 0x40b090
mov esi, dword [ebp + 0x10]
push 0x10
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b087
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b065
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp esi, edi
je 0x40b0a7
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40b0a2
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x40b0a7
cmp eax, dword [ebp - 0x14]
jne 0x40b065
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40b0bb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret 0xc
Function at 0x40b0d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], esi
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebx]
call fcn.0040a14c
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40b217
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b14c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40b137
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40b217
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40b217
cmp dword [ebp - 0x30], 0x24
je 0x40b15e
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40b217
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x40b184
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40b217
push 9
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x24
xor edi, edi
pop esi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b1c7
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40b194
cmp esi, dword [ebp - 0x10]
je 0x40b1ef
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40b1f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40b1e1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40b1f8
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40b1f8
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40b217
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40b217
call fcn.0040a00f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.004195c9
leave
ret
Function at 0x40e9f1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e9f9
mov dword [ecx*4 + 0x42d300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e9f4
pop esi
ret
Function at 0x412311
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4266e3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1e8]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x168
push eax
call fcn.00412161
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.0041227f
push 0xf
lea ecx, [esp + 0x14]
call fcn.0041227f
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00412235
push 0x10
push esi
call fcn.00412235
push 9
push esi
call fcn.00412235
push 6
push esi
call fcn.00412235
push 0x12
push esi
call fcn.00412235
push 0x14
push esi
call fcn.00412235
push 0x13
push esi
call fcn.00412235
push 0x15
push esi
call fcn.00412235
push 0xa
push esi
call fcn.00412235
push 0x16
push esi
call fcn.00412235
mov eax, esi
call fcn.004121f6
push ebx
push 0x61
call fcn.004153b8
push ebx
push 0x62
call fcn.004153b8
push ebx
push 0x63
call fcn.004153b8
push 0x14
pop edi
mov eax, esi
call fcn.004122bd
push 6
pop edi
mov eax, esi
call fcn.004122bd
push 9
pop edi
mov eax, esi
call fcn.004122bd
push 0x11
pop edi
mov eax, esi
call fcn.004122bd
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004130a4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415e11
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00415a38
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.004159ed
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00415a38
push eax
push esi
push dword [ebp + 8]
call fcn.004159ed
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00415a28
not edi
inc ebp
jmp 0x415e33

Function at 0x4166af
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x514]
push eax
call fcn.00415a38
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004159ed
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00415a28
leave
daa
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x41671c
cmp dword [ebp - 0x398], 0
je 0x4168e6
cmp dword [ebp + 0xc], 1
je 0x4168e6
cmp dword [ebp + 0xc], 8
jne 0x4168ae
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
invalid
test dword [ecx - 7], edx
Function at 0x418424
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x41843e
push ebx
push ebx
push eax
call fcn.0041828f
cmp eax, ebx
jne 0x418497
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x418452
push ebx
push ebx
push edi
call fcn.0041828f
cmp eax, ebx
jne 0x418496
lea eax, [esi + 4]
call fcn.004183b5
mov eax, edi
call fcn.004183b5
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x41846d
xor eax, eax
jmp 0x418496
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4183df
push ebx
push ebx
call fcn.00423b9f
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x418469
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x418496
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x4195c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a050]
jne 0x4195d3
repz ret
jmp fcn.0041b144

Function at 0x41dbd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041a92d
and dword [ebp - 0x14], 0
cmp dword [0x42be70], 0
mov dword [ebp - 0x18], eax
jne 0x41dc83
push 0x402268
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41dd2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40225c
push ebx
call edi
test eax, eax
je 0x41dd2b
mov esi, dword [fcn.00402b74]
push eax
call esi
push 0x40224c
push ebx
mov dword [0x42be70], eax
call edi
push eax
call esi
push 0x402238
push ebx
mov dword [0x42be74], eax
call edi
push eax
call esi
push 0x40221c
push ebx
mov dword [0x42be78], eax
call edi
push eax
call esi
mov dword [0x42be80], eax
test eax, eax
je 0x41dc83
push 0x402204
push ebx
call edi
push eax
call esi
mov dword [0x42be7c], eax
mov eax, dword [0x42be7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00402b70]
cmp eax, ecx
je 0x41dcdc
cmp dword [0x42be80], ecx
je 0x41dcdc
push eax
call esi
push dword [0x42be80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41dcdc
test ebx, ebx
je 0x41dcdc
call edi
test eax, eax
je 0x41dcd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41dcd3
test byte [ebp - 8], 1
jne 0x41dcdc
or dword [ebp + 0x10], 0x200000
jmp 0x41dd0f
mov eax, dword [0x42be74]
cmp eax, dword [ebp - 0x18]
je 0x41dd0f
push eax
call esi
test eax, eax
je 0x41dd0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41dd0f
mov eax, dword [0x42be78]
cmp eax, dword [ebp - 0x18]
je 0x41dd0f
push eax
call esi
test eax, eax
je 0x41dd0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be70]
call esi
test eax, eax
je 0x41dd2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41dd2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret
Function at 0x423fc0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x424c40
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x424c75
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0041e230
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.00424d40
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00424b30
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.00424d40
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.0041e230
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
mov esp, ebp
pop ebp
ret 8
Function at 0x100ba540
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100ba70d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
or ebp, 0xffffffff
jmp 0x100ba56a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100ba571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100ba560
mov eax, 1
add ebx, ebx
jne 0x100ba583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100ba578
jne 0x100ba594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100ba578
xor ecx, ecx
sub eax, 3
jb 0x100ba5a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100ba61a
mov ebp, eax
add ebx, ebx
jne 0x100ba5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100ba5c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100ba5e4
inc ecx
add ebx, ebx
jne 0x100ba5d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100ba5c5
jne 0x100ba5e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100ba5c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100ba604
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100ba5f5
jmp 0x100ba566
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100ba604
add edi, ecx
jmp 0x100ba566
pop esi
mov edi, esi
mov ecx, 0x2dfe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100ba622
cmp byte [edi], 0x13
jne 0x100ba622
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 0x100ba627
lea edi, [esi + 0xb5000]
mov eax, dword [edi]
or eax, eax
je 0x100ba69f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xba000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xba17c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100ba654
mov ecx, edi
jns 0x100ba683
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xba180]
or eax, eax
je 0x100ba699
mov dword [ebx], eax
add ebx, 4
jmp 0x100ba671
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100ba6d0
cmp al, 0xef
ja 0x100ba6c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100ba6a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100ba6b2
mov ebp, dword [esi + 0xba184]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x100ba704
sub esp, 0xffffff80
jmp 0x1005139e
Function at 0x6cc370
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 0x6cc38e
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 0x6f5074
push ecx
mov edi, eax
call fcn.006e0198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6cc3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006e002e
push esi
call fcn.006dffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6cf850
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 0x6cf8ae
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 0x6fa720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6cf8ba
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.006e01e1
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 0x6cf8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6fa720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6cf92a
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.006e1082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6cf957
mov word [eax], si
add eax, 2
push eax
call fcn.006e1030
add esp, 4
jmp 0x6cf959
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 0x6cf8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6cf8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6d00c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6f5458
push ecx
call fcn.006e01e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006e01e1
add esp, 0x10
jmp 0x6d00d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006e020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006dfdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006d0050
mov eax, dword [0x6fa728]
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 0x6d013b
push esi
call fcn.006cffb0
add esp, 4
mov dword [0x6fa728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6d014c
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.006cfff0
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 0x6d3440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6d34b7
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 0x6d348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6d3471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6d347e
add edx, ecx
cmp ebx, edx
jb 0x6d348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6d3467
xor ecx, ecx
jmp 0x6d34a2
test eax, eax
jne 0x6d3492
xor ecx, ecx
jmp 0x6d34a2
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.006d33c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6d38f0
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 0x6d3921
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 0x6d3946
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 0x6d396e
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 0x6d3993
push ecx
push esi
call fcn.006d34c0
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