joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e0c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040611f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405e4b
push edi
call dword [0x408128]
neg eax
sbb eax, eax
inc eax
add dword [0x425d08], eax
jmp 0x40602a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405e65
test eax, eax
je 0x405fac
test bl, 2
je 0x405fac
mov esi, 0x422648
push edi
push esi
call fcn.00406699
cmp dword [ebp + 8], 0
je 0x405e84
push str..
push esi
call fcn.004066b5
jmp 0x405e8a
push edi
call fcn.00406078
cmp byte [edi], 0
jne 0x405e98
cmp byte [0x422648], 0x5c
jne 0x405ea3
push 0x40a2b4
push edi
call fcn.004066b5
push edi
call fcn.004066af
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [0x40812c]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405fa2
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040605c
cmp byte [eax], 0
je 0x405ee9
cmp byte [ebp - 0x1c], 0
je 0x405ee9
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405f03
mov al, byte [esi + 1]
test al, al
je 0x405f81
cmp al, 0x2e
jne 0x405f03
cmp byte [esi + 2], 0
je 0x405f81
push esi
push ebx
call fcn.00406699
test byte [ebp - 0x14c], 0x10
je 0x405f28
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f81
push dword [ebp + 0xc]
push edi
call fcn.00405e0c
jmp 0x405f81
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406bb8
pop ecx
pop ecx
push dword [ebp - 4]
push edi
call fcn.00405dc4
test eax, eax
push edi
jne 0x405f7a
cmp dword [ebp - 4], eax
je 0x405f66
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406bb8
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405736
push 0
push edi
call fcn.00406478
jmp 0x405f81
push str.Delete:_DeleteFile_failed___s__
call fcn.00406bb8
inc dword [0x425d08]
pop ecx
pop ecx
jmp 0x405f81
push 0xfffffffffffffff2
call fcn.00405736
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [0x408130]
test eax, eax
jne 0x405ec7
push dword [ebp - 8]
call dword [0x408134]
cmp dword [ebp + 8], 0
je 0x405fac
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40602a
cmp dword [ebp - 0xc], esi
push edi
jne 0x405fcd
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406bb8
inc dword [0x425d08]
pop ecx
pop ecx
jmp 0x40602a
call fcn.00406be6
test eax, eax
je 0x40602a
push edi
call fcn.00406031
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406bb8
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push edi
call fcn.00405dc4
test eax, eax
push edi
jne 0x406023
cmp dword [ebp - 4], esi
je 0x40601c
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406bb8
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405736
push esi
push edi
call fcn.00406478
jmp 0x40602a
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405fbe
push 0xffffffffffffffe5
call fcn.00405736
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40611f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422a48
push esi
call fcn.00406699
push esi
call fcn.004060ca
mov edi, eax
test edi, edi
jne 0x406140
xor eax, eax
jmp 0x406192
push edi
call fcn.00406903
test byte [0x425c7c], 0x80
je 0x406159
mov al, byte [edi]
test al, al
je 0x40613c
cmp al, 0x5c
je 0x40613c
sub edi, esi
jmp 0x406171
call fcn.00406be6
test eax, eax
je 0x40616b
test byte [eax], 0x10
je 0x40613c
push esi
call fcn.00406078
push esi
call fcn.004066af
cmp eax, edi
push esi
jg 0x40615d
call fcn.00406031
push esi
call dword [0x4080b4]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40620d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [0x4080b4]
mov esi, eax
cmp esi, 0xffffffff
je 0x40622c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [0x40808c]
mov eax, esi
pop esi
ret 4

Function at 0x406232
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [0x4080b4]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [0x408078]
ret 0xc

Function at 0x406580
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], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040651f
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065ef
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 [0x40802c]
push dword [ebp + 0x18]
mov edi, eax
call dword [0x408024]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4065ef
cmp dword [ebp + 0xc], 1
je 0x4065f2
cmp dword [ebp + 0xc], 2
je 0x4065f2
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4066bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x4066d9
mov ecx, dword [0x42543c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x425cb8]
push ebx
push esi
push edi
lea ebx, [eax + ecx]
mov eax, 0x424400
cmp dword [ebp + 8], eax
mov edi, eax
jb 0x4068e0
mov ecx, dword [ebp + 8]
sub ecx, eax
cmp ecx, 0x800
jae 0x4068e0
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x4068e0
mov ecx, edi
sub ecx, eax
cmp ecx, 0x400
jge 0x4068ea
inc ebx
cmp dl, 4
mov dword [ebp + 0xc], ebx
jae 0x4068d3
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov ebx, ecx
and esi, 0x7f
and ebx, 0x7f
shl esi, 7
or esi, ebx
mov ebx, ecx
or bh, 0x80
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov ebx, eax
or bh, 0x80
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
inc ebx
inc ebx
cmp dl, 2
jne 0x406880
mov eax, dword [0x425c6c]
push 2
test eax, eax
pop esi
jns 0x40678d
cmp ax, 0x5a04
je 0x40678d
cmp dword [ebp - 0xc], 0x23
je 0x40678d
cmp dword [ebp - 0xc], 0x2e
je 0x40678d
and dword [ebp + 0xc], 0
jmp 0x406794
mov dword [ebp + 0xc], 1
cmp dword [0x425d04], 0
je 0x4067a0
push 4
pop esi
test cl, cl
jns 0x4067db
mov eax, ecx
and ecx, 0x3f
add ecx, dword [0x425cb8]
and eax, 0x40
push eax
push edi
push ecx
push 0x4083b0
push 0x80000002
call fcn.00406580
cmp byte [edi], 0
jne 0x406867
push dword [ebp - 0xc]
push edi
call fcn.004066bb
jmp 0x406862
cmp ecx, 0x25
jne 0x4067ee
push 0x400
push edi
call dword [0x4080e4]
jmp 0x406862
cmp ecx, 0x24
jne 0x40685e
push 0x400
push edi
call dword [0x408098]
xor esi, esi
jmp 0x40685e
mov eax, dword [0x425c64]
xor ecx, ecx
dec esi
cmp eax, ecx
je 0x406827
cmp dword [ebp + 0xc], ecx
je 0x406827
push edi
push ecx
push ecx
push dword [ebp + esi*4 - 0x18]
push dword [0x425c68]
call eax
test eax, eax
je 0x406862
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x425c68]
call dword [0x408168]
test eax, eax
jne 0x40685b
push edi
push dword [ebp - 4]
call dword [0x408170]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [0x408298]
cmp dword [ebp - 8], 0
jne 0x406862
and byte [edi], 0
test esi, esi
jne 0x406803
cmp byte [edi], 0
je 0x406878
cmp dword [ebp - 0xc], 0x1a
jne 0x406878
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call fcn.004066b5
push edi
call fcn.00406903
jmp 0x4068c4
cmp dl, 3
jne 0x4068b3
cmp esi, 0x1d
jne 0x406898
push dword [0x425c68]
push edi
call fcn.004065f7
jmp 0x4068a9
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00406699
add esi, 0xffffffeb
cmp esi, 7
jae 0x4068c4
jmp 0x406878
cmp dl, 1
jne 0x4068c4
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004066bb
push edi
call fcn.004066af
add edi, eax
mov eax, 0x424400
jmp 0x4068e0
jne 0x4068dd
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x4068e0
mov byte [edi], dl
inc edi
mov dl, byte [ebx]
test dl, dl
jne 0x406712
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x4068ff
push eax
push dword [ebp + 8]
call fcn.00406699
leave
ret 8
Function at 0x406d32
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x423bd4], 0
push esi
jne 0x406d69
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 0x406d43
mov dword [ecx*4 + 0x423bd0], eax
inc ecx
cmp ecx, 0x100
jl 0x406d3e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406d9a
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 + 0x423bd0]
xor eax, esi
inc ecx
dec edx
jne 0x406d7c
pop edi
not eax
pop esi
ret 0xc
Function at 0x52faa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfd000]
push edi
jmp 0x52faba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52fac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fab0
mov eax, 1
add ebx, ebx
jne 0x52fad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52fae4
jne 0x52fb03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fb03
dec eax
add ebx, ebx
jne 0x52faf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52fac8
add ebx, ebx
jne 0x52faff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52fb55
xor ecx, ecx
sub eax, 3
jb 0x52fb1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52fb8a
sar eax, 1
mov ebp, eax
jmp 0x52fb26
add ebx, ebx
jne 0x52fb26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52faf4
inc ecx
add ebx, ebx
jne 0x52fb34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52faf4
add ebx, ebx
jne 0x52fb41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52fb36
jne 0x52fb52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52fb36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52fb74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52fb66
jmp 0x52fab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52fb74
add edi, ecx
jmp 0x52fab6
pop esi
mov edi, esi
mov ecx, 0x1146
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52fb92
cmp byte [edi], 0xa
jne 0x52fb92
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 al, bl
loop 0x52fb97
lea edi, [esi + 0x12c000]
mov eax, dword [edi]
or eax, eax
je 0x52fc0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x155288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15538c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52fbc4
mov ecx, edi
jns 0x52fbf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x155390]
or eax, eax
je 0x52fc09
mov dword [ebx], eax
add ebx, 4
jmp 0x52fbe1
call dword [esi + 0x1553a0]
mov ebp, dword [esi + 0x155394]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52fc43
sub esp, 0xffffff80
jmp 0x4243cd
Function at 0x1000140a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x1004d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.libeay32
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov dword [0x10051dec], eax
test eax, eax
jne 0x1000147b
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x1001f2a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x10
push str.AheadLib
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push ebx
call edi
lea eax, [ebp - 0x314]
push eax
push esi
push esi
push 0x10001242
push esi
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push ebx
call edi
test esi, esi
je 0x100014b4
push ebx
call edi
push ebx
call edi
push ebx
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1001dc7d
leave
ret

Function at 0x100014c6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1004d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10051dec]
push esi
mov esi, ecx
test eax, eax
jne 0x100014fb
call fcn.1000140a
test eax, eax
jne 0x100014f6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x10051dec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10001557
mov eax, esi
shr eax, 0x10
test ax, ax
jne 0x10001527
push esi
lea eax, [ebp - 0x14]
push 0x1001f2cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [ebp - 0x14]
push esi
lea eax, [ebp - 0x118]
push 0x1001f2d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
jmp 0x100014f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001dc7d
leave
ret
Function at 0x1001d284
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001d2a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x1001d367
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1001d2cd
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001d2d2
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1001d333
jg 0x1001d2e7
test esi, esi
je 0x1001d333
test ecx, ecx
jl 0x1001d32e
jg 0x1001d2f1
test eax, eax
je 0x1001d32e
cmp edi, ecx
jg 0x1001d303
jl 0x1001d2fb
cmp esi, eax
jae 0x1001d303
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1001d336
mov ecx, dword [ebp + 8]
jmp 0x1001d340
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1001d35b
jg 0x1001d340
test esi, esi
je 0x1001d35b
cmp dword [ebx + 0x4c], 0
je 0x1001d35b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001d36c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x1001d396
jl 0x1001d38d
test ebx, ebx
jne 0x1001d396
xor eax, eax
xor edx, edx
jmp 0x1001d453
cmp dword [ecx + 0x38], 0
je 0x1001d3aa
push esi
push ebx
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1001d453
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1001d3eb
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x1001d3eb
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x1001d449
call fcn.1001d8c6
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x1001d433
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x1001d449
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x1001d403
mov eax, edi
test eax, eax
je 0x1001d449
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001d6c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x1001d6ec
xor eax, eax
jmp 0x1001d7b1
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d715
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x1001d715
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x1001d7b1
cmp dword [esi + 0x4c], 0
je 0x1001d7af
mov ecx, esi
call fcn.1001d8c6
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d743
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x1001d70e
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d77e
sub eax, 1
je 0x1001d77e
dec eax
sub eax, 1
jne 0x1001d7af
movsx eax, byte [ebp - 0x25]
jmp 0x1001d730
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x1001d7a2
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x1001d7af
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001dc7d
leave
ret 4
Function at 0x1001d8e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1001d941
cmp byte [esi + 0x3d], bl
je 0x1001d941
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001d97b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x1001d952
sub eax, 1
je 0x1001d955
dec eax
sub eax, 1
jne 0x1001d97b
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001dc7d
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d973
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d97b
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1001d943
xor al, al
jmp 0x1001d943
Function at 0x401640
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x416620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x10], ecx
add edi, ebp
add ebx, ecx
mov dword [esp + 0x2c], 0x30
xor esi, esi
lea eax, [esp + 0x6c]
push esi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00401e80
push str.BALLOON
mov byte [esp + 0x68], 1
call fcn.00401e60
add esp, 4
lea ecx, [eax*2 + str.BALLOON]
push ecx
push str.BALLOON
lea ecx, [esp + 0x28]
call fcn.0040e9f0
lea edx, [esp + 0x20]
push str.A3D4312D_C54C_4f1f_9466_BBAD4081789C
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x70], 2
call fcn.00401d00
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 6
call fcn.0040a000
mov ecx, dword [0x425324]
push 0x7f00
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x401040
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x50], esi
push eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x40177c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x64], 7
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040e7d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov edx, dword [0x425324]
mov eax, dword [esp + 0x10]
push esi
mov ecx, dword [esp + 0x18]
push edx
push esi
push esi
push ebx
push edi
push eax
push ebp
push 0x80000000
push 0x42525c
push ecx
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
cmp edi, esi
jne 0x4017e2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub edx, eax
lea ecx, [esp + 0x1c]
sar edx, 1
push edx
push eax
mov dword [esp + 0x6c], 8
call fcn.0040e7d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x64], 9
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040e7d0
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret