joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406228
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40624d
mov eax, dword [0x4098b8]
cmp eax, 0xffffffff
je 0x406244
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x4098b8], 0xffffffff
jmp 0x4062c0
cmp dword [0x43a980], ebx
je 0x4062c0
cmp byte [0x43a580], bl
je 0x40628c
cmp dword [0x4098b8], 0xffffffff
jne 0x406295
push 4
push 0x40000000
push 0x43a580
call fcn.00405bf0
cmp eax, 0xffffffff
mov dword [0x4098b8], eax
je 0x4062c0
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x4098b8], 0xffffffff
je 0x4062c0
push esi
mov esi, 0x43e9c0
push 0x409a8c
push esi
call fcn.00405f3d
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f30
push eax
push esi
push dword [0x4098b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406386
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43a174], esi
push edi
jne 0x4063c0
mov ecx, 0x43a170
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40639c
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43a570
jl 0x406397
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4063f5
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43a170]
xor eax, esi
inc ecx
dec edx
jne 0x4063d8
pop edi
pop esi
not eax
ret 0xc
Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45efa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x403531
push 0x461c70
jmp 0x403674
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0x20019
push eax
push ecx
call fcn.004036a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x403673
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push edi
call ebp
test eax, eax
jne 0x40366c
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403590
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esi - 8]
shr ecx, 1
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
mov dword [esp + 0x24], 0
jge 0x4035cd
push ecx
lea ecx, [esp + 0x40]
call fcn.00401060
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push 0
push ebx
push edi
call ebp
test esi, esi
jne 0x4035e6
xor eax, eax
jmp 0x403601
mov eax, esi
lea edx, [eax + 2]
jmp 0x4035f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035f0
sub eax, edx
sar eax, 1
js 0x403662
cmp eax, dword [esi - 8]
jg 0x403662
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
push esi
call fcn.004012b0
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40364c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00409280
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00401130
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4044c0
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 0x4044d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404514
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404510
lea ebx, [ebx]
cmp esi, eax
jae 0x404514
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404500
cmp esi, eax
jb 0x40451a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4048a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0xc
push esi
push 0x20019
push eax
push ecx
call fcn.004036a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4048fa
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4048f3
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop esi
add esp, 0xc
ret

Function at 0x4061a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45c9d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x78], 0
jne 0x4062cb
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4061ea
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x406228
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401060
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test esi, esi
jne 0x40623c
xor eax, eax
jmp 0x406256
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406241
sub eax, edx
sar eax, 1
js 0x4062de
cmp eax, dword [esi - 8]
jg 0x4062de
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov word [esi + eax*2], 0
call fcn.00402eb0
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4062a0
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x4062a0
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x78], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00409280
int3
Function at 0x40b7f3
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x40b832
call fcn.0040b360
test eax, eax
je 0x40b839
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x40b520
push 0
push 0
call fcn.00442d1f
add esp, 0x18
test eax, eax
mov dword [esi + 0xa8], eax
je 0x40b832
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x40b832
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
test eax, eax
pop edi
jne 0x40b832
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x40cb00
Capabilities:
Check http status code

Disassembly:
sub esp, 8
mov dword [esp], 0
mov dword [esp + 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp], eax
jne 0x40cb4d
mov edx, dword [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0x20000013
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [esp]
je 0x40cb4d
cmp eax, 0x191
jne 0x40cb4d
mov eax, 0x2eee
add esp, 8
ret
Function at 0x40ccd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c690
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], 1
call fcn.0041e690
add esp, 8
mov ecx, dword [esi + 0x30]
push eax
push ecx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.0042fd70
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x14], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cd45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0041e690
add esp, 8
mov ecx, dword [esi + 0x4c]
push eax
push ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 3
call fcn.0042fd70
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cdb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cddb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x40cdf0
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x45c6c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esi + 0x64], eax
je 0x40cf2a
mov eax, dword [str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__.NET_CLR_1.0.3705__Autodesk_senddmp_1.0_]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0xc], eax
je 0x40cf2a
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ce79
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 0
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ceab
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 4]
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x24]
push edx
lea edi, [esi + 0x20]
push edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov byte [esp + 0x3c], 1
mov dword [esp + 0x30], 0x1000
call fcn.00430314
test eax, eax
jne 0x40cf40
mov byte [esp + 0x28], al
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cf06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov cl, byte [esi]
mov edi, dword [edi]
mov edx, dword [esi + 0xc]
push 0
neg cl
push 0
push 3
push 0x461c70
push 0x461c70
sbb ecx, ecx
and ecx, 0x16b
add ecx, 0x50
push ecx
push edi
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x14]
jne 0x40cf9c
call fcn.00403460
lea ecx, [esp + 0x18]
call fcn.00403460
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
call fcn.00403460
lea ecx, [esp + 0x18]
call fcn.00403460
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41be40
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x41be6d
mov ecx, edi
call fcn.00401bd0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x41be8b
push esi
mov ecx, edi
call fcn.00401060
mov eax, dword [edi]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [edi]
test edx, edx
jne 0x41bea0
xor eax, eax
jmp 0x41beb6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bea5
sub eax, esi
sar eax, 1
js 0x41bed2
cmp eax, dword [edx - 8]
jg 0x41bed2
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
pop edi
mov word [ecx + eax*2], bx
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00409280
int3

Function at 0x41e170
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
push esi
je 0x41e1de
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41e1de
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41e1de
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x41ea00
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ee80
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x479938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x41eb11
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x465538
push 0x14
push ebx
push 0x46beb8
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x41eaff
call fcn.0042e585
mov ecx, dword [eax + 4]
call fcn.00429c76
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x5c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
jne 0x41eaa5
jmp fcn.00409350
mov word [ebp - 0x2c], 3
mov dword [ebp - 0x24], 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [ebp - 0x3c]
push esi
lea esi, [ebp - 0x4c]
push esi
lea esi, [ebp - 0x5c]
push esi
lea esi, [ebp - 0x2c]
push esi
push eax
mov eax, dword [edx + 0x2c]
push ecx
mov byte [ebp - 4], 6
call eax
cmp eax, ebx
jge 0x41eb25
mov ecx, esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
call esi
lea edx, [ebp - 0x3c]
push edx
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea ecx, [ebp - 0x5c]
push ecx
call esi
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 1
call fcn.0041e790
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x41eb11
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
cmp eax, ebx
jl 0x41eb45
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0xa4]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x2c]
push ecx
call esi
lea edx, [ebp - 0x3c]
push edx
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea ecx, [ebp - 0x5c]
push ecx
call esi
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 1
call fcn.0041e790
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x41eb91
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f750
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x41f772
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x41f787
mov ebp, 1
test al, 2
je 0x41f78e
or ebp, 2
test al, 4
je 0x41f795
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x41f79f
or ebp, 0x10
test al, 0x20
je 0x41f7a6
or ebp, 0x20
test ecx, ecx
je 0x41f7b2
or ebp, 0x40000000
jmp 0x41f7b8
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x41f7c8
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x41f873
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x41f873
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x34]
cmp dword [esp + 0x14], edx
jbe 0x41f873
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x41f86d
cmp eax, 0x454e
je 0x41f86d
cmp eax, 0x454c
je 0x41f86d
cmp eax, 0x4550
jne 0x41f873
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x41f87d
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41f88b
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov esi, dword [esp + 0x68]
test esi, esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
je 0x41f8cb
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0041f6b0
push edi
push ebx
mov dword [esi], eax
call fcn.0041f6b0
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0041f6b0
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x41f8f8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push ebx
call fcn.0041f640
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x24]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x421060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42106b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x421167
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x421090
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4658c0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x421090
pop ebp
test edi, edi
je 0x42118c
jmp 0x421170
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4658c0]
add ecx, 1
sub edi, 1
jne 0x421170
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x4211a0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movzx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4658c0]
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 + 0x4658c0]
mov dword [edx + 8], ecx
ret