joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40614d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426da8], 0x55004e
mov dword [0x426dac], 0x4c
mov edi, 0x400
mov ebp, 0x426da8
je 0x4061a3
push 1
push 0
push esi
call fcn.00405ff7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062c2
cmp eax, edi
jg 0x4062c2
mov esi, 0x4275a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062c2
cmp eax, edi
jg 0x4062c2
push esi
push ebp
push str._ls_ls_r_n
push 0x4269a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a230]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406544
push 4
push 0xc0000000
push esi
call fcn.00405ff7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062c2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4062bb
push edi
push esi
push ebp
call fcn.0040607a
test eax, eax
je 0x4062bb
push str._Rename__r_n
push esi
call fcn.00405f5c
test eax, eax
jne 0x406259
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40628e
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f5c
mov ebp, eax
test ebp, ebp
je 0x40628a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40627b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406275
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406290
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269a8
push eax
call fcn.00405fb2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060a9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062c7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4062ea
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040614d
pop ecx
pop ecx
inc dword [0x42a2b0]
ret 8
Function at 0x4063d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406374
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406445
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406445
cmp dword [ebp + 0xc], 1
je 0x406449
cmp dword [ebp + 0xc], 2
je 0x406449
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc
Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417c36
mov eax, dword [0x6367f0]
test eax, eax
je 0x417c2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x50
ret
push ebx
push edi
lea eax, [esp + 0xc]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x6367f0], eax
test eax, eax
pop ebx
je 0x417cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov ecx, dword [0x6367f0]
push str.DirectSoundEnumerateA
push ecx
mov dword [0x6367ec], eax
call esi
mov ecx, dword [0x6367ec]
mov dword [0x6367f4], eax
test ecx, ecx
je 0x417cc7
test eax, eax
je 0x417cc7
mov eax, 1
pop esi
add esp, 0x50
ret
mov dword [0x6367f0], 0
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x45164c
Capabilities:
Encode data using xor

Disassembly:
dec edx
cmp al, byte [ebp - 0x5f]
push 0x38e9e28c
or ah, ch
mov edi, 0xeca3d9c6
dec esi
mov ah, 0xd4
call 0xb568176f
cmpsb byte [esi], byte es:[edi]
in al, 0xe8
xchg ebx, eax
xchg ebx, eax
jge 0x4515e0
xor al, 0x48
aaa
loopne 0x45160b
imul edi, dword [edi - 0x3bc766d1], 0xb58d8fd2
cmp edi, dword [edx + ebx - 0x7b]
pop edi
cmp al, cl
sub bl, byte [ebp - 0x20]
xchg esi, eax
out 0xbe, al
mov bh, 0x65
sub dh, byte [esp + ecx]
pop esp
insd dword es:[edi], dx
js 0x451597
js 0x451597
pop eax
xor al, 0xa6
mov al, 0xd5
in al, 0xa9
sbb edi, dword [edx - 0x463095c3]
cmp byte [ebx - 0x5e], dh
invalid
jbe 0x4515d0
push esp
js 0x4515db
pushal
pushfd
mov al, byte [0xc89ac75a]
int1
enter 0x7947, 0x52
rol byte [esi + 0x7415d0e7], 0x4d
test byte [eax], dh
int1
sbb byte [eax + 0x526004a6], ah
adc eax, 0x78345586
jno 0x451662
movsb byte es:[edi], byte [esi]
out dx, eax
push 0x37276dc9
ljmp 0x6c62
insb byte es:[edi], dx
insb byte es:[edi], dx
dec edx
test byte [eax], cl
movsb byte es:[edi], byte [esi]
arpl word [ebp + 0x4b0865e8], sp
leave
movsd dword es:[edi], dword [esi]
mov eax, 0xfd44f433
add al, 0x94
dec ebp
call 0x80eee232
jne 0x451616
pop edx
xor eax, 0x583b5303
add byte [edx - 0x23364fa0], 0xd6
and ebp, dword [ebp - 0x32]
push 0x1a
out dx, al
aam 0x6d
jo 0x4516fa
stosd dword es:[edi], eax
pushfd
dec esp
bound ecx, qword [edx + 0xd2e3e6a]
dec esi
xchg edx, eax
int 5
imul edx, dword [ecx + 0x42], 0xffffff9e
mov ah, 0x46
dec ebp
cmp bl, byte [edx + ebx*2 + 0x197b1a9e]
push eax
stosb byte es:[edi], al
xchg byte [esi - 0x7f], cl
retf 0xb028
in al, dx
in al, dx
pop esi
dec edi
pop edx
push cs
jp 0x45176d
mov ch, 0x87
mov esi, 0x6d860a05
shr ebp, 0x45
lcall 0xdb4e, 0x61f3077f
push esp
test al, 0xd7
dec esi
fist dword [eax + ebp*4 - 0x29]
push cs
pop es
lcall 0x8c5f, 0xa80f4e57
mov al, 0xaf
sbb ebx, edx
and al, 0xa8
leave
fimul dword [edx]
adc dl, byte ds:[edx]
in al, 0x28
lds eax, [0xc84aac8b]
inc esp
ret 0xa3cf
xchg esp, eax
ljmp 0xb085
mov ch, 0x9b
add eax, 0xd6d46c2a
outsb dx, byte [esi]
push eax
pop esi
jl 0x4517bb
bound ecx, qword [edx]
dec edi
js 0x451711
jg 0x45173e
outsd dx, dword [esi]
mov bl, 0xa7
mov cx, 0x60aa
mov bh, 0x37
nop
push ebp
mov dh, byte [edi + 0x40]
or ebx, esi
clc
inc ebx
out dx, eax
dec esp
xchg byte [edi], cl
fisub word [esi - 0x3156f57e]
das
mov dword [0x6cebefa2], eax
mov al, bl
inc ebx
mov esi, 0xb7802f97
add dword [edx + ebx - 0x1a], 0x50c10871
call dword [0x4a60fcb6]
mov ebp, 0xbd0ba970
mov edx, 0xf1459e6f
or edi, dword [ebp + 0x459e6fba]
int1
imul edx, edx, 0x96ed78d2
mov bh, 0x1d
je 0x45176f
pop ebx
popal
sub edx, dword [eax]
test dword [edi], 0x2a8019c0
cmp ebx, dword [ebx]
add eax, 0x2b827fa5
jp 0x451842
jecxz 0x451839
aas
cmp eax, edi
mov edx, 0x64a60630
adc dl, byte [ebp + 0x16]
fistp qword [ebx + 0x15]
add al, 0x9d
sti
dec dword [ecx + 0x1de68d1d]
jp 0x451879
cmp ecx, 0x59bff4a7
pop eax
sub bh, byte [eax]
invalid
sar dword [ecx], 0x97
sbb dword [ebx], edi
adc esi, dword [ecx]
Function at 0x629411
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333c0
cmp edx, dword [eax]
je 0x629433
add eax, 8
inc ecx
cmp eax, 0x633450
jl 0x629424
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333c0]
jne 0x629561
mov eax, dword [0x637d9c]
cmp eax, 1
je 0x62953b
test eax, eax
jne 0x629464
cmp dword [0x6332e8], 1
je 0x62953b
cmp edx, 0xfc
je 0x629561
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62949b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062a280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6294de
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062a280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ed4c
push edi
call fcn.0062c150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629e00
lea eax, [ebp - 0xa0]
push 0x62ed2c
push eax
call fcn.00629e00
push dword [esi + 0x6333c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062c0c4
add esp, 0x2c
pop edi
jmp 0x629561
lea eax, [ebp + 8]
lea esi, [esi + 0x6333c4]
push 0
push eax
push dword [esi]
call fcn.0062a280
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403cf8
sub eax, 0x403c9e
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4243f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
mov dword [edi + 0x1711b], 0xaf41eb6
push edi
or ebp, 0xffffffff
jmp 0x42441a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x424421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x424410
mov eax, 1
add ebx, ebx
jne 0x424433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424428
jne 0x424444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424428
xor ecx, ecx
sub eax, 3
jb 0x424458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4244ca
mov ebp, eax
add ebx, ebx
jne 0x424463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x424470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x424494
inc ecx
add ebx, ebx
jne 0x424480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x424475
jne 0x424491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4244b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4244a5
jmp 0x424416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4244b4
add edi, ecx
jmp 0x424416
pop esi
mov edi, esi
mov ecx, 0xacf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4244d2
cmp byte [edi], 7
jne 0x4244d2
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 eax, ebx
loop 0x4244d7
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x424546
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x240a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x424504
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x240a8]
or eax, eax
je 0x424540
mov dword [ebx], eax
add ebx, 4
jmp 0x424521
call dword [esi + 0x240ac]
popal
jmp section.UPX0
Function at 0x10005390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 0x6d358478
mov byte [esp + 0x13], 0x76
mov cx, word [esp + 0x1e]
mov dx, cx
xor dx, 0xffff
mov bl, byte [esp + 0x13]
mov word [esp + 0x1e], dx
cmp bl, 0x3d
mov dword [esp + 8], eax
mov word [esp + 6], cx
mov byte [esp + 5], bl
jb 0x100054cf
lea eax, [fcn.10005390]
mov word [esp + 0x10], 0xb1b
mov dword [esp + 0x14], eax
jmp 0x1000549d
mov eax, 0x6d359478
mov ecx, 0x5c33694f
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 8]
sub ecx, esi
mov dword [esp + 0x2c], ecx
sub eax, dword [esp + 0x18]
sub edx, eax
mov word [esp + 0x1e], 0xc06a
and edx, 0xfffff000
mov di, word [esp + 6]
xor di, 0xba2c
mov word [esp + 0x1e], di
mov dword [esp + 0x14], edx
mov bl, byte [esp + 5]
mov byte [esp + 0x33], bl
jmp 0x100054bb
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop ebx
pop edi
pop ebp
ret
jmp 0x100053ee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x10005445
mov ax, 0x697
cmp ax, word [esp + 0x10]
jae 0x100054bb
mov cx, word [esp + 6]
mov ax, cx
or eax, 0x9103
mov dx, ax
mov word [esp + 0x1e], dx
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add eax, 0x7d2e74f5
adc esi, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jmp 0x10005439
mov ax, word [esp + 6]
mov word [esp + 0x1e], ax
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx]
cmp ecx, 0x5a4d
je 0x10005447
jmp 0x100053ee
mov al, 1
mov cx, word [esp + 6]
xor cx, 0xffff
mov word [esp + 0x1e], cx
test al, 1
jne 0x1000549d
mov dword [esp + 0xc], 0
jmp 0x10005439
Function at 0x100015b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov byte [edi + 0xc], 0
mov dword [edi + 4], 0
mov byte [eax], 0
xor eax, eax
cmp byte [edi + 0xc], al
mov esi, edi
setl al
inc eax
imul eax, eax, 0x105
call fcn.10004ae0
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareDownloadManager
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001638
mov eax, dword [edi]
mov edx, dword [edi + 8]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
push str.ExePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000162d
mov eax, dword [esp + 8]
call fcn.10004b30
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 4], 0
jne 0x1000167a
mov eax, dword [edi + 8]
xor ecx, ecx
cmp byte [edi + 0xc], cl
setl cl
xor edx, edx
inc ecx
div ecx
test eax, eax
je 0x10001655
dec eax
jmp 0x10001657
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [0x10009894]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10001676
or eax, 0xffffffff
mov esi, edi
call fcn.10004b30
cmp dword [edi + 4], 0
jbe 0x10001683
mov eax, edi
call fcn.100059b0
lea esi, [esp + 0x10]
call fcn.10004ab0
call fcn.100058f0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1e]
cmp eax, ecx
je 0x100016aa
test eax, eax
je 0x100016aa
push eax
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x10006710
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10006723
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1000671f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10006740
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1000677f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10006775
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10006781
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10006765
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6ce27cb5
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section._RDATA
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x77b14e2
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4048e3
Capabilities:
Parse pe header

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

Function at 0x404e00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x404e27
mov ecx, 5
int 0x29
push 2
call fcn.00404987
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x404f32
test esi, esi
jne 0x404f32
push 2
call fcn.00404987
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403fac
mov esp, ebp
pop ebp
ret

Function at 0x405150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00405180
mov esi, dword [ebp + 8]
test al, al
je 0x40516e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00405190
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4052c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40531c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40531c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40531c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40531c
cmp dword [ecx + 0x74], 0xe
jbe 0x40531c
cmp dword [ecx + 0xe8], 0
je 0x40531c
push dword [ebp + 8]
call fcn.00405190
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x40a570
call fcn.00404f60
add esp, 8
cmp dword [ebp - 8], 0
jne 0x405351
push dword [ebp + 8]
call fcn.00405150
mov esp, ebp
pop ebp
ret

Function at 0x405390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4053ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4053ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4053ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4053ec
cmp dword [ecx + 0x74], 0xe
jbe 0x4053ec
cmp dword [ecx + 0xe8], 0
je 0x4053ec
push dword [ebp + 8]
call fcn.00405190
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x40a570
call fcn.00404f60
add esp, 8
cmp dword [ebp - 8], 0
jne 0x405421
push dword [ebp + 8]
call fcn.00405150
mov esp, ebp
pop ebp
ret

Function at 0x405b60
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x405b8a
mov eax, 2
pop ebp
ret
push esi
call fcn.00404c50
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x405baa
jmp dword [eax*4 + 0x405be0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00404d90
or eax, 0xffffffff
pop esi
pop ebp
ret