joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f8ac
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100154bc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100154bc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001f923
cmp word [ecx], dx
je 0x1001f923
mov eax, dword [0x10027c5c]
push edi
dec eax
push eax
push 0x10027b48
call fcn.1001f84b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001f996
cmp word [eax], dx
je 0x1001f996
mov eax, dword [edi]
test eax, eax
je 0x1001f947
cmp word [eax], dx
je 0x1001f947
lea eax, [ebp - 0x10]
push eax
call fcn.1001f22e
jmp 0x1001f950
lea eax, [ebp - 0x10]
push eax
call fcn.1001f2c9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001f9c0
mov eax, dword [0x10027b44]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10027838
call fcn.1001f84b
add esp, 0xc
test al, al
je 0x1001f9c0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001f98b
cmp word [eax], di
je 0x1001f98b
lea eax, [ebp - 0x10]
push eax
call fcn.1001f22e
pop ecx
jmp 0x1001f9c2
lea eax, [ebp - 0x10]
push eax
call fcn.1001f2c9
jmp 0x1001f988
mov eax, dword [edi]
test eax, eax
je 0x1001f9ad
cmp word [eax], dx
je 0x1001f9ad
lea eax, [ebp - 0x10]
push eax
call fcn.1001f1e3
pop ecx
jmp 0x1001f9c0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001fa8b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001f6d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001fa8b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001fa8b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001fa8b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001fa18
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100174e0
test ebx, ebx
je 0x1001fa86
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100174e0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001fa8b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001fa8b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10021404
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001fa8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bbdf
leave
ret
Function at 0x10021931
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100218ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10021aa0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10021aa0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10021a55
jg 0x1002198d
test eax, eax
je 0x10021a4b
push 1
push 0x1000
call fcn.10016ea9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100219b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10021a42
push 0x8000
push ebx
call fcn.100217de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100219d9
jg 0x100219d4
cmp ecx, 0x1000
jb 0x100219d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100186b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10021a1e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100219d4
jl 0x10021a05
test ecx, ecx
jne 0x100219c6
push dword [ebp - 0xc]
push ebx
call fcn.100217de
push esi
call fcn.10016e6f
add esp, 0xc
xor ebx, ebx
jmp 0x10021aae
cmp byte [edi + 0x24], 0
je 0x10021a35
cmp dword [edi + 0x20], 5
jne 0x10021a35
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10021a40
mov ebx, dword [edi + 0x18]
jmp 0x10021a42
xor ebx, ebx
push esi
call fcn.10016e6f
pop ecx
jmp 0x10021aae
test ecx, ecx
jg 0x10021a17
jl 0x10021a55
test eax, eax
jae 0x10021a17
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10019e7c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10021a75
cmp byte [edi + 0x1c], 0
je 0x10021a17
jmp 0x10021aa6
push ebx
call fcn.1001ff8c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10021a17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10021aae
cmp byte [edi + 0x1c], 0
je 0x10021aab
mov ebx, dword [edi + 0x18]
jmp 0x10021aae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10019e7c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10022d70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022d9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022d9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401306
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40131b
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40132d
xor eax, eax
jmp 0x40135f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401351
cmp esi, eax
jae 0x401329
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401343
cmp esi, eax
jae 0x401329
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401856
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30d14
call fcn.00411170
mov eax, dword [0x43f214]
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], eax
jbe 0x40197a
push ebx
push esi
xor eax, eax
mov esi, 0x30b12
mov byte [ebp + eax - 0x30b18], al
inc eax
cmp eax, esi
jb 0x401880
xor eax, eax
mov dword [ebp - 0x30b20], eax
lea ecx, [ebp + eax - 0x30b18]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov bl, byte [ecx]
movzx edx, byte [edx + eax]
add edx, edi
movzx eax, bl
add eax, edx
xor edx, edx
mov edi, esi
div edi
mov edi, edx
lea eax, [ebp + edi - 0x30b18]
mov dl, byte [eax]
mov byte [ecx], dl
mov byte [eax], bl
mov eax, dword [ebp - 0x30b20]
inc eax
cmp eax, esi
mov dword [ebp - 0x30b20], eax
jb 0x401894
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x30b24], eax
mov dword [ebp - 0x30b28], ecx
jmp 0x4018f2
mov eax, dword [ebp - 0x30b20]
inc eax
xor edx, edx
mov ecx, esi
div ecx
push 0
lea edi, [ebp + edx - 0x30b18]
mov al, byte [edi]
mov byte [ebp + 0x17], al
movzx eax, al
add eax, dword [ebp - 0x30b24]
mov dword [ebp - 0x30b20], edx
xor edx, edx
div ecx
lea eax, [ebp + edx - 0x30b18]
mov cl, byte [eax]
mov byte [edi], cl
mov cl, byte [ebp + 0x17]
mov byte [eax], cl
mov al, byte [ebx]
lea ecx, [ebp - 0x30d14]
mov dword [ebp - 0x30b24], edx
mov byte [ebp - 0x30b19], al
call fcn.004017b1
movzx ecx, byte [ebp + 0x17]
movzx eax, byte [edi]
add eax, ecx
cdq
mov ecx, esi
idiv ecx
lea ecx, [ebp - 0x30d14]
mov al, byte [ebp + edx - 0x30b18]
xor al, byte [ebp - 0x30b19]
mov byte [ebx], al
inc ebx
call fcn.00401088
dec dword [ebp - 0x30b28]
jne 0x4018ec
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
call fcn.00410e1e
leave
ret
Function at 0x401987
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x42f3b3
call fcn.00410cdc
sub esp, 0x1f4
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
push esi
add eax, ebx
mov esi, dword [eax + 0x78]
push edi
push 0
lea ecx, [ebp - 0x200]
add esi, ebx
call fcn.004017b1
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
add edi, ebx
mov ebx, dword [esi + 0x1c]
mov esi, dword [esi + 0x18]
add ebx, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x14], eax
jbe 0x4019f6
mov eax, dword [ebp - 0x10]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push 0x2938
push eax
call fcn.004012d3
cmp eax, dword [ebp + 0xc]
pop ecx
pop ecx
je 0x401a18
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x4019d3
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x200]
call fcn.00401088
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
mov ebx, dword [ebx + eax*4]
add ebx, dword [ebp + 8]
jmp 0x4019f8

Function at 0x401a2a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f214]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
push 0xca74be2
push esi
call fcn.00401987
push 0x38eef4d0
push esi
mov edi, eax
call fcn.00401987
push 0x76d5087c
push esi
mov dword [ebp - 0x18], eax
call fcn.00401987
push 0x83f84838
push esi
mov dword [ebp - 0x24], eax
call fcn.00401987
push 0x825e573e
push esi
mov dword [ebp - 0x20], eax
call fcn.00401987
add esp, 0x28
push 0xa
push 0x3fae
push ebx
mov dword [ebp - 0x1c], eax
call edi
mov esi, eax
cmp esi, ebx
je 0x401b0a
push esi
push ebx
call dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x401b0a
push esi
push ebx
call dword [ebp - 0x24]
push ebx
push 0x431b08
mov edi, eax
call fcn.00411235
pop ecx
push eax
push 0x3000
push edi
push ebx
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x20]
mov esi, eax
cmp esi, ebx
jne 0x401b0e
xor eax, eax
jmp 0x401b2d
push edi
push dword [ebp - 0x18]
push esi
call fcn.00410e30
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401856
add esp, 0x1c
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00410e1e
leave
ret
Function at 0x402c90
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x402d25
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x402d19
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 8], eax
je 0x402d11
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push eax
push ecx
push dword [ebp - 4]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x406d87
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43f214]
mov dword [ebp + 0x74], eax
mov eax, dword [0x440230]
test eax, eax
jne 0x406e37
push 0x94
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411a60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x406dd6
and dword [0x440230], eax
jmp 0x406e37
cmp dword [ebp - 0x10], 0
jne 0x406de1
xor eax, eax
inc eax
jmp 0x406e28
push 2
pop ecx
cmp dword [ebp - 0x10], ecx
jne 0x406e10
cmp dword [ebp - 0x1c], 4
jne 0x406df4
push 6
pop eax
jmp 0x406e28
push 5
pop eax
cmp dword [ebp - 0x1c], eax
jne 0x406e28
cmp dword [ebp - 0x18], 0
jne 0x406e06
push 7
jmp 0x406df1
cmp dword [ebp - 0x18], 1
jne 0x406e28
push 8
jmp 0x406df1
push 4
pop eax
cmp dword [ebp - 0x1c], eax
jne 0x406e2f
cmp dword [ebp - 0x18], 0xa
jne 0x406e22
push 3
jmp 0x406df1
cmp dword [ebp - 0x18], 0x5a
jne 0x406e2f
mov dword [0x440230], eax
jmp 0x406e37
mov dword [0x440230], ecx
mov eax, ecx
mov ecx, dword [ebp + 0x74]
call fcn.00410e1e
add ebp, 0x78
leave
ret
Function at 0x4074a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4074fb
call fcn.0042c777
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4074fb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4074f1
xor eax, eax
jmp 0x407614
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40752b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40752b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x407611
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x407558
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00408cbf
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x407611
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4075a1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4075a1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40759b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00408cbf
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x407601
and dword [ebp + 0xc], 0
jmp 0x407601
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x407601
push 0xc
call fcn.0041e40d
mov esi, eax
test esi, esi
pop ecx
je 0x4075e3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4075e5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4075fc
push dword [ebp - 8]
call fcn.0041d22b
jmp 0x407601
call fcn.0041d202
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x407566
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411364
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.00411170
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4113ff
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 [0x442204]
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 0x4113ff
cmp eax, 1
je 0x411420
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 0x4113ff
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4113cc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4113fb
xor eax, eax
inc eax
jmp 0x41143f
cmp edi, eax
jae 0x411403
xor eax, eax
jmp 0x41143f
cmp eax, esi
jae 0x41140a
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 [0x442204]
jmp 0x411423
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
Function at 0x4120e1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x435d60
call fcn.00411448
mov edi, 0x94
mov eax, edi
call fcn.00411170
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 [0x442204], ecx
mov eax, dword [esi + 4]
mov dword [0x442210], eax
mov edx, dword [esi + 8]
mov dword [0x442214], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x442208], esi
cmp ecx, 2
je 0x412141
or esi, 0x8000
mov dword [0x442208], esi
shl eax, 8
add eax, edx
mov dword [0x44220c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41217c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41217c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412194
cmp eax, 0x20b
je 0x412181
mov dword [ebp - 0x1c], esi
jmp 0x4121a8
cmp dword [ecx + 0x84], 0xe
jbe 0x41217c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4121a2
cmp dword [ecx + 0x74], 0xe
jbe 0x41217c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414b2b
pop ecx
test eax, eax
jne 0x4121bc
push 0x1c
call fcn.004120bd
pop ecx
call fcn.004143fd
test eax, eax
jne 0x4121cd
push 0x10
call fcn.004120bd
pop ecx
call fcn.00416c54
mov dword [ebp - 4], esi
call fcn.00416a56
test eax, eax
jge 0x4121e6
push 0x1b
call fcn.00412098
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x443ab0], eax
call fcn.00416934
mov dword [0x4421f4], eax
call fcn.00416892
test eax, eax
jge 0x41220c
push 8
call fcn.00412098
pop ecx
call fcn.0041665f
test eax, eax
jge 0x41221d
push 9
call fcn.00412098
pop ecx
push 1
call fcn.0041239b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412233
push eax
call fcn.00412098
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416602
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412254
movzx eax, word [ebp - 0x40]
jmp 0x412257
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041cc14
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412275
push edi
call fcn.004124c8
call fcn.004124ea
jmp 0x4122a7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411483
ret
Function at 0x412405
Capabilities:
Terminate process

Disassembly:
push 8
push 0x435d88
call fcn.00411448
push 8
call fcn.00414ae0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x442244], esi
jne 0x412439
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x442240], esi
mov al, byte [ebp + 0x10]
mov byte [0x44223c], al
cmp dword [ebp + 0xc], edi
jne 0x412483
cmp dword [0x443aa8], edi
je 0x412473
mov eax, dword [0x443aa4]
sub eax, 4
mov dword [0x443aa4], eax
cmp eax, dword [0x443aa8]
jb 0x412473
mov eax, dword [eax]
cmp eax, edi
je 0x412454
call eax
jmp 0x412454
push 0x43e0a4
mov eax, 0x43e09c
call fcn.00412383
pop ecx
push 0x43e0b0
mov eax, 0x43e0a8
call fcn.00412383
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4124b4
cmp dword [ebp + 0x10], edi
jne 0x4124c2
mov dword [0x442244], esi
push dword [ebp + 8]
call fcn.00412341
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4124c1
push 8
call fcn.00414a2b
pop ecx
ret
call fcn.00411483
ret