joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006e8ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
call fcn.10025d1b
test al, al
jne 0x1006e988
call fcn.1001ecab
test al, al
jne 0x1006e988
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call fcn.1006d9e3
test eax, eax
je 0x1006e988
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x10006570
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006e988
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10006564
push dword [ebp - 8]
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006e97f
mov al, byte [ebp - 4]
cmp al, 0x2f
jbe 0x1006e97f
sub al, 0x2f
mov bl, al
cmp bl, 3
jbe 0x1006e97f
mov bl, 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1006e992
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1007641c]
push ebx
xor ebx, ebx
cmp dword [0x10076c04], ebx
mov dword [ebp - 4], eax
jne 0x1006eae3
mov dword [0x10076c04], ebx
call fcn.1002e34a
test al, al
je 0x1006eabc
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push 0x100065ec
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006ea31
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push 0x100065d8
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006eaae
lea eax, [ebp - 0x84]
push eax
call fcn.1006d7a6
mov dword [0x10076c04], eax
jmp 0x1006eaae
test byte [0x10076c7c], 1
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
jne 0x1006ea54
or dword [0x10076c7c], 1
push 0x100065c0
call esi
mov dword [0x10076c78], eax
test byte [0x10076c7c], 2
jne 0x1006ea70
or dword [0x10076c7c], 2
push 0x100065a8
call esi
mov dword [0x10076c74], eax
push edi
push 0x10006594
push 0x1000658c
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebx
je 0x1006eaac
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push dword [0x10076c78]
push edi
call esi
test eax, eax
je 0x1006eaac
push ebx
push ebx
push dword [0x10076c74]
push edi
call esi
mov dword [0x10076c04], eax
pop edi
pop esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006eae3
mov eax, dword [0x10076a54]
cmp eax, 2
jne 0x1006eacf
cmp dword [0x10076a2c], 4
jae 0x1006ead4
cmp eax, 1
jne 0x1006eae3
push ebx
push 0x10076c04
push ebx
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [ebp - 4]
mov eax, dword [0x10076c04]
pop ebx
call fcn.1007344b
leave
ret
Function at 0x1006ece1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x10076a54], 1
mov eax, dword [0x1007641c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
je 0x1006ed20
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1006ed20
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1006ed74
cmp dword [ebp + 0xc], 0xd
je 0x1006ed36
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1006ed74
push dword [ebp + 0x10]
lea ecx, [ebp - 0x218]
push edi
call fcn.1006eaf8
push dword [ebp - 0x218]
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x218]
call fcn.1006eb60
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.1006ebb5
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.1007344b
leave
ret 0x10
Function at 0x100706ee
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x10076c0c]
push esi
push edi
shr ebx, 0xe
push 0xffffffffffffffff
and bl, 1
call fcn.1000d34a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ecx]
sub eax, 0xd
je 0x10070888
dec eax
je 0x1007086e
sub eax, 0xf4
jne 0x100708ac
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
mov byte [edi + 2], 0
mov byte [edi + 1], 0
mov byte [edi + 3], 0
je 0x1007074a
mov byte [edi + 2], 1
jmp 0x100708ac
test bl, bl
mov esi, dword [ebp + 0xc]
mov ecx, 0x100
je 0x1007077e
mov eax, dword [0x10076790]
cmp eax, ecx
jae 0x10070768
test byte [0x10076c0d], 0x20
je 0x1007077e
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffb1e
cmp eax, 8
jbe 0x1007077e
mov dword [ebp - 4], 0x4e4
mov eax, dword [esi]
lea edx, [eax - 0x80]
cmp edx, 0x7f
ja 0x10070838
test bl, bl
je 0x1007079d
mov al, byte [0x10076c0c]
test al, 3
je 0x100707b7
test al, 0x30
je 0x100707b7
push dword [ebp - 4]
xor eax, eax
mov al, byte [esi]
push eax
call fcn.1006dc95
test eax, eax
je 0x100707b7
mov byte [edi + 1], 1
jmp 0x100708ac
mov eax, dword [ebp - 4]
and dword [ebp + 0xc], 0
cmp eax, 0x3a4
je 0x100707dc
cmp eax, 0x3a8
je 0x100707ee
cmp eax, 0x3b4
jbe 0x100707f5
cmp eax, 0x3b6
jbe 0x100707ee
jmp 0x100707f5
push 0x15
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x1007080e
cmp dword [ebp + 0x18], 0
jne 0x1007080e
mov dword [ebp - 4], 0x4e4
cmp dword [ebp - 4], 0x4e4
jne 0x1007080e
mov eax, dword [esi]
sub eax, 0x80
cmp eax, 0x1f
ja 0x100708ac
push dword [ebp - 4]
lea eax, [ebp + 0xc]
push 1
push esi
push 1
push eax
call fcn.1006f4db
cmp eax, 1
jne 0x100708ac
test bl, bl
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
je 0x100708ac
mov dword [0x10076790], eax
jmp 0x100708ac
cmp dword [ebp + 0x10], 1
jne 0x100708ac
cmp dword [0x10076a54], 2
jne 0x100708ac
cmp eax, ecx
jbe 0x100708ac
test bl, bl
jne 0x100708ac
cmp dword [ebp - 4], 0x3a8
je 0x10070861
cmp dword [ebp - 4], 0x3b6
jne 0x100708ac
movzx eax, ah
mov ah, byte [esi]
mov dword [esi], eax
mov byte [edi + 3], 1
jmp 0x100708ac
mov eax, dword [ebp + 0x14]
and dword [eax + 4], 0
mov dword [eax], 0x13
mov dword [ecx], 0x45f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x100708ac
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov dword [eax], esi
xor esi, esi
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [ecx], 0x45e
mov dword [edx], eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1007344b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007641c]
jne 0x1007345c
test ecx, 0xffff0000
jne 0x1007345c
ret
jmp fcn.10073466
Function at 0x4070e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41fdfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404794
call fcn.00408903
push 4
mov dword [esp + 0x18], 0
call fcn.00409852
mov edi, eax
add esp, 4
test edi, edi
je 0x407154
push ebx
call fcn.004086df
mov dword [edi], eax
call fcn.0040846e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00408844
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407148
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040886c
pop ebx
jmp 0x407156
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40a360
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423448]
jne 0x40a36a
repz ret
jmp fcn.0040f77c
Function at 0x41b462
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423448]
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.0040ef10
and dword [ebp - 0x14], 0
cmp dword [0x4887d4], 0
mov dword [ebp - 0x18], eax
jne 0x41b515
push 0x404290
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b5bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404284
push ebx
call edi
test eax, eax
je 0x41b5bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404274
push ebx
mov dword [0x4887d4], eax
call edi
push eax
call esi
push 0x404260
push ebx
mov dword [0x4887d8], eax
call edi
push eax
call esi
push 0x404244
push ebx
mov dword [0x4887dc], eax
call edi
push eax
call esi
mov dword [0x4887e4], eax
test eax, eax
je 0x41b515
push 0x40422c
push ebx
call edi
push eax
call esi
mov dword [0x4887e0], eax
mov eax, dword [0x4887e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b56e
cmp dword [0x4887e4], ecx
je 0x41b56e
push eax
call esi
push dword [0x4887e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b56e
test ebx, ebx
je 0x41b56e
call edi
test eax, eax
je 0x41b565
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b565
test byte [ebp - 8], 1
jne 0x41b56e
or dword [ebp + 0x10], 0x200000
jmp 0x41b5a1
mov eax, dword [0x4887d8]
cmp eax, dword [ebp - 0x18]
je 0x41b5a1
push eax
call esi
test eax, eax
je 0x41b5a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b5a1
mov eax, dword [0x4887dc]
cmp eax, dword [ebp - 0x18]
je 0x41b5a1
push eax
call esi
test eax, eax
je 0x41b5a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4887d4]
call esi
test eax, eax
je 0x41b5bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b5bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a360
leave
ret
Function at 0x41eb10
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1798
call fcn.0041c300
cmp dword [0x932c44], 0x37
push esi
jne 0x41ec2d
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
lea ecx, [esp + 0x39c]
push ecx
push 0x4043c4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call esi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea ecx, [esp + 0x79c]
push ecx
push 0x4043d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0xf9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x178]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
call esi
push 0x404418
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x38], 0
call fcn.00411b50
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x9353a8]
mov dword [esp + 4], eax
mov eax, 0x5d1
add dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dl, byte [ecx + ebx]
mov eax, dword [0x931430]
mov byte [eax + ebx], dl
pop esi
add esp, 0x1798
ret
Function at 0x401916
Capabilities:
Parse pe header

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

Function at 0x4079bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416600
push 0x4165f8
push str.FlsAlloc
push 0x1f
call fcn.0040787c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x415124]
call esi
jmp 0x4079f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407a3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416610
push 0x416608
push str.FlsGetValue
push 0x21
call fcn.0040787c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a72
push dword [ebp + 8]
mov ecx, esi
call dword [0x415124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407a7a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416618
push 0x416610
push str.FlsSetValue
push 0x22
call fcn.0040787c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ab4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b239
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b2d6
push ebx
push esi
call fcn.0040b202
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b196
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b283
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b2d5
push edi
push eax
call fcn.0040816c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b2a3
call fcn.0040770f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b2d4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b196
add esp, 0x20
test eax, eax
jne 0x40b2c2
push edi
call fcn.0040770f
jmp 0x40b2ca
push ebx
call fcn.0040770f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f8b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41cfb0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f8f5
cmp byte [ebx], 0xa
jne 0x40f8f5
or byte [edi + eax + 0x28], 4
jmp 0x40f8fa
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40f9f9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f9dc
inc eax
cmp dl, 0xd
je 0x40f926
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f94c
cmp eax, ecx
jae 0x40f95a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40f90e
jmp 0x40f9f9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f9d7
cmp dword [ebp - 0x10], 0
je 0x40f9d7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41cfb0]
test byte [eax + edi + 0x28], 0x48
je 0x40f9b1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f99c
mov byte [esi], dl
jmp 0x40f9ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41cfb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f9f9
cmp byte [ebp - 1], 0xa
jne 0x40f9c0
cmp esi, ebx
jne 0x40f9c0
mov byte [esi], 0xa
jmp 0x40f9f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411307
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f9f9
mov byte [esi], 0xd
jmp 0x40f9f8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41cfb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f9f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f9f9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40fa02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41cfb0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40fa48
cmp word [ebx], dx
jne 0x40fa48
or byte [eax + edi + 0x28], 4
jmp 0x40fa4d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40fbb0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40fb90
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40fa8e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40fac4
cmp eax, edx
jae 0x40fad2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40fa69
jmp 0x40fbb0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fb8b
cmp dword [ebp - 0x18], 0
je 0x40fb8b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41cfb0]
test byte [eax + edi + 0x28], 0x48
je 0x40fb61
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40fb25
mov word [esi], cx
jmp 0x40fb5c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41cfb0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41cfb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41cfb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40fbb0
pop eax
cmp word [ebp - 4], ax
jne 0x40fb71
cmp esi, ebx
jne 0x40fb71
mov word [esi], ax
jmp 0x40fbad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411307
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40fbb0
push 0xd
pop eax
jmp 0x40fb6c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41cfb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40fbaa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40fbb0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413c30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413c5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413c5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430391
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d0b8]
jne 0x43039b
repz ret
jmp fcn.00433a5f

Function at 0x4391bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d0b8]
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.00433107
and dword [ebp - 0x14], 0
cmp dword [0x48ee0c], 0
mov dword [ebp - 0x18], eax
jne 0x43926e
push 0x402b78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x439316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b6c
push ebx
call edi
test eax, eax
je 0x439316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402b5c
push ebx
mov dword [0x48ee0c], eax
call edi
push eax
call esi
push 0x402b48
push ebx
mov dword [0x48ee10], eax
call edi
push eax
call esi
push 0x402b2c
push ebx
mov dword [0x48ee14], eax
call edi
push eax
call esi
mov dword [0x48ee1c], eax
test eax, eax
je 0x43926e
push 0x402b14
push ebx
call edi
push eax
call esi
mov dword [0x48ee18], eax
mov eax, dword [0x48ee18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4392c7
cmp dword [0x48ee1c], ecx
je 0x4392c7
push eax
call esi
push dword [0x48ee1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4392c7
test ebx, ebx
je 0x4392c7
call edi
test eax, eax
je 0x4392be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4392be
test byte [ebp - 8], 1
jne 0x4392c7
or dword [ebp + 0x10], 0x200000
jmp 0x4392fa
mov eax, dword [0x48ee10]
cmp eax, dword [ebp - 0x18]
je 0x4392fa
push eax
call esi
test eax, eax
je 0x4392fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4392fa
mov eax, dword [0x48ee14]
cmp eax, dword [ebp - 0x18]
je 0x4392fa
push eax
call esi
test eax, eax
je 0x4392fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ee0c]
call esi
test eax, eax
je 0x439316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x439318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430391
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x644e046b
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x533647f6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219