joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a430
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1017048]
or dword [ebp - 0x214], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0100877f
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
je 0x100a542
push esi
mov esi, dword [ebp - 0x214]
cmp esi, edi
jl 0x100a536
cmp esi, 2
jg 0x100a536
cmp dword [ebp + 0xc], edi
jne 0x100a48a
cmp eax, 2
je 0x100a495
cmp dword [ebp + 0xc], 1
jne 0x100a49f
cmp eax, 1
jne 0x100a49f
push 0x1003888
jmp 0x100a53b
xor ecx, ecx
cmp dword [ebp + 0xc], edi
lea eax, [esi + esi]
setne cl
xor edx, edx
cmp ecx, edi
sete dl
lea esi, [eax + edx]
imul esi, esi, 0x208
lea esi, [esi + 0x1017be0]
cmp word [esi], di
jne 0x100a4e8
push ebx
push 0x10037e8
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0100a0db
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
jmp 0x100a53b
add eax, ecx
imul eax, eax, 0x208
add eax, 0x1017be0
push eax
call fcn.0100f572
mov edi, eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0100f6e7
lea eax, [ebx + edi*2]
add esp, 0xc
cmp word [eax], 0
je 0x100a525
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0100f6b4
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0100f6e7
pop ecx
pop ecx
jmp 0x100a541
push 0x1003760
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100f0dc
leave
ret

Function at 0x100a825
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x100185c
xor esi, esi
or edi, 0xffffffff
call fcn.01008bd6
test al, al
pop ecx
je 0x100a8c6
cmp byte [ebp + 0xc], 0
mov eax, 0x80
je 0x100a854
mov eax, 0x2000080
push 0
push eax
push 3
push 0
push 1
push 0xe0000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100a8a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov esi, eax
mov eax, 0x1003a98
jne 0x100a88a
mov eax, 0x1003a8c
push esi
push dword [ebp + 8]
push eax
push 0x1003a38
call fcn.0100f591
add esp, 0x10
jmp 0x100a934
push 1
push edi
call fcn.01008d65
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x100a8c1
push 1
push edi
call fcn.01008e7d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100a8c6
cmp esi, 0x78
jne 0x100a902
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100a902
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov esi, eax
mov eax, 0x1003a98
jne 0x100a8f0
mov eax, 0x1003a8c
push esi
push dword [ebp + 8]
push eax
push 0x10039d8
call fcn.0100f591
add esp, 0x10
test esi, esi
je 0x100a928
cmp byte [ebp + 0xc], 0
mov eax, 0x1003a98
jne 0x100a916
mov eax, 0x1003a8c
push esi
push dword [ebp + 8]
push eax
push 0x1003980
call fcn.0100f591
add esp, 0x10
cmp edi, 0xffffffff
je 0x100a934
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100a93f
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1017048]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100a974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100a974
mov al, 1
jmp 0x100aa37
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x100a98e
push edi
call esi
test eax, eax
jne 0x100aa1e
push ebx
push edi
call fcn.0100a825
cmp byte [ebp + 0xc], bl
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
jne 0x100a9f2
push edi
call esi
test eax, eax
jne 0x100a9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x100
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x100a9d9
push edi
push esi
push 0x1003be8
jmp 0x100a9e6
lea eax, [ebp - 0x204]
push eax
push edi
push 0x1003b98
call fcn.0100f591
add esp, 0xc
xor al, al
jmp 0x100aa35
cmp dword [ebp - 0x208], ebx
je 0x100aa14
cmp byte [ebp + 0xc], bl
mov eax, 0x1003b48
jne 0x100aa09
mov eax, 0x1003b0c
push edi
push eax
call fcn.0100f591
xor al, al
jmp 0x100aa33
cmp byte [ebp + 0xc], bl
mov eax, 0x1003ad4
jne 0x100aa23
mov eax, 0x1003aa8
push edi
push eax
call fcn.0100f591
mov byte [0x101881c], 1
mov al, 1
pop ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100f0dc
leave
ret
Function at 0x100acb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1017048]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x415], bl
call fcn.01008658
push eax
mov edi, 0x20019
push edi
push ebx
push 0x1003178
push 0x80000002
call fcn.01008692
add esp, 0x14
test eax, eax
mov esi, 0x104
jne 0x100ade8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x428], ebx
push ebx
jmp 0x100adce
push ebx
call fcn.0100a7a1
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100adb0
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push eax
push 0x1003e9c
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0100a0db
mov eax, dword [ebp - 0x41c]
add esp, 0x14
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x42c], eax
call fcn.01008658
push eax
push edi
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x42c]
call fcn.01008692
add esp, 0x14
test eax, eax
lea ecx, [ebp - 0x420]
je 0x100aee7
call fcn.01008676
inc dword [ebp - 0x428]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100ad2d
lea ecx, [ebp - 0x41c]
call fcn.01008658
push eax
push edi
push ebx
push 0x1003100
push 0x80000002
call fcn.01008692
add esp, 0x14
test eax, eax
jne 0x100aef3
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x428], ebx
push ebx
jmp 0x100aecb
push ebx
call fcn.0100a7a1
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100aead
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push eax
push 0x1003e68
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0100a0db
mov eax, dword [ebp - 0x41c]
add esp, 0x14
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x42c], eax
call fcn.01008658
push eax
push edi
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x42c]
call fcn.01008692
add esp, 0x14
test eax, eax
lea ecx, [ebp - 0x424]
je 0x100aee7
call fcn.01008676
inc dword [ebp - 0x428]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100ae2e
jmp 0x100aef3
mov byte [ebp - 0x415], 1
call fcn.01008676
lea ecx, [ebp - 0x41c]
call fcn.01008676
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
pop edi
pop esi
pop ebx
call fcn.0100f0dc
leave
ret
Function at 0x100af16
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x1017048]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x680], edi
mov eax, edi
jne 0x100af42
mov eax, 0x1001ac0
push eax
push 0x1003f80
call fcn.0100f591
lea eax, [ebp - 0x678]
push eax
mov dword [ebp - 0x674], ebx
call fcn.0100a7a1
push eax
push 0x1003ee8
mov esi, 0x104
lea eax, [ebp - 0x464]
push esi
push eax
call fcn.0100a0db
add esp, 0x1c
cmp dword [ebp - 0x678], ebx
jne 0x100afc6
lea ecx, [ebp - 0x674]
call fcn.01008658
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x464]
push eax
push 0x80000002
call fcn.01008692
add esp, 0x14
cmp eax, ebx
je 0x100afe7
cmp eax, 2
je 0x100afd8
push eax
lea eax, [ebp - 0x464]
push eax
push 0x1001938
call fcn.0100f591
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.01008676
mov al, bl
jmp 0x100b109
push edi
push dword [ebp + 8]
call fcn.0100927c
pop ecx
pop ecx
mov bl, al
jmp 0x100afc6
push 0x13
xor eax, eax
cmp dword [ebp - 0x680], ebx
mov word [ebp - 0x54], bx
pop ecx
lea edi, [ebp - 0x52]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x67c], esi
stosw word es:[edi], ax
je 0x100b016
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x680]
call fcn.01008ca3
pop ecx
pop ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x25c]
push eax
mov byte [ebp - 0x66d], bl
mov dword [ebp - 0x678], ebx
push ebx
jmp 0x100b0e5
cmp word [ebp - 0x54], bx
je 0x100b05b
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100b0c1
lea eax, [ebp - 0x25c]
push eax
push 0x1003ebc
lea eax, [ebp - 0x66c]
push esi
push eax
call fcn.0100a0db
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x674]
call fcn.01008fcd
add esp, 0x1c
test eax, eax
je 0x100afc6
lea eax, [ebp - 0x25c]
push eax
call fcn.0100acb0
test al, al
pop ecx
jne 0x100b0c1
push dword [ebp - 0x680]
push dword [ebp + 8]
call fcn.0100927c
neg al
sbb al, al
pop ecx
inc al
or byte [ebp - 0x66d], al
pop ecx
inc dword [ebp - 0x678]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x678]
mov dword [ebp - 0x67c], esi
push dword [ebp - 0x674]
call edi
test eax, eax
je 0x100b040
lea ecx, [ebp - 0x674]
call fcn.01008676
cmp byte [ebp - 0x66d], bl
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f0dc
leave
ret
Function at 0x100d423
Capabilities:
Check os version
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1017048]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x324]
push eax
mov dword [ebp - 0x324], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x314], 1
jne 0x100d45d
mov byte [0x1018810], 1
cmp dword [ebp - 0x314], 2
mov eax, dword [ebp - 0x320]
mov dword [0x1018814], eax
mov byte [0x1018811], 0
jne 0x100d546
cmp eax, 5
ja 0x100d494
jne 0x100d546
cmp dword [ebp - 0x31c], 1
jb 0x100d546
push edi
push 0x1005dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x100d4d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005cf0
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0100a0db
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100d545
push esi
push 0x1005ce0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x100d51e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005c40
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0100a0db
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100d544
and dword [ebp - 0x328], 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x328], 0
setne al
mov byte [0x1018811], al
pop esi
pop edi
mov ecx, dword [ebp - 4]
call fcn.0100f0dc
leave
ret
Function at 0x100ea5b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1017048]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ebp - 4], eax
call fcn.0100a7a1
push eax
push 0x1006c50
call fcn.0100f591
add esp, 0xc
xor bl, bl
test byte [ebp + 8], 0x10
je 0x100eaee
test byte [ebp + 8], 8
jne 0x100eaee
lea eax, [ebp - 0x210]
push eax
call fcn.0100a7a1
push eax
push 0x1005160
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100a0db
add esp, 0x14
cmp dword [ebp - 0x210], esi
jne 0x100ead9
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100b11b
test al, al
pop ecx
pop ecx
jne 0x100eadb
mov bl, 1
push esi
push 0x1005290
call fcn.0100b11b
test al, al
pop ecx
pop ecx
jne 0x100eaee
mov bl, 1
mov eax, dword [ebp + 8]
test al, 2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x100eb45
shr eax, 3
and al, 1
mov byte [ebp - 0x210], al
push eax
call fcn.0100b900
test al, al
pop ecx
je 0x100eb5c
push 0
push dword [ebp - 0x210]
call fcn.0100af16
test al, al
pop ecx
pop ecx
je 0x100eb5c
push 0x1006c1c
call esi
test byte [ebp + 8], 8
je 0x100eb38
push 0x1006bec
jmp 0x100eb3d
push 0x1006bbc
call fcn.0100f591
pop ecx
jmp 0x100eb5e
test al, 4
je 0x100eb5e
shr eax, 3
and eax, 0xffffff01
push eax
call fcn.01009d12
test al, al
pop ecx
jne 0x100eb5e
mov bl, 1
test byte [ebp + 9], 4
je 0x100eb7f
mov eax, dword [ebp + 8]
shr eax, 3
and eax, 0xffffff01
push 0
push eax
call fcn.0100af16
test al, al
pop ecx
pop ecx
jne 0x100eb7f
mov bl, 1
test byte [ebp + 9], 0x22
je 0x100ebb1
push 0
push edi
push dword [ebp + 8]
call fcn.0100b628
add esp, 0xc
test al, al
jne 0x100eb99
mov bl, 1
mov eax, dword [ebp + 8]
shr eax, 3
and eax, 0xffffff01
push eax
call fcn.01009cd6
test al, al
pop ecx
jne 0x100ebb1
mov bl, 1
mov ecx, dword [ebp + 8]
mov eax, 0x380
and ecx, eax
cmp ecx, eax
jne 0x100ebf4
push 0
push edi
push dword [ebp + 8]
call fcn.0100b628
add esp, 0xc
test al, al
je 0x100ebf2
push 0x1006b94
call esi
test byte [ebp + 8], 8
je 0x100ebeb
push 0x1006b68
call fcn.0100f591
pop ecx
jmp 0x100ebf4
push 0x1006b44
jmp 0x100ebe3
mov bl, 1
test byte [ebp + 8], 0x40
je 0x100ec0e
cmp byte [0x1018810], 0
jne 0x100ec0e
call fcn.0100881d
test al, al
jne 0x100ec0e
mov bl, 1
mov eax, dword [ebp + 8]
test ah, 0x48
je 0x100ec42
test edi, edi
je 0x100ec42
mov ecx, eax
shr ecx, 0xe
and ecx, 0xffffff01
push ecx
mov ecx, eax
shr ecx, 3
and ecx, 0xffffff01
push ecx
push edi
push eax
call fcn.0100c8bf
add esp, 0x10
test al, al
jne 0x100ec42
mov bl, 1
test byte [ebp + 0xa], 2
je 0x100ec62
test edi, edi
je 0x100ec62
push 0
push edi
push dword [ebp + 8]
call fcn.0100c77f
add esp, 0xc
mov bl, al
neg bl
sbb bl, bl
inc bl
test byte [ebp + 0xa], 1
je 0x100ec73
call fcn.0100d555
test al, al
jne 0x100ec73
mov bl, 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
test bl, bl
pop esi
sete al
pop ebx
call fcn.0100f0dc
leave
ret

Function at 0x100f0dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1017048]
jne 0x100f0ed
test ecx, 0xffff0000
jne 0x100f0ed
ret
jmp fcn.0100f0f7
Function at 0x100fb14
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1017060]
je 0x100fb36
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x100fb24
cmp esi, 0x13
je 0x100fc72
mov eax, dword [0x1018d4c]
cmp eax, 1
push ebx
je 0x100fc41
test eax, eax
jne 0x100fb5f
cmp dword [0x1017050], 1
je 0x100fc41
cmp ecx, 0xfc
je 0x100fc71
push edi
push 6
pop ecx
mov esi, 0x1007718
mov edi, 0x1018d98
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1018db2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x1018eb6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100fbad
push 5
pop ecx
mov esi, 0x1007700
mov edi, 0x1018db2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100fbb2
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100fbe5
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100fbc6
sub eax, edx
push 3
lea eax, [eax + 0x1018d77]
push 0x10076fc
push eax
call fcn.01012820
add esp, 0xc
mov edx, 0x1018d98
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100fbed
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1017064]
mov esi, 0x10076f8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100fc09
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100fc15
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10076d0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0101271d
add esp, 0xc
pop edi
jmp 0x100fc71
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100fc71
mov edx, dword [esi*8 + 0x1017064]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100fc59
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x101271d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1019440], ebx
push esi
push edi
jne 0x101279f
push 0x10079c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10127da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10079b4
push edi
call esi
test eax, eax
mov dword [0x1019440], eax
je 0x10127da
push 0x10079a4
push edi
call esi
push 0x1007990
push edi
mov dword [0x1019444], eax
call esi
cmp dword [0x1018d54], 2
mov dword [0x1019448], eax
jne 0x101279f
push 0x1007974
push edi
call esi
test eax, eax
mov dword [0x1019450], eax
je 0x101279f
push 0x100795c
push edi
call esi
mov dword [0x101944c], eax
mov eax, dword [0x101944c]
test eax, eax
je 0x10127e4
call eax
test eax, eax
je 0x10127cb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1019450]
test eax, eax
je 0x10127cb
test byte [ebp - 8], 1
jne 0x10127e4
cmp dword [0x1018d60], 4
jb 0x10127de
or byte [ebp + 0x12], 0x20
jmp 0x1012803
xor eax, eax
jmp 0x1012813
or byte [ebp + 0x12], 4
jmp 0x1012803
mov eax, dword [0x1019444]
test eax, eax
je 0x1012803
call eax
mov ebx, eax
test ebx, ebx
je 0x1012803
mov eax, dword [0x1019448]
test eax, eax
je 0x1012803
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1019440]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10130ae
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10130df
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10130e6
cmp ebx, dword [ebp + 8]
jae 0x10130e6
xor eax, eax
jmp 0x10132d6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10130f7
xor eax, eax
inc eax
jmp 0x10132d5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x101310d
cmp ecx, edx
jae 0x1013252
cmp dword [eax + 4], 0
je 0x1013116
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10130fe
cmp dword [ebp + 8], 0
je 0x1013138
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1013252
cmp eax, esi
jae 0x1013252
mov eax, dword [0x1019460]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x101315d
cmp dword [esi*4 + 0x1019468], edi
je 0x1013256
inc esi
cmp esi, eax
jl 0x101314b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10132d2
cmp dword [ebp - 8], 0x1000000
jne 0x10132d2
test byte [ebp - 0xc], 0xcc
je 0x10131db
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10132d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10132d2
cmp word [eax + 0x18], 0x10b
jne 0x10132d2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10132d2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10131db
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10131db
test byte [ecx + 0x27], 0x80
jne 0x1013252
push 1
push 0x10194a8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x10130ef
mov ecx, dword [0x1019460]
test ecx, ecx
mov edx, ecx
jle 0x101320f
lea eax, [ecx*4 + 0x1019464]
cmp dword [eax], edi
je 0x101320f
dec edx
sub eax, 4
test edx, edx
jg 0x1013203
test edx, edx
jne 0x1013240
push 0xf
pop ebx
cmp ecx, ebx
jg 0x101321c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1013234
lea eax, [edx*4 + 0x1019468]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1013222
cmp ecx, 0x10
jge 0x1013240
inc ecx
mov dword [0x1019460], ecx
push 0
push 0x10194a8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10130ef
xor eax, eax
jmp 0x10132d5
test esi, esi
jle 0x10130ef
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10194a8
call ebx
test eax, eax
jne 0x10130ef
cmp dword [esi*4 + 0x1019468], edi
je 0x10132ac
mov eax, dword [0x1019460]
lea esi, [eax - 1]
test esi, esi
jl 0x101329a
cmp dword [esi*4 + 0x1019468], edi
je 0x1013296
dec esi
jns 0x101328a
test esi, esi
jge 0x10132aa
cmp eax, 0x10
jge 0x10132a5
inc eax
mov dword [0x1019460], eax
lea esi, [eax - 1]
jmp 0x10132ac
je 0x10132c4
xor ecx, ecx
test esi, esi
jl 0x10132c4
lea eax, [ecx*4 + 0x1019468]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10132b2
push 0
push 0x10194a8
call ebx
jmp 0x10130ef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret