joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4195a0
push 0x406250
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x41b010]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x94
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.004061d0
add esp, 0xc
mov dword [ebp - 0xb0], 0x94
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0xac]
cmp eax, 5
ja 0x40124c
jne 0x4012aa
cmp dword [ebp - 0xa8], 1
jb 0x4012aa
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
push str.ReleaseActCtx
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call edi
mov ebx, eax
push str.DeactivateActCtx
push esi
call edi
test ebx, ebx
je 0x4012aa
test eax, eax
je 0x4012aa
mov dword [ebp - 4], 0
mov edx, dword [0x41c020]
push edx
push 0
call eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x4012a3
push eax
call ebx
jmp 0x4012a3
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004061bd
mov esp, ebp
pop ebp
ret

Function at 0x4013d0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x64
push esi
push 1
xor esi, esi
push 0x16
mov dword [esp + 0xc], esi
call fcn.00406a61
push 1
push 2
call fcn.00406a61
push 1
push 0xf
call fcn.00406a61
push 1
push 0x15
call fcn.00406a61
add esp, 0x20
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
mov ecx, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], cx
call fcn.004067ae
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
mov dword [esp + 0x64], eax
call fcn.004067ae
add eax, 0x20
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
mov dword [esp + 0x70], eax
call fcn.004067ae
add eax, 0x40
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
add esp, 0x18
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
push 1
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edx, dword [esp + 0x8c]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop esi
test eax, eax
je 0x4014d8
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [esp]
add esp, 0x64
ret
push str.Error_creating_child_process__n
call fcn.00401860
add esp, 4
or eax, 0xffffffff
add esp, 0x64
ret
Function at 0x401940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x14
mov eax, dword [0x41b010]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
lea eax, [esp + 0x10]
push str._MEI_d
push eax
call fcn.00407be6
add esp, 0xc
xor ebx, ebx
jmp 0x401980
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.0040797b
mov esi, eax
push esi
call fcn.0041354e
add esp, 0xc
test eax, eax
je 0x4019bd
push esi
call fcn.00406e44
inc ebx
add esp, 4
cmp ebx, 5
jl 0x401980
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004061bd
add esp, 0x14
ret
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019c3
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4019d0
mov dx, word [0x4142ec]
push esi
mov word [edi], dx
call fcn.00406e44
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004061bd
add esp, 0x14
ret

Function at 0x401af0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
push 0
add eax, 0xffffffe8
push eax
push ecx
call fcn.0040801b
add esp, 0xc
test eax, eax
je 0x401b13
or eax, 0xffffffff
pop esi
ret
mov edx, dword [esi]
push edi
push edx
push 1
lea edi, [esi + 0x10]
push 0x18
push edi
call fcn.00407f74
add esp, 0x10
cmp eax, 1
jae 0x401b32
pop edi
or eax, 0xffffffff
pop esi
ret
push 8
push str.MEI_f_v_n_v
push edi
call fcn.00407c6a
add esp, 0xc
neg eax
pop edi
sbb eax, eax
pop esi
ret

Function at 0x401b50
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push 0
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0040801b
mov ecx, dword [esi]
push ecx
push 2
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00407f74
mov ax, word [esp + 0x20]
add esp, 0x1c
cmp al, 0x4d
jne 0x401c23
cmp ah, 0x5a
jne 0x401c23
mov eax, dword [esi]
push 0
push 0x3c
push eax
call fcn.0040801b
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.00407f74
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
push 0
add eax, 0x18
push eax
push ecx
call fcn.0040801b
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x34]
push 2
push eax
call fcn.00407f74
mov ax, word [esp + 0x3c]
add esp, 0x38
cmp al, 0xb
jne 0x401c23
cmp ah, 1
jne 0x401bee
mov eax, 0x98
jmp 0x401bf8
cmp ah, 2
jne 0x401c23
mov eax, 0xa8
add eax, dword [esp + 8]
mov edx, dword [esi]
push 0
push eax
push edx
call fcn.0040801b
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.00407f74
mov eax, dword [esp + 0x24]
add esp, 0x1c
test eax, eax
jne 0x401c26
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x4061bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b010]
jne 0x4061c7
repz ret
jmp fcn.004093bb

Function at 0x40d3a0
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 0x40d3c7
call fcn.00409891
mov dword [eax], esi
call fcn.0040987e
push 0x16
pop esi
mov dword [eax], esi
call fcn.00409c96
mov eax, esi
jmp 0x40d41c
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d3ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d3f4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004098a4
pop ecx
call fcn.0040987e
mov eax, dword [eax]
jmp 0x40d41c
test al, 0x10
jne 0x40d41a
test al, 1
je 0x40d41a
test byte [ebp + 0xc], 2
je 0x40d41a
call fcn.00409891
mov dword [eax], 5
call fcn.0040987e
mov dword [eax], 0xd
jmp 0x40d3eb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4104da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b010]
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.0040a219
and dword [ebp - 0x14], 0
cmp dword [0x41cf34], 0
mov dword [ebp - 0x18], eax
jne 0x41058d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410635
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410635
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41cf34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41cf38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41cf3c], eax
call edi
push eax
call esi
mov dword [0x41cf44], eax
test eax, eax
je 0x41058d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41cf40], eax
mov eax, dword [0x41cf40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4105e6
cmp dword [0x41cf44], ecx
je 0x4105e6
push eax
call esi
push dword [0x41cf44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4105e6
test ebx, ebx
je 0x4105e6
call edi
test eax, eax
je 0x4105dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4105dd
test byte [ebp - 8], 1
jne 0x4105e6
or dword [ebp + 0x10], 0x200000
jmp 0x410619
mov eax, dword [0x41cf38]
cmp eax, dword [ebp - 0x18]
je 0x410619
push eax
call esi
test eax, eax
je 0x410619
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410619
mov eax, dword [0x41cf3c]
cmp eax, dword [ebp - 0x18]
je 0x410619
push eax
call esi
test eax, eax
je 0x410619
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41cf34]
call esi
test eax, eax
je 0x410635
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410637
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061bd
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x44
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.00406a60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00406a60
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
push 0x28
push 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40e630
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40ec58
call fcn.0040e998
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40fc60
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e458
cmp eax, esi
jne 0x40e44b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40e45b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e42f
xor esi, esi
inc esi
cmp dword [0x40fc64], esi
jne 0x40e46d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40e4a7
cmp dword [0x40fc64], ebx
jne 0x40e4a1
mov dword [0x40fc64], esi
push 0x4011ec
push 0x4011e0
call fcn.0040e58c
pop ecx
pop ecx
test eax, eax
je 0x40e4a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e57c
mov dword [0x40f08c], esi
cmp dword [0x40fc64], esi
jne 0x40e4ca
push 0x4011dc
push 0x4011d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40fc64], 2
test edi, edi
jne 0x40e4d7
xor eax, eax
mov ecx, 0x40fc60
xchg dword [ecx], eax
cmp dword [0x40fc68], 0
je 0x40e503
push 0x40fc68
call fcn.0040e7f0
pop ecx
test eax, eax
je 0x40e503
push ebx
push 2
push ebx
mov esi, dword [0x40fc68]
mov ecx, esi
call dword [0x410144]
call esi
push dword [0x40f098]
push dword [0x40f094]
push dword [0x40f090]
call fcn.0040923f
add esp, 0xc
mov dword [0x40f088], eax
cmp dword [0x40f0a0], 0
jne 0x40e561
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40f08c], 0
jne 0x40e575
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40f088]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0049f000
jmp 0x40e413

Function at 0x40e6d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40ec78
call fcn.0040e998
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e734
cmp eax, 0xffffffff
je 0x40e734
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40e72d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40e72d
cmp edx, 0x10000000
jae 0x40e72d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40e72a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e7a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e7de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e7d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e7e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e7c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407cb9
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x407d6d
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00407c49
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x407d46
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x407d94
test ebp, ebp
je 0x407d94
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x407d9c
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x407ddc
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x407e38
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x407e33
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x407e1e
test dl, dl
je 0x407e1a
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x407e1e
add ecx, 2
add eax, 2
test dl, dl
jne 0x407dfe
xor eax, eax
jmp 0x407e23
sbb eax, eax
or eax, 1
test eax, eax
je 0x407e42
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x407deb
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x407e59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00407cb9
test eax, eax
jne 0x407e71
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.00407d79
mov esi, eax
test esi, esi
jne 0x407ea7
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x407ec1
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x407fb9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.00407cb9
mov esi, eax
test esi, esi
jne 0x407fd7
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.00407d79
mov dword [esp + 0x18], eax
test eax, eax
je 0x407fcf
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.00407d79
mov dword [esp + 0x34], eax
test eax, eax
je 0x407fcf
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.00407d79
mov dword [esp + 0x28], eax
test eax, eax
je 0x407fcf
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.00407d79
mov dword [esp + 0x30], eax
test eax, eax
je 0x407fcf
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x40819e
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x40819e
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x408101
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x408182
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x408124
movzx esi, ax
jmp 0x408129
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x408148
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x408157
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x4081ab
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x408119
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x4080de
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x4081d4
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x4081d4
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x4081b9
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x4081e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.00407cb9
mov esi, eax
test esi, esi
je 0x4082a5
push ebp
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x65657246
mov dword [esp + 0x14], 0x7262694c
mov dword [esp + 0x18], 0x797261
call fcn.00407d79
mov ebp, eax
test ebp, ebp
je 0x4082a4
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x4d746547
mov dword [esp + 0x14], 0x6c75646f
mov dword [esp + 0x18], 0x6e614865
mov dword [esp + 0x1c], 0x41656c64
mov byte [esp + 0x20], 0
call fcn.00407d79
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4082a4
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi + 0x84], 0
je 0x4082a4
push ebx
mov ebx, dword [ecx + edi + 0x80]
add ebx, edi
xor esi, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4082a3
lea ebx, [ebx]
add eax, edi
push eax
call edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea esi, [esi + 1]
lea eax, [esi + esi*4]
mov eax, dword [ebx + eax*4 + 0xc]
test eax, eax
jne 0x408289
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret

Function at 0x40859d
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x408651
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040852d
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x40862a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret