joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00404b13

Function at 0x401d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d60
lea ebx, [ebx]
cmp esi, eax
jae 0x401d64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d50
cmp esi, eax
jb 0x401d6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4035a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4035e9
call fcn.00406d41
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4035e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40362c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x403615
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x403615
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x403629
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40cfb1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40cff8
call fcn.00406d41
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d014
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040cb2b
mov esi, eax
test edi, edi
je 0x40d012
test ebx, ebx
je 0x40d012
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40fc5f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x433294
call fcn.00421262
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fc84
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40fcca
lea ecx, [ebp - 0x10]
call fcn.004020f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407599
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020d0
mov eax, esi
call fcn.0042133a
ret 8
Function at 0x4205f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4436f0]
jne 0x4205fb
repz ret
jmp fcn.00424f0f

Function at 0x42da70
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042518a
and dword [ebp - 4], 0
cmp dword [0x44770c], 0
mov ebx, eax
jne 0x42db21
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42dbd2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43a124
push edi
call esi
test eax, eax
je 0x42dbd2
push eax
call fcn.00425118
mov dword [esp], 0x43a114
push edi
mov dword [0x44770c], eax
call esi
push eax
call fcn.00425118
mov dword [esp], 0x43a100
push edi
mov dword [0x447710], eax
call esi
push eax
call fcn.00425118
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x447714], eax
call esi
push eax
call fcn.00425118
pop ecx
mov dword [0x44771c], eax
test eax, eax
je 0x42db21
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425118
pop ecx
mov dword [0x447718], eax
mov eax, dword [0x447718]
cmp eax, ebx
je 0x42db79
cmp dword [0x44771c], ebx
je 0x42db79
push eax
call fcn.00425193
push dword [0x44771c]
mov esi, eax
call fcn.00425193
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42db79
test edi, edi
je 0x42db79
call esi
test eax, eax
je 0x42db70
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42db70
test byte [ebp - 0xc], 1
jne 0x42db79
or dword [ebp + 0x10], 0x200000
jmp 0x42dbb2
mov eax, dword [0x447710]
cmp eax, ebx
je 0x42dbb2
push eax
call fcn.00425193
pop ecx
test eax, eax
je 0x42dbb2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42dbb2
mov eax, dword [0x447714]
cmp eax, ebx
je 0x42dbb2
push eax
call fcn.00425193
pop ecx
test eax, eax
je 0x42dbb2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44770c]
call fcn.00425193
pop ecx
test eax, eax
je 0x42dbd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42dbd4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41dc34
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040ad98
add esp, 0xc
test eax, eax
je 0x401544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040ae6f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040b08c
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040ae6f
mov edx, dword [esp + 0x38]
lea ebp, [esi + edx]
push ebp
call fcn.0040b149
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push esi
push edi
call fcn.0040b469
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b4f7
mov eax, dword [esp + 0x50]
lea ebx, [edi + esi]
call fcn.00403a30
mov edx, dword [esp + 0x4c]
push 0x41dc3c
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040ad98
add esp, 0x40
test eax, eax
je 0x4015c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push edi
call fcn.0040b68d
mov edx, dword [esp + 0x20]
push edx
call fcn.0040b4f7
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0040b727
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ff88]
fadd qword [0x41ffa0]
call fcn.00417740
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4030a0
call fcn.0040b727
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ff88]
fmul qword [0x41ff98]
fadd qword [0x41ff90]
call fcn.00417740
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403088
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403079
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403070
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403037
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x405420
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.004169c0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dc34
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040ad98
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x40548b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040ae6f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b08c
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040ae6f
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040b469
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405536
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405280
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040b469
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405501
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405330
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b4f7
add esp, 8
cmp ebp, dword [esp + 0x10]
pop esi
jb 0x405464
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040ab4e
add esp, 0x1068
ret

Function at 0x405d80
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.004169c0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [0x41c1e8]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x405dd8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x405e1d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x405e1c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040b68d
add edi, esi
add esp, 0x10
cmp edi, dword [esp + 0xc]
mov dword [0x4247a4], edi
jb 0x405de0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040b4f7
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
add eax, 1
call fcn.0040ab4e
add esp, 0x100c
ret
Function at 0x407e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x407e1f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x407f07
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x407e30
pop ebp
test edi, edi
je 0x407f2c
jmp 0x407f10
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41f910]
add ecx, 1
sub edi, 1
jne 0x407f10
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x407f40
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41f910]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41f910]
mov dword [edx + 8], ecx
ret

Function at 0x407f90
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x41f910]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41f910]
pop ebx
mov dword [esi + 8], ecx
ret
Function at 0x40a670
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0x12]
push esi
push eax
mov word [esp + 0x18], si
call fcn.0040ef00
add esp, 0xc
cmp edi, esi
je 0x40a756
mov eax, 0x41dd90
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40a6b3
sub eax, edx
sar eax, 1
je 0x40a6dd
push 0x41dc3c
lea ecx, [esp + 8]
push 0x41dd90
push ecx
call fcn.0040ad98
add esp, 0xc
jmp 0x40a718
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.0041c078]
push 0x41ff6c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040ab8d
push 0x41dc3c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040ad98
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40a73b
push eax
push 1
push 0x200
push edi
call fcn.0040b68d
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b4f7
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret

Function at 0x40a770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.0040ef00
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40a873
mov eax, 0x41dc78
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a7b3
sub eax, edx
sar eax, 1
je 0x40a873
cmp dword [0x4230c0], 3
jne 0x40a7fa
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [fcn.0041c014]
push 0x41dc18
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040ab8d
add esp, 0xc
jmp 0x40a80a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.0041c078]
push 0x41dc78
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040ab8d
push 0x41dc34
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040ad98
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40a873
push eax
push 1
push 0x200
push esi
call fcn.0040b469
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b4f7
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret
Function at 0x40a890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.0040ef00
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40a95d
mov eax, 0x41ff6c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a8d3
sub eax, edx
sar eax, 1
je 0x40a95d
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.0041c078]
push 0x41ff6c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040ab8d
push 0x41dc34
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ad98
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40a95d
push eax
push 1
push 0x200
push esi
call fcn.0040b469
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b4f7
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040ab4e
add esp, 0x214
ret
Function at 0x403ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d9d6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], 0x46bb84
mov dword [esi + 0x20], 0x46bc4c
mov dword [esi + 0x30], 0x46bc54
mov dword [esi + 0x34], 0x46bc5c
mov dword [esi + 0x38], 0x46bc64
mov dword [esp + 0x14], 1
mov edi, dword [esi + 0x43c]
test edi, edi
je 0x403b1a
mov ecx, edi
call fcn.0040cbc0
push edi
call fcn.00446950
add esp, 4
cmp dword [esi + 0x438], 8
jb 0x403b32
mov eax, dword [esi + 0x424]
push eax
call fcn.00446950
add esp, 4
xor eax, eax
mov dword [esi + 0x438], 7
mov dword [esi + 0x434], 0
mov ecx, esi
mov word [esi + 0x424], ax
mov dword [esp + 0x14], 0xffffffff
call fcn.00406aa0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x406aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d69b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x45faa4
mov dword [esi + 0x20], 0x45fa9c
mov dword [esi + 0x30], 0x45fa94
mov dword [esi + 0x34], 0x45fa8c
mov dword [esi + 0x38], 0x45fa84
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.004106a9
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.004132c1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4177d5
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4177e0
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x41789b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
sub edi, 8
dec esi
jne 0x417800
pop ebx
test edi, edi
je 0x4178b4
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x461720]
inc edx
dec edi
jne 0x41789f
pop edi
not eax
pop esi
ret
Function at 0x445f40
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov bp, word [esp + 0x18]
push edi
movzx edi, word [ebx]
test esi, esi
je 0x445fcc
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x446006
mov dword [esp + 0xc], edx
mov eax, dword [esi + 4]
cmp eax, 1
ja 0x445f8c
mov ebx, 0x1f
sub ebx, eax
lea eax, [esi + 8]
call fcn.00444670
mov edx, dword [esi]
mov ecx, ebx
shl edx, cl
or eax, edx
add dword [esi + 4], ebx
mov edx, dword [esp + 0x20]
mov dword [esi], eax
dec dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shr eax, cl
mov ecx, edi
and ecx, dword [esp + 0x18]
xor ebx, ebx
and eax, 1
test cx, cx
setne bl
lea ecx, [edi + edi]
xor ax, bx
imul ax, bp
xor ax, cx
sub dword [esp + 0xc], 1
movzx edi, ax
jne 0x445f64
mov eax, dword [esp + 0x14]
mov word [eax], di
pop edi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x445ffe
mov ecx, eax
mov edx, edi
and edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
test dx, dx
setne al
lea edx, [edi + edi]
imul ax, bp
xor ax, dx
sub ecx, 1
movzx edi, ax
mov eax, dword [esp + 0x20]
jne 0x445fd6
mov word [ebx], di
pop edi
pop ebp
pop ebx
pop ecx
ret
mov word [ebx], di
pop edi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret

Function at 0x446010
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
xor eax, eax
push edi
movzx edi, word [edx]
test esi, esi
je 0x446096
test ecx, ecx
jle 0x4460b8
mov dword [esp + 0xc], ecx
push ebx
mov eax, dword [esi + 4]
cmp eax, 8
ja 0x446060
mov ebx, 0x1f
sub ebx, eax
lea eax, [esi + 8]
call fcn.00444670
mov edx, dword [esi]
mov ecx, ebx
shl edx, cl
or eax, edx
add dword [esi + 4], ebx
mov edx, dword [esp + 0x18]
mov dword [esi], eax
add dword [esi + 4], 0xfffffff8
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shr eax, cl
mov ecx, edi
shr ecx, 8
shl edi, 8
xor eax, ecx
and eax, 0xff
xor di, word [ebp + eax*2]
sub dword [esp + 0x10], 1
movzx edi, di
jne 0x446038
mov eax, dword [esp + 0x20]
pop ebx
mov word [edx], di
pop edi
pop esi
pop ebp
pop ecx
ret
test ecx, ecx
jle 0x4460b8
mov eax, ecx
lea esp, [esp]
movzx esi, di
shl edi, 8
shr esi, 8
xor di, word [ebp + esi*2]
sub eax, 1
movzx edi, di
jne 0x4460a0
mov eax, ecx
mov word [edx], di
pop edi
pop esi
pop ebp
pop ecx
ret