joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408020
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408027
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4080fd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
add ecx, 8
sub edx, 8
dec esi
jne 0x408040
pop edi
test edx, edx
je 0x40811a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41d950]
inc ecx
dec edx
jne 0x408101
not eax
pop esi
ret

Function at 0x408120
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41d950]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41d950]
mov dword [edx + 8], ecx
ret

Function at 0x408170
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x41d950]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41d950]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x4088c6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 2]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4088bc
mov byte [edi + 6], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4088d7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040e910
add dword [edi + 0x14], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x408900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408933
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40892e
mov byte [esi + 6], 1
mov edi, dword [ebp - 8]
jmp 0x40895e
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408945
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040e910
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408973
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40896d
cmp byte [esi + 6], 0
je 0x40896d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x408a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x408a57
cmp byte [esi + 1], 0
je 0x408a5f
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x408a72
cmp byte [esi + 1], 0
je 0x408a66
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 7]
mov dword [ebp - 4], ebx
jmp 0x408a7a
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x408a31
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x408a7a
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x408a8c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040b348
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x408aa9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x408bbd
jmp 0x408ac9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x408ad8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x408aef
mov ebx, 0x404
cmp byte [esi], 0
je 0x408b14
cmp byte [esi + 1], 0
je 0x408bbd
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408b17
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebx
je 0x408b40
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408b3b
mov byte [esi + 6], 1
mov eax, dword [ebp - 0x18]
jmp 0x408b69
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x408b51
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040e910
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x408bbd
lea eax, [ebx - 3]
test eax, eax
js 0x408bab
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x408b9f
cmp byte [eax + ecx + 1], 0x4b
jne 0x408b9f
cmp byte [eax + ecx + 2], 5
jne 0x408b9f
cmp byte [eax + ecx + 3], 6
je 0x408ba5
test eax, eax
jns 0x408b80
jmp 0x408bab
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408bbd
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x408ac0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b85e
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x409b3f
cmp dword [esi + 4], 0xffffffff
jne 0x409b3f
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ac0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x409af7
cmp eax, 0x2f
je 0x409af7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409ae4
mov eax, dword [0x41c368]
mov dword [edi], eax
push 0x18
call fcn.0040aded
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00408be0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x40a476
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420044]
jne 0x40a480
repz ret
jmp fcn.0040bf4f
Function at 0x413ee6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420044]
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.0040c27a
and dword [ebp - 0x14], 0
cmp dword [0x4220d8], 0
mov dword [ebp - 0x18], eax
jne 0x413f99
push 0x41b2e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414041
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b2d8
push ebx
call edi
test eax, eax
je 0x414041
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b2c8
push ebx
mov dword [0x4220d8], eax
call edi
push eax
call esi
push 0x41b2b4
push ebx
mov dword [0x4220dc], eax
call edi
push eax
call esi
push 0x41b298
push ebx
mov dword [0x4220e0], eax
call edi
push eax
call esi
mov dword [0x4220e8], eax
test eax, eax
je 0x413f99
push 0x41b280
push ebx
call edi
push eax
call esi
mov dword [0x4220e4], eax
mov eax, dword [0x4220e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413ff2
cmp dword [0x4220e8], ecx
je 0x413ff2
push eax
call esi
push dword [0x4220e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413ff2
test ebx, ebx
je 0x413ff2
call edi
test eax, eax
je 0x413fe9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413fe9
test byte [ebp - 8], 1
jne 0x413ff2
or dword [ebp + 0x10], 0x200000
jmp 0x414025
mov eax, dword [0x4220dc]
cmp eax, dword [ebp - 0x18]
je 0x414025
push eax
call esi
test eax, eax
je 0x414025
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414025
mov eax, dword [0x4220e0]
cmp eax, dword [ebp - 0x18]
je 0x414025
push eax
call esi
test eax, eax
je 0x414025
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4220d8]
call esi
test eax, eax
je 0x414041
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414043
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a476
leave
ret

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x1918058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.019181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x191807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x191806a
add dl, dl
jne 0x1918089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19180dc
xor eax, eax
add dl, dl
jne 0x1918096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x191817d
add dl, dl
jne 0x19180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x19180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1918075
mov eax, 1
add dl, dl
jne 0x19180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x19180e1
sub eax, ebx
mov ebx, 1
jne 0x1918128
mov ecx, 1
add dl, dl
jne 0x191810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1918119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1918105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1918075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x191813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x191814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1918136
cmp eax, 0x7d00
jae 0x191816d
cmp eax, 0x500
jb 0x1918168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1918075
cmp eax, 0x7f
ja 0x1918170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1918075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x191819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1918075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov edx, 2
mov ebx, 7
lea edi, [0x403197]
lea esi, section..data
mov ecx, 4
mov eax, dword [esi]
mov dword [0x4031b7], eax
add esi, 4
mov eax, dword [esi]
cmp eax, dword [0x4031b7]
jl 0x401034
mov dword [0x4031b7], eax
add esi, 4
loop 0x401025
mov ebp, dword [0x4031b7]
mov dword [edi], ebp
add edi, 4
dec ebx
je 0x40109b
mov eax, edx
cmp eax, 2
jne 0x401056
lea esi, [0x403014]
jmp 0x401095
cmp eax, 3
jne 0x401063
lea esi, [0x403028]
jmp 0x401095
cmp eax, 4
jne 0x401070
lea esi, [0x40303c]
jmp 0x401095
cmp eax, 5
jne 0x40107d
lea esi, [0x403050]
jmp 0x401095
cmp eax, 6
jne 0x40108a
lea esi, [0x403064]
jmp 0x401095
cmp eax, 7
jne 0x401095
lea esi, [0x403078]
inc edx
jmp 0x401016
push dword [0x4031af]
push dword [0x4031ab]
push dword [0x4031a7]
push dword [0x4031a3]
push dword [0x40319f]
push dword [0x40319b]
push dword [0x403197]
push 0x4030b5
push 0x4030aa
call sub.user32.dll_wsprintfA
add esp, 0x24
push 0
push 0x4031c7
push 0x4031bb
push 0
call sub.user32.dll_MessageBoxA
push 0x40
push 0x40308c
push 0x4030aa
push 0
call sub.user32.dll_MessageBoxA
push 0
call 0x401104
jmp dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x406870
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47924b
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], 0x404b4c
call fcn.004074d1
push 4
mov dword [esp + 0x18], 0
call fcn.0040840a
mov edi, eax
add esp, 4
test edi, edi
je 0x4068e4
push ebx
call fcn.004073a9
mov dword [edi], eax
call fcn.00407168
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407492
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068d8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074ba
pop ebx
jmp 0x4068e6
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 0x408e81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d520]
jne 0x408e8b
repz ret
jmp fcn.0040d4bc
Function at 0x411eff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47d520]
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.0040b679
and dword [ebp - 0x14], 0
cmp dword [0x482a94], 0
mov dword [ebp - 0x18], eax
jne 0x411fb2
push 0x403a84
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41205a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a78
push ebx
call edi
test eax, eax
je 0x41205a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403a68
push ebx
mov dword [0x482a94], eax
call edi
push eax
call esi
push 0x403a54
push ebx
mov dword [0x482a98], eax
call edi
push eax
call esi
push 0x403a38
push ebx
mov dword [0x482a9c], eax
call edi
push eax
call esi
mov dword [0x482aa4], eax
test eax, eax
je 0x411fb2
push 0x403a20
push ebx
call edi
push eax
call esi
mov dword [0x482aa0], eax
mov eax, dword [0x482aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41200b
cmp dword [0x482aa4], ecx
je 0x41200b
push eax
call esi
push dword [0x482aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41200b
test ebx, ebx
je 0x41200b
call edi
test eax, eax
je 0x412002
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412002
test byte [ebp - 8], 1
jne 0x41200b
or dword [ebp + 0x10], 0x200000
jmp 0x41203e
mov eax, dword [0x482a98]
cmp eax, dword [ebp - 0x18]
je 0x41203e
push eax
call esi
test eax, eax
je 0x41203e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41203e
mov eax, dword [0x482a9c]
cmp eax, dword [ebp - 0x18]
je 0x41203e
push eax
call esi
test eax, eax
je 0x41203e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x482a94]
call esi
test eax, eax
je 0x41205a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41205c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e81
leave
ret
Function at 0x476ec0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x806834], 0x37
jne 0x476f59
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4042a4
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 ecx, dword [0x807828]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x487884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x4771c0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x806834]
sub esp, 0x434
push ebx
push ebp
push esi
mov esi, dword [0x487884]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x4773b9
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4771f6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x806834], 0x1c
jne 0x47720d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x47e700]
mov ebx, dword [0x47e708]
mov ebp, dword [0x47e70c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x47e704]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x477256
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x8067a4], edi
mov eax, dword [esp + 0x1c]
add dword [0x8067a4], eax
mov eax, dword [0x8067a4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
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 + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x806834], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x4772ed
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x806834], 0x979
mov dword [0x8067a8], 0xff6b3619
mov dword [0x8067ac], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x477331
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x806834]
cmp eax, 0x93
je 0x477357
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x477250
cmp eax, 0x8d4
jne 0x47736e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x806834], 0x17
jne 0x4773a8
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x40]
push ecx
push 0x404250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x4771f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret