joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419180
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418e22

Function at 0x41918b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418fb1

Function at 0x419585
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409270
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419723
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486548]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a755
mov ecx, dword [esi*4 + 0x486548]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41971c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41971c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41971c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a755
add esp, 0x14
test edx, edx
jl 0x41971c
jg 0x419692
test eax, eax
jb 0x41971c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41971c
jl 0x4196ac
cmp dword [ebp - 0x1008], eax
ja 0x41971c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196ca
test ebx, ebx
je 0x419703
cmp ecx, edi
jae 0x419703
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4196f0
cmp byte [ecx + 1], 0xa
jne 0x4196f0
inc ecx
jmp 0x4196f0
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196ca
cmp edx, ebx
jne 0x4196ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419721
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret
Function at 0x419bf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486548]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c33
cmp byte [ebx], 0xa
jne 0x419c33
or byte [eax + edi + 0x28], 4
jmp 0x419c38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d36
mov al, byte [edx]
cmp al, 0x1a
je 0x419d18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419c96
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419c49
jmp 0x419d36
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d13
cmp dword [ebp - 0xc], 0
je 0x419d13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486548]
test byte [eax + edi + 0x28], 0x48
je 0x419ced
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419cd8
mov byte [esi], dl
jmp 0x419ce9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486548]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d36
cmp byte [ebp - 1], 0xa
jne 0x419cfc
cmp esi, ebx
jne 0x419cfc
mov byte [esi], 0xa
jmp 0x419d35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d36
mov byte [esi], 0xd
jmp 0x419d35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486548]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486548]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d82
cmp word [esi], dx
jne 0x419d82
or byte [edi + eax + 0x28], 4
jmp 0x419d87
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419eda
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419dff
cmp eax, edx
jae 0x419e0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419da1
jmp 0x419eda
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419eb6
cmp dword [ebp - 0x14], 0
je 0x419eb6
mov eax, dword [ebx*4 + 0x486548]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e57
mov word [esi], cx
jmp 0x419e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486548]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486548]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486548]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eda
pop ebx
cmp word [ebp - 4], bx
jne 0x419e9f
cmp esi, dword [ebp + 0xc]
jne 0x419e9f
mov word [esi], bx
jmp 0x419ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eda
push 0xd
jmp 0x419ed3
mov ecx, dword [ebx*4 + 0x486548]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eda
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005f53
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
cmp eax, edi
jne 0x1005f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005f83
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1005f99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005f99
mov edi, 0x800700b7
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x10062da
Capabilities:
Get session information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.010061af
mov esi, eax
cmp esi, edi
jge 0x100632e
mov eax, dword [section..data]
cmp eax, section..data
je 0x100641d
test byte [eax + 0x1c], 4
je 0x100641d
push esi
push 0x10015fc
push 0x10013b8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101cae4
jmp 0x100641d
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x100636f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10063ea
test byte [eax + 0x1c], 4
je 0x10063ea
push esi
push 0x10013b8
push 0x1c
jmp 0x10063df
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, dword [ebp - 0xc]
jne 0x10063a8
mov eax, dword [section..data]
cmp eax, section..data
je 0x100641d
test byte [eax + 0x1c], 4
je 0x100641d
push 0x10013b8
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005f2d
jmp 0x100641d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xffffffffffffffff
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1006405
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10063ea
test byte [eax + 0x1c], 4
je 0x10063ea
push esi
push 0x10013b8
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005d30
cmp esi, edi
jle 0x10063fc
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x100641d
mov esi, 0x80004005
jmp 0x100641d
cmp dword [ebp - 8], edi
je 0x100641d
push dword [ebp - 4]
push 0x10015e4
call fcn.01005ce5
test eax, eax
jne 0x100641d
xor esi, esi
cmp dword [ebp - 4], edi
je 0x100642a
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1006bce
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x1022218
call fcn.010083b0
push dword [0x1024004]
call fcn.01008371
pop ecx
mov dword [0x1024004], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006bbe
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x1006a65
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x102539c], edi
mov dword [0x10253a4], eax
mov dword [0x10253a8], edx
mov dword [0x10253ac], esi
mov dword [0x10253a0], ecx
call fcn.010069a5
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.010082a6
pop ecx
test eax, eax
jne 0x1006ab6
push 0x1c
call fcn.01006977
pop ecx
call fcn.010080c5
test eax, eax
jne 0x1006ac7
push 0x10
call fcn.01006977
pop ecx
mov dword [ebp - 4], ebx
call fcn.01007a4c
test eax, eax
jge 0x1006adb
push 0x1b
call fcn.01006df2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1027618], eax
call fcn.01007910
mov dword [0x102538c], eax
call fcn.0100781c
test eax, eax
jge 0x1006b01
push 8
call fcn.01006df2
pop ecx
call fcn.010074ce
test eax, eax
jge 0x1006b12
push 9
call fcn.01006df2
pop ecx
push ebx
call fcn.01006f32
pop ecx
test eax, eax
je 0x1006b24
push eax
call fcn.01006df2
pop ecx
call fcn.0100746a
test byte [ebp - 0xd4], bl
je 0x1006b3a
movzx ecx, word [ebp - 0xd0]
jmp 0x1006b3d
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x1006b60
push eax
call fcn.01007092
call fcn.010070c8
jmp 0x1006ba1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x1006bc3
mov eax, 0xff
call fcn.010083f8
ret
call fcn.010085a1
jmp 0x10069f1
Function at 0x1007137
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x1024018]
je 0x100715d
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x100714b
cmp esi, 0x17
jae 0x10072b7
push 3
call fcn.0100a2c5
pop ecx
cmp eax, 1
je 0x1007281
push 3
call fcn.0100a2c5
pop ecx
test eax, eax
jne 0x1007190
cmp dword [0x1024004], 1
je 0x1007281
cmp edi, 0xfc
je 0x10072b7
push 0x1001e94
mov edi, 0x314
push edi
mov esi, 0x10253e0
push esi
call fcn.0100a258
add esp, 0xc
test eax, eax
je 0x10071c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
mov byte [0x10254fd], bl
push 0x104
mov ebx, 0x10253f9
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007209
push 0x1001e7c
push 0x2fb
push ebx
call fcn.0100a258
add esp, 0xc
test eax, eax
je 0x1007209
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.010094f4
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100a1df
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1007227
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
push 0x1001e78
push edi
push esi
call fcn.0100a1df
add esp, 0xc
test eax, eax
je 0x1007247
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x102401c]
push edi
push esi
call fcn.0100a1df
add esp, 0xc
test eax, eax
je 0x100726c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
push 0x12010
push 0x1001e50
push esi
call fcn.0100a038
add esp, 0xc
jmp 0x10072b7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x10072b7
cmp edi, 0xffffffff
je 0x10072b7
mov edx, dword [esi*8 + 0x102401c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10072a0
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10080c5
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001ec0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1008117
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001f2c
push edi
call esi
push 0x1001f20
push edi
mov dword [0x1025804], eax
call esi
push 0x1001f14
push edi
mov dword [0x1025808], eax
call esi
push 0x1001f0c
push edi
mov dword [0x102580c], eax
call esi
mov dword [0x1025810], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x1025804], ebx
je 0x100813d
cmp dword [0x1025808], ebx
je 0x100813d
cmp dword [0x102580c], ebx
je 0x100813d
cmp dword [0x1025810], ebx
jne 0x1008161
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1025808], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1025804], 0x1007d89
mov dword [0x102580c], esi
mov dword [0x1025810], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x102417c], eax
cmp eax, 0xffffffff
je 0x10081d4
push dword [0x1025808]
push eax
call esi
test eax, eax
je 0x10081d4
call fcn.010070f0
push dword [0x1025804]
call fcn.01007c8b
push dword [0x1025808]
mov dword [0x1025804], eax
call fcn.01007c8b
push dword [0x102580c]
mov dword [0x1025808], eax
call fcn.01007c8b
push dword [0x1025810]
mov dword [0x102580c], eax
call fcn.01007c8b
add esp, 0x10
mov dword [0x1025810], eax
call fcn.01009947
test eax, eax
jne 0x10081da
call fcn.01007dc6
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1007f75
push dword [0x1025804]
call fcn.01007d11
pop ecx
call eax
mov dword [0x1024180], eax
cmp eax, 0xffffffff
je 0x10081cf
push 0x214
push 1
call fcn.0100b43d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x10081cf
push esi
push dword [0x1024180]
push dword [0x102580c]
call fcn.01007d11
pop ecx
call eax
test eax, eax
jne 0x100822d
push esi
call fcn.0100aa6e
pop ecx
jmp 0x10081cf
push ebx
push esi
call fcn.01007e08
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x10081d6
Function at 0x100a038
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01007d03
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1025ca8], ebx
jne 0x100a111
push ebx
push ebx
push 0x1002054
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x100a07c
xor eax, eax
jmp 0x100a1d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002048
push edi
call esi
cmp eax, ebx
je 0x100a075
push eax
call fcn.01007c8b
mov dword [esp], 0x1002038
push edi
mov dword [0x1025ca8], eax
call esi
push eax
call fcn.01007c8b
mov dword [esp], 0x1002024
push edi
mov dword [0x1025cac], eax
call esi
push eax
call fcn.01007c8b
mov dword [0x1025cb0], eax
lea eax, [ebp - 8]
push eax
call fcn.01006eab
pop ecx
pop ecx
test eax, eax
je 0x100a0df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100a111
push 0x1002008
push edi
call esi
push eax
call fcn.01007c8b
pop ecx
mov dword [0x1025cb8], eax
cmp eax, ebx
je 0x100a111
push 0x1001ff0
push edi
call esi
push eax
call fcn.01007c8b
pop ecx
mov dword [0x1025cb4], eax
mov eax, dword [0x1025cb4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100a18a
cmp dword [0x1025cb8], esi
je 0x100a18a
push eax
call fcn.01007d11
pop ecx
call eax
cmp eax, ebx
je 0x100a157
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1025cb8]
call fcn.01007d11
pop ecx
call eax
test eax, eax
je 0x100a157
test byte [ebp - 0x18], 1
jne 0x100a18a
lea eax, [ebp - 0xc]
push eax
call fcn.01006eec
pop ecx
test eax, eax
je 0x100a172
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010094f4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100a181
or dword [ebp + 0x10], 0x200000
jmp 0x100a1bb
or dword [ebp + 0x10], 0x40000
jmp 0x100a1bb
mov eax, dword [0x1025cac]
cmp eax, esi
je 0x100a1bb
push eax
call fcn.01007d11
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100a1bb
mov eax, dword [0x1025cb0]
cmp eax, esi
je 0x100a1bb
push dword [ebp - 4]
push eax
call fcn.01007d11
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1025ca8]
call fcn.01007d11
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f332
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1024008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01006eab
pop ecx
test eax, eax
je 0x100f367
push esi
push esi
push esi
push esi
push esi
call fcn.010094f4
add esp, 0x14
push 4
pop eax
call fcn.0100fa10
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f483
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x100f3fc
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001fd0
call esi
test eax, eax
jne 0x100f3d3
push 0x1001fb4
call esi
test eax, eax
je 0x100f3fc
push 0x1002c98
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100f3fc
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x100f3fc
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x100f3fc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.01007609
add esp, 0xc
test eax, eax
jl 0x100f483
not esi
and dword [ebp - 8], esi
je 0x100f42e
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.01007609
add esp, 0xc
test eax, eax
jl 0x100f483
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x100f439
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x100f44d
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x100f483
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100f483
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100f483
xor eax, eax
inc eax
jmp 0x100f485
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006cd8
leave
ret
Function at 0x1012746
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x101276a
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0101dde7
jmp 0x1012787
lea esi, [edi + 0x5c]
mov ecx, esi
call fcn.01010827
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x7c]
call fcn.01012346
mov ecx, esi
call fcn.010108ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x74], 1
call ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov ecx, edi
call fcn.01010f35
mov dword [ebp + 8], eax
test eax, eax
jl 0x10127f1
mov esi, dword [ebp - 8]
test esi, esi
je 0x1012860
push esi
mov ecx, edi
call fcn.01012693
lea ecx, [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
jl 0x101282c
mov eax, dword [esi]
push esi
call dword [eax + 8]
call ebx
mov dword [ebp - 0xc], eax
sub eax, dword [ebp - 0x10]
cmp eax, 0x14
jb 0x101279c
jmp 0x1012888
mov eax, dword [section..data]
cmp eax, section..data
je 0x101281d
test byte [eax + 0x1c], 4
je 0x101281d
push dword [ebp + 8]
push 0x10032f8
push 0x1002e30
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101cae4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1012888
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1012888
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012858
test byte [eax + 0x1c], 4
je 0x1012858
push dword [ebp + 8]
push 0x10032c8
push 0x1002e30
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101cae4
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x1012888
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012884
test byte [eax + 0x1c], 1
je 0x1012884
push 0x1002e30
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005f2d
and dword [ebp + 8], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
and dword [edi + 0x74], 0
cmp eax, 0x14
jb 0x101289e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10128ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
leave
ret 4