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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44ae10
mov eax, dword [ebp - 0x10]
jmp 0x44aebc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44ae5d
cmp dword [ebp - 0x10], 0xea
jne 0x44ae4c
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x44aebc
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp + 0x18], 0
je 0x44aeaf
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
je 0x44ae9b
cmp dword [ebp - 0x14], 3
je 0x44ae85
cmp dword [ebp - 0x14], 4
je 0x44ae90
jmp 0x44aea6
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x44aeaf
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 1
jmp 0x44aeaf
mov edx, dword [ebp + 0x14]
mov dword [edx], 2
jmp 0x44aeaf
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x44af10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x44af26
mov eax, 0x57
jmp 0x44afa9
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44af57
mov eax, dword [ebp - 0x10]
jmp 0x44afa9
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44af9c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x44afa9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x44afb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x44afe7
mov eax, dword [ebp - 0xc]
jmp 0x44b066
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x44b001
cmp dword [ebp - 0x14], 1
je 0x44b00a
cmp dword [ebp - 0x14], 2
je 0x44b013
jmp 0x44b01c
mov dword [ebp - 0x10], 3
jmp 0x44b023
mov dword [ebp - 0x10], 4
jmp 0x44b023
mov dword [ebp - 0x10], 1
jmp 0x44b023
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x44b059
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x44b066
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x414bb0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x414c43
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x1c
push 0x436674
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0x1ec
push edx
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 4]
test eax, eax
je 0x414c33
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x414c43
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x414c50
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x414cde
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x1c
push 0x436674
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [ebp - 4]
test eax, eax
je 0x414cce
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x414cde
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x414cf0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
push esi
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x13]
lea edi, [ebp - 0x12]
lea edx, [ebp - 0x11]
sub ecx, eax
sub esi, eax
sub edi, eax
sub edx, eax
mov dword [ebp - 0x18], 4
jmp 0x414d40
movzx ebx, byte [ecx + eax]
movzx ebx, byte [ebx + str.cw]
mov byte [eax], bl
movzx ebx, byte [esi + eax]
movzx ebx, byte [ebx + str.cw]
mov byte [eax + 1], bl
movzx ebx, byte [edi + eax]
movzx ebx, byte [ebx + str.cw]
mov byte [eax + 2], bl
movzx ebx, byte [edx + eax]
movzx ebx, byte [ebx + str.cw]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 0x18]
jne 0x414d40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret

Function at 0x4150f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
push esi
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x13]
lea edi, [ebp - 0x12]
lea edx, [ebp - 0x11]
sub ecx, eax
sub esi, eax
sub edi, eax
sub edx, eax
mov dword [ebp - 0x18], 4
jmp 0x415140
movzx ebx, byte [ecx + eax]
movzx ebx, byte [ebx + 0x4467f0]
mov byte [eax], bl
movzx ebx, byte [esi + eax]
movzx ebx, byte [ebx + 0x4467f0]
mov byte [eax + 1], bl
movzx ebx, byte [edi + eax]
movzx ebx, byte [ebx + 0x4467f0]
mov byte [eax + 2], bl
movzx ebx, byte [edx + eax]
movzx ebx, byte [ebx + 0x4467f0]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 0x18]
jne 0x415140
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
Function at 0x416110
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [0x448370]
push esi
push edi
mov edi, dword [0x448334]
test edi, edi
je 0x416165
mov esi, dword [0x448368]
lea ecx, [esi + 3]
lea eax, [ebx + 1]
sub esi, ebx
mov dword [ebp - 0xc], edi
lea ebx, [ebx]
movzx edx, byte [ecx - 3]
mov byte [eax - 1], dl
movzx edx, byte [esi + eax]
mov byte [eax], dl
movzx edx, byte [ecx - 1]
mov byte [eax + 1], dl
movzx edx, byte [ecx]
mov byte [eax + 2], dl
add ecx, 4
add eax, 4
dec dword [ebp - 0xc]
jne 0x416140
mov eax, dword [0x448338]
inc eax
imul eax, dword [0x448330]
mov esi, edi
mov dword [ebp - 0x14], eax
cmp edi, eax
jae 0x416257
mov dword [ebp - 0x10], ebx
xor edx, edx
mov eax, esi
div edi
mov ecx, dword [ebx + esi*4 - 4]
mov edx, eax
imul edx, edi
cmp edx, esi
jne 0x4161f0
mov edx, ecx
shr edx, 8
mov byte [ebp - 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [ebp - 3], dl
mov edx, ecx
shr edx, 0x18
mov byte [ebp - 2], dl
movzx edx, byte [ebp - 4]
movzx edx, byte [edx + str.cw]
mov byte [ebp - 8], dl
movzx edx, byte [ebp - 3]
movzx edx, byte [edx + str.cw]
mov byte [ebp - 7], dl
movzx edx, byte [ebp - 2]
movzx edx, byte [edx + str.cw]
movzx ecx, cl
mov byte [ebp - 6], dl
movzx edx, byte [ecx + str.cw]
movzx ecx, byte [eax + 0x4466e0]
mov byte [ebp - 5], dl
xor ecx, dword [ebp - 8]
jmp 0x41623d
cmp edi, 6
jbe 0x41623d
mov eax, esi
sub eax, edx
cmp eax, 4
jne 0x41623d
movzx edx, cl
movzx eax, byte [edx + str.cw]
mov edx, ecx
mov byte [ebp - 0xc], al
shr edx, 8
movzx eax, dl
mov dl, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], dl
movzx edx, al
movzx eax, byte [edx + str.cw]
shr ecx, 0x18
mov cl, byte [ecx + str.cw]
mov byte [ebp - 0xa], al
mov byte [ebp - 9], cl
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
xor edx, ecx
mov dword [ebx + esi*4], edx
inc esi
add eax, 4
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp - 0x14]
jb 0x416182
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4170f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
or edi, 0xffffffff
lea eax, [edx + 1]
mov ecx, 0x200
sub edi, edx
nop
movzx ebx, byte [eax - 1]
lea edx, [edi + eax]
shl edx, 8
xor edx, ebx
movzx ebx, byte [eax]
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax - 1], dl
lea edx, [ecx - 0x100]
xor edx, ebx
movzx ebx, byte [eax + 2]
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax], dl
movzx edx, byte [eax + 1]
xor edx, ecx
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax + 1], dl
lea edx, [ecx + 0x100]
xor edx, ebx
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax + 2], dl
add eax, 4
lea edx, [edi + eax]
add ecx, 0x400
cmp edx, 0x10
jb 0x417100
pop edi
pop ebx
ret

Function at 0x417170
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
inc eax
mov ecx, 4
jmp 0x417180
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x4366f0]
mov byte [eax - 1], dl
movzx edx, byte [eax]
movzx edx, byte [edx + 0x4366f0]
mov byte [eax], dl
movzx edx, byte [eax + 1]
movzx edx, byte [edx + 0x4366f0]
mov byte [eax + 1], dl
movzx edx, byte [eax + 2]
movzx edx, byte [edx + 0x4366f0]
mov byte [eax + 2], dl
add eax, 4
dec ecx
jne 0x417180
ret

Function at 0x417360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
and ecx, 0xf
push esi
shr ebx, 4
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x1c], esi
cmp ebx, eax
jbe 0x4173f3
lea esi, [edx + 1]
mov dword [ebp - 0x18], ebx
jmp 0x4173b0
lea eax, [edi + 1]
mov ecx, 4
jmp 0x4173c0
movzx edx, byte [esi - 1]
xor byte [eax - 1], dl
movzx edx, byte [esi]
xor byte [eax], dl
movzx edx, byte [esi + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + 2]
xor byte [eax + 2], dl
add esi, 4
add eax, 4
dec ecx
jne 0x4173c0
call fcn.004171c0
dec dword [ebp - 0x18]
jne 0x4173b0
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
shl ebx, 4
push esi
add ebx, edx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0041bc90
mov byte [ebp + esi - 0x14], 0x80
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x13]
lea edx, [ebp - 0x12]
lea ebx, [ebp - 0x11]
add esp, 0xc
sub ecx, edi
sub esi, edi
sub edx, edi
sub ebx, edi
mov eax, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 4
jmp 0x417430
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [esi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 2], bl
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + eax]
xor byte [eax + 3], bl
add eax, 4
dec dword [ebp - 0x18]
jne 0x417430
call fcn.004171c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
Function at 0x417470
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x417503
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4174f3
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x417503
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x417510
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push 0xf0000000
push 0x18
push eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0x24], 0x800c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4175fc
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x1c
push 0x4466c4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x8009
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 0x24]
push eax
push 5
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4175de
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4175ec
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4175fc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4801c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4810f0], eax
push 0x27
push 0x47fc28
push 0x547
mov esi, 0x47fc50
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x4810f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x405917
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405938
jl 0x40592f
test edi, edi
jne 0x405938
xor eax, eax
xor edx, edx
jmp 0x4059f9
cmp dword [ebx + 0x38], 0
je 0x40594d
push eax
push edi
push dword [ebp + 8]
call fcn.004059ff
jmp 0x4059f9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405994
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405994
cmp eax, edi
jb 0x40596e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407060
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40599a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4059ee
mov ecx, ebx
call fcn.00405166
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4059d9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ed86
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4059ee
jmp 0x4059ac
test edx, edx
je 0x4059ee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ed86
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406ea6
Capabilities:
Parse pe header

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

Function at 0x414ca7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4261f0
push 0x4261e8
push str.FlsAlloc
push 0x1e
call fcn.00414b71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414cdb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
jmp 0x414ce1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414d25
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426200
push 0x4261f8
push str.FlsGetValue
push 0x20
call fcn.00414b71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414d5c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417ec1

Function at 0x41844a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407010
mov eax, dword [0x4801c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004161cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41848c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4185e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004218d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419441
mov ecx, dword [esi*4 + 0x481b90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4185e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4185e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4185e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419441
add esp, 0x14
test edx, edx
jl 0x4185e1
jg 0x418557
test eax, eax
jb 0x4185e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4185e1
jl 0x418571
cmp dword [ebp - 0x1008], eax
ja 0x4185e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41858f
test ebx, ebx
je 0x4185c8
cmp ecx, edi
jae 0x4185c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4185a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4185b5
cmp byte [ecx + 1], 0xa
jne 0x4185b5
inc ecx
jmp 0x4185b5
movzx eax, al
movsx eax, byte [eax + 0x480498]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41858f
cmp edx, ebx
jne 0x41858f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4185e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406114
leave
ret