joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019a5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10019afa
push ebx
push esi
call fcn.10019a26
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100187fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10019aa7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019af9
push edi
push eax
call fcn.100165ba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10019ac7
call fcn.100116b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019af8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100187fb
add esp, 0x20
test eax, eax
jne 0x10019ae6
push edi
call fcn.100116b2
jmp 0x10019aee
push ebx
call fcn.100116b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001bd77
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10011a56
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001bde6
cmp esi, dword [ebp - 4]
je 0x1001bde1
cmp dword [ebp + 0xc], 0
je 0x1001bde1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001bdbe
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001b8c9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001bde8
xor eax, eax
inc eax
jmp 0x1001bde8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001be4d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10011a56
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10011a56
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001bec4
cmp word [ecx], dx
je 0x1001bec4
mov eax, dword [0x10024994]
push edi
dec eax
push eax
push 0x10024880
call fcn.1001bdec
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001bf37
cmp word [eax], dx
je 0x1001bf37
mov eax, dword [edi]
test eax, eax
je 0x1001bee8
cmp word [eax], dx
je 0x1001bee8
lea eax, [ebp - 0x10]
push eax
call fcn.1001b7cf
jmp 0x1001bef1
lea eax, [ebp - 0x10]
push eax
call fcn.1001b86a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001bf61
mov eax, dword [0x1002487c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10024570
call fcn.1001bdec
add esp, 0xc
test al, al
je 0x1001bf61
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001bf2c
cmp word [eax], di
je 0x1001bf2c
lea eax, [ebp - 0x10]
push eax
call fcn.1001b7cf
pop ecx
jmp 0x1001bf63
lea eax, [ebp - 0x10]
push eax
call fcn.1001b86a
jmp 0x1001bf29
mov eax, dword [edi]
test eax, eax
je 0x1001bf4e
cmp word [eax], dx
je 0x1001bf4e
lea eax, [ebp - 0x10]
push eax
call fcn.1001b784
pop ecx
jmp 0x1001bf61
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001c02c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001bc71
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001c02c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001c02c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001c02c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001bfb9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001604c
test ebx, ebx
je 0x1001c027
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001604c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001c02c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001c02c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001e094
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001c02e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008a9a
leave
ret
Function at 0x1001e5c1
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.1001e53d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001e730
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001e730
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001e6e5
jg 0x1001e61d
test eax, eax
je 0x1001e6db
push 1
push 0x1000
call fcn.10014692
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001e640
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e6d2
push 0x8000
push ebx
call fcn.1001e46e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001e669
jg 0x1001e664
cmp ecx, 0x1000
jb 0x1001e669
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014476
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001e6ae
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 0x1001e664
jl 0x1001e695
test ecx, ecx
jne 0x1001e656
push dword [ebp - 0xc]
push ebx
call fcn.1001e46e
push esi
call fcn.100116b2
add esp, 0xc
xor ebx, ebx
jmp 0x1001e73e
cmp byte [edi + 0x24], 0
je 0x1001e6c5
cmp dword [edi + 0x20], 5
jne 0x1001e6c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001e6d0
mov ebx, dword [edi + 0x18]
jmp 0x1001e6d2
xor ebx, ebx
push esi
call fcn.100116b2
pop ecx
jmp 0x1001e73e
test ecx, ecx
jg 0x1001e6a7
jl 0x1001e6e5
test eax, eax
jae 0x1001e6a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014935
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001e705
cmp byte [edi + 0x1c], 0
je 0x1001e6a7
jmp 0x1001e736
push ebx
call fcn.1001c407
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001e6a7
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 0x1001e73e
cmp byte [edi + 0x1c], 0
je 0x1001e73b
mov ebx, dword [edi + 0x18]
jmp 0x1001e73e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10014935
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001fa40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001fa6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001fa6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
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
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402411
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x5c
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00408550
mov eax, dword [ebp + 8]
mov ecx, ebx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 8], esi
call fcn.004020b8
push edi
lea esi, [ebp - 0x60]
call fcn.004022f7
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.004081d0
leave
ret

Function at 0x4026a2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4026aa
mov dword [ecx*4 + 0x418d58], eax
inc ecx
cmp ecx, 0x100
jb 0x4026a5
mov edx, 0x800
jmp 0x4026f7
mov eax, dword [ecx*4 + 0x418958]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x418d58]
inc ecx
mov dword [ecx*4 + 0x418d54], eax
cmp ecx, edx
jb 0x4026d6
mov dword [0x41ad58], 0x40293a
call fcn.004025e8
test eax, eax
jne 0x402718
mov dword [0x41ad58], 0x4029d6
pop esi
ret

Function at 0x40276b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x4027b3
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x402784
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x4027b8
test ecx, ecx
je 0x4027b3
test edi, edi
jne 0x402779
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4027b5
Function at 0x407beb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00408550
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00407318
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004081d0
leave
ret

Function at 0x407c54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x407c74
mov eax, dword [esi]
jmp 0x407c76
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407c88
mov al, 1
jmp 0x407d28
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408550
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407cae
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00409191
and dword [ebp - 0x230], 0
pop ecx
pop ecx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x1494
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], 0
pop edi
je 0x407d11
xor al, al
jmp 0x407d28
test eax, eax
je 0x407d25
cmp eax, 2
je 0x407d25
cmp eax, 0x402
je 0x407d25
xor eax, eax
jmp 0x407d28
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004081d0
leave
ret
Function at 0x407d35
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41204a
mov eax, dword fs:[0]
push eax
mov eax, 0x229c
call fcn.0040fef0
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22a4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x22a8], eax
cmp eax, esi
je 0x407ecc
lea eax, [ebp - 0x244]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jae 0x407ecc
cmp eax, esi
je 0x407ecc
push esi
call fcn.004091b2
push eax
call fcn.00409055
pop ecx
pop ecx
mov dword [ebp - 0x22a0], esi
jmp 0x407dbe
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2268], 7
mov dword [ebp - 0x226c], esi
mov word [ebp - 0x227c], ax
mov eax, dword [ebp - 0x22a4]
push 0xffffffffffffffff
push esi
lea edi, [ebp - 0x227c]
mov dword [ebp - 4], esi
call fcn.004073fc
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.00409067
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.00409167
lea eax, [ebp - 0x38]
push eax
call fcn.00408e96
add esp, 0x14
lea ecx, [ebp - 0x38]
mov ebx, eax
push ecx
lea eax, [ebp - 0x227c]
call fcn.00407366
lea eax, [ebp - 0x244]
push eax
lea esi, [ebp - 0x2298]
call fcn.00407318
mov edi, eax
push 0
lea eax, [ebp - 0x227c]
xor ebx, ebx
push eax
inc ebx
or eax, 0xffffffff
mov byte [ebp - 4], bl
call fcn.00407554
push eax
lea eax, [ebp - 0x2260]
call fcn.004072f0
push ebx
xor edi, edi
mov byte [ebp - 4], 3
call fcn.00407514
cmp dword [ebp - 0x224c], 8
mov eax, dword [ebp - 0x2260]
jae 0x407e8e
lea eax, [ebp - 0x2260]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407ee8
push ebx
xor edi, edi
lea esi, [ebp - 0x2260]
call fcn.00407514
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp - 0x227c]
call fcn.00407514
inc dword [ebp - 0x22a0]
cmp dword [ebp - 0x22a0], 0x32
jl 0x407dbc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081d0
leave
ret
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2244], ax
lea eax, [ebp - 0x2242]
push eax
call fcn.00408550
mov eax, dword [ebp - 0x2260]
add esp, 0xc
cmp dword [ebp - 0x224c], 8
jae 0x407f1b
lea eax, [ebp - 0x2260]
push 0x1000
lea ecx, [ebp - 0x2244]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x407f5d
mov byte [ebp - 0x2299], al
push ebx
xor edi, edi
lea esi, [ebp - 0x2260]
call fcn.00407514
push ebx
lea esi, [ebp - 0x227c]
call fcn.00407514
mov al, byte [ebp - 0x2299]
jmp 0x407ece
mov ecx, dword [ebp - 0x22a8]
lea eax, [ebp - 0x2244]
call fcn.00407492
mov byte [ebp - 0x2299], bl
jmp 0x407f38
Function at 0x407f76
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x40801a
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40801a
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40800e
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40800e
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00408fd5
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.00408550
add esp, 0x10
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40800e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40801c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408021
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4159b8
call fcn.0040b830
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
test ecx, ecx
je 0x408069
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408069
mov eax, dword [ecx + 0x3c]
add eax, ecx
je 0x408069
cmp dword [eax], 0x4550
jne 0x408069
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x1c], 1
jmp 0x408070
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.0040b875
ret

Function at 0x4081d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41729c]
jne 0x4081da
repz ret
jmp fcn.0040a8f7
Function at 0x40de3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41729c]
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.0040ce7e
and dword [ebp - 0x14], 0
cmp dword [0x418cdc], 0
mov dword [ebp - 0x18], eax
jne 0x40deef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40df97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413dec
push ebx
call edi
test eax, eax
je 0x40df97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x418cdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x418ce0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x418ce4], eax
call edi
push eax
call esi
mov dword [0x418cec], eax
test eax, eax
je 0x40deef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x418ce8], eax
mov eax, dword [0x418ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40df48
cmp dword [0x418cec], ecx
je 0x40df48
push eax
call esi
push dword [0x418cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40df48
test ebx, ebx
je 0x40df48
call edi
test eax, eax
je 0x40df3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40df3f
test byte [ebp - 8], 1
jne 0x40df48
or dword [ebp + 0x10], 0x200000
jmp 0x40df7b
mov eax, dword [0x418ce0]
cmp eax, dword [ebp - 0x18]
je 0x40df7b
push eax
call esi
test eax, eax
je 0x40df7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40df7b
mov eax, dword [0x418ce4]
cmp eax, dword [ebp - 0x18]
je 0x40df7b
push eax
call esi
test eax, eax
je 0x40df7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x418cdc]
call esi
test eax, eax
je 0x40df97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40df99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081d0
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3aec76a4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2991792d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1fdc63ce
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x54ae21a2
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x457e80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x457ea2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x6d]
inc eax
xor byte [edx], cl
cmp eax, 0xf
jb 0x457e90
mov byte [esi + 0x10], 0
pop esi
ret

Function at 0x457eb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa], 0
je 0x457ed2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x6d]
inc eax
xor byte [edx], cl
cmp eax, 9
jb 0x457ec0
mov byte [esi + 0xa], 0
pop esi
ret

Function at 0x457ee0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
je 0x457f02
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x6d]
inc eax
xor byte [edx], cl
cmp eax, 0xb
jb 0x457ef0
mov byte [esi + 0xc], 0
pop esi
ret

Function at 0x457f10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x457f32
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x6d]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x457f20
mov byte [esi + 0xb], 0
pop esi
ret

Function at 0x474330
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004741a6
Function at 0x409e2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x409e2a
lcall 0x5de5, 0x8b10c483
jmp loc.0077d560