joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4354bb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4354f0
cmp edi, dword [esi + 0xc]
jge 0x4354f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4354f0
cmp edi, dword [eax + 8]
jge 0x4354f0
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4354f2
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4355f6
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43562a
jmp fcn.00429c5b
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x43569b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x435794
cmp eax, dword [edi + 0xc]
jge 0x435794
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4356ec
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x43577d
cmp dword [ebp + 0xc], ebx
je 0x43577d
jmp 0x435716
push 0x10
call fcn.00435387
cmp eax, ebx
je 0x435702
mov ecx, eax
call fcn.004355ed
mov esi, eax
jmp 0x435704
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x43572d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x43573d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x43574f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00429c5b
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0041eca0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x43578f
cmp ecx, dword [esi + 8]
jge 0x43578f
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x435795
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x435853
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 0x435881
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43589f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004357bd
jmp 0x43589f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43589f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004357bd
test edi, edi
mov eax, edi
jne 0x435889
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44d4fc]
test ecx, ecx
je 0x435952
jmp 0x435852
ret 8

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401519
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004016c9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401617
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4015ba
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4015fd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4015d1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4015ec
test al, 0x40
je 0x4015e3
mov ecx, dword [edi + 0x20]
jmp 0x4015ea
test al, 0x80
je 0x4015fd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4015fd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401589
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4033a2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov eax, 0xa
call sub.Kernel32.dll_CopyFileA
cmp dword [ebp - 4], esp
je 0x4033e1
push 0x12
push 0x401965b
push 6
call fcn.004093cb
add esp, 0xc
jmp 0x4033e6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
mov eax, 0xb
call sub.Kernel32.dll_DeleteFileA
cmp dword [ebp - 4], esp
je 0x403423
push 0x12
push 0x4019672
push 6
call fcn.004093cb
add esp, 0xc
jmp 0x403428
mov esp, ebp
pop ebp
ret 4
Function at 0x4097db
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4111d8
call fcn.0040b0d0
mov edi, 0x94
mov eax, edi
call fcn.0040b230
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42d944], ecx
mov eax, dword [esi + 4]
mov dword [0x42d950], eax
mov edx, dword [esi + 8]
mov dword [0x42d954], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42d948], esi
cmp ecx, 2
je 0x40983b
or esi, 0x8000
mov dword [0x42d948], esi
shl eax, 8
add eax, edx
mov dword [0x42d94c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x409876
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409876
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40988e
cmp eax, 0x20b
je 0x40987b
mov dword [ebp - 0x1c], esi
jmp 0x4098a2
cmp dword [ecx + 0x84], 0xe
jbe 0x409876
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40989c
cmp dword [ecx + 0x74], 0xe
jbe 0x409876
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040b07e
pop ecx
test eax, eax
jne 0x4098b6
push 0x1c
call fcn.004097b7
pop ecx
call fcn.0040af75
test eax, eax
jne 0x4098c7
push 0x10
call fcn.004097b7
pop ecx
call fcn.0040ad0f
mov dword [ebp - 4], esi
call fcn.0040ab11
test eax, eax
jge 0x4098e0
push 0x1b
call fcn.00409792
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42f1b0], eax
call fcn.0040a9ef
mov dword [0x42d92c], eax
call fcn.0040a94d
test eax, eax
jge 0x409906
push 8
call fcn.00409792
pop ecx
call fcn.0040a71a
test eax, eax
jge 0x409917
push 9
call fcn.00409792
pop ecx
push 1
call fcn.0040a23c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40992d
push eax
call fcn.00409792
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040a6bd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40994e
movzx eax, word [ebp - 0x40]
jmp 0x409951
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00409490
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40996f
push edi
call fcn.0040a369
call fcn.0040a38b
jmp 0x4099a1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040b10b
ret
Function at 0x40a2a6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x411240
call fcn.0040b0d0
push 8
call fcn.0040b3c0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d984], esi
jne 0x40a2da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42d980], esi
mov al, byte [ebp + 0x10]
mov byte [0x42d97c], al
cmp dword [ebp + 0xc], edi
jne 0x40a324
cmp dword [0x42f1a8], edi
je 0x40a314
mov eax, dword [0x42f1a4]
sub eax, 4
mov dword [0x42f1a4], eax
cmp eax, dword [0x42f1a8]
jb 0x40a314
mov eax, dword [eax]
cmp eax, edi
je 0x40a2f5
call eax
jmp 0x40a2f5
push 0x413028
mov eax, 0x413020
call fcn.0040a224
pop ecx
push 0x413030
mov eax, 0x41302c
call fcn.0040a224
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40a355
cmp dword [ebp + 0x10], edi
jne 0x40a363
mov dword [0x42d984], esi
push dword [ebp + 8]
call fcn.0040a1e2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40a362
push 8
call fcn.0040b30b
pop ecx
ret
call fcn.0040b10b
ret

Function at 0x40a3a9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42a2b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x429a98]
je 0x40a3de
inc eax
cmp eax, 0x13
jb 0x40a3cf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x429a98]
jne 0x40a504
mov eax, dword [0x42d934]
cmp eax, 1
je 0x40a4dc
cmp eax, edx
jne 0x40a40e
cmp dword [0x429a78], 1
je 0x40a4dc
cmp ecx, 0xfc
je 0x40a504
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a444
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040d5f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call sub.msvcrt.dll_strlen
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a478
mov eax, edi
push eax
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x411638
push edi
call fcn.0040d6f0
add esp, 0x10
push edi
call sub.msvcrt.dll_strlen
push dword [esi + 0x429a9c]
mov ebx, eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d5f0
push edi
push ebx
call fcn.0040d600
push 0x411618
push ebx
call fcn.0040d600
push dword [esi + 0x429a9c]
push ebx
call fcn.0040d600
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040d4f6
add esp, 0x2c
jmp 0x40a504
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x429a9c]
push dword [esi]
call sub.msvcrt.dll_strlen
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040d845
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40c712
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42a2b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40c743
xor eax, eax
jmp 0x40c8cc
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42f0a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40c77f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040e4c0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c85a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40c898
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40c7e3
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40c7d4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40c7b4
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c823
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40c82c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40c7a5
jmp 0x40c82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40c8c7
cmp dword [ebp - 0x6c], edi
je 0x40c898
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40c88d
call fcn.0040c68d
mov dword [eax], 9
call fcn.0040c696
mov dword [eax], esi
jmp 0x40c8c2
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c882
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40c82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40c82e
push dword [ebp - 0x6c]
call fcn.0040c69f
pop ecx
jmp 0x40c8c2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40c8b0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40c8b0
xor eax, eax
jmp 0x40c8ca
call fcn.0040c68d
mov dword [eax], 0x1c
call fcn.0040c696
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40c8ca
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040d845
add ebp, 0x3a0
leave
ret
Function at 0x40d4f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42dc1c], ebx
push esi
push edi
jne 0x40d576
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d5b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42dc1c], eax
je 0x40d5b1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42dc20], eax
call esi
cmp dword [0x42d944], 2
mov dword [0x42dc24], eax
jne 0x40d576
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42dc2c], eax
je 0x40d576
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42dc28], eax
mov eax, dword [0x42dc28]
test eax, eax
je 0x40d5bb
call eax
test eax, eax
je 0x40d5a2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42dc2c]
test eax, eax
je 0x40d5a2
test byte [ebp - 8], 1
jne 0x40d5bb
cmp dword [0x42d950], 4
jb 0x40d5b5
or byte [ebp + 0x12], 0x20
jmp 0x40d5da
xor eax, eax
jmp 0x40d5ea
or byte [ebp + 0x12], 4
jmp 0x40d5da
mov eax, dword [0x42dc20]
test eax, eax
je 0x40d5da
call eax
mov ebx, eax
test ebx, ebx
je 0x40d5da
mov eax, dword [0x42dc24]
test eax, eax
je 0x40d5da
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42dc1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dfbe
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 0x40dfec
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 0x40dff3
cmp ebx, dword [eax + 4]
jae 0x40dff3
xor eax, eax
jmp 0x40e1e3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e004
xor eax, eax
inc eax
jmp 0x40e1e2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e01a
cmp ecx, edx
jae 0x40e15f
cmp dword [eax + 4], 0
je 0x40e023
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e00b
cmp dword [ebp + 8], 0
je 0x40e045
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e15f
cmp eax, esi
jae 0x40e15f
mov eax, dword [0x42dc38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e06a
cmp dword [esi*4 + 0x42dc40], edi
je 0x40e163
inc esi
cmp esi, eax
jl 0x40e058
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e1df
cmp dword [ebp - 8], 0x1000000
jne 0x40e1df
test byte [ebp - 0xc], 0xcc
je 0x40e0e8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e1df
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e1df
cmp word [eax + 0x18], 0x10b
jne 0x40e1df
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e1df
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e0e8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e0e8
test byte [ecx + 0x27], 0x80
jne 0x40e15f
push 1
push 0x42dc80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40dffc
mov ecx, dword [0x42dc38]
test ecx, ecx
mov edx, ecx
jle 0x40e11c
lea eax, [ecx*4 + 0x42dc3c]
cmp dword [eax], edi
je 0x40e11c
dec edx
sub eax, 4
test edx, edx
jg 0x40e110
test edx, edx
jne 0x40e14d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e129
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e141
lea eax, [edx*4 + 0x42dc40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e12f
cmp ecx, 0x10
jge 0x40e14d
inc ecx
mov dword [0x42dc38], ecx
push 0
push 0x42dc80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40dffc
xor eax, eax
jmp 0x40e1e2
test esi, esi
jle 0x40dffc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42dc80
call ebx
test eax, eax
jne 0x40dffc
cmp dword [esi*4 + 0x42dc40], edi
je 0x40e1b9
mov eax, dword [0x42dc38]
lea esi, [eax - 1]
test esi, esi
jl 0x40e1a7
cmp dword [esi*4 + 0x42dc40], edi
je 0x40e1a3
dec esi
jns 0x40e197
test esi, esi
jge 0x40e1b7
cmp eax, 0x10
jge 0x40e1b2
inc eax
mov dword [0x42dc38], eax
lea esi, [eax - 1]
jmp 0x40e1b9
je 0x40e1d1
xor ecx, ecx
test esi, esi
jl 0x40e1d1
lea eax, [ecx*4 + 0x42dc40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e1bf
push 0
push 0x42dc80
call ebx
jmp 0x40dffc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eefd
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.0040b230
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ef98
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 [0x42d944]
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 0x40ef98
cmp eax, 1
je 0x40efb9
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 0x40ef98
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ef65
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ef94
xor eax, eax
inc eax
jmp 0x40efd8
cmp edi, eax
jae 0x40ef9c
xor eax, eax
jmp 0x40efd8
cmp eax, esi
jae 0x40efa3
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 [0x42d944]
jmp 0x40efbc
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