joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4fb8f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x51854c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x51854c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x517378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1002030
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov ecx, pe_nt_image_headers32
mov edi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
test eax, eax
mov edx, eax
jbe 0x1002059
movzx edi, byte [ecx + ebx]
sub edx, 1
xor edi, 0xc1
add ecx, 1
cmp ecx, eax
mov dword [esi + edi*4], edx
jb 0x1002042
pop edi
ret
Function at 0x10056b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
mov eax, dword [0x102d280]
xor eax, esp
push esi
mov esi, ecx
mov dword [esp + 0x114], eax
mov eax, esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10056d0
sub eax, ecx
push ebx
mov ebx, eax
push ebp
lea ebp, [ebx + 1]
push edi
mov ecx, ebp
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x14], 0
rep movsb byte es:[edi], byte [esi]
call fcn.01001710
mov edx, dword [esp + 0x128]
test edx, edx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x10], 0
je 0x1005787
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.01001f10
mov esi, eax
add esp, 8
test esi, esi
je 0x1005787
push 0x10258ec
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push 0x102bb4c
push edx
call edi
mov ecx, dword [esp + 0x13c]
mov edx, dword [0x102d4d8]
push 0x1025900
push 0
lea eax, [esp + 0x70]
push eax
neg ecx
sbb ecx, ecx
push esi
push edx
and ecx, 0x10055b0
xor edx, edx
call fcn.010028c0
add esp, 0x24
mov esi, 1
jmp 0x100578b
mov esi, dword [esp + 0x14]
push 0x10258f8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push 0x102bb4c
push ecx
call edi
add esp, 0x10
xor eax, eax
xor byte [esp + eax + 0x18], 0xc1
add eax, 1
cmp eax, ebx
jbe 0x10057a6
mov edx, dword [esp + 0x10]
push 0
push 0x10000
push 0
push 0
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
push ebp
push ecx
mov edx, 0x102591c
xor ecx, ecx
call fcn.010034a0
add esp, 0x20
test eax, eax
pop edi
pop ebp
pop ebx
je 0x1005800
test esi, esi
jne 0x1005800
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0100ffd5
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0100ffd5
add esp, 0x114
ret
Function at 0x1006c10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, eax
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
je 0x1006daf
cmp dword [esp + 0x20], 0
je 0x1006daf
test ebx, ebx
je 0x1006daf
cmp dword [esp + 0x2c], 0
je 0x1006d13
test esi, esi
je 0x1006c95
lea edx, [eax + 1]
jmp 0x1006c60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006c60
sub eax, edx
lea edi, [eax + 1]
push edi
call fcn.0100d7bd
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x1006c91
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006cd3
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006ca0
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.0100d7bd
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x1006cd3
mov ecx, esi
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006d13
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006ce0
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.0100d7bd
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1006d13
mov ecx, esi
mov esi, dword [esp + 0x28]
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
neg eax
push ebx
push edx
mov edx, dword [esp + 0x20]
sbb eax, eax
push ecx
and eax, 0xe
mov ecx, ebp
call fcn.01004410
lea edi, [ebx + ebx]
push edi
call fcn.0100d7bd
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1006daf
mov edx, dword [esp + 0x20]
push edx
mov eax, ebx
mov ecx, esi
call fcn.010016e0
shr ebx, 1
add esp, 4
sub ebx, 1
mov eax, ebx
js 0x1006d83
jmp 0x1006d70
movzx ecx, word [esi + eax*2]
xor ecx, 0xc1c10000
sub eax, 1
mov dword [esi + eax*4 + 4], ecx
jns 0x1006d70
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push edi
push esi
push eax
mov eax, 0x10001
mov ecx, ebp
call fcn.01004410
add esp, 0x10
test eax, eax
jne 0x1006daf
push esi
call fcn.0100d77e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1007a10
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
je 0x1007a53
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007a24
sub eax, edx
mov edi, eax
lea ebx, [edi + 8]
push ebx
call fcn.0100d7bd
add esp, 4
cmp dword [esp + 0x24], 0
mov esi, eax
je 0x1007a57
push ebx
call fcn.0100d7bd
add esp, 4
mov ebx, eax
jmp 0x1007a59
xor edi, edi
xor esi, esi
xor ebx, ebx
cmp dword [esp + 0x28], 0
je 0x1007a74
add edi, 8
push edi
call fcn.0100d7bd
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x1007a80
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
test esi, esi
je 0x1007abf
mov eax, dword [esp + 0x28]
push eax
push 0x102bba8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push 2
push 0
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp + ebp]
push edx
push eax
mov eax, dword [esp + 0x54]
call fcn.01004220
add esp, 0x38
test ebx, ebx
je 0x1007b4c
lea edi, [ebp + ebp]
push edi
call fcn.0100d7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x1007b3f
mov ecx, dword [esp + 0x1c]
push ecx
mov eax, edi
mov ecx, esi
call fcn.010016e0
add esp, 4
xor eax, eax
test ebp, ebp
jle 0x1007b05
mov dx, word [esi + eax*2]
mov ch, dl
add eax, 1
cmp eax, ebp
mov cl, dh
mov word [esi + eax*2 - 2], cx
jl 0x1007af1
mov edx, dword [esp + 0x28]
push edx
push 0x102bba8
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push 0x10003
push 0
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
push ecx
mov eax, esi
call fcn.01004220
add esp, 0x38
jmp 0x1007b48
push ebx
call fcn.0100d77e
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1007bea
lea ebx, [ebp*4]
push ebx
call fcn.0100d7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x1007be1
mov edx, dword [esp + 0x1c]
lea eax, [ebp + ebp]
push edx
mov ecx, esi
call fcn.010016e0
lea eax, [ebp - 1]
add esp, 4
test eax, eax
jl 0x1007ba3
jmp 0x1007b90
movzx ecx, word [esi + eax*2]
xor ecx, 0xc1c10000
sub eax, 1
mov dword [esi + eax*4 + 4], ecx
jns 0x1007b90
mov edx, dword [esp + 0x28]
push edx
push 0x102bbb4
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push 0x10003
push 0
push eax
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
push ecx
mov eax, esi
call fcn.01004220
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.0100d77e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100a6e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x102d280]
push esi
push edi
xor eax, ebp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
push 0
mov dword [esp + 0x10], eax
push 0x80
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push 3
push 0
push 3
stosw word es:[edi], ax
push 0x80000000
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a76f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push 0x1011f00
push 0x3e9
push 0x1241
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, ebp
call fcn.0100ffd5
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [0x102d608], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
push 0
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [0x102d604], eax
jne 0x100a7db
push 0x1011eec
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, ebp
call fcn.0100ffd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x102d608]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, eax
call fcn.01007e50
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [0x102d618], 0
je 0x100a824
push 0x3f4
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x100a824
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x102d604]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x94]
mov eax, dword [0x102d618]
pop edi
xor ecx, ebp
pop esi
call fcn.0100ffd5
mov esp, ebp
pop ebp
ret
Function at 0x100a9b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a9c0
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100aa44
push ebp
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x100aa3d
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push ebp
je 0x100aa37
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x100d7cb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x100d8a8
mov eax, 0x94
call fcn.0100f100
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100d86f
mov ecx, dword [esi + 0x10]
mov dword [0x102d2e8], ecx
mov eax, dword [esi + 4]
mov dword [0x102d2f4], eax
mov edx, dword [esi + 8]
mov dword [0x102d2f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x102d2ec], esi
je 0x100d830
or esi, 0x8000
mov dword [0x102d2ec], esi
shl eax, 8
add eax, edx
xor esi, esi
push esi
mov dword [0x102d2f0], eax
call fcn.0100d9d4
test eax, eax
pop ecx
je 0x100d86f
call fcn.0100f06d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x102dc18], eax
call fcn.0100ef4b
mov dword [0x102d2c4], eax
call fcn.0100eaa8
test eax, eax
jge 0x100d873
call fcn.0100da25
xor eax, eax
jmp 0x100d899
call fcn.0100eea9
test eax, eax
jl 0x100d8a1
call fcn.0100ec76
test eax, eax
jl 0x100d8a1
push esi
call fcn.0100e95d
test eax, eax
pop ecx
jne 0x100d8a1
inc dword [0x102d2c0]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
call fcn.0100ec53
jmp 0x100d86a
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x100d896
cmp dword [0x102d2c0], esi
jle 0x100d86f
dec dword [0x102d2c0]
cmp dword [0x102d324], esi
jne 0x100d8ca
call fcn.0100ea99
call fcn.0100ec53
call fcn.0100da25
jmp 0x100d896
Function at 0x100e9c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x102d328], esi
push edi
jne 0x100e9e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x102d324], esi
mov byte [0x102d320], al
jne 0x100ea4d
mov ecx, dword [0x102dbe8]
test ecx, ecx
je 0x100ea2e
mov eax, dword [0x102dbe4]
sub eax, 4
cmp eax, ecx
jmp 0x100ea27
mov eax, dword [eax]
test eax, eax
je 0x100ea19
call eax
mov eax, dword [0x102dbe4]
sub eax, 4
cmp eax, dword [0x102dbe8]
mov dword [0x102dbe4], eax
jae 0x100ea11
mov eax, 0x102d01c
mov esi, 0x102d020
cmp eax, esi
mov edi, eax
jae 0x100ea4d
mov eax, dword [edi]
test eax, eax
je 0x100ea46
call eax
add edi, 4
cmp edi, esi
jb 0x100ea3e
mov eax, 0x102d024
mov esi, 0x102d028
cmp eax, esi
mov edi, eax
jae 0x100ea6c
mov eax, dword [edi]
test eax, eax
je 0x100ea65
call eax
add edi, 4
cmp edi, esi
jb 0x100ea5d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x100ea86
push dword [ebp + 8]
mov dword [0x102d328], 1
call fcn.0100e92d
pop ebp
ret
Function at 0x100fb56
Capabilities:
Parse pe header

Disassembly:
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 0x100fb84
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x100fb8b
cmp ebx, dword [eax + 4]
jae 0x100fb8b
xor eax, eax
jmp 0x100fd7b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100fb9c
xor eax, eax
inc eax
jmp 0x100fd7a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100fbb2
cmp ecx, edx
jae 0x100fcf7
cmp dword [eax + 4], 0
je 0x100fbbb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100fba3
cmp dword [ebp + 8], 0
je 0x100fbdd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100fcf7
cmp eax, esi
jae 0x100fcf7
mov eax, dword [0x102d448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100fc02
cmp dword [esi*4 + 0x102d450], edi
je 0x100fcfb
inc esi
cmp esi, eax
jl 0x100fbf0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100fd77
cmp dword [ebp - 8], 0x1000000
jne 0x100fd77
test byte [ebp - 0xc], 0xcc
je 0x100fc80
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100fd77
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100fd77
cmp word [eax + 0x18], 0x10b
jne 0x100fd77
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100fd77
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100fc80
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100fc80
test byte [ecx + 0x27], 0x80
jne 0x100fcf7
push 1
push 0x102d490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100fb94
mov ecx, dword [0x102d448]
test ecx, ecx
mov edx, ecx
jle 0x100fcb4
lea eax, [ecx*4 + 0x102d44c]
cmp dword [eax], edi
je 0x100fcb4
dec edx
sub eax, 4
test edx, edx
jg 0x100fca8
test edx, edx
jne 0x100fce5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100fcc1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100fcd9
lea eax, [edx*4 + 0x102d450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100fcc7
cmp ecx, 0x10
jge 0x100fce5
inc ecx
mov dword [0x102d448], ecx
push 0
push 0x102d490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100fb94
xor eax, eax
jmp 0x100fd7a
test esi, esi
jle 0x100fb94
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x102d490
call ebx
test eax, eax
jne 0x100fb94
cmp dword [esi*4 + 0x102d450], edi
je 0x100fd51
mov eax, dword [0x102d448]
lea esi, [eax - 1]
test esi, esi
jl 0x100fd3f
cmp dword [esi*4 + 0x102d450], edi
je 0x100fd3b
dec esi
jns 0x100fd2f
test esi, esi
jge 0x100fd4f
cmp eax, 0x10
jge 0x100fd4a
inc eax
mov dword [0x102d448], eax
lea esi, [eax - 1]
jmp 0x100fd51
je 0x100fd69
xor ecx, ecx
test esi, esi
jl 0x100fd69
lea eax, [ecx*4 + 0x102d450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100fd57
push 0
push 0x102d490
call ebx
jmp 0x100fb94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100fd7f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x102d494], ebx
push esi
push edi
jne 0x100fdff
push 0x101160c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100fe3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011600
push edi
call esi
test eax, eax
mov dword [0x102d494], eax
je 0x100fe3a
push 0x10115f0
push edi
call esi
push 0x10115dc
push edi
mov dword [0x102d498], eax
call esi
cmp dword [0x102d2e8], 2
mov dword [0x102d49c], eax
jne 0x100fdff
push 0x10115c0
push edi
call esi
test eax, eax
mov dword [0x102d4a4], eax
je 0x100fdff
push 0x10115a8
push edi
call esi
mov dword [0x102d4a0], eax
mov eax, dword [0x102d4a0]
test eax, eax
je 0x100fe44
call eax
test eax, eax
je 0x100fe2b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x102d4a4]
test eax, eax
je 0x100fe2b
test byte [ebp - 8], 1
jne 0x100fe44
cmp dword [0x102d2f4], 4
jb 0x100fe3e
or byte [ebp + 0x12], 0x20
jmp 0x100fe63
xor eax, eax
jmp 0x100fe73
or byte [ebp + 0x12], 4
jmp 0x100fe63
mov eax, dword [0x102d498]
test eax, eax
je 0x100fe63
call eax
mov ebx, eax
test ebx, ebx
je 0x100fe63
mov eax, dword [0x102d49c]
test eax, eax
je 0x100fe63
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x102d494]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10109e1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100f100
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1010a7c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x102d2e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1010a7c
cmp eax, 1
je 0x1010a9d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1010a7c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1010a49
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1010a78
xor eax, eax
inc eax
jmp 0x1010abc
cmp edi, eax
jae 0x1010a80
xor eax, eax
jmp 0x1010abc
cmp eax, esi
jae 0x1010a87
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x102d2e8]
jmp 0x1010aa0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret