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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x55b0fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
cmp dl, 1
jne 0x55af40
mov dword [ebp - 0x14], 0xf013f
jmp 0x55af47
mov dword [ebp - 0x14], 0xf003f
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov dl, 1
mov eax, 0x55b11c
call fcn.0055ad6c
test al, al
je 0x55b0cb
mov eax, dword [ebp - 0x24]
call fcn.00444b78
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x55b0c4
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x55b096
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406e88
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x22c]
mov ecx, 0x55b1a4
mov edx, dword [ebp - 4]
call fcn.00407818
mov eax, dword [ebp - 0x22c]
call fcn.004075c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x55b096
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
cmp dword [ebp - 0x1c], 0
je 0x55b08d
mov ebx, dword [ebp - 0x1c]
dec ebx
test ebx, ebx
jl 0x55b08d
inc ebx
xor esi, esi
lea eax, [ebp - 0x226]
xor ecx, ecx
mov edx, 0x1fe
call fcn.004049c8
mov dword [ebp - 0x20], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x226]
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExW
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x226]
mov ecx, 0xff
call fcn.00407668
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041d61c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x55b01c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x28]
call fcn.00444134
test al, al
jne 0x55af8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b0cb
cmp dword [ebp - 0x28], 0
je 0x55b0c3
mov dl, 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x24]
call fcn.00404fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b105
lea eax, [ebp - 0x234]
mov edx, 3
call fcn.00406ac0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ac0
ret
Function at 0x55c08c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x51
push 0
push 0
dec ecx
jne 0x55c094
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406b44
xor eax, eax
push ebp
push 0x55c2e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406e88
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 0xc]
call fcn.004076b8
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x26c]
mov edx, 1
call fcn.00450848
mov eax, dword [ebp - 0x26c]
mov edx, 0x55c2f4
call fcn.0040751c
je 0x55c107
lea eax, [ebp - 0xc]
mov edx, 0x55c304
call fcn.004077c0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00406e88
lea eax, [ebp - 0xc]
mov edx, 0x55c314
call fcn.004077c0
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov edi, eax
cmp edi, 0xffffffff
je 0x55c2a5
mov bl, 1
jmp 0x55c297
test byte [ebp - 0x268], 0x10
jne 0x55c1e7
lea eax, [ebp - 0x274]
lea edx, [ebp - 0x23c]
mov ecx, 0x104
call fcn.00407668
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407818
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0055c80c
cmp al, 1
jne 0x55c1c2
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x23c]
mov ecx, 0x104
call fcn.00407668
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x278]
call fcn.0041d61c
mov edx, dword [ebp - 0x278]
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x2c]
call fcn.0055971c
jmp 0x55c1ce
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0055c900
cmp al, 1
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 8]
call fcn.0055971c
jmp 0x55c284
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x23c]
mov ecx, 0x104
call fcn.00407668
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 8]
mov ecx, 0x55c328
call fcn.00407818
mov eax, dword [ebp - 8]
mov edx, 0x55c338
call fcn.00407950
je 0x55c284
mov eax, dword [ebp - 8]
mov edx, 0x55c34c
call fcn.00407950
je 0x55c284
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x23c]
mov ecx, 0x104
call fcn.00407668
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407818
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0055c08c
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 8]
call fcn.0041d61c
mov edx, dword [ebp - 0x288]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
call fcn.0055971c
lea eax, [ebp - 0x268]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x55c146
push edi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55c2e7
lea eax, [ebp - 0x288]
mov edx, 6
call fcn.00406ac0
lea eax, [ebp - 0x270]
mov edx, 2
call fcn.00406b20
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406ac0
ret
Function at 0x562900
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x562908
push ebx
push esi
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x562b07
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 1
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
call fcn.00563390
mov eax, dword [ebp - 0x24]
call fcn.00444b78
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x562ad0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562aa2
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00406e88
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406e88
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.004076b8
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 1
call fcn.00450848
mov eax, dword [ebp - 0x34]
mov edx, 0x562b1c
call fcn.0040751c
je 0x5629bc
lea eax, [ebp - 8]
mov edx, 0x562b2c
call fcn.004077c0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00444b78
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x562a9b
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562a6d
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00406e88
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00407818
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x562a6d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x562a64
test esi, 0x400
je 0x562a64
test esi, 0x10
je 0x562a64
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x562a6d
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x2c]
call fcn.00444134
test al, al
jne 0x5629dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562aa2
cmp dword [ebp - 0x2c], 0
je 0x562a9a
mov dl, 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x28]
call fcn.00444134
test al, al
jne 0x56295b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562ad7
cmp dword [ebp - 0x28], 0
je 0x562acf
mov dl, 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
Function at 0x562aa2
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x562908
push ebx
push esi
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x562b07
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 1
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
call fcn.00563390
mov eax, dword [ebp - 0x24]
call fcn.00444b78
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x562ad0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562aa2
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00406e88
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406e88
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.004076b8
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 1
call fcn.00450848
mov eax, dword [ebp - 0x34]
mov edx, 0x562b1c
call fcn.0040751c
je 0x5629bc
lea eax, [ebp - 8]
mov edx, 0x562b2c
call fcn.004077c0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00444b78
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x562a9b
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562a6d
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00406e88
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00407818
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x562a6d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x562a64
test esi, 0x400
je 0x562a64
test esi, 0x10
je 0x562a64
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x562a6d
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x2c]
call fcn.00444134
test al, al
jne 0x5629dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562aa2
cmp dword [ebp - 0x2c], 0
je 0x562a9a
mov dl, 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x28]
call fcn.00444134
test al, al
jne 0x56295b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562ad7
cmp dword [ebp - 0x28], 0
je 0x562acf
mov dl, 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
Function at 0x580e40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x580ef8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x580f10
mov edx, dword [ebx + 0x400]
call fcn.00407818
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0041d61c
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.0041e33c
test al, al
je 0x580ed3
push 1
push 0x580f24
push 0x580f24
lea eax, [ebp - 0x10]
mov ecx, 0x580f10
mov edx, dword [ebx + 0x400]
call fcn.00407818
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0041d61c
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
push 0x580f28
mov eax, dword [0x5933b8]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x580edd
mov eax, 0x580f40
call fcn.004d8f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x580eff
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406ac0
ret
Function at 0x9e7440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9e748c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9e7452
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9e74f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9e7542
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9e7548
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9ffa35
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009ff6f5

Function at 0xa0482f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a046ae

Function at 0xa09de0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x53a352ad
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x5161567f
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404c42
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404d17
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x404d17
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x404d17
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x404c9d
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x404d17
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404ce2
test dl, dl
je 0x404cde
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404ce2
add ecx, 2
add eax, 2
test dl, dl
jne 0x404cc2
xor eax, eax
jmp 0x404ce7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404cf9
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x404d04
inc esi
cmp esi, ebp
jae 0x404d17
mov edx, dword [esp + 0x10]
jmp 0x404cb8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x404f7b
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x404f86
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x404f9a
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x404f9e
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x404fd7
cmp dword [edi + ecx], 0x4550
jne 0x404fd7
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x404fd7
test byte [edi + ecx + 0x16], 2
je 0x404fd7
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x404fdc
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x405018
xor eax, eax
jmp 0x404ffb
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x405021
inc edx
movzx eax, dx
cmp eax, edi
jl 0x404ffb
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x405027
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x40505f
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x40506d
add edx, 0x20
cmp eax, edx
jne 0x40507e
test bx, bx
je 0x4050b3
add esi, 2
add edi, 2
jmp 0x40504f
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x40508c
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40509a
add edx, 0x20
sub ecx, edx
je 0x4050b3
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x405048
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4051a5
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4051a5
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x4051a5
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x40512b
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x4051a5
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405170
test dl, dl
je 0x40516c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405170
add ecx, 2
add eax, 2
test dl, dl
jne 0x405150
xor eax, eax
jmp 0x405175
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405187
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x405192
inc esi
cmp esi, ebp
jae 0x4051a5
mov edx, dword [esp + 0x10]
jmp 0x405146
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x4051c1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x4052e9
xor eax, eax
mov word [esp + 0x54], ax
mov byte [esp + 0x38], al
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x65006b
mov dword [esp + 0x44], 0x6e0072
mov dword [esp + 0x48], 0x6c0065
mov dword [esp + 0x4c], 0x320033
mov dword [esp + 0x50], 0x64002e
mov dword [esp + 0x54], 0x6c006c
mov dword [esp + 0x2c], 0x4d746547
mov dword [esp + 0x30], 0x6c75646f
mov dword [esp + 0x34], 0x6e614865
mov dword [esp + 0x38], 0x41656c64
mov dword [esp + 0x14], 0x65657246
mov dword [esp + 0x18], 0x7262694c
mov dword [esp + 0x1c], 0x797261
mov dword [esp + 0x20], 0x74726956
mov dword [esp + 0x24], 0x466c6175
mov dword [esp + 0x28], 0x656572
call fcn.00405423
add esp, 4
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004052f5
mov ebp, eax
test ebp, ebp
je 0x4052e9
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004052f5
mov edi, eax
test edi, edi
je 0x4052e9
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.004052f5
mov ebx, eax
test ebx, ebx
je 0x4052e9
mov ecx, dword [esi + 0x3c]
mov eax, 0x2000
test word [ecx + esi + 0x16], ax
je 0x4052c5
mov eax, dword [ecx + esi + 0x28]
test eax, eax
je 0x4052c5
push 0
push 0
push esi
add eax, esi
call eax
push edi
push ebp
push esi
call fcn.004053d6
add esp, 0xc
push 0x8000
push 0
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4

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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4053ca
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4053ca
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x4053ca
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x405350
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x4053ca
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405395
test dl, dl
je 0x405391
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405395
add ecx, 2
add eax, 2
test dl, dl
jne 0x405375
xor eax, eax
jmp 0x40539a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4053ac
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x4053b7
inc esi
cmp esi, ebp
jae 0x4053ca
mov edx, dword [esp + 0x10]
jmp 0x40536b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x405423
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x40545b
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x405469
add edx, 0x20
cmp eax, edx
jne 0x40547a
test bx, bx
je 0x4054af
add esi, 2
add edi, 2
jmp 0x40544b
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x405488
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x405496
add edx, 0x20
sub ecx, edx
je 0x4054af
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x405444
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret