joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025704
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x1008e4f7
call fcn.100871aa
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10058d2e
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x1002575b
mov esi, 0x800700a1
lea eax, [edi - 0x10]
call fcn.1007924a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, esi
call fcn.10087296
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002573e
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x1002573e
jle 0x1002577f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1002573e

Function at 0x10026d0c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x514]
push eax
call fcn.10026095
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1002604a
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.10026085
jnp 0x10026d6b
movsb byte es:[edi], byte [esi]
pop es
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x10026d79
cmp dword [ebp - 0x398], 0
je 0x10026f43
aam 1
add byte [eax], al
cmp dword [ebp + 0xc], 1
je 0x10026f43
cmp dword [ebp + 0xc], 8
jne 0x10026f0b
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
invalid
invalid
push ebp

Function at 0x100280a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x100280d4
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
invalid
dec dword [ecx - 0x3a37b]
inc dword [ebx - 0x3a343]
inc dword [eax]
Function at 0x1002c3bd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c402
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c402
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.1007924a
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x1003427b
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x1009842a
call fcn.100871aa
mov esi, ecx
push 0x100089f8
lea eax, [ebp - 0x14]
push eax
call fcn.100580f9
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
lea edi, [ebp - 0x14]
call fcn.1002a65e
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x100342bd
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x100342d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002a857
jmp 0x10034372
push dword [ebp + 0xc]
lea edi, [ebp - 0x24]
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.1002a4aa
call fcn.100343ad
mov edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 0xfffffffd
jne 0x10034324
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x10034355
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
jle 0x10034342
mov eax, dword [esi]
cmp dword [eax], edx
je 0x10034345
inc edi
add eax, 4
cmp edi, ecx
jl 0x10034336
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10034355
lea ebx, [ebp - 0x18]
call fcn.1005b0af
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10034366
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002a857
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x100342f6
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10034396
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call fcn.10087296
ret 8
Function at 0x100356b9
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10096688
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 0x10]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x10005e9c
push eax
call fcn.100580f9
lea eax, [esp + 0x1c]
push eax
call fcn.10069c8f
and dword [esp + 0x34], 0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1002a8ec
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.1007924a
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.100357fb
push dword [ebp + 0x10]
mov bl, al
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push 0x10009498
push eax
call fcn.100580f9
lea eax, [esp + 0x24]
push eax
call fcn.10069c8f
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.1002a8ec
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x100357ab
push eax
call edi
mov eax, dword [esi]
mov dword [esp + 0x10], eax
and dword [esi], 0
push dword [esp + 0x18]
call edi
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.100357fb
test bl, bl
jne 0x100357d7
test al, al
je 0x100357d9
mov bl, 1
push dword [esp + 0x10]
call edi
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10035bc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0x268
mov eax, 0x1008ff6e
call fcn.1008721d
and dword [ebp - 0x270], 0
mov esi, ecx
mov dword [ebp - 0x274], esi
push 0x24c
xor ebx, ebx
lea eax, [ebp - 0x260]
inc ebx
push 0
mov dword [ebp - 4], ebx
and dword [ebp - 0x264], 0
push eax
call fcn.1007eb10
add esp, 0xc
push 0x100094bc
lea eax, [ebp + 8]
call fcn.10058c05
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
setne al
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x270], ebx
jmp 0x10035cf1
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10035c49
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x10035cd9
movzx eax, word [ebp - 0x238]
push eax
call fcn.1007c5b1
pop ecx
test eax, eax
je 0x10035cd9
movzx eax, word [ebp - 0x236]
push eax
call fcn.1007c5b1
pop ecx
test eax, eax
je 0x10035cd9
movzx eax, word [ebp - 0x234]
push eax
call fcn.1007c5b1
pop ecx
test eax, eax
je 0x10035cd9
movzx eax, word [ebp - 0x232]
push eax
call fcn.1007c5b1
pop ecx
test eax, eax
je 0x10035cd9
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.100580f9
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.10058e22
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.1007924a
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
jne 0x10035c40
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, esi
call fcn.100872af
ret 4
Function at 0x1003958d
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x100940ef
call fcn.100871aa
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
jle 0x1003972a
test ebx, ebx
js 0x10039732
cmp ebx, dword [edi + 0xc]
jge 0x10039732
mov eax, dword [edi + 8]
push 0
push 0x100b6090
push 0x100b6050
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10086c45
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1003971d
cmp byte [ebp + 0x14], 0
je 0x10039672
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.10036d17
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.10058c46
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10039663
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.10058274
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.1007924a
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jmp 0x1003971d
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.1007924a
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 0xc]
jge 0x10039732
mov eax, dword [edi + 8]
push 0
push 0x100b6070
push 0x100b6050
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10086c45
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x100396ae
cmp dword [eax + 0xf4], 4
jne 0x100396ae
mov byte [ebp - 0xd], 1
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x1003970e
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.10036d38
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.10058c46
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.1007924a
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.10058274
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.1007924a
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [edi + 0xc]
jl 0x100395aa
call fcn.10087296
ret 0x10
call fcn.10077bf4
int3
Function at 0x10044f48
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100ae210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10044fcd
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1007eb10
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10044fb9
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x10044fc0
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x10044fa0
jmp 0x10044fc6
mov edi, dword [ebp - 0x218]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1007b431
leave
ret 4

Function at 0x1004502e
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1008fddb
call fcn.100871aa
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.100791e7
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
push 0x1001ab1c
xor ebx, ebx
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10078f08
mov eax, dword [esi]
mov edx, dword [eax - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, 0x208
sub edx, eax
or ecx, edx
jge 0x10045081
mov ecx, esi
call fcn.10079066
push dword [esi]
xor ebx, ebx
push ebx
push 0x10015c58
push edi
call fcn.1004501d
test eax, eax
jne 0x1004509f
lea eax, [edi - 0x10]
call fcn.1007924a
jmp 0x100450bd
or eax, 0xffffffff
call fcn.10078e28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [edi - 0x10]
je 0x10045098
call fcn.1007924a
mov bl, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
mov al, bl
call fcn.10087296
ret 8
Function at 0x10045241
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x10095e7f
call fcn.100871aa
push 0x1000c9dc
lea eax, [ebp - 0x14]
push eax
call fcn.100580f9
and dword [ebp - 4], 0
mov edi, 0x1000ca38
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.100580f9
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push 0x1000c9f0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
mov edi, ebx
call fcn.1005b523
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 0x100454be
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.10045450
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.1004536a
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
cmp dword [ebx + 4], edi
jne 0x10045312
push 0x1000ca48
push 2
call dword [eax + 4]
lea edi, [ebp - 0x2c]
call fcn.1005b523
lea edi, [ebp - 0x3c]
call fcn.1005b523
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call fcn.100239be
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
xor eax, eax
call fcn.10087296
ret 4
push 0x1000ca74
push 2
call dword [eax + 4]
call fcn.100451f9
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 4]
test eax, eax
jle 0x100452e0
and dword [ebp + 8], edi
test edi, edi
js 0x1004535f
cmp edi, eax
jge 0x1004535f
mov eax, dword [ebx]
add eax, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [eax + 0x10]
push eax
push 2
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 4]
add dword [ebp + 8], 0x14
inc edi
cmp edi, eax
jl 0x10045337
jmp 0x100452e0
call fcn.10077bf4
int3
Function at 0x100454d7
Capabilities:
Get graphical window text

Disassembly:
push 0x20
mov eax, 0x10095e35
call fcn.100871aa
mov edi, ecx
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x14]
je 0x1004561e
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [ebx - 4]
mov esi, 0x200
sub eax, esi
or eax, ecx
jge 0x1004553d
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.10079066
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], esi
jge 0x1004554c
push 0x80070057
call fcn.100791b8
mov dword [ebx - 0xc], esi
xor eax, eax
mov word [ebx + 0x400], ax
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 8]
jle 0x10045570
push dword [ebx - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.10078fca
mov ebx, dword [ebp - 0x10]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.10078e28
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
call fcn.10045134
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne al
mov byte [ebp + 8], al
push dword [ebp + 8]
mov eax, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.1004516a
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp eax, ecx
jle 0x100455f8
mov edx, dword [ebp - 0x2c]
cmp dword [ebp + 8], 0
jl 0x10045667
cmp dword [ebp + 8], eax
jge 0x10045667
mov esi, dword [edi]
cmp edx, dword [ecx + esi]
je 0x10045629
inc dword [ebp + 8]
add ecx, 0x14
cmp dword [ebp + 8], eax
jl 0x100455d3
lea eax, [ebp - 0x2c]
push eax
mov esi, edi
call fcn.1005b439
lea esi, [ebp - 0x2c]
call fcn.10045672
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.1007924a
lea eax, [ebx - 0x10]
call fcn.1007924a
xor eax, eax
inc eax
call fcn.10087296
ret 4
mov esi, dword [ebp + 8]
cmp esi, eax
jge 0x10045667
imul esi, esi, 0x14
add esi, dword [edi]
mov eax, dword [esi]
sub eax, edx
jne 0x10045659
cmp byte [esi + 0xc], al
setne al
xor ecx, ecx
cmp byte [ebp - 0x20], cl
setne cl
sub eax, ecx
jne 0x10045659
push dword [ebp - 0x24]
add esi, 8
push esi
call fcn.100583c3
test eax, eax
jns 0x10045603
push dword [ebp + 8]
call fcn.1005b4ca
jmp 0x100455f8
call fcn.10077bf4
int3

Function at 0x100470a0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 8], eax
xor eax, eax
push eax
push eax
push esi
push 0x1004706b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10047b48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebx]
push 0x20
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x80091007
call dword [eax]
test al, al
je 0x10047c55
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x10047c55
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x10047c4d
push esi
mov esi, 0x100000
push esi
call fcn.1007bc2d
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10047c43
push edi
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
jmp 0x10047bf2
push dword [ebp + 8]
mov eax, dword [ebx]
push dword [ebp - 8]
mov ecx, ebx
call dword [eax + 8]
test al, al
je 0x10047c3a
cmp dword [ebp + 8], esi
jne 0x10047bfd
and dword [ebp + 8], 0
push 0
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10047bce
jmp 0x10047c3a
mov eax, dword [ebx]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test al, al
je 0x10047c3a
cmp dword [ebp - 0x10], 0x20
jne 0x10047c30
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
push 8
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10047c30
and dword [ebp - 0x14], eax
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebp - 8]
call fcn.1007bc3d
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x10048a66
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x10093c1f
call fcn.100871aa
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
jne 0x10048a90
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
jmp 0x10048afe
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 0x10]
call fcn.10036d17
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp + 0xc]
call fcn.10058c46
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.1007924a
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10048ae4
mov eax, dword [edi]
jmp 0x10048ae9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
call fcn.1007924a
mov eax, esi
call fcn.10087296
ret 0xc

Function at 0x10048b66
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x10093bef
call fcn.100871aa
mov esi, ecx
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.100580f9
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x10048bc3
lea eax, [ebp - 0x14]
push eax
call fcn.10025d87
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10058274
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
push dword [ebp + 8]
mov eax, edi
call fcn.10058c05
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10048be6
push dword [ebp + 8]
mov esi, dword [esi + 4]
push 0x1000d590
push eax
call fcn.10023a0d
add esp, 0xc
jmp 0x10048c3c
mov ebx, dword [ebp - 0x10]
mov ecx, esi
call fcn.10048c5f
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor ebx, ebx
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
jmp 0x10048c2f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x10048c1b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
call fcn.10087296
ret 4