joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462856
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4aa068]
je 0x462871
inc edi
cmp edi, 0x17
jb 0x462862
cmp edi, 0x17
jae 0x4629f1
push ebp
push 3
call fcn.00469a31
cmp eax, 1
pop ecx
je 0x4629bd
push 3
call fcn.00469a31
test eax, eax
pop ecx
jne 0x4628a5
cmp dword [0x4a94a0], 1
je 0x4629bd
cmp ebx, 0xfc
je 0x4629f0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4bc1c8
push ebp
call fcn.004571f6
add esp, 0xc
test eax, eax
je 0x4628db
push esi
push esi
push esi
push esi
push esi
call fcn.0045cdc9
add esp, 0x14
push 0x104
mov esi, 0x4bc1e1
push esi
push 0
mov byte [0x4bc2e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46291f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004571f6
add esp, 0xc
test eax, eax
je 0x46291f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045cdc9
add esp, 0x14
push esi
call fcn.00454b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x462964
push esi
call fcn.00454b40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4bc4dc
push 0x4947b4
sub ecx, eax
push ecx
push eax
call fcn.0045afb6
add esp, 0x14
test eax, eax
je 0x462964
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045cdc9
add esp, 0x14
jmp 0x462966
xor esi, esi
push 0x4947b0
push ebx
push ebp
call fcn.0045b7ea
add esp, 0xc
test eax, eax
je 0x462986
push esi
push esi
push esi
push esi
push esi
call fcn.0045cdc9
add esp, 0x14
push dword [edi*8 + 0x4aa06c]
push ebx
push ebp
call fcn.0045b7ea
add esp, 0xc
test eax, eax
je 0x4629a8
push esi
push esi
push esi
push esi
push esi
call fcn.0045cdc9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00469874
add esp, 0xc
jmp 0x4629f0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4629f0
cmp ebp, 0xffffffff
je 0x4629f0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4aa06c]
push dword [esi]
call fcn.00454b40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x469874
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045c8dd
xor ebx, ebx
cmp dword [0x4bc880], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46994a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x469a2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4958e8
push edi
call esi
cmp eax, ebx
je 0x469a2a
push eax
call fcn.0045c86f
mov dword [esp], 0x4958d8
push edi
mov dword [0x4bc880], eax
call esi
push eax
call fcn.0045c86f
mov dword [esp], 0x4958c4
push edi
mov dword [0x4bc884], eax
call esi
push eax
call fcn.0045c86f
mov dword [0x4bc888], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00459126
test eax, eax
pop ecx
pop ecx
je 0x469918
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045cdc9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46994a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045c86f
cmp eax, ebx
pop ecx
mov dword [0x4bc890], eax
je 0x46994a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045c86f
pop ecx
mov dword [0x4bc88c], eax
mov eax, dword [0x4bc88c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4699cf
cmp dword [0x4bc890], ecx
je 0x4699cf
push eax
call fcn.0045c8e6
push dword [0x4bc890]
mov esi, eax
call fcn.0045c8e6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4699cf
cmp edi, ebx
je 0x4699cf
call esi
cmp eax, ebx
je 0x46999c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46999c
test byte [ebp - 0x18], 1
jne 0x4699cf
lea eax, [ebp - 0x10]
push eax
call fcn.0045915d
test eax, eax
pop ecx
je 0x4699b7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045cdc9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4699c6
or dword [ebp + 0x10], 0x200000
jmp 0x469a0a
or dword [ebp + 0x10], 0x40000
jmp 0x469a0a
mov eax, dword [0x4bc884]
cmp eax, dword [ebp - 8]
je 0x469a0a
push eax
call fcn.0045c8e6
cmp eax, ebx
pop ecx
je 0x469a0a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x469a0a
mov eax, dword [0x4bc888]
cmp eax, dword [ebp - 8]
je 0x469a0a
push eax
call fcn.0045c8e6
cmp eax, ebx
pop ecx
je 0x469a0a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bc880]
call fcn.0045c8e6
cmp eax, ebx
pop ecx
je 0x469a2a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x469a2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46cb44
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046cad9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00457260
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46cb93
cmp dword [ebp - 0x1c], 5
jb 0x46cbab
jmp 0x46cba7
cmp dword [ebp - 0x10], 1
jne 0x46cbab
cmp dword [ebp - 0x1c], 4
ja 0x46cba7
jne 0x46cbab
cmp dword [ebp - 0x18], 0
jbe 0x46cbab
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x495988
call fcn.0046c9ca
test eax, eax
jge 0x46cbcc
mov byte [0x4b9fbc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004550ad
add ebp, 0x78
leave
ret
Function at 0x408a3e
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1000a808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000e238]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x408bdb
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x408bdb
push edi
mov dword [ebx], ebp
call dword [0x1000b038]
shl eax, 1
cmp eax, 0x64
jge 0x408a94
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [0x1000b1cc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x408aae
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x408ac7
push ebp
call dword [0x1000b1c8]
mov eax, 0x8007000e
jmp 0x408be0
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x408b21
mov ebp, dword [0x1000b1b8]
mov ebx, dword [0x1000b04c]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x408af2
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x408b39
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.0040759e
test eax, eax
je 0x408bc2
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x408ade
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [0x1000b1c8]
mov eax, dword [esp + 0x50]
jmp 0x408be0
push 0x25
push edi
call fcn.0040773e
mov edi, eax
add esp, 8
test edi, edi
je 0x408ba9
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x408b90
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.004089fe
test eax, eax
je 0x408ba9
push eax
lea ecx, [esp + 0x14]
call fcn.0040889e
test eax, eax
je 0x408bc2
cmp dword [esi], edi
je 0x408b09
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x408b80
jmp 0x408b09
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [0x1000b1c8]
mov eax, dword [esp + 0x50]
jmp 0x408be0
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [0x1000b1c8]
mov eax, dword [esp + 0x50]
jmp 0x408be0
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [0x1000b1c8]
mov eax, dword [esp + 0x50]
jmp 0x408be0
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.004103be
add esp, 0x3c
ret 8
Function at 0x40eb4e
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000aa06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x1000b8fc
call fcn.0040c3be
mov dword [edi + 4], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.0040c3be
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov eax, dword [0x1000e2dc]
cmp eax, ebp
mov dword [0x1000e2d4], ebp
je 0x40ebf8
push eax
call fcn.004103da
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
mov dword [0x1000e2dc], ebp
mov dword [0x1000e2e0], ebp
mov dword [0x1000e2e4], ebp
mov dword [esi + 0x3c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40feae
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000ab4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1000ba10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], esp
call dword [0x1000b0d4]
add esi, 8
push 0
mov ecx, esi
call fcn.0040fd7e
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0040f4ae
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x41aa92
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1000aa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000e238]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x41ac2f
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x41ac2f
push edi
mov dword [ebx], ebp
call dword [0x1000b038]
shl eax, 1
cmp eax, 0x64
jge 0x41aae8
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [0x1000b1d8]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41ab02
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x41ab1b
push ebp
call dword [0x1000b1d4]
mov eax, 0x8007000e
jmp 0x41ac34
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x41ab75
mov ebp, dword [0x1000b1c4]
mov ebx, dword [0x1000b04c]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x41ab46
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x41ab8d
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.004195f2
test eax, eax
je 0x41ac16
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x41ab32
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [0x1000b1d4]
mov eax, dword [esp + 0x50]
jmp 0x41ac34
push 0x25
push edi
call fcn.00419792
mov edi, eax
add esp, 8
test edi, edi
je 0x41abfd
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x41abe4
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.0041aa52
test eax, eax
je 0x41abfd
push eax
lea ecx, [esp + 0x14]
call fcn.0041a8f2
test eax, eax
je 0x41ac16
cmp dword [esi], edi
je 0x41ab5d
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x41abd4
jmp 0x41ab5d
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [0x1000b1d4]
mov eax, dword [esp + 0x50]
jmp 0x41ac34
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [0x1000b1d4]
mov eax, dword [esp + 0x50]
jmp 0x41ac34
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [0x1000b1d4]
mov eax, dword [esp + 0x50]
jmp 0x41ac34
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.00422632
add esp, 0x3c
ret 8
Function at 0x420cc2
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000ac26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x14]
push edi
mov ecx, ebp
mov dword [esp + 0x10], esi
mov dword [esi], 0x1000b938
call fcn.0041e532
mov dword [ebp + 4], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
xor edi, edi
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea ebp, [esi + 0x30]
mov ecx, ebp
mov byte [esp + 0x1c], bl
call fcn.0041e532
mov dword [ebp + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov eax, dword [0x1000e2dc]
cmp eax, edi
mov dword [0x1000e2d4], edi
je 0x420d78
push eax
call fcn.0042264e
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [0x1000e2dc], edi
mov dword [0x1000e2e0], edi
mov dword [0x1000e2e4], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x422122
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000ad6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1000ba50
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], esp
call dword [0x1000b0d4]
add esi, 8
push 0
mov ecx, esi
call fcn.00421ff2
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00421722
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40d240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40d24f
pop dword [ebp - 0xc]
mov eax, 0xc6813305
add eax, 0x39bf9f4a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3fe4a
push 0
mov eax, 0xf0fa80c6
sub eax, 0xf0b99fa6
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x9b3893fd
add ecx, 0x64c7ce3f
xor edi, edi
add edi, eax
mov ebx, 0x3c1acb4
sub ebx, 0x38034b4
add ebx, dword [ebp - 0xc]
mov edx, 0xe3048d79
mov esi, dword [ebx]
mov dword [ebp - 4], 0x4f4c04fb
add esi, edx
xor dword [ebp - 8], ebx
mov dword [edi], esi
xor dword [ebp - 8], ecx
add edi, 0x46cde501
add edi, 0xb9321b03
add ebx, 0xca95a943
sub ebx, 0xca95a93f
loop 0x40d2aa
add eax, 0x91b041ab
sub eax, 0x91aec5e8
mov ebx, eax
add eax, 5
mov ecx, 0x6f2008a7
sub ecx, 0x6ee008a7
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x100
push 0x41302c
call fcn.00401bc0
push eax
lea eax, [esp + 8]
push str._s_s_decompressed.exe
push eax
call fcn.00406be0
add esp, 0x10
lea ecx, [esp]
push ecx
push str.DecompressPuzzle___ExtractFile_to__s
push 0
call fcn.00401c20
mov ecx, dword [esp + 0x110]
add esp, 0xc
lea edx, [esp]
push edx
push str.jigsaw
call fcn.00401b40
mov eax, dword [0x41312c]
lea ecx, [esp]
push eax
lea edx, [esp + 4]
push ecx
push edx
call fcn.004012d0
add esp, 0xc
test eax, eax
jne 0x4012a0
push str.DecompressPuzzle___DecompressFile_failed
push eax
call fcn.00401c20
add esp, 8
xor eax, eax
add esp, 0x100
ret
push 1
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
add esp, 0x100
ret

Function at 0x401bd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push edi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, 0x413134
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x100
ret
Function at 0x40a639
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412768
cmp edx, dword [eax]
je 0x40a65b
add eax, 8
inc ecx
cmp eax, 0x4127f8
jl 0x40a64c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412768]
jne 0x40a789
mov eax, dword [0x41333c]
cmp eax, 1
je 0x40a763
test eax, eax
jne 0x40a68c
cmp dword [0x410680], 1
je 0x40a763
cmp edx, 0xfc
je 0x40a789
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a6c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a706
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e19c
push edi
call fcn.0040bc60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040baf0
lea eax, [ebp - 0xa0]
push 0x40e17c
push eax
call fcn.0040baf0
push dword [esi + 0x41276c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040baf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bbd0
add esp, 0x2c
pop edi
jmp 0x40a789
lea eax, [ebp + 8]
lea esi, [esi + 0x41276c]
push 0
push eax
push dword [esi]
call fcn.00409da0
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 0x404830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64162f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6d5890]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x30]
mov edi, 1
mov dword [esp + 0x24], edi
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
cmp eax, esi
mov dword [esp + 0x10], eax
jle 0x40497a
push ebx
mov ebx, 2
mov edx, dword [ebp]
cmp byte [edx + esi], 0x25
je 0x4048a7
mov eax, esi
inc esi
inc edi
lea ecx, [esp + 0x10]
mov dl, byte [edx + eax]
inc ebx
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
call fcn.00617786
jmp 0x40496f
xor al, al
xor cl, cl
cmp edi, dword [esp + 0x14]
jge 0x4048b5
mov al, byte [edx + esi + 1]
cmp ebx, dword [esp + 0x14]
jge 0x4048bf
mov cl, byte [edx + esi + 2]
cmp al, 0x61
jl 0x4048c9
cmp al, 0x7a
jg 0x4048c9
add al, 0xe0
cmp cl, 0x61
jl 0x4048d6
cmp cl, 0x7a
jg 0x4048d6
add cl, 0xe0
cmp al, 0x30
jl 0x4048de
cmp al, 0x39
jle 0x4048e6
cmp al, 0x41
jl 0x404961
cmp al, 0x5a
jg 0x404961
cmp al, 0x30
jl 0x4048f2
cmp al, 0x39
jg 0x4048f2
sub al, 0x30
jmp 0x4048f4
sub al, 0x37
cmp cl, 0x30
mov byte [esp + 0x34], al
jl 0x404902
cmp cl, 0x39
jle 0x40490c
cmp cl, 0x41
jl 0x404948
cmp cl, 0x5a
jg 0x404948
shl al, 4
cmp cl, 0x30
mov dl, al
jl 0x404923
cmp cl, 0x39
jg 0x404923
movsx eax, cl
sub eax, 0x30
jmp 0x404929
movsx eax, cl
sub eax, 0x37
add dl, al
mov byte [esp + 0x34], dl
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call fcn.00617786
add esi, 3
add edi, 3
add ebx, 3
jmp 0x40496f
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.00617786
add esi, 2
add edi, 2
add ebx, 2
jmp 0x40496f
push 0x25
lea ecx, [esp + 0x14]
call fcn.00617786
inc esi
inc edi
inc ebx
cmp esi, dword [esp + 0x14]
jl 0x40487f
pop ebx
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.006170f8
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00617383
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x46907a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
jne 0x46997b
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x46908c
test cl, cl
lea eax, [eax - 4]
je 0x4690cf
test ecx, 0xff00
lea eax, [eax + 1]
je 0x4690cf
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x4690cf
test ecx, 0xff000000
lea eax, [eax + 1]
jne 0x79ae81
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
cmp byte [eax], 0
je 0x4690cf
lea eax, [eax + 1]
test eax, 3
je 0x46908c
cmp byte [eax], 0
je 0x4690cf
lea eax, [eax + 1]
test eax, 3
je 0x46908c
cmp byte [eax], 0
je 0x4690cf
lea eax, [eax + 1]
jmp 0x46908c