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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4030ac], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0xc], 2
sete al
test al, 1
je 0x401e8d
cmp dword [ebp - 0x18], 5
jb 0x401e8d
push 2
pop ecx
jmp 0x401e8f
xor ecx, ecx
or eax, ecx
test al, 2
je 0x401ea2
cmp dword [ebp - 0x14], 1
jb 0x401ea2
mov ecx, 0x80
jmp 0x401ea4
xor ecx, ecx
or eax, ecx
test al, 1
jne 0x401eb5
cmp dword [ebp - 0x14], 0xa
jb 0x401eb5
push 8
pop ecx
jmp 0x401eb7
xor ecx, ecx
or eax, ecx
test al, 9
jne 0x401ec2
push 4
pop ecx
jmp 0x401ec4
xor ecx, ecx
or eax, ecx
mov ecx, dword [0x4030ac]
cmp ecx, 0x3a4
mov dword [0x4030a8], eax
je 0x401ef1
cmp ecx, 0x3a8
je 0x401ef1
cmp ecx, 0x3b4
jbe 0x401ef9
cmp ecx, 0x3b6
ja 0x401ef9
or eax, 0x10
mov dword [0x4030a8], eax
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x401f1c
test byte [0x4030a8], 2
jne 0x401f15
or dword [0x4030a8], 0x20
or dword [0x4030a8], 0x40
add ebp, 0x78
leave
ret

Function at 0x401f34
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x401120
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401f6f
push 0xb
mov eax, 0x401114
push eax
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4022fb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [0x403028]
push dword [0x403024]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402337
push 0x4012f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x4012e4
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x402355
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
leave
ret
Function at 0x4023cf
Capabilities:
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0
push 0x402357
call dword [sym.imp.USER32.dll_EnumWindows]
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x40246c
or ecx, 0xffffffff
push ebx
push edi
xor eax, eax
mov edi, 0x4012b8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [ebp - 0x108]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
pop edi
pop ebx
je 0x40246c
push 0x4012c8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40246c
lea ecx, [ebp - 4]
push ecx
call eax
test eax, eax
jne 0x40246c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402479
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x402484
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x6893979
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..text_1
mov ebx, 0x42e3d0
nop
mov ecx, 0x27ca5c42
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404036
mov dword [0x446040], eax
mov edx, sym.unk_463
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.unk_1042
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43cbc4
mov dword [ebp - 0x1c], 0x4041e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.unk_1052
cmp dword [0x43e0d0], 0
mov dword [ebp - 0x44], 0x446050
je 0x4041c0
jl 0x404200
mov dword [ebp - 0x3c], 1
mov eax, dword [0x446040]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4042a3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.unk_1053
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x446660]
mov eax, 0xffffffff
test edx, edx
je 0x40421a
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40425a
xor eax, eax
test eax, eax
jne 0x404250
mov edi, dword [0x43e0d0]
test edi, edi
js 0x404250
mov dword [ebp - 0x44], 0x446050
mov ebx, dword [0x43e0d0]
test ebx, ebx
je 0x4041c0
jmp 0x40416e
xor esi, esi
mov dword [0x43e0d0], esi
jmp 0x404228
mov dword [esp], 0x43e0d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4042e1
mov eax, dword [0x43e0d4]
test eax, eax
jne 0x404218
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40427d
jmp 0x404218
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4042d5
mov dword [esp + 4], eax
mov eax, dword [0x446040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40430a
test edx, edx
je 0x4042f5
mov dword [ebp - 0x3c], 1
call sym.unk_452
call sym.unk_464
mov eax, 1
mov dword [0x43e0d4], eax
jmp 0x404218
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4041b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4042d1
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.unk_610
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sym.__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.unk_1042
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4466c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d7a4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d7c0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d7e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d798
lea edx, [ebp - 0x14]
mov eax, edi
call sym.unk_1064
cmp eax, 7
jne 0x40d85f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d836
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d850
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d810
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.unk_1066
jmp 0x40d755
call sym.unk_1049
mov eax, dword [0x4466c0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d730
lea esi, [esi]
call sym.unk_1051
mov eax, dword [0x4466c0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d73b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d73e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d787
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d787
call sym.unk_1049
mov eax, dword [0x4466c0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d779
nop
lea esi, [esi]
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d779
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40d902
mov eax, dword [0x4466c0]
test eax, eax
je 0x40d8f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40d971
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40d917
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.unk_1066
cmp eax, 7
jne 0x40d98f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d962
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d980
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d943
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d892
mov dword [esp], edi
call sym.unk_1065
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d8a7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8e5
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d8d0
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d89d
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d8db
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40db70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40dba0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.unk_1042
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x40e250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x124
mov ebx, dword [esp + 0x130]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x40e457
cmp byte [ebx], 0
je 0x40e423
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x40e448
test al, 0x10
je 0x40e423
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sym.unk_1141
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x40e2c0
and edx, 0x8080
jne 0x40e2e6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sym._malloc
test eax, eax
mov ebx, eax
je 0x40e439
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sym._strcpy
cmp byte [ebx + 0x22c], 0
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e330
and edx, 0x8080
jne 0x40e356
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x2f
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e370
and edx, 0x8080
jne 0x40e396
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x5c
je 0x40e3c0
mov dword [esp], esi
call sym._strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sym._strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor edx, edx
mov dword [ebx + 0x224], eax
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x228], edx
xor eax, eax
mov edx, 0x104
mov dword [ebx + 0x118], ecx
xor ecx, ecx
mov word [ebx + 0x11c], si
lea esi, [ebx + 0x120]
mov word [ebx + 0x11e], ax
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._memset
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
call sym.__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x124
pop ebx
pop esi
ret
call sym.__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x40e430
call sym.__errno
mov dword [eax], 2
xor eax, eax
jmp 0x40e430
call sym.__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x40e430
Function at 0x40104b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.00410a3e
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00410a3e
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.00410a3e
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0
call fcn.00410a4a
cmp dword [ebp - 0x20], esp
je 0x401108
push 6
call fcn.00410a44
add esp, 4
mov dword [ebp - 4], eax
mov eax, 0x480828
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401121
push ebx
call fcn.00410a38
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 1
call fcn.00410a4a
cmp dword [ebp - 0x20], esp
je 0x401150
push 6
call fcn.00410a44
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x480839
mov eax, 2
call fcn.00410a4a
cmp dword [ebp - 0x20], esp
je 0x40117a
push 6
call fcn.00410a44
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 3
call fcn.00410a4a
cmp dword [ebp - 0x20], esp
je 0x40120e
push 6
call fcn.00410a44
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.00410a4a
cmp dword [ebp - 0x20], esp
je 0x401233
push 6
call fcn.00410a44
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40123b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40124c
push ebx
call fcn.00410a38
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00410a38
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00410a38
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00410a38
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4077b3
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x4077d5
mov eax, 0xfffffffd
jmp 0x40784d
mov ebx, dword [0x56b5ac]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40781b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x56b5ac]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x407843
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40784d
mov esp, ebp
pop ebp
ret 4
Function at 0x40e82a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x417a20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a74b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046f528
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417aa2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d477
mov eax, dword [eax]
push 0x55b260
push eax
call fcn.0045ffd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046f7b3
test bl, bl
je 0x417aa2
push 0x55b260
lea ecx, [esp + 0xc]
call fcn.0046fb43
push 0x55edc0
lea ecx, [esp + 0xc]
call fcn.0046fb43
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x417ade
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046f7b3
jmp 0x417ba9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x417b62
lea edx, [esp + 0x7c]
push 0x55edbc
push edx
call fcn.0045ffd4
add esp, 8
test eax, eax
je 0x417b62
lea eax, [esp + 0x7c]
push 0x55edb8
push eax
call fcn.0045ffd4
add esp, 8
test eax, eax
je 0x417b62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417af2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046f7b3
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4183a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x418402
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc