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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x38]
mov ebx, edx
push dword [esp + 0x38]
push dword [esp + 0x38]
push ebx
push ecx
call fcn.008fe550
mov dword [esp + 0x24], 0xfcbbb1
xor esi, esi
add dword [esp + 0x24], 0xffff71e6
add esp, 0x14
xor dword [esp + 0x10], 0x7e77e233
mov ebp, esi
xor dword [esp + 0x10], 0x743ee320
xor dword [esp + 0x10], 0xabfae8e
mov dword [esp + 0x18], 0xa3b3d0
add dword [esp + 0x18], 0xffffb5a3
xor dword [esp + 0x18], 0xa9dd1d
mov dword [esp + 0x14], 0x93caf0
or dword [esp + 0x14], 0x69f19edc
xor dword [esp + 0x14], 0x69fe82b1
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [esp + 0x24], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp dword [edi + 0x18], esi
jbe 0x8fbe26
push dword [esp + 0x14]
mov edx, dword [ecx + ebp*4]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add edx, ebx
call fcn.008f2e54
xor eax, 0x32a076d6
pop ecx
pop ecx
cmp eax, dword [esp + 0x34]
je 0x8fbdfa
mov ecx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [edi + 0x18]
jb 0x8fbdcb
jmp 0x8fbe26
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
movzx eax, word [eax + ebp*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x8fbe26
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x8fbe26
mov ecx, esi
call fcn.008f2c4d
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x51e480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc0000]
mov dword [edi + 0xcf740], 0xf898813a
push edi
jmp 0x51e4aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51e4b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e4a0
mov eax, 1
add ebx, ebx
jne 0x51e4c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51e4d4
jne 0x51e4f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e4f3
dec eax
add ebx, ebx
jne 0x51e4e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51e4b8
add ebx, ebx
jne 0x51e4ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51e545
xor ecx, ecx
sub eax, 3
jb 0x51e50b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51e57a
sar eax, 1
mov ebp, eax
jmp 0x51e516
add ebx, ebx
jne 0x51e516
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e4e4
inc ecx
add ebx, ebx
jne 0x51e524
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e4e4
add ebx, ebx
jne 0x51e531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51e526
jne 0x51e542
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e526
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51e564
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51e556
jmp 0x51e4a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51e564
add edi, ecx
jmp 0x51e4a6
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51e582
cmp byte [edi], 0x11
jne 0x51e582
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 0x51e587
lea edi, [esi + 0x117000]
mov eax, dword [edi]
or eax, eax
je 0x51e5ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15543c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1555b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51e5b4
mov ecx, edi
jns 0x51e5e3
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 + 0x1555bc]
or eax, eax
je 0x51e5f9
mov dword [ebx], eax
add ebx, 4
jmp 0x51e5d1
call dword [esi + 0x1555cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51e630
cmp al, 0xef
ja 0x51e623
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51e605
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51e612
mov ebp, dword [esi + 0x1555c0]
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 0x51e664
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3fd43f6d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x61ed5f2b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d33
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408bef
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408bef
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040393a
call fcn.0040392e
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039b0
pop ecx
pop ecx
mov esi, eax
call fcn.00403934
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [0x424010]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c24c
push 0x41c23c
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403472
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ed2
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004064be
pop ecx
pop ecx
test eax, eax
je 0x403ebb
test ebx, ebx
je 0x403eaf
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00406385
pop ecx
pop ecx
test eax, eax
jle 0x403ebb
push ebx
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e7c
xor edi, edi
cmp ebx, edi
jne 0x403ed6
xor eax, eax
jmp 0x403f42
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f05
call fcn.00403a18
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ed2
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403ed2
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef5
cmp dword [ebp - 0x70], edi
je 0x403f38
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
add ebp, 0x9c
leave
ret
Function at 0x40501b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x10000
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
call fcn.0040b0ca
add esp, 0x18
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x405064
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call fcn.0040b0ca
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [0x424040], edi
je 0x4050fd
push str.J2D_D3D
call fcn.00408d33
pop ecx
mov esi, str.false
cmp eax, edi
je 0x405097
push esi
push eax
call fcn.0041b4c9
pop ecx
pop ecx
test eax, eax
jne 0x405097
mov dword [0x424040], edi
push ebx
push str.J2D_D3D_PRELOAD
call fcn.00408d33
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4050bc
push esi
push ebx
call fcn.0041b4c9
pop ecx
pop ecx
test eax, eax
jne 0x4050bc
mov dword [0x424040], edi
cmp dword [0x424040], edi
jge 0x4050ef
mov dword [0x424040], edi
cmp ebx, edi
je 0x4050fc
push str.true
push ebx
call fcn.0041b4c9
pop ecx
pop ecx
test eax, eax
jne 0x4050e9
mov dword [0x424040], 1
cmp dword [0x424040], edi
je 0x4050fc
push str.preloadD3D
call fcn.00404ee6
pop ecx
pop ebx
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x405121
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40512a
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x4254a0], edi
pop edi
pop esi
je 0x405139
call fcn.0040451e
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4052d1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
pop edi
call fcn.0040513e
push 8
mov esi, eax
call fcn.004039b0
mov dword [esp], 0x4254c0
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405318
push ebx
call fcn.00403a18
pop ecx
call fcn.00405162
xor eax, eax
jmp 0x405412
mov dword [ebx], eax
mov dword [ebx + 4], 0x4254ec
mov edi, dword [ebx + 4]
test edi, edi
je 0x40532e
and dword [ebx + 4], 0
jmp 0x405347
push 0x4254c0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x4254ec
test edi, edi
je 0x4053f8
push edi
call fcn.004091d0
pop ecx
cmp eax, 4
jl 0x405321
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x405321
add eax, 0xfffffffd
push 0x41d9d4
push eax
mov dword [ebp - 4], eax
call fcn.00409260
pop ecx
pop ecx
test eax, eax
je 0x40538d
push 0x41d9d0
push dword [ebp - 4]
call fcn.00409260
pop ecx
pop ecx
test eax, eax
jne 0x405321
push 0x3b
push edi
call fcn.0040aeb0
pop ecx
pop ecx
test eax, eax
jne 0x405321
push dword [ebp + 8]
call fcn.004091d0
push edi
mov ebx, eax
call fcn.004091d0
mov dword [ebp - 4], eax
add eax, ebx
push eax
call fcn.004039b0
lea ecx, [ebx - 1]
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call fcn.00409380
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
mov edi, dword [ebp - 8]
lea eax, [edi + ebx - 1]
push eax
call fcn.00409380
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.00405194
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x405321
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.00403a18
push ebx
call fcn.00403a18
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405646
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [esi + 4], 0xffffffff
push ebx
push edi
je 0x405774
cmp dword [esi], 0xffffffff
je 0x405774
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 8]
call fcn.0040b1ef
add esp, 0x10
test edx, edx
jg 0x405686
jl 0x405774
test eax, eax
jb 0x405774
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.0040a197
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405774
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.0041746b
add esp, 0xc
cmp eax, edi
jne 0x40576d
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ecx
jne 0x4056d2
mov eax, dword [ebp + 0xc]
mov byte [edi + ebx], cl
cmp eax, ecx
je 0x4056cb
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov eax, ebx
jmp 0x405776
cmp eax, 8
jne 0x40576d
push 0x38
push str.1.2.11
lea eax, [ebp - 0x3c]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call fcn.004067c7
add esp, 0x10
test eax, eax
js 0x40576d
mov edi, dword [esi]
lea eax, [edi + 1]
push eax
call fcn.0040a197
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40576d
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push 1
push eax
mov dword [ebp - 0x2c], edi
call fcn.0040692c
pop ecx
pop ecx
push ebx
test eax, eax
jns 0x40573e
call fcn.00408f41
push dword [ebp - 4]
call fcn.00408f41
pop ecx
jmp 0x405773
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov byte [edi + eax], 0
call fcn.00408f41
lea eax, [ebp - 0x3c]
push eax
call fcn.00407c84
pop ecx
pop ecx
test eax, eax
jns 0x40575e
push edi
jmp 0x40576e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405769
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, edi
jmp 0x405776
push ebx
call fcn.00408f41
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x4057ed
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push edi
sub eax, 0x14
push 0
sbb ecx, 0
push ecx
push eax
push dword [esp + 0x18]
call fcn.0040b1ef
mov edi, edx
add esp, 0x10
mov ebx, eax
test edi, edi
jg 0x40581b
jl 0x405859
test ebx, ebx
jb 0x405859
push 0x14
push esi
push dword [esp + 0x14]
call fcn.0041746b
add esp, 0xc
test eax, eax
js 0x405859
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x7064b50
jne 0x405859
mov eax, ebx
mov edx, edi
jmp 0x40585e
or eax, 0xffffffff
or edx, eax
pop edi
pop ebx
ret
Function at 0x405861
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push edi
call fcn.0040b1ef
mov ebx, edx
add esp, 0x10
mov dword [ebp - 0xc], eax
test ebx, ebx
jg 0x405894
jl 0x40588a
test eax, eax
jae 0x405894
or eax, 0xffffffff
or edx, eax
jmp 0x4059e0
push esi
mov esi, dword [ebp + 0xc]
push 0x16
push esi
push edi
call fcn.0041746b
add esp, 0xc
test eax, eax
js 0x4059da
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x4058f6
mov eax, esi
call fcn.0040577a
test eax, eax
je 0x4058ee
push ebx
push dword [ebp - 0xc]
push edi
call fcn.004057ed
add esp, 0xc
jmp 0x4059df
mov eax, dword [ebp - 0xc]
jmp 0x405a1f
push 2
push 0
push 0
push edi
call fcn.0040b1ef
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jg 0x40591b
jl 0x4059da
test esi, esi
jb 0x4059da
mov edi, 0x10015
test ebx, ebx
jg 0x405931
jl 0x40592a
cmp esi, edi
jae 0x405931
mov dword [ebp - 0xc], esi
mov eax, ebx
jmp 0x405936
mov dword [ebp - 0xc], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
neg ecx
adc eax, 0
push 2
neg eax
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b1ef
add esp, 0x10
test edx, edx
jg 0x40595d
jl 0x4059da
test eax, eax
jb 0x4059da
push edi
call fcn.0040a197
mov edi, eax
pop ecx
mov dword [ebp - 4], edi
test edi, edi
je 0x4059da
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.0041746b
add esp, 0xc
test eax, eax
jns 0x405983
push edi
jmp 0x4059d4
add eax, edi
mov dword [ebp - 8], eax
lea edi, [eax - 0x16]
jmp 0x4059cc
cmp byte [edi], 0x50
jne 0x4059cb
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x4059cb
movzx ecx, byte [edi + 0x15]
movzx edx, byte [edi + 0x14]
shl ecx, 8
or ecx, edx
lea ecx, [ecx + edi + 0x16]
cmp ecx, eax
je 0x4059e4
dec edi
cmp edi, dword [ebp - 4]
jae 0x40598d
push dword [ebp - 4]
call fcn.00408f41
pop ecx
or edx, 0xffffffff
mov eax, edx
pop esi
pop edi
pop ebx
leave
ret
push 0x16
push edi
push dword [ebp + 0xc]
call fcn.00409380
push dword [ebp - 4]
call fcn.00408f41
mov eax, dword [ebp - 8]
sub eax, edi
cdq
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
sbb ebx, edx
call fcn.0040577a
test eax, eax
je 0x405a1d
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x4058e1
mov eax, esi
mov edx, ebx
jmp 0x4059df
Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed

Function at 0x40af6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40af95
call fcn.0040ac84
mov dword [eax], esi
call fcn.0040ac71
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040d446
mov eax, esi
jmp 0x40afea
test dword [ebp + 0xc], 0xfffffff9
jne 0x40af7b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40afc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac97
pop ecx
call fcn.0040ac71
mov eax, dword [eax]
jmp 0x40afea
test al, 0x10
jne 0x40afe8
test al, 1
je 0x40afe8
test byte [ebp + 0xc], 2
je 0x40afe8
call fcn.0040ac84
mov dword [eax], 5
call fcn.0040ac71
mov dword [eax], 0xd
jmp 0x40afb9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4154be
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424070]
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.0040d48d
and dword [ebp - 0x14], 0
cmp dword [0x426280], 0
mov dword [ebp - 0x18], eax
jne 0x415571
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415619
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x415619
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426288], eax
call edi
push eax
call esi
mov dword [0x426290], eax
test eax, eax
je 0x415571
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42628c], eax
mov eax, dword [0x42628c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4155ca
cmp dword [0x426290], ecx
je 0x4155ca
push eax
call esi
push dword [0x426290]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4155ca
test ebx, ebx
je 0x4155ca
call edi
test eax, eax
je 0x4155c1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4155c1
test byte [ebp - 8], 1
jne 0x4155ca
or dword [ebp + 0x10], 0x200000
jmp 0x4155fd
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x4155fd
push eax
call esi
test eax, eax
je 0x4155fd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4155fd
mov eax, dword [0x426288]
cmp eax, dword [ebp - 0x18]
je 0x4155fd
push eax
call esi
test eax, eax
je 0x4155fd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426280]
call esi
test eax, eax
je 0x415619
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41561b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
leave
ret
Function at 0x4145e1
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], fcn.004145e1
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
pop ebp
ret

Function at 0x419542
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419581
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419581
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419581
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419581
cmp dword [ecx + 0x74], 0xe
jbe 0x419581
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419e04
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 0x419e3f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x419e26
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x419e37
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x419e41
inc edi
add eax, 0x28
cmp edi, esi
jb 0x419e1c
xor eax, eax
pop edi
pop esi
ret

Function at 0x41a091
Capabilities:
Contain obfuscated stackstrings

Disassembly:
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 0x41a0b2
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
invalid

Function at 0x41a0bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx

Function at 0x41a17d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d

Function at 0x41a427
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1