joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f5b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x43f646
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x43f5fd
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45aaf0]
inc edx
cmp edx, esi
jl 0x43f5e1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x43f621
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45aaf0]
inc edx
cmp edx, esi
jl 0x43f607
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x440510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.00448e70
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x4406cd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00443ee0
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x440592
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.00448f40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.00443f40
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00443320
add esp, 0x28
test eax, eax
jne 0x4405d3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x440615
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.00449060
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x440615
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x441870
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.004418c0
mov edx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x440660.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.8
push eax
call fcn.00456670
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x440660.5
jmp dword [eax*4 + 0x440710]
push str.zlib_memory_error
jmp 0x440689
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x44068d
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x44068d
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.00443f70
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x4406d6
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.00449030
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.00448ef0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.004441d0
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443f00
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x443f1a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x443f1a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x44fd5a
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4ad14c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4ae460]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4ae464], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0045632f
mov dword [esi + 0x58], 0x44fccc
mov dword [esi + 0x5c], 0x44fd18
mov dword [esi + 0x10], fcn.0044ee5e
mov dword [esi + 0x30], 0x44efe6
mov dword [esi + 0x64], 0x44f0f2
mov dword [esi + 0x60], 0x44f13f
mov dword [esi + 0x34], 0x44f865
mov dword [esi + 0x24], 0x44f704
mov dword [esi + 0x28], 0x44f72d
mov dword [esi + 0x2c], 0x44f758
mov dword [esi + 0x44], 0x44fb56
mov eax, esi
pop esi
ret 4

Function at 0x451127
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x4511ae
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45118f
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x451174
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x4511a3
add edx, dword [ebp + 0x10]
jmp 0x4511a6
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x451154
pop edi
pop ebx
pop esi
leave
ret 0x1c
Function at 0x4520d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x45215f
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45213a
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x452120
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x452151
add edi, dword [ebp - 4]
jmp 0x452154
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x452102
pop esi
pop ebx
pop edi
leave
ret 0x1c

Function at 0x4521c8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x452274
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x45224f
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x452229
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x452266
add ecx, dword [ebp - 0x10]
jmp 0x452269
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x4521ff
pop esi
pop ebx
leave
ret 0x18
Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov al, byte [0x8b559090]
push ebp
mov ebp, esp
push ebp
mov ebp, esp
ja 0x401e91
adc al, 0xc6
mov bl, 0x8b
jne 0x401eb3
push edi
mov eax, dword [esi + 0x14]
jae 0x401ef6
or al, ch
dec ecx
dec ebx
add byte [eax], al
mov dword [0x410ba0], eax
mov dword [esp + 0x6c00410b], esp
fmul dword [ebx - 0x7a7aebba]
mov edi, edx
jne 0x401f0d
popfd
dec esi
add al, 0x6a
add byte [edx], ch
push ecx
call fcn.00408c70
mov dword [esi + 0x838], ebx
mov dword [esi - 0x26fff7c4], edi
sbb ecx, dword [ecx + 0x54]
add byte [eax], al
add byte [ebx + 0x4117ec15], cl
add byte [ebx + 0x56], bl
inc esi
mov eax, dword [0x44410287]
test eax, eax
je 0x401f61
mov eax, dword [0xa4410270]
mov ecx, edx
add ecx, eax
mov dword [esi + 0x10], ecx
jmp 0x401f3a
xor al, 0x8e
cmp byte [eax], cl
add byte [eax], al
mov eax, dword [0x40d003]
add byte [ecx + 0x40d003], ah
mov edx, dword [0x408c2c]
add ecx, eax
mov eax, dword [esi - 0x6fff7fc4]
adc eax, edx
cmpsb byte [esi], byte es:[edi]
dec esi
dec edx
jl 0x401f12
mov byte [eax], al
add byte [edi + ecx*8 + 0x3b], bh
invalid
mov edx, dword [ebx + 0x301d8b18]
rol byte [eax], 1
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
cwde
rcl dword [ecx + 0x52], cl
push eax
call 0xb4f4dfc0
test eax, eax
je 0x401f8a
cmp eax, 0xb
je 0x401f8a
retf 0xfd68
je 0x401f8a
cmp eax, 0xaf7d9
je 0x401f8a
cmp eax, 0xafdd6
cmp ebx, dword [ecx]
cmp eax, 0xc6fd48
inc esp
adc dh, byte [edx + 0xafca1]
je 0x401fb5
int 0xb3
out 0xb, al
add byte [edi], cl
test dword [esi - 0x75000000], esp
ljmp 0x4102
mov ebp, edx
or byte [ebx + 0x4102a009], cl
add byte [ebx + 0x4102a43d], cl
add byte [ebx], al
adc ebx, esp
xlatb
add byte [eax + 0x1d], cl
mov al, byte [0x891e4102]
cmp al, 0xa4
add al, byte [ecx]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add edx, eax
sub ecx, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], ecx
jne 0x401eac
push esi
sbb byte [ecx - 0x7af0ebb2], cl
in al, dx
invalid
mov dword [esi + 8], 0x7c7f03
call fcn.00406a00
and ah, byte [eax - 0x76ffbef5]
adc eax, 0xb30bce
mov edx, dword [esi + 4]
mov dword [esi + 0xc640], eax
mov ecx, dword [0x410ba4]
push edx
add dword [eax + 0x45890000], esi
invalid
Function at 0x41c000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x41c175
cmp dword [esp + 0x54], 0x40
jne 0x41c175
cmp word [esp + 0x10], 0x5a4d
jne 0x41c175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x41c175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x422960
push esi
call ebx
test eax, eax
je 0x41c175
cmp dword [esp + 0x54], 0xf8
jne 0x41c175
cmp dword [0x422960], 0x4550
jne 0x41c175
mov eax, dword [0x422976]
test ah, 0x20
jne 0x41c175
mov edx, dword [0x422a80]
xor eax, eax
mov ax, word [0x422966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x422a58], eax
je 0x41c175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x422a6c], eax
xor eax, eax
mov ax, word [0x422966]
mov edx, dword [0x422a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x41c175
cmp dword [esp + 0x54], edi
jne 0x41c175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x422a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4229b4]
cmp edx, eax
ja 0x41c175
mov edi, dword [0x422a58]
mov ecx, dword [0x422988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x41c175
xor eax, eax
push 2
mov ax, word [0x422966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x41c175
cmp dword [edi - 0x20], ebx
ja 0x41c175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x41e769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422190
cmp edx, dword [eax]
je 0x41e78b
add eax, 8
inc ecx
cmp eax, 0x422220
jl 0x41e77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422190]
jne 0x41e8b9
mov eax, dword [0x422bb0]
cmp eax, 1
je 0x41e893
test eax, eax
jne 0x41e7bc
cmp dword [0x4220e4], 1
je 0x41e893
cmp edx, 0xfc
je 0x41e8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041f670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041f490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41e836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041f490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42145c
push edi
call fcn.0041ff00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041f670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041f680
lea eax, [ebp - 0xa0]
push 0x42143c
push eax
call fcn.0041f680
push dword [esi + 0x422194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041fe75
add esp, 0x2c
pop edi
jmp 0x41e8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x422194]
push 0
push eax
push dword [esi]
call fcn.0041f490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x426ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1cdd08ca
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7a5d705f
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x972370
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 0x97238e
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 0x99b074
push ecx
mov edi, eax
call fcn.00986198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9723cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0098602e
push esi
call fcn.00985fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x975850
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 0x9758ae
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 0x9a0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9758ba
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.009861e1
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 0x9758ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9a0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x97592a
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.00987082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x975957
mov word [eax], si
add eax, 2
push eax
call fcn.00987030
add esp, 4
jmp 0x975959
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 0x9758ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9758b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9760c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x99b458
push ecx
call fcn.009861e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009861e1
add esp, 0x10
jmp 0x9760d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0098620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00985dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00976050
mov eax, dword [0x9a0728]
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 0x97613b
push esi
call fcn.00975fb0
add esp, 4
mov dword [0x9a0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x97614c
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.00975ff0
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 0x979440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9794b7
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 0x97948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x979471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x97947e
add edx, ecx
cmp ebx, edx
jb 0x97948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x979467
xor ecx, ecx
jmp 0x9794a2
test eax, eax
jne 0x979492
xor ecx, ecx
jmp 0x9794a2
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.009793c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9798f0
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 0x979921
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 0x979946
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 0x97996e
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 0x979993
push ecx
push esi
call fcn.009794c0
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