joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a0c65
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005a0be1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5a0dd4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5a0dd4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5a0d89
jg 0x5a0cc1
test eax, eax
je 0x5a0d7f
push 1
push 0x1000
call fcn.0058fcf3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5a0ce4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a0d76
push 0x8000
push ebx
call fcn.0058d719
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5a0d0d
jg 0x5a0d08
cmp ecx, 0x1000
jb 0x5a0d0d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005932f0
add esp, 0x10
cmp eax, 0xffffffff
je 0x5a0d52
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5a0d08
jl 0x5a0d39
test ecx, ecx
jne 0x5a0cfa
push dword [ebp - 0xc]
push ebx
call fcn.0058d719
push esi
call fcn.0058fd50
add esp, 0xc
xor ebx, ebx
jmp 0x5a0de2
cmp byte [edi + 0x24], 0
je 0x5a0d69
cmp dword [edi + 0x20], 5
jne 0x5a0d69
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5a0d74
mov ebx, dword [edi + 0x18]
jmp 0x5a0d76
xor ebx, ebx
push esi
call fcn.0058fd50
pop ecx
jmp 0x5a0de2
test ecx, ecx
jg 0x5a0d4b
jl 0x5a0d89
test eax, eax
jae 0x5a0d4b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00594484
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5a0da9
cmp byte [edi + 0x1c], 0
je 0x5a0d4b
jmp 0x5a0dda
push ebx
call fcn.0058c821
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5a0d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a0de2
cmp byte [edi + 0x1c], 0
je 0x5a0ddf
mov ebx, dword [edi + 0x18]
jmp 0x5a0de2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00594484
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5a13f0
Capabilities:
Parse pe header

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

Disassembly:
push 0x14
push 0x421dc0
call fcn.00417964
push 1
call fcn.004173af
pop ecx
test al, al
jne 0x416ebe
push 7
call fcn.00417ad7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041737a
mov byte [ebp - 0x24], al
mov eax, dword [0x424890]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x416eb7
test eax, eax
jne 0x416f28
mov dword [0x424890], ecx
push 0x41a404
push 0x41a3ec
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x416f0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41700f
push 0x41a3e8
push 0x41a3bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x424890], 2
jmp 0x416f2d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041750c
pop ecx
call fcn.00417acb
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x416f5d
push esi
call fcn.0041747f
pop ecx
test al, al
je 0x416f5d
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00417d06
call esi
call fcn.00417ad1
mov esi, eax
cmp dword [esi], edi
je 0x416f7b
push esi
call fcn.0041747f
pop ecx
test al, al
je 0x416f7b
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00417bec
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00417c1f
test al, al
jne 0x416fb4
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x416fbd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00417529
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41700f
call fcn.004179aa
ret
call fcn.00416d24
jmp 0x416e9f

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x59e7a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x141000]
push edi
jmp 0x59e7ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59e7c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59e7b0
mov eax, 1
add ebx, ebx
jne 0x59e7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59e7e4
jne 0x59e803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59e803
dec eax
add ebx, ebx
jne 0x59e7f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59e7c8
add ebx, ebx
jne 0x59e7ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59e855
xor ecx, ecx
sub eax, 3
jb 0x59e81b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59e88a
sar eax, 1
mov ebp, eax
jmp 0x59e826
add ebx, ebx
jne 0x59e826
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59e7f4
inc ecx
add ebx, ebx
jne 0x59e834
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59e7f4
add ebx, ebx
jne 0x59e841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59e836
jne 0x59e852
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59e836
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59e874
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59e866
jmp 0x59e7b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59e874
add edi, ecx
jmp 0x59e7b6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59e892
cmp byte [edi], 0x11
jne 0x59e892
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 0x59e897
lea edi, [esi + 0x197000]
mov eax, dword [edi]
or eax, eax
je 0x59e90f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x257c34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x257db0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59e8c4
mov ecx, edi
jns 0x59e8f3
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 + 0x257db4]
or eax, eax
je 0x59e909
mov dword [ebx], eax
add ebx, 4
jmp 0x59e8e1
call dword [esi + 0x257dc4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x59e940
cmp al, 0xef
ja 0x59e933
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x59e915
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x59e922
mov ebp, dword [esi + 0x257db8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x59e974
sub esp, 0xffffff80
jmp 0x420577
Function at 0x10031b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x100322a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031de
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x100322d
mov ecx, 0x100229c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100320d
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x100322d
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1003494
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10034cf
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10034b6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10034c7
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10034d1
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10034ac
xor eax, eax
pop edi
pop esi
ret

Function at 0x10036ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], pe_nt_image_headers32
mov byte [ebp - 0x47], 0xa7
call fcn.01003454
not ecx
and byte [edi + 0x50a8458d], bl
call fcn.01003464
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.01003419
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1003742
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.01003454
mov dword [0x8d5a0084], eax
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x1004373
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.01003464
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01003419
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.01003454
invalid

Function at 0x1005d91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005d9a
ret
jmp 0x1005d9f
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005dc3
call eax
cmp dword [0x101b0d0], 0
je 0x1005e0a
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005d91
add ebp, 0x2a8
leave
ret

Function at 0x100702b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007066
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007043
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007082
dec esi
je 0x100707b
dec esi
jne 0x1007087
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x406635
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x40663f
repz ret
jmp fcn.0040862b

Function at 0x407c43
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
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.0040533f
and dword [ebp - 0x14], 0
cmp dword [0x43bf50], 0
mov dword [ebp - 0x18], eax
jne 0x407cf6
push 0x4021b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d9e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a4
push ebx
call edi
test eax, eax
je 0x407d9e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402194
push ebx
mov dword [0x43bf50], eax
call edi
push eax
call esi
push 0x402180
push ebx
mov dword [0x43bf54], eax
call edi
push eax
call esi
push 0x402164
push ebx
mov dword [0x43bf58], eax
call edi
push eax
call esi
mov dword [0x43bf60], eax
test eax, eax
je 0x407cf6
push 0x40214c
push ebx
call edi
push eax
call esi
mov dword [0x43bf5c], eax
mov eax, dword [0x43bf5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407d4f
cmp dword [0x43bf60], ecx
je 0x407d4f
push eax
call esi
push dword [0x43bf60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407d4f
test ebx, ebx
je 0x407d4f
call edi
test eax, eax
je 0x407d46
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407d46
test byte [ebp - 8], 1
jne 0x407d4f
or dword [ebp + 0x10], 0x200000
jmp 0x407d82
mov eax, dword [0x43bf54]
cmp eax, dword [ebp - 0x18]
je 0x407d82
push eax
call esi
test eax, eax
je 0x407d82
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d82
mov eax, dword [0x43bf58]
cmp eax, dword [ebp - 0x18]
je 0x407d82
push eax
call esi
test eax, eax
je 0x407d82
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bf50]
call esi
test eax, eax
je 0x407d9e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407da0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406635
leave
ret
Function at 0x409f20
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xd34
cmp dword [0x4b7ac0], 0x37
jne 0x409fa5
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0x402a68
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
lea ecx, [esp + 0x138]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x538]
push ecx
push 0x402a7c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x4b7ac4]
mov ecx, dword [0x4b71a4]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xd34
ret
Function at 0x5e173c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5e1774
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005df7c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005df7a1
jmp 0x5e1780
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5e2e33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5e2e75
call fcn.005e8fee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x5e2e75
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x5e2e6c
xor eax, eax
jmp 0x5e2e7d
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005e2e83
pop edi
pop esi
pop ebx
ret 4

Function at 0x5e951e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5e954c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x5e956a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005e9484
jmp 0x5e956a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5e956a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005e9484
test edi, edi
mov eax, edi
jne 0x5e9554
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x2d3a565d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xc5c62c8
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x407550
Capabilities:
Encode data using xor

Disassembly:
stc
add byte [edx], al
add byte [edi - 0x6d], al
add eax, 0x1ffb8
add byte [ecx], bh
mov ah, bh
jae 0x407570
or al, dh
push es
xor byte [ebx + 0x3b41f94d], cl
enter 0x4d89, 0xfffffffffffffffc
jb 0x407561
mov eax, dword [ebp - 0x2c]
add eax, 0x2777832
add byte [eax], al
cmp byte [esi], 0x30
je 0x4077c3
dec esi
mov byte [esi], 0x30
jmp 0x124077d8
add dword [ecx - 0x60], 0xa1004021
adc al, 0x8d
push edx
ljmp 0xd78a
Function at 0x430006
Capabilities:
Encode data using xor

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