joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x431b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431b80
mov eax, 1
add ebx, ebx
jne 0x431ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431b98
jne 0x431bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431b98
xor ecx, ecx
sub eax, 3
jb 0x431bc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431c3a
mov ebp, eax
add ebx, ebx
jne 0x431bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x431c04
inc ecx
add ebx, ebx
jne 0x431bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x431be5
jne 0x431c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431be5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x431c24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x431c15
jmp 0x431b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x431c24
add edi, ecx
jmp 0x431b86
pop esi
mov edi, esi
mov ecx, 0x722
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431c42
cmp byte [edi], 1
jne 0x431c42
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 0x431c47
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34368]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x343e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431c74
mov ecx, edi
jns 0x431ca3
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 + 0x343e4]
or eax, eax
je 0x431cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x431c91
call dword [esi + 0x343f4]
mov ebp, dword [esi + 0x343e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x431cf3
sub esp, 0xffffff80
jmp 0x403320
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jns 0x401632
inc eax
imul eax, eax, 0xfffff800
add eax, dword [0x40c994]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004083af
pop ebp
ret 4

Function at 0x407bb2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x430880], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x430880
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x72616863
jae 0x407c6b
je 0x407c45
xor eax, dword [ebp + esi*2 + 0x74]
sub ax, 0x2238
and byte [0x74730a0d], bh
jns 0x407c84
cmp eax, 0x2d224433
insd dword es:[edi], dx
jae fcn.00407c4e
je 0x407c88
js 0x407c99
sub eax, 0x657a6973
sub eax, 0x756a6461
jae 0x407ca5
cmp ah, byte [eax]
xor dword [eax], esi
xor byte [0x772d203b], ah
bound ebp, qword gs:[ebx + 0x69]
je 0x407c6e
je 0x407ca8
js 0x407cb9
sub eax, 0x657a6973
sub eax, 0x756a6461
jne 0x407cc3
invalid
cmp ah, byte [eax]
xor dword [eax], esi
xor byte [0xd3e223b], ah
and dh, byte [esi + 0x69]
ja 0x407ce1
outsd dx, dword [esi]
jb 0x407ce8
je 0x407cee
cmp eax, 0x65644433
jbe 0x407cf6
inc esp
js 0x407ce5
xor dword [eax], esi
popal

Function at 0x407c4e
Capabilities:
Get number of processors

Disassembly:
jne 0x407cc3
je 0x407c8c
and byte [ecx], dh
xor byte [eax], dh
and eax, 0xd3e223b
or ah, byte [eax]
and byte [ebp*2 + 0x20617465], bh
outsb dx, byte [esi]
popal
insd dword es:[edi], dx
cmp eax, 0x76224433
imul esp, dword [ebp + 0x77], 0x74726f70
and ah, byte [eax]
arpl word [edi + 0x6e], bp
je 0x407ce0
outsb dx, byte [esi]
je 0x407cbb
xor eax, dword [edx + 0x77]
imul esp, dword [esp + esi*2 + 0x68], 0x6444333d
jbe 0x407cf6
imul esp, dword [ebx + 0x65], 0x6469772d
je 0x407cfd
xor byte [0x772d203b], ah
imul ebp, dword [ecx + 0x74], 0x2d
or eax, 0x3c20200a

Function at 0x407f52
Capabilities:
Get number of processors

Disassembly:
and byte [edi + ebp*2 + 0x65], ah
jae 0x407f92
or eax, 0x2074630a
jae 0x408002

Function at 0x408065
Capabilities:
Get number of processors

Disassembly:
cmp esp, dword [eax]
bound esp, qword [ecx + 0x63]
imul esp, dword [edi + 0x72], 0x6f

Function at 0x408219
Capabilities:
Get number of processors

Disassembly:
popal
arpl word [ecx + 0x6e], bp
cmp eax, 0x30224433
and ah, byte [eax]
arpl word [ebp + 0x6c], sp
Function at 0x4084ea
Capabilities:
Get number of processors

Disassembly:
and byte [0x6b626577], ch
imul esi, dword [ebp + ebp + 0x74], 0x2d747865
jae 0x408563
jp 0x408561
cmp esp, dword [edx]
or eax, 0x2020200a

Function at 0x4085c9
Capabilities:
Get number of processors

Disassembly:
je 0x408630
js 0x408641
sub eax, 0x657a6973
jb 0x4086b7
popal
cmp ah, byte [eax]
xor byte [eax], ah
popal

Function at 0x408b53
Capabilities:
Get number of processors

Disassembly:
sub eax, 0x6b626577
imul esi, dword [ebp + ebp + 0x74], 0x2d747865
jae 0x408bcb
jp 0x408bc9
popal
pop edi
popal

Function at 0x408f99
Capabilities:
Get number of processors

Disassembly:
jb 0x408fbb
jae 0x409011
jns fcn.0040900b
je 0x40908c
sub eax, 0x74746f62
outsd dx, dword [esi]
Function at 0x3780c13f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x37824994]
jne 0x3780c149
repz ret
jmp fcn.3780f2b1
Function at 0x3781379e
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 + 0x37825098]
je 0x378137b9
inc edi
cmp edi, 0x17
jb 0x378137aa
cmp edi, 0x17
jae 0x37813939
push ebp
push 3
call fcn.37818738
cmp eax, 1
pop ecx
je 0x37813905
push 3
call fcn.37818738
test eax, eax
pop ecx
jne 0x378137ed
cmp dword [0x378249b8], 1
je 0x37813905
cmp ebx, 0xfc
je 0x37813938
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x37826618
push ebp
call fcn.3780d93c
add esp, 0xc
test eax, eax
je 0x37813823
push esi
push esi
push esi
push esi
push esi
call fcn.3780c59c
add esp, 0x14
push 0x104
mov esi, 0x37826631
push esi
push 0
mov byte [0x37826735], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x37813867
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.3780d93c
add esp, 0xc
test eax, eax
je 0x37813867
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.3780c59c
add esp, 0x14
push esi
call fcn.3780d6e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x378138ac
push esi
call fcn.3780d6e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x3782692c
push 0x3781f0f4
sub ecx, eax
push ecx
push eax
call fcn.37818685
add esp, 0x14
test eax, eax
je 0x378138ac
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.3780c59c
add esp, 0x14
jmp 0x378138ae
xor esi, esi
push 0x3781f0f0
push ebx
push ebp
call fcn.3780c7c1
add esp, 0xc
test eax, eax
je 0x378138ce
push esi
push esi
push esi
push esi
push esi
call fcn.3780c59c
add esp, 0x14
push dword [edi*8 + 0x3782509c]
push ebx
push ebp
call fcn.3780c7c1
add esp, 0xc
test eax, eax
je 0x378138f0
push esi
push esi
push esi
push esi
push esi
call fcn.3780c59c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.378184c8
add esp, 0xc
jmp 0x37813938
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x37813938
cmp ebp, 0xffffffff
je 0x37813938
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x3782509c]
push dword [esi]
call fcn.3780d6e0
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 0x378184c8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.37810119
xor ebx, ebx
cmp dword [0x37826aec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x3781859e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x3781867e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x3781867e
push eax
call fcn.378100ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x37826aec], eax
call esi
push eax
call fcn.378100ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x37826af0], eax
call esi
push eax
call fcn.378100ab
mov dword [0x37826af4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.3781352b
test eax, eax
pop ecx
pop ecx
je 0x3781856c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3780c59c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x3781859e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.378100ab
cmp eax, ebx
pop ecx
mov dword [0x37826afc], eax
je 0x3781859e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.378100ab
pop ecx
mov dword [0x37826af8], eax
mov eax, dword [0x37826af8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x37818623
cmp dword [0x37826afc], ecx
je 0x37818623
push eax
call fcn.37810122
push dword [0x37826afc]
mov esi, eax
call fcn.37810122
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x37818623
cmp edi, ebx
je 0x37818623
call esi
cmp eax, ebx
je 0x378185f0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x378185f0
test byte [ebp - 0x18], 1
jne 0x37818623
lea eax, [ebp - 0x10]
push eax
call fcn.37813562
test eax, eax
pop ecx
je 0x3781860b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3780c59c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x3781861a
or dword [ebp + 0x10], 0x200000
jmp 0x3781865e
or dword [ebp + 0x10], 0x40000
jmp 0x3781865e
mov eax, dword [0x37826af0]
cmp eax, dword [ebp - 8]
je 0x3781865e
push eax
call fcn.37810122
cmp eax, ebx
pop ecx
je 0x3781865e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x3781865e
mov eax, dword [0x37826af4]
cmp eax, dword [ebp - 8]
je 0x3781865e
push eax
call fcn.37810122
cmp eax, ebx
pop ecx
je 0x3781865e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x37826aec]
call fcn.37810122
cmp eax, ebx
pop ecx
je 0x3781867e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x37818680
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100014f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x1002f588
call fcn.10001080
add esp, 0xc
push 0x1002f588
push 1
call dword [sym.imp.CLEO.asi_Ordinal_37]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHQueryUserNotificationState]
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x10001563
cmp eax, 3
je 0x10001563
cmp eax, 4
je 0x10001563
push 0x41010
push str.CLEO_error
push 0x1002f588
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
push 0
push 0xf020
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x1002f588
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
Function at 0x10004fc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x1002e040]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
push 0x140
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.10009ed0
add esp, 0xc
lea eax, [esp + 0x258]
push esi
push str._s
push eax
call fcn.100010c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005125
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax]
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x100050d2
mov ecx, 0x1002b17c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005064
test dl, dl
je 0x10005060
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005064
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005044
xor eax, eax
jmp 0x10005069
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000510e
mov eax, 0x1002b180
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100050a0
test dl, dl
je 0x1000509c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100050a0
add ecx, 2
add eax, 2
test dl, dl
jne 0x10005080
xor eax, eax
jmp 0x100050a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000510e
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x10
lea ecx, [esp + 0x150]
call fcn.10004fc0
jmp 0x1000510a
push eax
push esi
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x10
lea eax, [esp + 0x150]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10005141
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x10005030
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x364]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
Function at 0x10005910
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10005a4e
push 0x140
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.10009ed0
add esp, 0xc
lea eax, [ebp - 0x320]
push edi
push str._s
push eax
call fcn.100010c0
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005ab3
lea eax, [ebp - 0x434]
push eax
push edi
lea eax, [ebp - 0x110]
push str._s_s
push eax
call fcn.100010c0
lea eax, [ebp - 0x434]
push eax
push ebx
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x20
test byte [ebp - 0x460], 0x10
je 0x10005a61
mov ecx, 0x1002b17c
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100059f2
test dl, dl
je 0x100059ee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100059f2
add eax, 2
add ecx, 2
test dl, dl
jne 0x100059d2
xor eax, eax
jmp 0x100059f7
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005a96
mov ecx, 0x1002b180
lea eax, [ebp - 0x434]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005a30
test dl, dl
je 0x10005a2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005a30
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005a10
xor eax, eax
jmp 0x10005a35
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005a96
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x110]
call fcn.10005910
test eax, eax
jne 0x10005a96
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10005a4e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005985
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100089d5
mov esp, ebp
pop ebp
ret
Function at 0x10008190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov esi, ebx
and esi, 0xfffffffe
mov dword [ebp - 0x10], esi
jne 0x100081c3
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
not bl
mov dword [ebp - 0xc], 0
and bl, 1
je 0x100081f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call dword [0x1002f440]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x10008202
push esi
push dword [ebp + 8]
push 1
push edx
call fcn.100152ce
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test bl, bl
je 0x1000823e
mov dword [ebp - 8], 0
push 1
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [0x1002f448]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100089d5
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
call fcn.1000e8ba
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
call fcn.100089d5
mov esp, ebp
pop ebp
ret
Function at 0x1000ddbc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10023750
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10017a56
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000ddfe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000df5a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100236a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002ef88]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100187d4
mov ecx, dword [esi*4 + 0x1002ef88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1000df53
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000df53
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000df53
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100187d4
add esp, 0x14
test edx, edx
jl 0x1000df53
jg 0x1000dec9
test eax, eax
jb 0x1000df53
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000df53
jl 0x1000dee3
cmp dword [ebp - 0x1008], eax
ja 0x1000df53
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000df01
test ebx, ebx
je 0x1000df3a
cmp ecx, edi
jae 0x1000df3a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000df1b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000df27
cmp byte [ecx + 1], 0xa
jne 0x1000df27
inc ecx
jmp 0x1000df27
movzx eax, al
movsx eax, byte [eax + 0x1002e278]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000df01
cmp edx, ebx
jne 0x1000df01
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000df58
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100089d5
leave
ret

Function at 0x100157a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100157e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100157e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100157e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100157e2
cmp dword [ecx + 0x74], 0xe
jbe 0x100157e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10018850
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ef88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018890
cmp byte [ebx], 0xa
jne 0x10018890
or byte [edi + eax + 0x28], 4
jmp 0x10018895
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10018994
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10018977
inc eax
cmp dl, 0xd
je 0x100188c1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100188e7
cmp eax, ecx
jae 0x100188f5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100188a9
jmp 0x10018994
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018972
cmp dword [ebp - 0x10], 0
je 0x10018972
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002ef88]
test byte [eax + edi + 0x28], 0x48
je 0x1001894c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018937
mov byte [esi], dl
jmp 0x10018948
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002ef88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018994
cmp byte [ebp - 1], 0xa
jne 0x1001895b
cmp esi, ebx
jne 0x1001895b
mov byte [esi], 0xa
jmp 0x10018993
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100187f2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018994
mov byte [esi], 0xd
jmp 0x10018993
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002ef88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018991
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018994
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret