joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100edf4
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x103b3bc]
and dword [ebp - 0x414], 0
cmp dword [0x103d530], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x410], esi
mov eax, 0x1001d98
jne 0x100ee2c
mov eax, 0x1001da0
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
push 0x1001930
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x108]
push eax
push 3
lea eax, [ebp - 0x418]
push eax
mov ebx, 0x1001c98
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x1001928
push edi
call esi
cmp eax, 1
jbe 0x100ef8b
lea eax, [ebp - 0x108]
push eax
push 0x304
lea eax, [ebp - 0x40c]
push eax
push ebx
push dword [ebp - 0x410]
push edi
call esi
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp - 0x40c], 0
mov esi, eax
lea eax, [ebp - 0x40c]
je 0x100eef0
cmp byte [eax], 0x2c
je 0x100eecb
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x100eeb8
jmp 0x100eef0
mov byte [eax], 0
inc eax
push 0x201
lea esi, [esi + eax + 1]
push eax
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x414], esi
mov byte [esi + 0x200], 0
mov esi, 0x304
push esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0100e984
push esi
push dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.0100f57a
cmp dword [ebp + 8], 0
je 0x100ef8d
jmp 0x100ef81
mov ecx, dword [ebp - 0x414]
test ecx, ecx
jne 0x100ef3a
mov ecx, 0x1001747
mov eax, dword [0x103d574]
test eax, eax
jne 0x100ef54
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + 0x103d5a0]
mov edx, dword [0x103d504]
or edx, 0x2011
push edx
push dword [0x103d324]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x100ef87
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0100f57a
mov esi, eax
test esi, esi
je 0x100ef2b
mov eax, esi
jmp 0x100ef8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01037c59
leave
ret 4
Function at 0x100efa1
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0x1c
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x104
jl 0x100f001
push esi
push edi
call fcn.0100e984
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push 0x1001d90
push edi
call fcn.0100e69c
push edi
call ebx
cmp eax, 0xffffffff
jne 0x100effa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x100effd
xor eax, eax
inc eax
test eax, eax
jne 0x100f04e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
push edi
call fcn.0100e984
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push 0x1001d90
add eax, edi
push edi
mov dword [ebp + 0xc], eax
call fcn.0100e69c
push edi
call ebx
cmp eax, 0xffffffff
jne 0x100f04e
push 0x10019b4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebx
cmp eax, 0xffffffff
jne 0x100f04e
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x100f055
push esi
push edi
call fcn.0100e984
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xc
push edi
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
push edi
call esi
add eax, edi
push eax
push dword [ebp + 8]
call fcn.0100ed4a
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f1be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x103b3bc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
call fcn.0100e6da
test ax, ax
mov dword [ebp - 0x110], eax
jne 0x100f1f5
xor eax, eax
jmp 0x100f287
push esi
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
push ebx
call fcn.0100e984
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
movzx eax, word [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push 0x10019c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0100e69c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100f283
push esi
push ebx
call fcn.0100e984
push 0xc
push ebx
call edi
mov ecx, 0x103
sub ecx, eax
push ecx
push ebx
call edi
add eax, ebx
push eax
push dword [ebp - 0x10c]
call fcn.0100ed4a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x100f285
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01037c59
leave
ret 8
Function at 0x10190ea
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x103b3bc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [0x103d380]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x37c], esi
mov dword [ebp - 0x380], edi
jne 0x1019123
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x378], eax
mov eax, dword [esi + 0xc]
cmp word [eax + 0x3a], 0xf
jne 0x1019160
push edi
push 0xb0
call fcn.01023837
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
call fcn.01026638
jmp 0x1019272
cmp dword [0x103d8d0], ebx
jne 0x101920c
push 1
push 0x32
call fcn.01023837
push eax
call fcn.0100d1cd
mov edi, eax
cmp edi, ebx
je 0x1019272
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001c4c
push edi
call esi
push 0x1001c58
push edi
mov dword [0x103d8d0], eax
call esi
push 0x1001c64
push edi
mov dword [0x103d8cc], eax
call esi
push 0x1001c74
push edi
mov dword [0x103d8c8], eax
call esi
push 0x1001c84
push edi
mov dword [0x103d8c4], eax
call esi
cmp dword [0x103d8d0], ebx
mov dword [0x103d8c0], eax
je 0x10191f8
cmp dword [0x103d8cc], ebx
je 0x10191f8
cmp dword [0x103d8c8], ebx
je 0x10191f8
cmp dword [0x103d8c4], ebx
je 0x10191f8
cmp eax, ebx
je 0x10191f8
cmp dword [0x103ba0c], ebx
jne 0x1019200
mov dword [0x103d8d0], ebx
jmp 0x1019272
mov edi, dword [ebp - 0x380]
mov esi, dword [ebp - 0x37c]
cmp dword [0x103d534], ebx
je 0x1019239
push edi
push 0x37
call fcn.01023837
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
call fcn.010242ce
push dword [0x103d574]
push fcn.01036022
call dword [0x103ba0c]
push dword [ebp + 0x10]
movzx eax, word [0x103aac4]
push dword [ebp - 0x378]
push eax
mov eax, dword [esi + 0xc]
push ebx
push dword [eax + 0x3e]
push edi
call dword [0x103d8d0]
cmp eax, ebx
mov dword [0x103aaac], eax
jg 0x1019279
xor eax, eax
jmp 0x1019330
push esi
call fcn.01018fc4
mov esi, eax
cmp esi, ebx
jne 0x1019313
push edi
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1001d58
lea eax, [ebp - 0x374]
push eax
call fcn.0102c23a
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call edi
pop ecx
pop ecx
push esi
mov byte [eax + 1], bl
push 0x1001c90
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x374]
push 0x5c
push eax
call edi
pop ecx
pop ecx
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x108]
push eax
push dword [0x103aaac]
call dword [0x103d8cc]
mov esi, eax
push dword [0x103aaac]
call dword [0x103d8c0]
or dword [0x103aaac], 0xffffffff
push ebx
push ebx
call dword [0x103ba0c]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01037c59
leave
ret 0xc
Function at 0x1021e7d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov eax, 0x103bda0
cmp dword [eax], 0
je 0x1021e9a
add eax, 0x12
inc esi
cmp eax, 0x103c124
jl 0x1021e8a
cmp esi, 0x32
jne 0x1021ebf
cmp dword [0x103d56c], 0
je 0x1021eb8
push 0x424
call fcn.01023837
push eax
call fcn.01026638
xor eax, eax
jmp 0x1021f3f
push edi
push 0x26
push dword [ebp + 0x10]
call fcn.010079f0
test eax, eax
je 0x1021ef0
movsx eax, byte [eax + 1]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
push dword [ebp + 0x10]
lea esi, [esi + esi*8]
shl esi, 1
mov edi, eax
call fcn.0102c5db
mov dword [esi + 0x103bda8], eax
jmp 0x1021efd
lea esi, [esi + esi*8]
xor edi, edi
shl esi, 1
and dword [esi + 0x103bda8], edi
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 0x103bda0], eax
call fcn.0102c5db
cmp dword [0x103d580], 0
mov word [esi + 0x103bdb0], di
mov dword [esi + 0x103bda4], eax
pop edi
je 0x1021f2a
or ecx, 0xffffffff
jmp 0x1021f30
mov ecx, dword [0x103d498]
mov dword [esi + 0x103bdac], ecx
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x102268d
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.01021d41
test edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
je 0x1022789
cmp edi, 0xffffffff
je 0x10227b2
cmp dword [esi], 3
jne 0x102276d
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov esi, dword [esi + 4]
add eax, edi
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x14]
push eax
push 2
push 0x706a
push dword [ebp + 0xc]
add edx, ebx
mov word [ebp - 0x14], di
mov word [ebp - 0x12], bx
mov word [ebp - 0xe], dx
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x10227b2
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 8], eax
je 0x1022762
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x1022759
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x1022759
push 0xcc0020
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10227b2
push 0
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10227b2
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push 0xaa
mov dword [ebp - 0x18], ecx
add ecx, eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], edi
add edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edi
call fcn.0102a1ad
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10266e0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103b3bc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [0x103d564], edi
mov dword [ebp - 4], eax
je 0x102670e
mov dword [0x103d564], edi
jmp 0x1026855
cmp dword [0x103d568], edi
jne 0x1026855
cmp dword [0x103b8d4], 5
jge 0x10268b8
inc dword [0x103b8d4]
cmp dword [ebp + 0x10], 2
je 0x1026739
cmp dword [ebp + 0x10], 3
jne 0x1026743
mov dword [0x103d570], 1
cmp ebx, edi
je 0x102675a
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1026778
mov ebx, dword [0x103d574]
jmp 0x1026778
mov eax, dword [0x103d574]
cmp eax, edi
je 0x1026767
mov ebx, eax
jmp 0x1026778
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [eax + 0x103d5a0]
mov esi, dword [ebp + 0xc]
cmp esi, 2
je 0x102679c
cmp esi, 0x2328
jl 0x1026790
cmp esi, 0x238b
jle 0x102679c
push dword [ebp + 0x14]
push esi
call fcn.01023837
push eax
jmp 0x10267a3
push esi
push dword [0x103d360]
lea eax, [ebp - 0x104]
push 0x1002310
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [0x103d580], edi
je 0x10267ca
push edi
push 1
push edi
push edi
call fcn.0101e63f
cmp dword [0x103d560], edi
je 0x10267e0
push 0x63
push dword [0x103d5a0]
call dword [sym.imp.USER32.dll_KillTimer]
cmp esi, 2
mov edi, 0x2010
jne 0x10267ee
mov eax, edi
jmp 0x10267f8
mov eax, dword [0x103d504]
or eax, 0x2040
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
push dword [0x103d324]
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
test eax, eax
jne 0x1026837
cmp dword [ebp + 0xc], 2
jne 0x1026837
mov eax, dword [0x103d504]
or eax, edi
push eax
push dword [0x103d324]
push dword [0x103d360]
push ebx
call esi
mov dword [ebp + 0x10], 2
cmp dword [0x103d560], 0
je 0x1026855
push 0
push 0x2710
push 0x63
push dword [0x103d5a0]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp + 0x10]
dec eax
je 0x10268b2
dec eax
dec eax
je 0x1026866
call fcn.01026685
jmp 0x10268aa
call fcn.0100d6d7
mov esi, eax
push 0x1002300
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push 0x111
push dword [eax + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.0100e69c
call fcn.01026685
push 5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll__exit]
dec dword [0x103b8d4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01037c59
leave
ret 0x10
Function at 0x102cb1b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x103b3bc]
mov dword [ebp - 4], eax
mov eax, dword [0x103bcbc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
jne 0x102cb5b
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x102cb50
mov ecx, eax
call fcn.01033672
jmp 0x102cb52
xor eax, eax
test eax, eax
mov dword [0x103bcbc], eax
je 0x102cb7c
push esi
push eax
call fcn.0103202b
test eax, eax
jne 0x102cbbd
push esi
call fcn.0100cf68
test eax, eax
jne 0x102cbbd
push esi
push dword [0x103bcbc]
call fcn.010336a0
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push esi
push 0x8b
call fcn.01023837
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
call fcn.01026638
mov ecx, dword [ebp - 4]
pop esi
call fcn.01037c59
leave
ret 4
Function at 0x102cddf
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x103b3bc]
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, ecx
mov eax, esi
neg eax
sbb eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and eax, 0xffffffe0
add eax, 0x419
mov ebx, edx
push eax
push ebx
mov dword [ebp - 0x110], ebx
call edi
neg esi
sbb esi, esi
and esi, 0x20
add esi, 0x3f9
push esi
push ebx
mov dword [ebp - 0x114], eax
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x190
push eax
mov dword [ebp - 0x108], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
jle 0x102cfe2
push ebx
push ebx
push 0xb
push dword [ebp - 0x114]
call esi
push ebx
push ebx
push 0xb
push dword [ebp - 0x108]
call esi
mov eax, dword [ebp - 0x118]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push 0x191
push dword [ebp - 0x108]
call esi
cmp dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
jle 0x102cf58
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x11c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x120], eax
mov eax, dword [eax]
lea edx, [ebp - 0x104]
push edx
sub eax, ecx
push eax
push 0x189
push dword [ebp - 0x108]
call esi
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
sub eax, dword [ebp - 0x10c]
push ebx
push eax
push 0x199
push dword [ebp - 0x108]
call esi
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x180
push dword [ebp - 0x114]
call esi
push dword [ebp - 0x124]
push eax
push 0x19a
push dword [ebp - 0x114]
call esi
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
sub eax, dword [ebp - 0x10c]
push ebx
push eax
push 0x182
push dword [ebp - 0x108]
call esi
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x118]
jl 0x102cea9
push ebx
push 1
push 0xb
push dword [ebp - 0x114]
call esi
push ebx
push 1
push 0xb
push dword [ebp - 0x108]
call esi
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push 0x190
push 0x1389
push dword [ebp - 0x110]
call edi
push eax
call esi
neg eax
sbb eax, eax
neg eax
push eax
push 0x138a
push dword [ebp - 0x110]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push ebx
push 0x190
push 0x138c
push dword [ebp - 0x110]
call edi
push eax
call esi
neg eax
sbb eax, eax
neg eax
push eax
push 0x138b
push dword [ebp - 0x110]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01037c59
leave
ret
Function at 0x102e8d8
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
cmp dword [0x103d304], 0
mov eax, dword [0x103b3bc]
mov dword [ebp - 4], eax
je 0x102e9f6
and dword [ebp - 0x24c], 0
push ebx
push esi
push edi
mov esi, 0x104
cmp dword [ebp - 0x24c], 0
lea eax, [ebp - 0x108]
jne 0x102e920
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x102e935
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0100e984
lea eax, [ebp - 0x108]
push eax
call fcn.0102c5db
cmp dword [ebp - 0x24c], 0
mov ebx, eax
mov eax, 0x1001d28
je 0x102e956
mov eax, 0x1002ad8
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
push esi
push 0x1002ad0
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x102e9d9
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x102e991
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x24c]
cmp dword [ebp - 0x24c], 2
jl 0x102e907
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01037c59
leave
ret
Function at 0x1037d71
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002b88
call fcn.01037f3c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1037dae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1037dae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1037dc6
cmp eax, 0x20b
je 0x1037db3
mov dword [ebp - 0x1c], ebx
jmp 0x1037dda
cmp dword [ecx + 0x84], 0xe
jbe 0x1037dae
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1037dd4
cmp dword [ecx + 0x74], 0xe
jbe 0x1037dae
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103d9fc], 0xffffffff
or dword [0x103da00], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103bd40]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103bd3c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103da04], eax
call fcn.01037fe0
cmp dword [0x103b3c0], ebx
jne 0x1037e35
push fcn.01037fe0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01037fc9
push 0x103a010
push 0x103a00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x103bd38]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103bd34]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x103a008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1037ecb
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1037e9f
cmp al, 0x22
jne 0x1037e91
cmp byte [esi], 0x22
jne 0x1037ea8
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1037eb2
cmp al, 0x20
jbe 0x1037ea4
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1037ed6
movzx eax, word [ebp - 0x50]
jmp 0x1037ed9
cmp byte [esi], 0x20
jbe 0x1037ea8
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1037ecb
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1037ef6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1037f2b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01037f77
ret