joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7e64
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a7e7b
add esp, 0xfffffff0
call fcn.00405490
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004466fc
mov eax, dword [0x4b5e34]
cmp byte [eax], 0
jne 0x4a7ea8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4b6064]
cmp word [eax + 2], 0
jne 0x4a7ec2
mov eax, dword [0x4b6064]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a9f2c
mov eax, dword [0x4b6138]
cmp word [eax + 2], 0
jne 0x4a7edc
mov eax, dword [0x4b6138]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aa130
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44d70c]
call fcn.004529a0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4aa6a8
mov dl, 1
mov eax, dword [0x42f0c0]
call fcn.00404f48
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42f0c0]
call fcn.00404f48
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x451004]
call fcn.004597e8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a80bc
mov eax, dword [0x4b5f68]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00459c7c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4aa990
mov dl, 1
mov eax, dword [0x42f0c0]
call fcn.00404f48
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4b5f68]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041c160
test eax, eax
je 0x4a7fed
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041bf14
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041c144
test eax, eax
je 0x4a8005
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407350
push ebx
push 0x4a9918
call fcn.0049dc74
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4b5e34]
cmp byte [eax], 0
jne 0x4a8056
mov eax, ebx
call fcn.004a8230
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004aabbc
mov eax, ebx
call fcn.004ab7ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a80b3
call fcn.004054e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a84fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a859e
cmp dword [ebx + 0x94], 0
jne 0x4a8598
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a8448
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a8598
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a855e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a8598
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043a42c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a856d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a87bc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bca7c]
cmp dword [eax + 0x170], 0
je 0x4a8921
test bl, bl
jne 0x4a886f
cmp dword [esi + 0x9c], 0
jne 0x4a8864
mov eax, esi
call fcn.004ab63c
push eax
push 0x4a86c8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a8835
mov eax, dword [0x4bca7c]
cmp byte [eax + 0xd3], 0
je 0x4a8835
mov eax, dword [esi + 0xd8]
call fcn.00408230
mov edi, eax
cmp edi, 0
jl 0x4a8835
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a881e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a8864
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a42c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a8844
inc dword [esi + 0x9c]
jmp 0x4a8921
cmp dword [esi + 0x9c], 0
jle 0x4a8921
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a8921
cmp dword [esi + 0x44], 0
je 0x4a88cc
mov eax, dword [0x4bca7c]
cmp byte [eax + 0xd3], 0
je 0x4a88cc
mov eax, dword [esi + 0xd8]
call fcn.00408230
mov edi, eax
cmp edi, 0
jl 0x4a88cc
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a88b5
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a88fb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a42c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a88db
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49bb4c]
call fcn.004083f0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a9564
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a95cf
cmp byte [ebx + 0xd3], 0
jne 0x4a95cf
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ae8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a95bc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a95dc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d40
jmp 0x4a95dc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d40
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4aada4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4aae12
mov eax, esi
call fcn.004753fc
test al, al
je 0x4aae12
mov eax, dword [ebx + 0x84]
call fcn.0047507c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4aae12
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4aae06
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047507c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046c0b0
jmp 0x4aae12
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004aabdc
pop esi
pop ebx
ret

Function at 0x4ac4d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov byte [ebp - 5], 0
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [esi], eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004072c4
push eax
push 0
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x4ac538
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ac538
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
cmp dword [esi], 0
je 0x4ac538
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi], eax
cmp dword [edi], 0
setne byte [ebp - 5]
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4afed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d000]
push edi
or ebp, 0xffffffff
jmp 0x4afef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4afef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4afee8
mov eax, 1
add ebx, ebx
jne 0x4aff0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aff1c
jne 0x4aff3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff3b
dec eax
add ebx, ebx
jne 0x4aff28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4aff00
add ebx, ebx
jne 0x4aff37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4aff8d
xor ecx, ecx
sub eax, 3
jb 0x4aff53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4affc2
sar eax, 1
mov ebp, eax
jmp 0x4aff5e
add ebx, ebx
jne 0x4aff5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff2c
inc ecx
add ebx, ebx
jne 0x4aff6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff2c
add ebx, ebx
jne 0x4aff79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4aff6e
jne 0x4aff8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aff6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4affac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4aff9e
jmp 0x4afeee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4affac
add edi, ecx
jmp 0x4afeee
pop esi
mov edi, esi
mov ecx, 0x370c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4affca
cmp byte [edi], 0x4a
jne 0x4affca
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 0x4affcf
lea edi, [esi + 0xab000]
mov eax, dword [edi]
or eax, eax
je 0x4b0047
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb14e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb163c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4afffc
mov ecx, edi
jns 0x4b002b
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 + 0xb1640]
or eax, eax
je 0x4b0041
mov dword [ebx], eax
add ebx, 4
jmp 0x4b0019
call dword [esi + 0xb1650]
mov ebp, dword [esi + 0xb1644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b007b
sub esp, 0xffffff80
jmp 0x417850
Function at 0x10005510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000551f
pop dword [ebp - 0x3c]
mov eax, 0x9c040224
add eax, 0x73fc52fb
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xa2a25602
sub dword [ebp - 0x4c], 0x545010b7
mov dword [ebp - 0x48], 0x2d8a2d56
add dword [ebp - 0x48], 0x4a91eef
mov dword [ebp - 0x44], 0xa447ecc4
sub dword [ebp - 0x44], 0x57fba896
mov dword [ebp - 0x40], 0x137b55ee
sub dword [ebp - 0x40], 0x137b55ee
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x455548ee
add eax, 0xcaaba7c2
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xfd14d798
add dword [ebp - 0x4c], 0x775d91be
mov dword [ebp - 0x48], 0x6d5b6a08
sub dword [ebp - 0x48], 0x2bef0893
mov dword [ebp - 0x44], 0x5656756a
sub dword [ebp - 0x44], 0xf2e708fe
mov dword [ebp - 0x40], 0x8a056004
add dword [ebp - 0x40], 0x75fa9ffc
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x8553afbc
add eax, 0x8aad40ec
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39687
push 0
call eax
mov ecx, 0x4aad
mov ebx, eax
mov esi, 0x10023800
add esi, dword [ebp - 0x3c]
mov edi, 0xde466ca3
sub edi, 0x248d9a0d
xor dword [ebp - 0x18], esi
mov edx, dword [esi]
sub dword [ebp - 0xc], ebx
xor edx, edi
mov dword [ebp - 0x38], 0xe0201af1
mov dword [ebx], edx
xor dword [ebp - 0x28], 0x86e3a950
add ebx, 4
add esi, 0x7c2aa27f
add esi, 0x83d55d85
loop 0x10005635
add eax, 0x1a759cc8
sub eax, 0x1a747f41
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4011e0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4085f4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4086f8
push str.Exeprog
rep stosb byte es:[edi], al
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401220
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4085f4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4086f8
push str.Argv
rep stosb byte es:[edi], al
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401260
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xce8
call fcn.00401180
lea eax, [esp]
push 0x104
push eax
call fcn.004011e0
lea ecx, [esp + 0x314]
push 0x3e8
push ecx
call fcn.00401220
mov al, byte [esp + 0x10]
add esp, 0x10
test al, al
je 0x401331
push esi
lea edx, [esp + 0x108]
push 0x104
push edx
call section..text
add esp, 8
lea eax, [esp + 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x108]
push ecx
call esi
lea edx, [esp + 0x310]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x700]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x108]
lea eax, [esp + 0x310]
lea ecx, [esp + 4]
push 5
push edx
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea edx, [esp + 0x20c]
push edx
call esi
xor eax, eax
pop esi
add esp, 0xce8
ret 0x10
xor eax, eax
add esp, 0xce8
ret 0x10
Function at 0x402219
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406120
cmp edx, dword [eax]
je 0x40223b
add eax, 8
inc ecx
cmp eax, 0x4061b0
jl 0x40222c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406120]
jne 0x402369
mov eax, dword [0x408704]
cmp eax, 1
je 0x402343
test eax, eax
jne 0x40226c
cmp dword [0x406074], 1
je 0x402343
cmp edx, 0xfc
je 0x402369
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4022a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402800
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004029b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4022e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004029b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053c8
push edi
call fcn.00401340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402800
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402810
lea eax, [ebp - 0xa0]
push 0x4053a8
push eax
call fcn.00402810
push dword [esi + 0x406124]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402810
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403fc4
add esp, 0x2c
pop edi
jmp 0x402369
lea eax, [ebp + 8]
lea esi, [esi + 0x406124]
push 0
push eax
push dword [esi]
call fcn.004029b0
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 0x10004085
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1003ffc7
call fcn.1002b824
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1002aeae
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x100040cf
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x100040bb
mov dword [esi + 0x10], edi
jmp 0x100040d1
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x100040c7
push esi
jmp 0x100040c8
push edi
call dword [eax]
mov dword [esi + 0x10], eax
jmp 0x100040d1
xor esi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push 0x10004111
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.1001fe30
mov eax, edi
jmp 0x1000410b
call fcn.1002b8c9
ret
Function at 0x1000557a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10053060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, ecx
call fcn.100054a5
lea ecx, [ebp - 0x80]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x100055f5
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.1002cd00
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
jmp 0x100055fa
push 0x1004792c
call fcn.1000221e
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002a90b
add ebp, 0x190
leave
ret

Function at 0x100077f4
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x1004441a
call fcn.1002b7f1
push 0xb8
call fcn.1002aeae
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x10007837
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.1000716b
jmp 0x10007839
xor eax, eax
push esi
push esi
push eax
push 0x1000726d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1002b8c9
ret 0x20
Function at 0x1000cc1d
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x10053060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x1000ce1e
test eax, eax
jne 0x1000cc6d
test ecx, ecx
je 0x1000ce1e
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x1000ccc8
cmp ax, 0x5c
je 0x1000ccc8
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.1002cd00
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000ce1e
test al, 0x10
je 0x1000ce1e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x100481d4
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x1000ce1e
mov dword [esp + 0x10], 1
push 0x100481d8
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000cded
push 0x100481dc
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000cded
cmp dword [esp + 0x28], 0xffffffff
je 0x1000cded
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x1000cdd2
cmp dword [esp + 0x14], 0
je 0x1000cd9f
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x1000ce06
cmp dword [ebp + 0xc], 0
je 0x1000cded
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.1000cc1d
push 2
pop ecx
cmp eax, ecx
jne 0x1000cded
mov dword [esp + 0x10], ecx
jmp 0x1000ce0e
cmp dword [esp + 0x18], 0
je 0x1000cded
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1000ce06
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000cd28
jmp 0x1000ce0e
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1000ce20
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002a90b
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000ce7a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10053060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x1000cf74
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1000cf74
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1002cd00
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.1000d6e5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000cef1
shr eax, 4
not eax
and eax, 1
jmp 0x1000cf76
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.1000cf84
test eax, eax
je 0x1000cf74
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x1000cf56
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x1000cf5c
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.1000406f
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x1000cf76
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002a90b
leave
ret