joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e2e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x403e75
cmp ebx, 0x20
je 0x403e75
cmp ebx, 0xffffffe0
je 0x403e75
jne 0x403e7e
add eax, 1
cmp esi, eax
je 0x403e8b
jne 0x403e5a
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x403e8f
jne 0x403e56
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x403ea3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x403f64
test ecx, ecx
je 0x403f64
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x403f64
test ebx, ebx
je 0x403f64
mov ebx, eax
add ebx, edx
je 0x403f64
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x403f64
cmp dword [edx + eax + 0x14], 0
je 0x403f64
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x403f64
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x403f54
test dl, dl
je 0x403f50
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x403f54
add edi, 2
add esi, 2
test dl, dl
jne 0x403f34
xor eax, eax
jmp 0x403f59
sbb eax, eax
or eax, 1
test eax, eax
je 0x403f70
inc ebp
cmp ebp, dword [esp + 4]
jb 0x403f21
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x404ed1
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x404eff
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x404ef6
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x404eee
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404f20
mov esp, ebp
pop ebp
ret

Function at 0x404f24
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404f90
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x404fbd
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x404fac
xor ecx, eax
xor edx, ebx
dec edi
jne 0x404f9d
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x404fe3
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404f84
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40500f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4064e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4064fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4064f3
pop esi
ret
Function at 0x41522f
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 0x41525d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41527b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415195
jmp 0x41527b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41527b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415195
test edi, edi
mov eax, edi
jne 0x415265
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xa04058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa041a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0406a
add dl, dl
jne 0xa04089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa040dc
xor eax, eax
add dl, dl
jne 0xa04096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0417d
add dl, dl
jne 0xa040a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa040d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa04075
mov eax, 1
add dl, dl
jne 0xa040ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa040e1
sub eax, ebx
mov ebx, 1
jne 0xa04128
mov ecx, 1
add dl, dl
jne 0xa0410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa04119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa04105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa04136
cmp eax, 0x7d00
jae 0xa0416d
cmp eax, 0x500
jb 0xa04168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
cmp eax, 0x7f
ja 0xa04170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa04075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402fa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40303c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40301c
xor eax, eax
push ebp
push 0x403015
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403058
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40301c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40b010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403960
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x4039c1
cmp word [0x40c208], 0xd7b2
jne 0x403989
cmp dword [0x40c210], 0
jbe 0x403989
mov eax, 0x40c204
call dword [0x40c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4039e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b01c], 0
jne 0x4039dd
push 0
push 0x40b740
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d34
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x404e3e
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x404d87
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403ba4
jmp 0x404e25
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00404ce4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00404d04
mov ebx, eax
test esi, esi
je 0x404daf
dec esi
test esi, esi
jl 0x404daf
cmp edi, ebx
jne 0x404d8e
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403c90
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403ef8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403d14
cmp eax, 2
jl 0x404e25
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x404e25
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403d14
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x404e25
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403d14
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e45
lea eax, [ebp - 0x110]
call fcn.00403ae0
ret
Function at 0x404f30
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403c90
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00404ed4
ret

Function at 0x404f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x404fd4
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403ee4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404fd4
cmp dword [esp + 4], 4
je 0x404fd9
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x404fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403ee4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4061d8
Capabilities:
Get file attributes

Disassembly:
call fcn.00404960
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4061ec
dec eax
and al, 0x10
sete al
ret

Function at 0x407158
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x407164
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x407180
push eax
je 0x407181
call dword [0x40b7e0]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x177], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40b7e0]
ret
Function at 0x401000
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x328], edi
cmp edi, ebx
je 0x401236
push esi
push 0x20
push edi
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x324], ebx
call fcn.00401260
push 0x22
push edi
mov esi, eax
call fcn.00401260
add esp, 0x10
mov edi, eax
cmp esi, ebx
je 0x401235
push 0x22
cmp edi, esi
jae 0x4010b7
lea eax, [edi + 1]
push eax
call fcn.00401260
add esp, 8
mov dword [ebp - 0x320], eax
cmp eax, ebx
je 0x401235
push 0x20
push eax
call fcn.00401260
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401235
push 0x22
push esi
call fcn.00401260
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4010d5
lea ecx, [ebx + 1]
push 0x22
push ecx
call fcn.00401260
add esp, 8
mov dword [ebp - 0x324], eax
test eax, eax
jne 0x4010d5
jmp 0x401235
mov ebx, edi
lea edx, [ebx + 1]
push edx
xor edi, edi
call fcn.00401260
add esp, 8
mov dword [ebp - 0x324], eax
test eax, eax
je 0x401235
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x32c], 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov edx, dword [ebp - 0x328]
test edi, edi
je 0x401105
mov ecx, dword [ebp - 0x320]
inc edi
mov dword [ebp - 0x320], ecx
jmp 0x40110d
mov edi, edx
mov dword [ebp - 0x320], esi
test ebx, ebx
je 0x40111c
lea esi, [ebx + 1]
mov ebx, dword [ebp - 0x324]
jmp 0x40112e
mov eax, edx
inc esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401122
sub eax, ebx
lea ebx, [eax + edx]
mov edx, dword [ebp - 0x320]
mov byte [edx], 0
lea edx, [ebp - 0x10c]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401141
lea edx, [ebp - 0x214]
mov byte [ebx], cl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401157
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x10c]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x10c]
push ecx
call ebx
xor eax, eax
jmp 0x401190
mov cl, byte [ebp + eax - 0x10c]
mov byte [ebp + eax - 0x31c], cl
inc eax
test cl, cl
jne 0x401190
lea edx, [ebp - 0x31c]
push 0x2e
push edx
call fcn.00401320
add esp, 8
test eax, eax
je 0x4011bb
mov byte [eax], 0
lea eax, [ebp - 0x31c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4011c2
mov ecx, dword [str..tmp]
mov dl, byte [0x40612c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0040134d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
lea edx, [ebp - 0x31c]
push edx
call esi
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x214]
push edx
call edi
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea ecx, [ebp - 0x214]
push ecx
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401380
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401380
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40138a
repz ret
jmp fcn.004015ba

Function at 0x40345b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.0040240b
and dword [ebp - 0x14], 0
cmp dword [0x409748], 0
mov dword [ebp - 0x18], eax
jne 0x40350e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4035b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4035b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x409748], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40974c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x409750], eax
call edi
push eax
call esi
mov dword [0x409758], eax
test eax, eax
je 0x40350e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x409754], eax
mov eax, dword [0x409754]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403567
cmp dword [0x409758], ecx
je 0x403567
push eax
call esi
push dword [0x409758]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403567
test ebx, ebx
je 0x403567
call edi
test eax, eax
je 0x40355e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40355e
test byte [ebp - 8], 1
jne 0x403567
or dword [ebp + 0x10], 0x200000
jmp 0x40359a
mov eax, dword [0x40974c]
cmp eax, dword [ebp - 0x18]
je 0x40359a
push eax
call esi
test eax, eax
je 0x40359a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40359a
mov eax, dword [0x409750]
cmp eax, dword [ebp - 0x18]
je 0x40359a
push eax
call esi
test eax, eax
je 0x40359a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x409748]
call esi
test eax, eax
je 0x4035b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4035b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401380
leave
ret
Function at 0x1401110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x158c7e0
push 0x144a2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x14011b2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x14011b2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x14011b2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x14011b2
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1401480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1401548
nop word [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x14014c5
sub edi, 0x8000000
jmp 0x1401540
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1401548
cmp dword [ebp - 0xc], 0x10000
jne 0x140152b
cmp dword [ebp - 0x10], 0x10000
jb 0x140152b
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1401548
sub edi, 0x10000
jmp 0x1401540
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x14014b0
movzx eax, si
test eax, eax
je 0x1401557
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1401602
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1401585
add esi, 0x8000000
jmp 0x14015fa
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x1401602
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x14015e5
cmp ecx, 0x10000
jb 0x14015e5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1401602
add esi, 0x10000
jmp 0x14015fa
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x14015fa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401570
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1401610
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15bcfa4], 0
jne 0x140168c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x15bcfa4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x140168c
push esi
mov esi, dword [0x15bcfb0]
mov dword [0x15bcfb8], eax
mov dword [0x15bcfb4], eax
mov dword [0x15bcfac], eax
push edi
test esi, esi
je 0x140166e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x140167b
mov esi, dword [esi + 4]
test esi, esi
jne 0x1401655
xor eax, eax
pop edi
mov dword [0x15bcfa0], eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x15bcfa0], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x1405cb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1000
call fcn.0144a100
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xfff
push eax
call fcn.01402890
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0143119a
mov eax, dword [0x15bbf2c]
add esp, 0x1c
mov byte [esp + 0xfff], 0
test eax, eax
je 0x1405d0b
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1405d0b
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret