joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404919
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404960
cmp ebx, 0x20
je 0x404960
cmp ebx, 0xffffffe0
je 0x404960
jne 0x404969
add eax, 1
cmp esi, eax
je 0x404976
jne 0x404945
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x40497a
jne 0x404941
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x40498e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404a4f
test ecx, ecx
je 0x404a4f
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404a4f
test ebx, ebx
je 0x404a4f
mov ebx, eax
add ebx, edx
je 0x404a4f
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404a4f
cmp dword [edx + eax + 0x14], 0
je 0x404a4f
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404a4f
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404a3f
test dl, dl
je 0x404a3b
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404a3f
add edi, 2
add esi, 2
test dl, dl
jne 0x404a1f
xor eax, eax
jmp 0x404a44
sbb eax, eax
or eax, 1
test eax, eax
je 0x404a5b
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404a0c
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x405951
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40597f
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x405976
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40596e
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4059a0
mov esp, ebp
pop ebp
ret

Function at 0x4059a4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405a10
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405a3d
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405a2c
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405a1d
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405a63
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405a04
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405a8f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4157b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4157ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4157c3
pop esi
ret

Function at 0x415920
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4159b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4159a4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x41599c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x415965
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42465f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4246a1
call fcn.004279ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4246a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x424698
xor eax, eax
jmp 0x4246a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004246af
pop edi
pop esi
pop ebx
ret 4
Function at 0x42563a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x429244
call fcn.00419460
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004279ae
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x425679
call fcn.004279ae
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425687
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x425695
or eax, 0xffffffff
jmp 0x42577d
mov ecx, esi
call fcn.004255b0
mov dword [ebp - 0x14], eax
call fcn.00422ca6
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4256cc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4256cc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00422c5a
push dword [ebp - 0x14]
call fcn.0042278c
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00425348
cmp eax, edi
je 0x42573f
test byte [esi + 0x24], 0x10
je 0x42570d
push 4
mov ecx, esi
pop ebx
call fcn.0042218c
test ah, 1
je 0x425705
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004247b1
cmp dword [esi + 0x1c], edi
je 0x42573f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004221c0
jmp 0x42573f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425753
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42576c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42576c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004255ea
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x427520
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42754e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42756c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427486
jmp 0x42756c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42756c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00427486
test edi, edi
mov eax, edi
jne 0x427556
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x423c0b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423c4a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423c4a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423c4a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423c4a
cmp dword [ecx + 0x74], 0xe
jbe 0x423c4a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42b3ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42b448
push ebx
push esi
call fcn.0042b374
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042b308
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42b3f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b447
push edi
push eax
call fcn.00429e40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42b415
call fcn.00429e8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b446
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042b308
add esp, 0x20
test eax, eax
jne 0x42b434
push edi
call fcn.00429e8e
jmp 0x42b43c
push ebx
call fcn.00429e8e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42c657
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4348a0
push 0x434898
push str.FlsAlloc
push 0x1f
call fcn.0042c516
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c68b
push dword [ebp + 8]
mov ecx, esi
call dword [0x432144]
call esi
jmp 0x42c691
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c6d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4348b0
push 0x4348a8
push str.FlsGetValue
push 0x21
call fcn.0042c516
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c70c
push dword [ebp + 8]
mov ecx, esi
call dword [0x432144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c714
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4348b8
push 0x4348b0
push str.FlsSetValue
push 0x22
call fcn.0042c516
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c74e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x432144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x431a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431a4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431a4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4100b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040276a
add esp, 8
test eax, eax
jne 0x4014e2
call fcn.004025a3
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004023f1
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x108]
mov byte [ebp - 0x109], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401510
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x228]
call fcn.004013a0
cmp dword [ebp - 0x214], 0x10
mov eax, dword [ebp - 0x228]
jae 0x401541
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [ebp - 0x20c]
cmp eax, 0xffffffff
push edx
lea eax, [ebp - 0x108]
jne 0x40157a
push str._start______sdeployFMBMain.exe_
push eax
call fcn.004024dd
lea eax, [ebp - 0x108]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401571
jmp 0x401598
push str._start______sFMB4deployFMBMain.exe_
push eax
call fcn.004024dd
lea eax, [ebp - 0x108]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401591
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x228]
call fcn.004013a0
cmp dword [ebp - 0x214], 0x10
mov eax, dword [ebp - 0x228]
jae 0x4015c2
lea eax, [ebp - 0x228]
push eax
call fcn.00402400
add esp, 4
cmp dword [ebp - 0x214], 0x10
jb 0x4015e3
mov edx, dword [ebp - 0x228]
push edx
call fcn.0040185e
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004023f1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4023f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4100b0]
jne 0x4023fb
repz ret
jmp fcn.004040cc

Function at 0x404833
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40485a
call fcn.004025b6
mov dword [eax], esi
call fcn.004025a3
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040435c
mov eax, esi
jmp 0x4048af
test dword [ebp + 0xc], 0xfffffff9
jne 0x404840
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004025c9
pop ecx
call fcn.004025a3
mov eax, dword [eax]
jmp 0x4048af
test al, 0x10
jne 0x4048ad
test al, 1
je 0x4048ad
test byte [ebp + 0xc], 2
je 0x4048ad
call fcn.004025b6
mov dword [eax], 5
call fcn.004025a3
mov dword [eax], 0xd
jmp 0x40487e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4096cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4100b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403b74
and dword [ebp - 0x14], 0
cmp dword [0x411b68], 0
mov dword [ebp - 0x18], eax
jne 0x409782
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40982a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40982a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411b68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411b6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411b70], eax
call edi
push eax
call esi
mov dword [0x411b78], eax
test eax, eax
je 0x409782
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411b74], eax
mov eax, dword [0x411b74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4097db
cmp dword [0x411b78], ecx
je 0x4097db
push eax
call esi
push dword [0x411b78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4097db
test ebx, ebx
je 0x4097db
call edi
test eax, eax
je 0x4097d2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4097d2
test byte [ebp - 8], 1
jne 0x4097db
or dword [ebp + 0x10], 0x200000
jmp 0x40980e
mov eax, dword [0x411b6c]
cmp eax, dword [ebp - 0x18]
je 0x40980e
push eax
call esi
test eax, eax
je 0x40980e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40980e
mov eax, dword [0x411b70]
cmp eax, dword [ebp - 0x18]
je 0x40980e
push eax
call esi
test eax, eax
je 0x40980e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411b68]
call esi
test eax, eax
je 0x40982a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40982c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023f1
leave
ret
Function at 0x55dc00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x57e844], 0xe1d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0
sete dl
mov esi, dword [ebp - 0x10]
cmp esi, 0
sete dh
and dl, dh
test dl, 1
mov dword [ebp - 0x18], eax
jne 0x55de35
jmp 0x55dc96
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
je 0x55de12
jmp 0x55dd0e
mov eax, dword [ebp - 0x30]
mov cx, word [eax]
shr cx, 1
mov word [ebp - 0x32], cx
mov eax, 0x1516
mov cx, word [ebp - 0x32]
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], eax
je 0x55dc4c
jmp 0x55dd6b
mov dword [0x57e848], 0x9d8
mov dword [0x57e844], 0x74a
mov ecx, dword fs:[0x18]
mov dword [0x57e848], 0x1704
mov dword [0x57e844], 0x1bee
mov eax, dword [ecx + 0x30]
mov dword [0x57e848], 0x13ab
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x57e844], 0xb65
cmp eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], eax
je 0x55de24
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x3d], cl
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
jmp 0x55dd0e
mov eax, dword [ebp - 0x28]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x3d]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], edi
jne 0x55dd47
jmp 0x55dc6a
mov eax, dword [ebp - 0x4c]
mov dword [0x57e844], 0x2594
mov dword [0x57e848], 0x21f0
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x55de35
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x55dd72
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x54], eax
mov word [ebp - 0x56], dx
mov word [ebp - 0x58], di
jb 0x55dda6
mov ax, word [ebp - 0x56]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
cmp word [ecx + edx*2], ax
sete bl
add edx, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x38]
cmp edx, esi
setb bh
and al, bh
test al, 1
mov dword [ebp - 0x50], edx
mov byte [ebp - 0x59], bl
jne 0x55dd72
mov al, byte [ebp - 0x59]
mov ecx, 0x1c56
test al, 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x60], edx
jne 0x55ddf6
jmp 0x55dc4c
mov eax, dword [ebp - 0x60]
mov dword [0x57e848], 0x1e9d
mov dword [0x57e844], 0x1cd
mov dword [ebp - 0x18], eax
jmp 0x55de35
mov eax, dword [ebp - 0x2c]
mov dword [0x57e844], eax
mov dword [0x57e848], 0x1e9d
mov dword [0x57e844], 0x1d37
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x55de35
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x55de40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [0x57e844], 0x1b1e
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x57e848], 0x26bb
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x55dea2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x64
je 0x55df2f
jmp 0x55df9b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x55dee3
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], cl
mov al, byte [ebp - 0x25]
test al, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
jne 0x55dea2
jmp 0x55dee3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x55df9b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x6f
jne 0x55df9b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x55de80
jmp 0x55df9b
mov dword [0x57e848], 0xcb4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x2d], dl
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x55df55
jmp 0x55df9b
mov dword [0x57e848], 0x1ac7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x55df9b
mov dword [0x57e844], 0xfffffca7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x55df9b
mov eax, 1
mov dword [0x57e844], 0xffffe8ea
mov dword [ebp - 0x34], eax
jmp 0x55dfaa
xor eax, eax
mov dword [0x57e848], 0x888
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop ebp
ret