joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401320
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x401330
cmp esi, 9
jle 0x40133d
push 0x411088
call fcn.00408910
add esp, 4
mov ecx, 0x4000
xor eax, eax
mov edi, 0x4338a0
xor edx, edx
mov dx, word [esi*8 + 0x41103c]
mov dword [0x4137d8], esi
rep stosd dword es:[edi], eax
mov ax, word [esi*8 + 0x41103a]
xor ecx, ecx
mov cx, word [esi*8 + 0x411038]
mov dword [0x4137cc], eax
xor eax, eax
cmp esi, 1
mov ax, word [esi*8 + 0x41103e]
mov dword [0x463a50], ecx
mov dword [0x463a48], edx
mov dword [0x463a4c], eax
jne 0x40139b
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x4013a7
cmp esi, 9
jne 0x4013a7
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4438c0
mov dword [0x463a44], esi
mov dword [0x463a58], esi
call dword [0x463a5c]
add esp, 8
cmp eax, esi
mov dword [0x4137dc], eax
je 0x401426
cmp eax, 0xffffffff
je 0x401426
mov edi, 0x106
mov dword [0x4137d4], esi
cmp eax, edi
jae 0x4013fa
cmp dword [0x4137d4], esi
jne 0x4013fa
call fcn.00401590
cmp dword [0x4137dc], edi
jb 0x4013e5
xor ecx, ecx
xor eax, eax
xor edx, edx
and ecx, 0x3ff
mov dl, byte [eax + 0x4438c0]
and edx, 0x7fff
shl ecx, 5
xor ecx, edx
inc eax
cmp eax, 2
jb 0x4013fe
pop edi
mov dword [0x4137d0], ecx
pop esi
ret
mov dword [0x4137dc], esi
pop edi
mov dword [0x4137d4], 1
pop esi
ret
Function at 0x4019a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4137dc]
push esi
xor esi, esi
mov dword [0x463a40], 2
test eax, eax
je 0x401ba4
mov edx, dword [0x4137d0]
mov ecx, dword [0x463a44]
push ebx
push edi
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x4438c2]
mov edi, ecx
and eax, 0x7fff
and edi, 0x7fff
shl edx, 5
xor eax, edx
xor edx, edx
mov dword [0x4137d0], eax
mov dx, word [eax*2 + 0x4338a0]
mov word [edi*2 + 0x4238a0], dx
mov word [eax*2 + 0x4338a0], cx
test edx, edx
je 0x401a32
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x401a32
push edx
call fcn.00401440
mov esi, eax
mov eax, dword [0x4137dc]
add esp, 4
cmp esi, eax
jbe 0x401a2c
mov esi, eax
mov ecx, dword [0x463a44]
cmp esi, 3
jb 0x401af8
mov ebx, dword [0x463a54]
lea edx, [esi - 3]
sub ecx, ebx
push edx
push ecx
call fcn.004069d0
mov ecx, dword [0x4137dc]
mov edi, eax
mov eax, dword [0x4137cc]
add esp, 8
sub ecx, esi
cmp esi, eax
mov dword [0x4137dc], ecx
ja 0x401ac0
mov edx, dword [0x4137d0]
mov ecx, dword [0x463a44]
dec esi
inc ecx
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x4438c2]
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov eax, ecx
and eax, 0x7fff
dec esi
mov bx, word [edx*2 + 0x4338a0]
mov word [eax*2 + 0x4238a0], bx
mov word [edx*2 + 0x4338a0], cx
jne 0x401a76
inc ecx
mov dword [0x4137d0], edx
mov dword [0x463a44], ecx
jmp 0x401b2d
mov ecx, dword [0x463a44]
xor edx, edx
add ecx, esi
xor eax, eax
xor esi, esi
mov dword [0x463a44], ecx
mov dl, byte [ecx + 0x4438c0]
mov al, byte [ecx + 0x4438c1]
and edx, 0x3ff
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov dword [0x4137d0], edx
jmp 0x401b2d
xor edx, edx
mov dl, byte [ecx + 0x4438c0]
push edx
push 0
call fcn.004069d0
mov ecx, dword [0x4137dc]
add esp, 8
mov edx, dword [0x4137d0]
dec ecx
mov dword [0x4137dc], ecx
mov ecx, dword [0x463a44]
inc ecx
mov edi, eax
mov dword [0x463a44], ecx
test edi, edi
je 0x401b65
mov edx, dword [0x463a58]
test edx, edx
jl 0x401b43
lea eax, [edx + 0x4438c0]
jmp 0x401b45
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.004060c0
mov ecx, dword [0x463a44]
mov edx, dword [0x4137d0]
add esp, 0xc
mov dword [0x463a58], ecx
mov eax, dword [0x4137dc]
cmp eax, 0x106
jae 0x401b98
mov edi, dword [0x4137d4]
test edi, edi
jne 0x401b98
call fcn.00401590
mov eax, dword [0x4137dc]
mov edx, dword [0x4137d0]
mov ecx, dword [0x463a44]
cmp eax, 0x106
jb 0x401b71
test eax, eax
jne 0x4019c8
pop edi
pop ebx
jmp 0x401baa
mov ecx, dword [0x463a44]
mov edx, dword [0x463a58]
pop esi
test edx, edx
jl 0x401bca
sub ecx, edx
lea eax, [edx + 0x4438c0]
push 1
push ecx
push eax
call fcn.004060c0
add esp, 0xc
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.004060c0
add esp, 0xc
ret
Function at 0x404090
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x411438]
sub esp, 0xc
test eax, eax
push ebp
mov ebp, dword [esp + 0x18]
je 0x404241
test ebp, ebp
jl 0x404249
mov eax, dword [0x413818]
mov dword [0x411438], 0
test eax, eax
je 0x4040cd
push 0x41218c
call fcn.0040947e
add esp, 4
mov eax, dword [0x41381c]
test eax, eax
jne 0x4040e3
push 0x41215c
call fcn.0040947e
add esp, 4
mov eax, dword [0x4539ec]
push esi
or esi, 0xffffffff
cmp ebp, 8
push edi
mov dword [0x423880], 0xffffffff
mov dword [0x4539e4], eax
jne 0x4041c1
mov eax, dword [0x4538c0]
test eax, eax
jne 0x4041c1
mov edi, dword [esp + 0x1c]
push 2
push 0xfffffffffffffff8
push edi
call fcn.0040baa8
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x4539e4], eax
je 0x4041c1
lea ecx, [esp + 0xc]
push ebp
add eax, ebp
push ecx
push edi
mov dword [0x4539e4], eax
call fcn.0040d47f
add esp, 0xc
cmp eax, ebp
je 0x404150
call fcn.00408940
mov esi, dword [esp + 0xf]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xd]
and esi, 0xff
mov ecx, dword [esp + 0xc]
and edx, 0xff
shl esi, 8
or esi, edx
mov edx, dword [esp + 0x13]
shl esi, 8
and eax, 0xff
and edx, 0xff
or esi, eax
mov eax, dword [esp + 0x12]
shl esi, 8
and ecx, 0xff
and eax, 0xff
shl edx, 8
or esi, ecx
mov ecx, dword [esp + 0x11]
or edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
and ecx, 0xff
and eax, 0xff
or edx, ecx
shl edx, 8
or edx, eax
mov dword [0x423880], edx
push 0x416ee0
call fcn.00409465
add eax, 4
xor edi, edi
add esp, 4
mov byte [eax + 0xc], 0
mov ecx, dword [0x413818]
cmp ecx, edi
je 0x4041f8
mov ecx, dword [ebp*4 + 0x41143c]
push eax
push esi
push ecx
push 0x41214c
call fcn.0040947e
add esp, 0x10
mov edx, dword [0x423880]
mov eax, dword [0x4539e4]
push edx
push eax
push 0x412140
call fcn.0040947e
mov ecx, dword [0x4539e4]
add esp, 0xc
cmp ecx, 0xffffffff
jne 0x4042c3
mov dword [0x413830], ecx
xor eax, eax
xor ecx, ecx
mov dword [0x416e98], edi
mov dword [0x423880], eax
mov dword [0x4539e4], ecx
jmp 0x4042f9
test ebp, ebp
jge 0x4040e3
mov ecx, dword [0x413830]
test ecx, ecx
jle 0x404335
mov eax, dword [0x413834]
test eax, eax
jle 0x404335
mov edx, dword [0x413818]
test edx, edx
je 0x404277
push eax
push ecx
push 0x412118
jmp 0x404288
mov edx, dword [0x41381c]
test edx, edx
jne 0x40429b
push eax
push ecx
push 0x412140
call fcn.0040947e
mov ecx, dword [0x413830]
mov eax, dword [0x413834]
add esp, 0xc
mov edx, dword [0x416e98]
push 0x412d80
sub edx, ecx
push eax
add edx, eax
push edx
call fcn.004089c0
push 0x41210c
call fcn.0040947e
add esp, 0x10
pop ebp
add esp, 0xc
ret
mov eax, dword [0x413830]
cmp eax, edi
jl 0x4042d3
add eax, ecx
mov dword [0x413830], eax
mov eax, dword [0x423880]
cmp eax, 0xffffffff
jne 0x4042f9
mov dword [0x413834], eax
xor eax, eax
xor ecx, ecx
mov dword [0x416e98], edi
mov dword [0x423880], eax
mov dword [0x4539e4], ecx
jmp 0x40430b
mov edx, dword [0x413834]
cmp edx, edi
jl 0x40430b
add edx, eax
mov dword [0x413834], edx
mov ebp, dword [0x416e98]
push 0x412d80
push eax
sub eax, ecx
add eax, ebp
push eax
call fcn.004089c0
push 0x416f00
push 0x412104
call fcn.0040947e
add esp, 0x14
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x404990
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea edx, [esp + 4]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov dword [esp + 0x10], ecx
call fcn.0040f0ab
add esp, 8
test eax, eax
je 0x404a19
mov cx, word [esi + 6]
and ecx, 0xf000
cmp ecx, 0x4000
je 0x404a19
mov eax, dword [0x41381c]
test eax, eax
jne 0x4049f0
mov edx, dword [0x4539e8]
push edx
push 0x411e2c
push 0x412da0
call fcn.00408e30
add esp, 0xc
mov eax, dword [0x413828]
test eax, eax
jne 0x404a03
mov dword [0x413828], 2
mov eax, dword [0x41381c]
test eax, eax
jne 0x404a19
push 0x416f00
call fcn.004092f7
add esp, 4
pop esi
add esp, 8
ret

Function at 0x404a20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41383c]
test eax, eax
je 0x404a33
mov eax, dword [esp + 4]
push eax
call fcn.00409390
mov eax, dword [0x417004]
mov dword [0x41383c], 1
test eax, eax
je 0x404a59
push eax
call fcn.004096f0
add esp, 4
mov dword [0x417004], 0
mov eax, dword [0x41382c]
test eax, eax
je 0x404a75
push eax
call fcn.004096f0
add esp, 4
mov dword [0x41382c], 0
mov ecx, dword [esp + 4]
push ecx
call fcn.00409390
nop
Function at 0x408500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x408515
or eax, 0xffffffff
pop esi
mov dword [0x41290c], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x41290c]
test esi, esi
je 0x408542
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x412910]
xor eax, edx
inc ecx
dec esi
jne 0x408523
pop ebx
mov dword [0x41290c], eax
pop esi
not eax
ret

Function at 0x408570
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x417008]
push 0x8000
push 0x417020
push eax
mov dword [0x41f06c], 0
mov dword [0x416bc8], 0
call fcn.0040d47f
add esp, 0xc
test eax, eax
je 0x4085dd
cmp eax, 0xffffffff
je 0x4085dd
mov ecx, dword [0x41f06c]
add ecx, eax
cmp ecx, 0x8000
mov dword [0x41f06c], ecx
jae 0x4085e3
mov edx, 0x8000
lea eax, [ecx + 0x417020]
sub edx, ecx
mov ecx, dword [0x417008]
push edx
push eax
push ecx
call fcn.0040d47f
add esp, 0xc
test eax, eax
jne 0x4085a0
mov ecx, dword [0x41f06c]
test ecx, ecx
jne 0x4085fe
mov eax, dword [esp + 4]
test eax, eax
je 0x4085f3
or eax, 0xffffffff
ret
call fcn.00408940
mov ecx, dword [0x41f06c]
mov eax, dword [0x4539e4]
mov dword [0x41f070], 1
add eax, ecx
mov dword [0x4539e4], eax
xor eax, eax
mov al, byte [0x417020]
ret

Function at 0x40c1ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413380
cmp edx, dword [eax]
je 0x40c20f
add eax, 8
inc ecx
cmp eax, 0x413410
jl 0x40c200
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413380]
jne 0x40c33d
mov eax, dword [0x416c1c]
cmp eax, 1
je 0x40c317
test eax, eax
jne 0x40c240
cmp dword [0x413204], 1
je 0x40c317
cmp edx, 0xfc
je 0x40c33d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c277
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040db80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a5b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c2ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a5b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4107b0
push edi
call fcn.00409070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040db80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040db90
lea eax, [ebp - 0xa0]
push 0x410790
push eax
call fcn.0040db90
push dword [esi + 0x413384]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040db90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040dfa5
add esp, 0x2c
pop edi
jmp 0x40c33d
lea eax, [ebp + 8]
lea esi, [esi + 0x413384]
push 0
push eax
push dword [esi]
call fcn.0040a5b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40f06c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f097
test byte [esp + 8], 0x80
je 0x40f086
and al, 0xfe
jmp 0x40f088
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40f0a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cd8e
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x10008ee0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x10008f4e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008fa5
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10008fbd
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008fc8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret

Function at 0xfff180
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfff18a
pushal
call 0xfff190
pop ebp
sub ebp, 0x10
sub ebp, 0xbff180
jmp 0xfff1a6
mov eax, 0xbff180
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x64e46517
xor byte [eax], dl
inc eax
dec ecx
jne 0xfff1bd
jmp 0xfff1d0
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
adc dl, byte [edi]
pop ss
pop ss
lodsd eax, dword [esi]
aas
pop ss
pop ss
pop ss
loopne 0xfff1e1
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
adc al, 0xd2
lcall 0x3313, 0x9eeb3373
inc edi
jg 0xfff21f
mov esp, 0x6f7f1736
push ecx
mov dword [edi], edx
push ss
cmp esi, dword [ebx]
jg 0xfff25d
dec esp
retf 0xffba
pushfd
xchg edx, eax
pop ds
pop ss
pop ss
pop ss
pushfd
sbb byte [ebx], 0x17
pop ss
pop ss
pushfd
lcall 0xfed6, 0x17171707
adc eax, 0xd5941526
adc ebx, dword [esi + 0x18]
xchg edx, eax
jecxz 0xfff226
call 0x343b8f2b
lcall 0x171b, 0xd5133373
pushfd
wait
xor edx, dword [ebx]
pop ss
pop ss
pop ss
jg 0xfff272
mov esp, 0x6f7f1736
push ecx
mov dword [edi], edx
push ss
cmp esi, dword [ebx]
inc esi
call dword [edx]
pop ss
xor eax, dword [esi - 1]
adc dl, byte [edi]
pop ss
pop ss
invalid
call 0x63e80dd9
pop ds
jmp dword [ebp + 0x17]
Function at 0x40e1f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0xe3f7f745
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
sub eax, 0xae54f5fd
je 0x40e44d
jmp 0x40e22b
mov eax, dword [ebp - 0x24]
sub eax, 0xbc0f47b3
je 0x40e42b
jmp 0x40e23e
mov eax, dword [ebp - 0x24]
sub eax, 0xbf8ba3f2
je 0x40e461
jmp 0x40e251
mov eax, dword [ebp - 0x24]
sub eax, 0xe3f7f745
je 0x40e2c8
jmp 0x40e264
mov eax, dword [ebp - 0x24]
sub eax, 0xee053e9e
je 0x40e3cc
jmp 0x40e277
mov eax, dword [ebp - 0x24]
sub eax, 0xfb2cfb90
je 0x40e33e
jmp 0x40e28a
mov eax, dword [ebp - 0x24]
sub eax, 0x2e6c0c3
je 0x40e3b1
jmp 0x40e29d
mov eax, dword [ebp - 0x24]
sub eax, 0x2098ea04
je 0x40e459
jmp 0x40e2b0
mov eax, dword [ebp - 0x24]
sub eax, 0x49d69687
je 0x40e2f0
jmp 0x40e2c3
jmp 0x40e468
mov ecx, dword [ebp - 0x1c]
mov edx, 0xffffffff
xor edx, 2
mov eax, ecx
xor eax, edx
and eax, ecx
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0x15], al
mov dword [ebp - 0x20], 0x49d69687
jmp 0x40e468
mov eax, dword [0x440574]
mov ecx, dword [0x440570]
mov edx, eax
sub edx, 0x77e9f46b
sub edx, 1
add edx, 0x77e9f46b
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xbf8ba3f2
mov ecx, 0xfb2cfb90
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x40e468
mov ecx, dword [0x440574]
mov eax, dword [0x440570]
mov edx, ecx
sub edx, 0xded4ecb4
sub edx, 1
add edx, 0xded4ecb4
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xbf8ba3f2
mov ecx, 0x2e6c0c3
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x40e468
mov dl, byte [ebp - 0x15]
mov eax, 0x2098ea04
mov ecx, 0xee053e9e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x40e468
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x54e168a2
and eax, 0x54e168a2
and ecx, edx
mov edi, esi
and edi, 0x54e168a2
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x28]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x54e168a2
and ecx, edx
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xbc0f47b3
jmp 0x40e468
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x20], 0xae54f5fd
jmp 0x40e468
mov dword [ebp - 0x20], 0x2098ea04
jmp 0x40e468
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0xfb2cfb90
jmp 0x40e215
Function at 0x427ebb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427efa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427efa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427efa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427efa
cmp dword [ecx + 0x74], 0xe
jbe 0x427efa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42f65d
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 0x42f6fa
push ebx
push esi
call fcn.0042f626
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.0042f5ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f6a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f6f9
push edi
push eax
call fcn.0042e0f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f6c7
call fcn.0042e140
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f6f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f5ba
add esp, 0x20
test eax, eax
jne 0x42f6e6
push edi
call fcn.0042e140
jmp 0x42f6ee
push ebx
call fcn.0042e140
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 0x43090b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439e90
push 0x439e88
push str.FlsAlloc
push 0x1f
call fcn.004307ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43093f
push dword [ebp + 8]
mov ecx, esi
call dword [0x437144]
call esi
jmp 0x430945
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430989
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439ea0
push 0x439e98
push str.FlsGetValue
push 0x21
call fcn.004307ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4309c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x437144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4309c8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439ea8
push 0x439ea0
push str.FlsSetValue
push 0x22
call fcn.004307ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430a02
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x437144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x435cd0
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x27dc3008
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x71a82ff3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14565c5c
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x32c61015
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10004447
Capabilities:
Parse pe header

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