joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [0x47da28]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x20], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402726
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402678
sub eax, ebp
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.004039c0
lea ecx, [esp + 0x24]
call fcn.004023f0
cmp eax, dword [esp + 0x18]
je 0x4026d9
mov ecx, dword [esp + 0x38]
add edi, 4
cmp ecx, 0xf
jbe 0x4026d0
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d33
add esp, 8
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x402657
jmp 0x402726
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x402726
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40271c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d33
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407cf0
add esp, 0x34
ret
call fcn.0040c9f3
int3

Function at 0x4031f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 4
call fcn.00407d03
add esp, 4
lea ecx, [esp + 4]
mov dword [eax], 0x4031d0
push ecx
push 0
push eax
push 0x4045d0
push 0
push 0
call fcn.0040c5ef
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x40328b
cmp dword [esp + 4], 0
je 0x40329a
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4032a1
push 0
push ecx
push dword [esp + 8]
call fcn.0040776a
add esp, 0xc
test eax, eax
jne 0x4032a8
xorps xmm0, xmm0
movlpd qword [esp], xmm0
cmp dword [esp], 0x1a4cc
jne 0x40326a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov edx, str.Catching_n
mov ecx, 0x47cad0
call fcn.00403720
push 0
call dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
xor eax, eax
cmp dword [esp + 4], eax
jne 0x4032af
jmp 0x403264
push 6
mov dword [esp + 8], 0
call fcn.0040498d
push 1
call fcn.0040498d
push 5
call fcn.0040498d
push 2
call fcn.0040498d
call fcn.0040c680
int3
Function at 0x414bca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041486c

Function at 0x414bd5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004149fb

Function at 0x414fcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ae0
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413a61
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415011
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41516d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e3c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d700]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041619f
mov ecx, dword [esi*4 + 0x47d700]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x415166
cmp eax, dword [edi + ecx + 0x24]
jne 0x415166
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415166
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041619f
add esp, 0x14
test edx, edx
jl 0x415166
jg 0x4150dc
test eax, eax
jb 0x415166
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415166
jl 0x4150f6
cmp dword [ebp - 0x1008], eax
ja 0x415166
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415114
test ebx, ebx
je 0x41514d
cmp ecx, edi
jae 0x41514d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41512e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41513a
cmp byte [ecx + 1], 0xa
jne 0x41513a
inc ecx
jmp 0x41513a
movzx eax, al
movsx eax, byte [eax + 0x4292f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415114
cmp edx, ebx
jne 0x415114
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41516b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407cf0
leave
ret
Function at 0x41563d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47d700]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41567d
cmp byte [ebx], 0xa
jne 0x41567d
or byte [eax + edi + 0x28], 4
jmp 0x415682
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415780
mov al, byte [edx]
cmp al, 0x1a
je 0x415762
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4156b1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4156d6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4156e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415693
jmp 0x415780
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41575d
cmp dword [ebp - 0xc], 0
je 0x41575d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d700]
test byte [eax + edi + 0x28], 0x48
je 0x415737
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415722
mov byte [esi], dl
jmp 0x415733
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415780
cmp byte [ebp - 1], 0xa
jne 0x415746
cmp esi, ebx
jne 0x415746
mov byte [esi], 0xa
jmp 0x41577f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004161bd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415780
mov byte [esi], 0xd
jmp 0x41577f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41577c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415780
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415789
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47d700]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4157cc
cmp word [esi], dx
jne 0x4157cc
or byte [edi + eax + 0x28], 4
jmp 0x4157d1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415924
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415904
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415813
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415849
cmp eax, edx
jae 0x415855
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4157eb
jmp 0x415924
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415900
cmp dword [ebp - 0x14], 0
je 0x415900
mov eax, dword [ebx*4 + 0x47d700]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4158d8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4158a1
mov word [esi], cx
jmp 0x4158d4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d700]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d700]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d700]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415924
pop ebx
cmp word [ebp - 4], bx
jne 0x4158e9
cmp esi, dword [ebp + 0xc]
jne 0x4158e9
mov word [esi], bx
jmp 0x415921
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004161bd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415924
push 0xd
jmp 0x41591d
mov ecx, dword [ebx*4 + 0x47d700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41591b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415924
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4200e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00426530
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00426530
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x420140
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xbb4078]
test esi, esi
jle 0x420260
mov eax, dword [0xbb407c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x420174
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4201f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420160
mov dword [esp], ebx
call fcn.00420b30
mov edi, eax
test eax, eax
je 0x420287
mov eax, dword [0xbb407c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c70
mov edx, dword [0xbb407c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x420267
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4201f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420200
add dword [0xbb4078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xbb407c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4201f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004200e0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x42017e
mov eax, dword [0xbb407c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004200e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004200e0
lea esi, [esi]
nop
Function at 0x4207a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xbb4094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xbb408c]
sub esp, 4
test ebx, ebx
je 0x4207f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4207ee
test esi, esi
je 0x4207ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207d0
mov dword [esp], 0xbb4094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420b30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b55
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b60
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b55
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x420ba8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420baa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x427050
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x120]
push ecx
sub esp, 0x148
call fcn.0041ff20
mov eax, dword [0xbb4044]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
test eax, eax
je 0x427219
mov dword [esp], str..zip
call fcn.00426de0
mov dword [esp], str..exe
mov edi, eax
call fcn.00426de0
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x12c], eax
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x12c]
lea eax, [edx + eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x130], eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x12c]
lea eax, [edx + eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x12c], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], str._s_s
mov ecx, dword [ebp - 0x130]
mov dword [esp], ecx
call fcn.00421080
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str._s_s
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call fcn.00421080
lea eax, [ebp - 0x128]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x426f10
mov dword [esp + 4], 0x17cdbe
mov dword [esp], 0x4280e0
call fcn.0041f66b
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
lea eax, [ebp - 0x124]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x426f10
mov dword [esp + 4], 0x5beebc
mov dword [esp], 0x5a4ea0
call fcn.0041f66b
mov dword [esp], str.after_n
call fcn.00426fd0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp], eax
call ebx
push edx
push edx
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call ebx
push ecx
push ecx
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je 0x4271fe
mov dword [esp], ecx
call sub.msvcrt.dll_free
cmp dword [ebp - 0x12c], 0
je 0x427215
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x42722a
mov dword [esp], str.Failed_to_get_temp_path
call sub.msvcrt.dll_perror
mov eax, 1
mov edx, dword [ebp - 0x1c]
sub edx, dword [0xbb4044]
jne 0x427241
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call fcn.0041fe30
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ud2
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0xe2c370
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 0xe2c38e
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 0xe55074
push ecx
mov edi, eax
call fcn.00e40198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe2c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e4002e
push esi
call fcn.00e3ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe2f850
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 0xe2f8ae
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 0xe5a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe2f8ba
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.00e401e1
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 0xe2f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe5a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe2f92a
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.00e41082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe2f957
mov word [eax], si
add eax, 2
push eax
call fcn.00e41030
add esp, 4
jmp 0xe2f959
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 0xe2f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe2f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe300c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe55458
push ecx
call fcn.00e401e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e401e1
add esp, 0x10
jmp 0xe300d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e4020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e3fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e30050
mov eax, dword [0xe5a728]
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 0xe3013b
push esi
call fcn.00e2ffb0
add esp, 4
mov dword [0xe5a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe3014c
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.00e2fff0
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 0xe33440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe334b7
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 0xe3348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe33471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe3347e
add edx, ecx
cmp ebx, edx
jb 0xe3348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe33467
xor ecx, ecx
jmp 0xe334a2
test eax, eax
jne 0xe33492
xor ecx, ecx
jmp 0xe334a2
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.00e333c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret