joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80eb80
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9a540], 0x37
jne 0x80ec23
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x404120
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb9a544]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x81a5a4]
mov byte [edx + esi], cl
add esp, 0xc0c
ret
Function at 0x80ee30
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9a540]
sub esp, 0xad4
push ebx
mov ebx, dword [0x81a5a4]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x80f021
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x80ee66
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0xb9a540], 0x1c
jne 0x80ee7d
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [ebx + 4]
mov edx, dword [0x8146f8]
mov eax, dword [0x8146fc]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x814700]
mov dword [esp + 0x34], edx
mov edx, dword [0x814704]
mov ebx, 0xc6ef3720
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x20
jmp 0x80eec2
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x38]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0xb994c4], esi
mov eax, dword [esp + 0x1c]
add dword [0xb994c4], eax
mov eax, dword [0xb994c4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0xb9a540], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x80ef56
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x3c]
cmp dword [0xb9a540], 0x979
mov dword [0xb994c8], 0xff6b3619
mov dword [0xb994cc], 0xffffffff
jne 0x80efa5
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2e4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x80eec0
cmp dword [0xb9a540], 0x8d4
jne 0x80efda
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ecx
cmp dword [0xb9a540], 0x17
jne 0x80f010
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x80ee60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xad4
ret
Function at 0x408915
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
or eax, ebx
mov eax, ebx
call fcn.00408940
sub ebx, 0xb685488e
sub ebx, 0xa1eef521
xor dword [edi], ecx
inc eax
inc edi
cmp edi, esi
jne fcn.00408915
ret
Function at 0x401ac8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401b1d
sub al, 7
je 0x401b91
dec al
je 0x401aeb
sub al, 2
je 0x401b15
sub al, 3
je 0x401b07
jmp 0x401b1d
mov eax, dword [0x408230]
cmp eax, dword [0x4080f0]
jle 0x401b91
dec dword [0x408230]
jmp 0x401b91
mov edi, dword [0x4080f0]
mov dword [0x408230], edi
jmp 0x401b91
inc dword [0x408220]
jmp 0x401b91
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4080e0]
mov word [ebp - 2], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x408220]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x408220]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x408140]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x408230]
mov eax, dword [0x408230]
cmp eax, dword [0x408110]
jle 0x401bbf
mov edi, dword [0x4080f0]
mov dword [0x408230], edi
inc dword [0x408220]
jmp 0x401bbf
push 1
call fcn.00401c68
dec dword [0x408220]
mov eax, dword [0x408220]
cmp eax, dword [0x408120]
jg 0x401bb2
leave
ret 4
Function at 0x405850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop edi
jbe 0x4058cb
or al, 0x33
rol byte [ebp + 0x57e974bd], 0x8b
lahf
mov esi, 0xaef21c23
mov eax, dword [ebp + 8]
not ecx
dec ecx
mov edi, ecx
stc
inc edi
jbe 0x4058c0
call 0x2e404a60
mov ecx, edi
sbb eax, 0xf2d18bf8
insd dword es:[edi], dx
add dh, bl
movsd dword es:[edi], dword [esi]
mov edi, ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 0x5e
pop ebp
ret 0xd808
or ecx, 0xffffffff
jp 0x40586c
repne scasb al, byte es:[edi]
not ecx
insd dword es:[edi], dx
iretd
add al, 3
test di, di
jne 0x4058a7
mov dl, 0x45
or dh, al
push edx
push eax
call 0xfff57e60
mov esi, dword [ebp + 0xc]
xor ecx, ecx
invalid

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

Disassembly:
sub esp, 0x2b
and ah, bl
mov dl, 0x55
add byte [ebx + 0x33], dl
cmp dword [esi - 0x7d], edx
clc
mov dword [0xf8ce9757], eax
mov dword [0xf05574f4], edx
jge 0x4098d5
mov eax, dword [ebp + 0x61]
mov eax, dword [edi + 8]
push eax
push ecx
call fcn.00409ed0
add esp, 0x67
pop edi
pop esi
pop ebx
mov edi, dword [edi + 0x4d8bee5d]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x5c]
test ecx, 0x730000
je 0x409b10
mov esi, dword [ecx - 0x67426902]
add byte [edi + 0x11], ah
add byte [ebp + ebx*2 - 0x13aa7604], bh
je 0x409900
test byte [ebp - 0x12], al
add dword [eax], eax
add byte [eax], al
mov ebx, dword [ebp + 0x7b]
mov edi, ecx
sbb dword [edx], 0x220000
je 0x409910
or ebx, 2
mov dword [ebp + 0x2e], ebx
and ecx, 0x700000
mov dword [eax + ebp*8 + 0x74], ecx
push es
inc edi
retf
inc eax
inc ecx
out 0xac, al
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
mov ecx, 0x2f4e39b0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x73016e4a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4069c5
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 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
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 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
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 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5a7b251d
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
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
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4625a53
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80ffbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40443c
call fcn.00406de1
push 4
mov dword [esp + 0x18], 0
call fcn.00407ca2
mov edi, eax
add esp, 4
test edi, edi
je 0x4061f4
push ebx
call fcn.00406cb9
mov dword [edi], eax
call fcn.00406a78
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406da2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4061e8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406dca
pop ebx
jmp 0x4061f6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408711
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813dc0]
jne 0x40871b
repz ret
jmp fcn.0040de7c
Function at 0x412a84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813dc0]
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.0040aa8a
and dword [ebp - 0x14], 0
cmp dword [0x8163b4], 0
mov dword [ebp - 0x18], eax
jne 0x412b37
push 0x403fb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412bdf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fa4
push ebx
call edi
test eax, eax
je 0x412bdf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f94
push ebx
mov dword [0x8163b4], eax
call edi
push eax
call esi
push 0x403f80
push ebx
mov dword [0x8163b8], eax
call edi
push eax
call esi
push 0x403f64
push ebx
mov dword [0x8163bc], eax
call edi
push eax
call esi
mov dword [0x8163c4], eax
test eax, eax
je 0x412b37
push 0x403f4c
push ebx
call edi
push eax
call esi
mov dword [0x8163c0], eax
mov eax, dword [0x8163c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412b90
cmp dword [0x8163c4], ecx
je 0x412b90
push eax
call esi
push dword [0x8163c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412b90
test ebx, ebx
je 0x412b90
call edi
test eax, eax
je 0x412b87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412b87
test byte [ebp - 8], 1
jne 0x412b90
or dword [ebp + 0x10], 0x200000
jmp 0x412bc3
mov eax, dword [0x8163b8]
cmp eax, dword [ebp - 0x18]
je 0x412bc3
push eax
call esi
test eax, eax
je 0x412bc3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412bc3
mov eax, dword [0x8163bc]
cmp eax, dword [ebp - 0x18]
je 0x412bc3
push eax
call esi
test eax, eax
je 0x412bc3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163b4]
call esi
test eax, eax
je 0x412bdf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412be1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408711
leave
ret
Function at 0x80ea30
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9b100], 0x37
jne 0x80ead3
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x404120
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb9b104]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x81b164]
mov byte [edx + esi], cl
add esp, 0xc0c
ret
Function at 0x80ecd0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9b100]
sub esp, 0xacc
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x81b164]
cmp eax, esi
jbe 0x80eea2
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jmp 0x80ed06
mov edi, dword [esp + 0x18]
xor esi, esi
cmp dword [0xb9b100], 0x1c
jne 0x80ed1d
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [0x8146f8]
mov edx, dword [0x8146fc]
mov eax, dword [0x814700]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x814704]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x80ed5a
xor esi, esi
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x30]
mov edx, ebx
shr edx, 5
add edx, dword [esp + 0x28]
lea ecx, [ebx + ebp]
xor eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [0xb9a084], esi
mov eax, dword [esp + 0x14]
add dword [0xb9a084], eax
mov edx, dword [0xb9a084]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov eax, edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xb9b100], 0x1be
jne 0x80edda
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0xb9b100], 0x979
mov dword [0xb9a088], 0xff6b3619
mov dword [0xb9a08c], 0xffffffff
jne 0x80ee27
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2dc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jne 0x80ed58
cmp dword [0xb9b100], 0x8d4
jne 0x80ee5f
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0xb9b100], 0x17
jne 0x80ee91
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x80ed00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xacc
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c487
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40c496
pop dword [ebp - 0x28]
mov eax, 0x40c496
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x5f26315f
add dword [ebp - 0x38], 0xef2c13ec
mov dword [ebp - 0x34], 0x625fb3b4
add dword [ebp - 0x34], 0xcfd39891
mov dword [ebp - 0x30], 0x60102de8
sub dword [ebp - 0x30], 0x13c3e9ba
mov dword [ebp - 0x2c], 0x36ef7ca7
sub dword [ebp - 0x2c], 0x36ef7ca7
lea eax, [ebp - 0x38]
push eax
mov eax, 0x4304f778
sub eax, 0x42bf4714
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x2914d5be
sub dword [ebp - 0x38], 0xb4a26c68
mov dword [ebp - 0x34], 0xbb03c6f6
sub dword [ebp - 0x34], 0x79976581
mov dword [ebp - 0x30], 0x1b285366
add dword [ebp - 0x30], 0x48471906
mov dword [ebp - 0x2c], 0xae9c16f6
add dword [ebp - 0x2c], 0x5163e90a
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x4f167
push 0
call eax
mov ecx, 0x6327cf9e
add ecx, 0x9cd87f60
xor esi, esi
add esi, eax
mov edi, 0x6081636
sub edi, 0x5c0b636
add edi, dword [ebp - 0x28]
mov ebx, 0x5488a2ea
sub dword [ebp - 0xc], esi
mov edx, dword [edi]
add dword [ebp - 0x10], 0x663c4e1f
xor edx, ebx
sub dword [ebp - 0x18], esi
mov dword [esi], edx
add dword [ebp - 8], 0x1a44123a
add esi, 0x2ca1374d
sub esi, 0x2ca13749
add edi, 4
loop 0x40c5aa
add eax, 0x50edd986
add eax, 0xaf135545
mov ebx, eax
add eax, 0x3352a488
sub eax, 0x3352a483
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret