joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10096a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_strchr]
push 0x2a
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10096f6
push 0x3f
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10096f6
mov al, byte [esi]
test al, al
je 0x10096e2
cmp al, 0x2f
jne 0x10096e2
mov al, byte [esi + 1]
test al, al
je 0x10096e2
cmp al, 0x2f
je 0x10096f2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10096f2
test al, 0x10
jne 0x10096f6
xor eax, eax
jmp 0x10096f9
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x10097ea
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.01008ed3
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ebx, eax
push edi
mov dword [ebp - 8], ebx
call fcn.0101627b
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x1009840
push 0x1001914
push dword [ebp + 0xc]
push edi
call fcn.01016202
add esp, 0xc
push 0x5c
push ebx
call fcn.0100e51e
test eax, eax
mov dword [ebp + 0x14], eax
je 0x10098c8
push esi
push 2
push 0x1001918
push ebx
call fcn.0100e625
test eax, eax
je 0x10098b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebp + 0x14]
sub eax, ebx
push eax
push ebx
add esi, edi
push esi
call fcn.0100e562
mov ecx, dword [ebp + 0x14]
mov eax, esi
sub eax, ebx
push edi
mov byte [eax + ecx], 0
call fcn.0100943a
test eax, eax
jne 0x100989e
push edi
call dword [sym.imp.msvcrt.dll__mkdir]
test eax, eax
pop ecx
je 0x100989e
and dword [ebp - 4], 0
mov eax, edi
sub eax, esi
add eax, dword [ebp + 0xc]
push 0x1001914
push eax
push esi
call fcn.01016202
add esp, 0xc
mov ebx, dword [ebp + 0x14]
push 0x5c
inc ebx
push ebx
call fcn.0100e51e
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x1009850
pop esi
push ebx
push dword [ebp + 0xc]
push edi
call fcn.01016202
add esp, 0xc
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.01008f31
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x10
Function at 0x10098ee
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x140], ebx
je 0x1009aa9
push esi
call fcn.0100943a
test eax, eax
je 0x1009aa9
push esi
push ebx
push 0x104
mov esi, 0x1020b98
push esi
call fcn.010097ea
test eax, eax
je 0x1009aa9
push ebx
call fcn.01008f5e
push esi
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10099dd
test bl, 1
je 0x10099dd
push esi
push 0x2d6
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.010161e1
add esp, 0x10
push 1
call fcn.0100db6b
cmp dword [ebp + 0x10], edi
jne 0x10099c5
push 0x11
push 0x2d7
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x130]
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x10099c5
push edi
call fcn.0100db6b
mov dword [ebp - 0x138], edi
jmp 0x1009a90
push edi
call fcn.0100db6b
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push esi
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, edi
mov dword [ebp - 0x138], eax
je 0x1009a90
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov edi, 0x80
push edi
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0x134]
call ebx
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x170]
push ecx
push eax
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push 0x40000000
push esi
call ebx
mov ebx, eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x1009a8a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc dword [0x1020c9c]
push dword [ebp - 0x134]
push dword [ebp - 0x140]
call fcn.01008ff7
mov eax, dword [ebp - 0x138]
jmp 0x1009aab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0x10
Function at 0x100e35e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret 0xc

Function at 0x100e9d8
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.01015e00
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
je 0x100ea32
push eax
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.0101627b
add esp, 0xc
push 0x41
push 0x2b1
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
jmp 0x100ea90
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x10020bc
call esi
mov edi, eax
test edi, edi
jne 0x100ea53
push 0x10020ac
call esi
mov edi, eax
test edi, edi
je 0x100ea7c
push 0
push 0x100e6da
push dword [0x1021df0]
push 0xaa
push dword [0x1021dd8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100ea8f
push 0x32d
call fcn.0100e6ab
push eax
call fcn.0100e9d8
xor esi, esi
inc esi
pop edi
cmp esi, 2
pop esi
jne 0x100ea9e
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01015dd4
leave
ret 4
Function at 0x100f775
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push dword [0x1021d74]
call fcn.01018604
mov esi, eax
test esi, esi
je 0x100f7cb
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [0x10200a8]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push fcn.0100f46b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100f7c4
push esi
call fcn.0100f46b
jmp 0x100f7cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret 8
Function at 0x10103f3
Capabilities:
Delete file
Get common file path
Get file size
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x10c], 0xffffffff
push esi
push edi
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x1021128], edi
je 0x1010588
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push edi
push 0x1001678
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x108]
push eax
push dword [0x1021128]
call fcn.0100b8e5
push eax
call fcn.01004ef7
cmp eax, 0xffffffff
mov dword [ebp - 0x110], eax
je 0x101053a
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10c], eax
je 0x101053a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101053a
cmp ebx, edi
je 0x1010531
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1010531
inc ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x101052b
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x101052b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x1010500
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x101053a
push ebx
push eax
push dword [ebp - 0x10c]
call fcn.0100e35e
push esi
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x110], edi
jne 0x101052b
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x110], 0xffffffff
jne 0x1010565
push 1
call fcn.0100db6b
push 0x10
push 0x1001ad0
push 0x337
call fcn.0100e6ab
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0100db6b
cmp dword [ebp - 0x10c], 0xffffffff
pop ebx
je 0x101057b
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01015dd4
leave
ret
Function at 0x10128bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
mov esi, dword [ebx]
and dword [edi], 0
cmp byte [esi], 0x2f
mov dword [ebp - 4], esi
jne 0x10128e0
cmp byte [esi + 1], 0x2f
je 0x1012977
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10128fd
test al, 0x10
je 0x10128fd
mov dword [edi], 1
mov eax, esi
and dword [ebx], 0
jmp 0x1012979
mov al, byte [esi]
test al, al
mov dl, 0x5c
je 0x101291c
cmp byte [esi + 1], 0x3a
jne 0x101291c
inc esi
inc esi
mov al, byte [esi]
xor ecx, ecx
test al, al
je 0x1012972
cmp al, 0x2e
jne 0x101293d
inc ecx
jmp 0x1012947
cmp al, dl
jne 0x101290d
cmp byte [esi + 1], dl
jne 0x101290d
xor ecx, ecx
cmp al, dl
jne 0x1012931
inc ecx
cmp ecx, 4
jge 0x101290d
inc esi
mov al, byte [esi]
test al, al
jne 0x1012927
mov eax, dword [ebp - 4]
jmp 0x10128f8
xor ecx, ecx
cmp al, dl
je 0x1012956
cmp al, 0x2f
je 0x1012956
cmp ecx, 2
jg 0x1012960
cmp al, 0x2a
je 0x1012960
cmp al, 0x3f
je 0x1012960
jmp 0x1012959
mov dword [ebp - 8], esi
inc esi
mov al, byte [esi]
test al, al
jne 0x1012915
mov eax, dword [ebp - 8]
test eax, eax
je 0x1012972
mov byte [eax], 0
inc eax
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x1012979
mov eax, dword [ebp - 4]
mov dword [ebx], eax
xor eax, eax
pop esi
leave
ret

Function at 0x1012e7b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov ebx, 0x10c
mov eax, edi
mov edx, ebx
mul edx
seto cl
mov dword [esi], edi
neg ecx
or ecx, eax
push ecx
call fcn.01012843
test eax, eax
pop ecx
mov dword [esi + 4], eax
jne 0x1012eb6
xor eax, eax
jmp 0x1012f36
mov ecx, edi
imul ecx, ecx, 0x10c
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 8], 0
mov esi, dword [esi + 4]
add esp, 0xc
test edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp + 8], edi
je 0x1012f33
lea edi, [esi + 8]
dec dword [ebp + 8]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
push 0x1002200
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x100
push 2
lea eax, [ebp - 0xc]
push eax
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x1012eaf
add esi, ebx
add edi, ebx
cmp dword [ebp + 8], 0
jne 0x1012ee9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1013b6f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x1013bd4
mov eax, dword [edi]
test eax, eax
je 0x1013bcb
push ebx
mov ebx, eax
push esi
imul ebx, ebx, 0x10c
jmp 0x1013b93
mov eax, dword [ebp - 4]
mov esi, dword [edi + 4]
dec eax
sub ebx, 0x10c
push eax
mov ecx, edi
mov dword [ebp - 4], eax
add esi, ebx
call fcn.01012e4a
lea eax, [esi + 8]
cmp byte [eax], 0
je 0x1013bc3
mov ecx, dword [edi + 4]
cmp dword [ebx + ecx + 4], 0
jne 0x1013bc3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 0
jne 0x1013b90
pop esi
pop ebx
push dword [edi + 4]
call fcn.0101285c
pop ecx
pop edi
leave
ret
Function at 0x1014bbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov byte [edi], bl
cmp dword [esi + 4], ebx
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x808], ebx
mov dword [esi + 0x314], edi
mov dword [esi + 0x318], eax
jne 0x1014c4c
push 1
lea ecx, [ebp - 0x81c]
call fcn.01012e7b
test eax, eax
jne 0x1014c3e
lea ecx, [ebp - 0x81c]
call fcn.01013b6f
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0xc
mov eax, dword [ebp - 0x818]
mov eax, dword [eax]
mov dword [ebp - 0x808], eax
push ebx
push ebx
push dword [ebp - 0x808]
mov ecx, esi
push dword [ebp - 0x80c]
push 4
call fcn.010147be
cmp dword [esi + 4], ebx
mov dword [ebp - 0x80c], eax
jne 0x1014d83
push ebx
push ebx
push ebx
push dword [ebp - 0x808]
mov dword [ebp - 0x814], 0x7ff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1014d7d
push ebx
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x814]
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014d7d
mov eax, dword [ebp - 0x814]
mov byte [ebp + eax - 0x804], bl
push 0x10016dc
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], ebx
push eax
jmp 0x1014d4c
cmp dword [ebp - 0x810], ebx
je 0x1014d00
push 8
push dword [ebp - 0x808]
push 0x1002340
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1014d46
push 9
push dword [ebp - 0x808]
mov dword [ebp - 0x810], ebx
push 0x1002334
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1014d2c
mov dword [ebp - 0x810], 1
jmp 0x1014d46
push 0xf
push dword [ebp - 0x808]
push 0x1002324
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1014d60
push 0x10016dc
push ebx
call dword [sym.imp.msvcrt.dll_strtok]
cmp eax, ebx
pop ecx
mov dword [ebp - 0x808], eax
pop ecx
jne 0x1014cde
jmp 0x1014d83
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 1]
push ecx
mov ecx, dword [ebp - 0x808]
add ecx, 0xf
push ecx
push eax
push edi
call fcn.010163b1
add esp, 0x10
jmp 0x1014d83
mov dword [ebp - 0x80c], ebx
mov dword [esi + 0x314], ebx
mov dword [esi + 0x318], ebx
mov ebx, dword [ebp - 0x80c]
jmp 0x1014c20
Function at 0x1014d9f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x418], eax
xor edi, edi
call fcn.01013f48
mov esi, eax
cmp esi, ebx
je 0x1014f22
cmp dword [esi + 0x514], ebx
je 0x1014eff
cmp dword [esi + 0x51c], ebx
je 0x1014e78
mov eax, dword [esi + 0x520]
add eax, 0x210
mov cl, byte [eax]
neg cl
sbb ecx, ecx
test eax, ecx
je 0x1014e78
lea eax, [esi + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x418]
mov edi, 0x208
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0101627b
add esp, 0xc
cmp byte [ebp - 0x20c], bl
lea eax, [ebp - 0x20c]
je 0x1014e46
cmp byte [eax], 0x5c
jne 0x1014e41
mov byte [eax], 0x2f
inc eax
cmp byte [eax], bl
jne 0x1014e39
mov eax, dword [esi + 0x520]
add eax, 0x210
lea ecx, [ebp - 0x20c]
push ecx
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
push ecx
push 0x1002354
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.010161e1
add esp, 0x14
jmp 0x1014ee0
push dword [ebp - 0x418]
mov edi, 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0101627b
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x1014ec4
lea ecx, [ebp + eax - 0x20c]
cmp byte [ecx - 1], 0x5c
je 0x1014ec4
mov edx, edi
push 0x1001914
sub edx, eax
push edx
push ecx
call fcn.0101627b
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x100234c
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.010161e1
add esp, 0x10
push dword [ebp - 0x418]
mov ecx, dword [esi + 0x520]
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.010147be
mov edi, eax
jmp 0x1014f1c
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1014f1a
test al, 0x10
je 0x1014f1a
xor edi, edi
inc edi
jmp 0x1014f1c
xor edi, edi
push esi
call fcn.01013449
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 4
Function at 0x1015dc5
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x101e5c8
call fcn.010169a4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1022418
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1015b6f
cmp eax, esi
jne 0x1015b62
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1015b72
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1015b49
xor esi, esi
inc esi
mov eax, dword [0x1022414]
cmp eax, esi
jne 0x1015b85
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1015bb4
mov eax, dword [0x1022414]
test eax, eax
jne 0x1015bae
mov dword [0x1022414], esi
push 0x1001430
push 0x1001424
call fcn.01015aae
pop ecx
pop ecx
test eax, eax
je 0x1015bb4
jmp 0x1015cdc
mov dword [0x102180c], esi
mov eax, dword [0x1022414]
cmp eax, esi
jne 0x1015bd8
push 0x1001420
push 0x1001414
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1022414], 2
test ebx, ebx
jne 0x1015be4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1022420], 0
je 0x1015c08
push 0x1022420
call fcn.0101691b
pop ecx
test eax, eax
je 0x1015c08
push 0
push 2
push 0
call dword [0x1022420]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1015c64
test al, al
je 0x1015c22
cmp dword [ebp - 0x1c], 0
jne 0x1015c64
mov al, byte [esi]
test al, al
je 0x1015c32
cmp al, 0x20
ja 0x1015c32
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1015c22
test byte [ebp - 0x3c], 1
je 0x1015c3e
movzx eax, word [ebp - 0x38]
jmp 0x1015c41
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1021808], eax
cmp dword [0x10217fc], 0
jne 0x1015cb8
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1015c73
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1015c86
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1015c0f
cmp dword [0x102180c], 0
jne 0x1015cc7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1021808]
jmp 0x1015ce8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010169e9
ret
call fcn.01016aee
jmp 0x1015b0f

Function at 0x1016890
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10168a3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101689f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10168d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101690f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1016905
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1016911
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10168f5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1017d01
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push 0x1022480
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffff
jbe 0x1017d24
xor eax, eax
jmp 0x1017df1
push esi
mov esi, dword [0x1021b44]
test esi, esi
push edi
je 0x1017d4c
mov edi, dword [esi + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
push edi
call fcn.01017cd3
test eax, eax
jl 0x1017d92
add edi, ebx
cmp edi, 0x61a9
jbe 0x1017dca
push 0x61bc
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x1017d6f
and dword [0x1021b44], eax
push 0x100248c
jmp 0x1017d8c
mov esi, dword [0x1021b44]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
cmp eax, ecx
mov dword [0x1021b44], eax
jne 0x1017d96
push 0x1002474
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1017def
cmp esi, ecx
mov dword [eax], esi
mov eax, dword [0x1021b44]
mov dword [eax + 4], ecx
mov eax, dword [0x1021b44]
mov dword [eax + 8], edi
mov eax, dword [0x1021b44]
mov dword [eax + 0xc], ecx
mov eax, dword [0x1021b44]
mov dword [eax + 0x10], ecx
je 0x1017dc4
mov eax, dword [0x1021b44]
mov dword [esi + 4], eax
mov esi, dword [0x1021b44]
mov eax, dword [esi + 0x10]
inc dword [esi + 0xc]
mov ecx, dword [0x1021b44]
add dword [ecx + 0x10], ebx
mov ecx, dword [0x1021b44]
mov edx, dword [ecx + 0x10]
add edx, 3
and edx, 0xfffffffc
lea eax, [eax + esi + 0x14]
mov dword [ecx + 0x10], edx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1018508
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x191
push dword [0x1022448]
call esi
push edi
lea eax, [ebp - 0x108]
push eax
push 0x192
push dword [0x1022448]
call esi
push 0x12
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
pop edi
pop esi
jne 0x101857b
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01015dd4
leave
ret
Function at 0x101880f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
je 0x1018823
mov dword [ebx], edi
push 0x7018
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
jne 0x101883b
xor eax, eax
jmp 0x10188c7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x1018877
cmp ebx, edi
je 0x10188c4
mov ebx, dword [ebp + 8]
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101887b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x10188c6
lea eax, [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x500c]
mov dword [esi], ebx
mov dword [eax], edi
cmp dword [ebp - 8], 2
jne 0x10188ba
cmp word [ebp - 4], 0xfeff
jne 0x10188ba
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [esi + 0x5010]
mov dword [esi + 0x7010], eax
mov dword [esi + 0x7014], eax
jmp 0x10188c4
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 8