joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013cb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x1024bbac], edi
je 0x100013de
mov eax, 0x10dd
jmp 0x10001439
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1024bbac
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100013d7
push esi
mov esi, dword [0x1024bba0]
mov dword [0x1024bba8], edi
mov dword [0x1024bbbc], edi
mov dword [0x1024bbb8], edi
mov dword [0x1024bbb0], edi
mov dword [0x1024bbb4], edi
jmp 0x10001432
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1000141c
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x1000143c
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1024bbac], eax
je 0x10001452
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1024bbbc]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000149d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000148e
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000148e
call fcn.10001347
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1001ee6b
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001461
mov dword [0x1024bbbc], ebx
call fcn.10001142
mov esi, dword [0x1024bbb8]
cmp esi, ebx
je 0x100014ca
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1001ee6b
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x100014b2
pop edi
pop esi
mov dword [0x1024bbb8], ebx
mov dword [0x1024bbac], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10001721
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1024bbb0]
test eax, eax
jne 0x10001791
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000173d
xor eax, eax
jmp 0x10001790
push esi
push 8
call fcn.1001e31f
mov esi, eax
pop ecx
test esi, esi
jne 0x10001751
push 8
pop edi
jmp 0x1000176c
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001ee6b
pop ecx
and dword [0x1024bbb4], 0
mov dword [0x1024bbb0], edi
mov eax, edi
jmp 0x1000178f
mov eax, dword [0x1024bbb8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x1024bbb8], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x100019e5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1024bbac], eax
je 0x10001a01
mov eax, 0x10dd
jmp 0x10001ae4
mov eax, dword [0x1024bbb0]
test eax, eax
jne 0x10001ae4
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10001a1e
push 6
pop eax
jmp 0x10001ae3
cmp dword [edi], 0
jne 0x10001a36
push 6
pop eax
mov dword [0x1024bbb0], eax
mov dword [0x1024bbb4], edi
jmp 0x10001ae3
push ebx
push esi
push 0x18
call fcn.1001e31f
mov esi, eax
pop ecx
test esi, esi
jne 0x10001a4b
push 8
pop edi
jmp 0x10001ac6
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1000109f
mov ebx, dword [edi + 0x18]
pop ecx
pop ecx
movzx ecx, byte [edi + 0x17]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x10001abb
cmp ecx, 0x17
ja 0x10001abb
cmp dword [edi + 0x1c], eax
jne 0x10001abb
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10001ac6
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1024bbbc]
mov dword [esi], eax
mov dword [0x1024bbbc], esi
xor eax, eax
jmp 0x10001ae1
push 9
pop edi
cmp dword [0x1024bba8], edx
jne 0x10001acc
mov dword [0x1024bbb0], edi
test esi, esi
je 0x10001ad7
push esi
call fcn.1001ee6b
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x1024bbb4], eax
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x10005ad0
Capabilities:
Allocate or change rwx memory
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10005bc5
cmp dword [ebp - 4], 1
je 0x10005af1
jmp 0x10005c46
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0x2b3ffe
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 1
jne 0x10005bc0
mov ecx, 0x10076aec
call fcn.10016800
call fcn.100193f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10004f50
push 7
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024b50c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10019db0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024b510], eax
push 0
push 0
push 0x1001a120
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024b514], eax
push str.._Glow.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1024b51c], eax
push 0x10042480
call fcn.1001a7d0
add esp, 4
test eax, eax
jle 0x10005bc0
call fcn.100013cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001721
push 0x1001a920
push 0x1024b534
call fcn.10001af0
push 0x1001a910
push 0x1024b538
call fcn.10001af0
call fcn.10001ae8
jmp 0x10005c46
mov edx, dword [0x1024b50c]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x1024b510]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x1024b514]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp dword [0x1024b51c], 0
je 0x10005c01
mov edx, dword [0x1024b51c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.WindowMode
call fcn.1001a7d0
add esp, 4
test eax, eax
jle 0x10005c46
call fcn.100013cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001721
push 0x1001a920
push 0x1024b534
call fcn.100019e5
push 0x1001a910
push 0x1024b538
call fcn.100019e5
call fcn.10001ae8
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ed50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10058294]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x1000ed77
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000ed7e
mov al, 1
jmp 0x1000ee52
call fcn.10011400
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10011400
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10011460
add esp, 8
movzx eax, al
test eax, eax
je 0x1000edba
xor al, al
jmp 0x1000ee52
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10013370
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1000edf6
cmp dword [ebp - 0x30], 1
je 0x1000edfd
cmp dword [ebp - 0x30], 3
je 0x1000ee4c
jmp 0x1000ee50
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x1000ee2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100256ab
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x1000ee2c
xor al, al
jmp 0x1000ee52
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000ee40
mov dword [ebp - 0x38], 1
jmp 0x1000ee47
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x1000ee52
mov al, 1
jmp 0x1000ee52
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e30e
mov esp, ebp
pop ebp
ret
Function at 0x10012570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10058294]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10011400
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.10011460
add esp, 8
movzx edx, al
test edx, edx
je 0x100125b5
lea eax, [ebp + 8]
push eax
call fcn.10012420
add esp, 4
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
call fcn.10012900
test eax, eax
je 0x100125f7
mov ecx, dword [ebp - 0x2c]
call fcn.10012900
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10011440
cmp esi, eax
jae 0x100125f7
lea ecx, [ebp + 8]
push ecx
call fcn.10012fe0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.10010240
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10012736
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x1001260a
call fcn.10011400
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
call fcn.10010290
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x10012659
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.10012fe0
add esp, 4
movzx ecx, al
push ecx
call fcn.10006b90
add esp, 8
movzx edx, al
test edx, edx
je 0x10012649
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x10012651
call fcn.10011400
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10012736
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.10012fe0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.10012530
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10012731
cmp dword [ebp - 0x34], 1
jle 0x100126b4
cmp dword [ebp - 0x34], 3
je 0x10012701
jmp 0x10012731
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x100126e6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100256ab
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x100126e6
call fcn.10011400
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x100126fa
mov eax, dword [ebp + 8]
jmp 0x10012736
call fcn.10011400
jmp 0x10012736
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.10006b90
add esp, 8
movzx eax, al
test eax, eax
je 0x10012724
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x1001272c
call fcn.10011400
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10012736
call fcn.10011400
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e30e
mov esp, ebp
pop ebp
ret 4
Function at 0x10013480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x100135a6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x100134b8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100135c0
jmp 0x100135ba
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.1000f7b0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x1001354c
jg 0x100134e0
cmp dword [ebp + 0xc], 0
jbe 0x1001354c
cmp dword [ebp - 8], 0
jl 0x1001354c
jg 0x100134ee
cmp dword [ebp - 0xc], 0
jbe 0x1001354c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x1001350c
jl 0x10013500
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x1001350c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.10011fa0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.10010f90
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10011be0
cmp dword [ebp + 0x10], 0
jl 0x10013596
jg 0x1001355a
cmp dword [ebp + 0xc], 0
jbe 0x10013596
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10013596
mov ecx, dword [ebp - 4]
call fcn.10010290
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1002503e
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x100135ba
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.100135c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100136e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x100137fe
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x10013718
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10013820
jmp 0x10013812
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.10010210
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x100137ac
jg 0x10013740
cmp dword [ebp + 0xc], 0
jbe 0x100137ac
cmp dword [ebp - 8], 0
jl 0x100137ac
jg 0x1001374e
cmp dword [ebp - 0xc], 0
jbe 0x100137ac
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x1001376c
jl 0x10013760
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x1001376c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10012900
push eax
call fcn.10010f90
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100128c0
cmp dword [ebp + 0x10], 0
jl 0x100137ee
jg 0x100137ba
cmp dword [ebp + 0xc], 0
jbe 0x100137ee
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x100137ee
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.100256ab
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x10013812
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10013820
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10016890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0x10016850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x100168c1
xor al, al
jmp 0x100168d0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10019080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x10042fb8
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x1024b508], eax
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ecx + 0x1024b530]
test edx, edx
jne 0x100190c5
mov eax, dword [0x1024b508]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
mov ecx, dword [0x1024b508]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10019106
mov edx, dword [0x1024b508]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x1024b508]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [0x1024b508]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
mov edx, dword [0x1024b508]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x1024b508]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
ret
Function at 0x1001a7d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0x1004303c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001a829
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001a81f
mov eax, dword [ebp - 4]
jmp 0x1001a82b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001a880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001a8c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1001a909
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10020960
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001a907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1001a909
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10032888
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100326fe
Function at 0x4036f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4042c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4042e3
mov eax, 0
jmp 0x404327
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x404306
mov eax, 0
jmp 0x404327
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x404322
mov eax, 0
jmp 0x404327
mov eax, 1
leave
ret

Function at 0x404329
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x404388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x404380
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x404380
mov eax, dword [ebp - 4]
jmp 0x40439c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40435d
mov eax, 0
leave
ret
Function at 0x4014b8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4014ca
mov eax, dword [0x4cf08b]
shl eax, 2
mov dword [0x4cf08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004c2718
pop edx
call fcn.004c267c
call fcn.004c2758
push 0
call fcn.004c3bc4
pop ecx
push 0x4cf034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4cf093], eax
push 0
jmp fcn.004c90c4

Function at 0x4019a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, 0x4cf49c
call fcn.004c2f24
push 2
push 1
call fcn.0040194c
add esp, 8
push ebx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov edi, eax
add edi, ebx
test esi, esi
je 0x4019e6
push esi
call sub.KERNEL32.DLL_lstrlenA
jmp 0x4019e8
xor eax, eax
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x4019fd
mov edx, dword [ebp - 0x2c]
push edx
push esi
push edi
call fcn.004c2b38
add esp, 0xc
push 4
mov ecx, dword [ebp - 0x2c]
add ecx, edi
push ecx
call fcn.00401970
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x2c]
add edx, edi
add edx, 4
push edx
call sub.KERNEL32.DLL_lstrcpyA
mov word [ebp - 0x18], 8
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004cd770
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004afb74
test al, al
lea eax, [ebp - 4]
setne dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0xc]
call fcn.004cd8d8
pop ecx
test ecx, ecx
jne 0x4019eb
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ad98
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 4], 5
ja 0x40adc4
cmp dword [esp + 4], 5
jne 0x40adc0
cmp dword [esp + 8], 1
jae 0x40adc4
xor eax, eax
jmp 0x40adc6
mov al, 1
mov byte [0x4db59c], al
add esp, 0x94
ret