joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c16c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045b4
xor eax, eax
push ebp
push 0x48c2ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0048c044
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004045c4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x48c299
xor eax, eax
push ebp
push 0x48c292
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48c27b
xor eax, eax
push ebp
push 0x48c274
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48c25d
xor eax, eax
push ebp
push 0x48c256
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0048c078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c25d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c27b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c299
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0048c0f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c2c1
lea eax, [ebp - 4]
call fcn.00404104
ret
Function at 0x48c42c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c523
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [0x492f44]
call fcn.004045c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48c4f9
xor edx, edx
push ebp
push 0x48c4e2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x3e9
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3fd]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x48c534
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48c4cb
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x3fd]
mov ecx, 0x3e9
call fcn.00404374
jmp 0x48c4d8
lea eax, [ebp - 0x14]
mov edx, 0x48c550
call fcn.0040419c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48c4f9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404158
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c52a
lea eax, [ebp - 0x14]
call fcn.00404104
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x409e9b
pop dword [ebp - 0x1c]
mov eax, 0x409e9b
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x79bab1ef
sub dword [ebp - 0x2c], 0x2b686ca4
mov dword [ebp - 0x28], 0x681919fe
sub dword [ebp - 0x28], 0x35e5cdb9
mov dword [ebp - 0x24], 0x370c9e7b
add dword [ebp - 0x24], 0x153fa5b3
mov dword [ebp - 0x20], 0xbef65116
add dword [ebp - 0x20], 0x4109aeea
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x30ad3313
add dword [ebp - 0x2c], 0x43c53643
mov dword [ebp - 0x28], 0xce7f34f
add dword [ebp - 0x28], 0x34846e26
mov dword [ebp - 0x24], 0x12ad11f3
add dword [ebp - 0x24], 0x50c25a79
mov dword [ebp - 0x20], 0x72028d0d
sub dword [ebp - 0x20], 0x72028d0d
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d0c2
push 0
call eax
mov ecx, 0x41515507
sub ecx, 0x4150ff62
mov edi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x1c]
mov esi, 0xa7aad99
add esi, 0xd2fcc403
mov ebx, dword [edx]
sub dword [ebp - 4], edi
add ebx, esi
mov dword [edi], ebx
xor dword [ebp - 4], ebx
add edi, 0xd8fa34e6
add edi, 0x2705cb1e
add edx, 0x5777c640
add edx, 0xa88839c4
loop 0x409fa8
add eax, 0x9f9ca7f2
add eax, 0x6064a175
mov ebx, eax
add eax, 5
mov ecx, 0x75857e2b
sub ecx, 0x75457e2b
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x406abb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jl 0x406ae3
cmp dword [ebp + 0x14], 3
jg 0x406ae3
xor eax, eax
jmp 0x406ae8
mov eax, 1
test eax, eax
je 0x406afc
mov dword [ebp - 4], 1
jmp 0x406b6d
fild dword [ebp + 0x14]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x41228b]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.0040199c
cmp eax, 1
jl 0x406b20
cmp eax, 5
jl 0x406b37
push 0xb7
push 0x4016e9a
push 9
call fcn.0040d5c3
add esp, 0xc
dec eax
call 0x406b3d
pop ebx
add ebx, dword [eax*4 + 0x4124eb]
jmp ebx
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov eax, str.Open
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004065f5
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406b9d
push ebx
call fcn.0040d5b7
add esp, 4
push 0x4124e1
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.00401c79
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x4124e1
test eax, eax
je 0x406bc9
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x406bd4
add eax, 8
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x406be1
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x406bec
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x406c18
push 0x152
push 0x4016e9a
push 6
call fcn.0040d5c3
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x406c2b
push ebx
call fcn.0040d5b7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406c3b
push ebx
call fcn.0040d5b7
add esp, 4
cmp dword [ebp - 0x1c], 2
mov eax, 0
setne al
jmp 0x406c4c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408dcc
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x415a01]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x408e07
add dword [esp], 5
retf

Function at 0x408f39
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x415a01]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x408f74
add dword [esp], 5
retf

Function at 0x409aa5
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x415a01]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x409ae0
add dword [esp], 5
retf

Function at 0x409bd6
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x415a01]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x409c11
add dword [esp], 5
retf

Function at 0x40ae87
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x40aeb3
add dword [esp], 5
retf
Function at 0x40b2da
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x40b327
mov al, cl
cmp al, 0x61
jb 0x40b302
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x40b327
mov al, cl
cmp al, 0x61
jb 0x40b31a
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x40b2f3
cmp edx, dword [esp + 0x18]
je 0x40b337
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x40b2ec
xor eax, eax
jmp 0x40b33a
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

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

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x40b429
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x40b42f
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x40b38e
cmp al, 0x61
jb 0x40b386
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x40b379
cmp edx, dword [esp + 0x14]
je 0x40b39e
dec ecx
jne 0x40b36e
xor eax, eax
jmp 0x40b429
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x40b429
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x40b429
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x40b3da
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x40b3e9
jmp 0x40b3d1
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.0040b2da
test eax, eax
je 0x40b429
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x40b424
cmp al, 0x61
jb 0x40b41c
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x40b40f
call fcn.0040b342
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x40b447
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x40b447
sub edx, ecx
mov ecx, edx
jmp 0x40b39e
xor eax, eax
jmp 0x40b429
Function at 0x40e020
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x40e061.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x40e061.2
jmp dword [eax*4 + 0x40e0ec]
mov word [esp + 0x48], di
jmp 0x40e09a
mov word [esp + 0x48], 2
jmp 0x40e09a
mov word [esp + 0x48], 3
jmp 0x40e09a
mov word [esp + 0x48], 4
jmp 0x40e09a
mov word [esp + 0x48], 7
jmp 0x40e09a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x40e0e4
cmp dword [esp + 0x70], edi
je 0x40e0d0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x40e180
Capabilities:
Encode data using xor

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

Function at 0x40ef20
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 0x40efb2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40efa4
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 0x40ef9c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40ef65
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 0x40efc0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.10023c43
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.10023c43
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.10023c43
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.10023c43
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.10023c43
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.10023c43
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.10023c43
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.10023c43
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x10023c43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10023c52
pop dword [ebp - 0x4c]
mov eax, 0x10023c52
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x585cc4e9
sub dword [ebp - 0x5c], 0xa0a7f9e
mov dword [ebp - 0x58], 0x49e0a553
sub dword [ebp - 0x58], 0x17ad590e
mov dword [ebp - 0x54], 0x4372bdc9
sub dword [ebp - 0x54], 0xf726799b
mov dword [ebp - 0x50], 0xfc238cf3
sub dword [ebp - 0x50], 0xfc238cf3
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xf5b1ac61
add eax, 0x1a50a3ef
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xaeecf82
sub dword [ebp - 0x5c], 0x967c662c
mov dword [ebp - 0x58], 0x79dc78a
sub dword [ebp - 0x58], 0xc6316615
mov dword [ebp - 0x54], 0x3e39209f
sub dword [ebp - 0x54], 0xdac9b433
mov dword [ebp - 0x50], 0xe284f2d3
sub dword [ebp - 0x50], 0xe284f2d3
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aed2
push 0
call eax
mov ecx, 0x430009ee
add ecx, 0xbd0032e6
xor esi, esi
add esi, eax
mov edi, 0x6baac638
add edi, 0xa45893c8
add edi, dword [ebp - 0x4c]
mov ebx, 0xace01eef
xor dword [ebp - 0x30], 0x828f5021
mov edx, dword [edi]
mov dword [ebp - 0x10], 0x4f41cbe9
sub edx, ebx
xor dword [ebp - 0x28], eax
mov dword [esi], edx
sub dword [ebp - 0xc], edi
add esi, 0x2a0475a3
sub esi, 0x2a04759f
add edi, 0x384265a1
add edi, 0xc7bd9a63
loop 0x10023d66
add eax, 0xe456d802
sub eax, 0xe455f1df
xor ebx, ebx
add ebx, eax
add eax, 0x8588a2ce
add eax, 0x7a775d37
mov ecx, 0x4d59ab1c
sub ecx, 0x3d59ab1c
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401710
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0xb9d6
call fcn.00401110
add esp, 8
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
push ecx
push 0x9184
call fcn.00401110
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
je 0x40183f
cmp dword [ebp - 0xc], 0
je 0x40183f
cmp dword [ebp - 0x1c], 0
je 0x40183f
cmp dword [ebp - 8], 0
je 0x40183f
mov edx, dword [ebp - 0xc]
shr edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406b68
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
jmp 0x4017a7
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jae 0x4017c2
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov cl, byte [edx + ecx*2]
mov byte [eax], cl
jmp 0x40179e
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004016c0
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401300
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword fs:[0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x28]
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00406940
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00406940
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406940
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403a94
mov esp, ebp
pop ebp
ret

Function at 0x40436d
Capabilities:
Parse pe header

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

Function at 0x40ef60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ef8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ef8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402bdc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401424
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402c3d
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402c38
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402c38
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402c34
sub eax, 1
jne 0x402c38
mov ecx, esi
call fcn.00402a6e
test eax, eax
jne 0x402c3d
xor eax, eax
jmp 0x402c3d
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x403020
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4036b8
call fcn.00403440
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043d0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402e3e
cmp eax, esi
jne 0x402e31
xor esi, esi
inc esi
mov edi, esi
jmp 0x402e41
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402e15
xor esi, esi
inc esi
cmp dword [0x4043d4], esi
jne 0x402e53
push 0x1f
call fcn.00495000
pop ecx
jmp 0x402e8d
cmp dword [0x4043d4], ebx
jne 0x402e87
mov dword [0x4043d4], esi
push 0x4011b8
push 0x4011ac
call fcn.00402f78
pop ecx
pop ecx
test eax, eax
je 0x402e8d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402f62
mov dword [0x404044], esi
cmp dword [0x4043d4], esi
jne 0x402eb0
push 0x4011a8
push 0x40119c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043d4], 2
test edi, edi
jne 0x402ebd
xor eax, eax
mov ecx, 0x4043d0
xchg dword [ecx], eax
cmp dword [0x4043d8], 0
je 0x402ee9
push 0x4043d8
call fcn.00403270
pop ecx
test eax, eax
je 0x402ee9
push ebx
push 2
push ebx
mov esi, dword [0x4043d8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404050]
push dword [0x40404c]
push dword [0x404048]
call fcn.00401b97
add esp, 0xc
mov dword [0x404040], eax
cmp dword [0x404058], 0
jne 0x402f47
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 [0x404044], 0
jne 0x402f5b
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404040]
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.0040337b
jmp 0x402df9