joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475f40
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2064], eax
push esi
mov esi, dword [esp + 0x2070]
lea eax, [esp + 0x1004]
push 0x832
push eax
push esi
call fcn.00475960
test al, al
je 0x475fc1
lea eax, [esp + 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x476013
push 0x800
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.004858d0
test al, al
je 0x475fc1
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x476013
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x476013
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004858d0
test al, al
je 0x475ff9
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x476013
xor al, al
pop esi
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00507712
add esp, 0x2068
ret 4
mov ecx, dword [esp + 0x2068]
mov al, 1
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x2068
ret 4
Function at 0x476030
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3090]
mov eax, 0x3090
call fcn.00507730
push 0xffffffffffffffff
push 0x53b410
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x308c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x3098]
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
call fcn.00473520
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push ebx
call fcn.00473c40
test al, al
je 0x47616c
lea ecx, [ebp]
call fcn.00473af0
push 0x10000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.004051c0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x2c]
push 0x10000
push 0
push ebx
call fcn.00520500
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x476123
jg 0x476100
cmp dword [ebp - 0x14], esi
jbe 0x476123
lea ebx, [ebx]
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.004743f0
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x476100
jg 0x476123
cmp esi, dword [ebp - 0x14]
jb 0x476100
lea ecx, [ebp]
call fcn.00473b80
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.00474110
lea ecx, [ebp]
call fcn.00474350
lea ecx, [ebp]
call fcn.00473690
mov byte [ebp - 4], 0
test ebx, ebx
je 0x476169
cmp byte [ebp - 0x1c], 0
je 0x476160
push dword [ebp - 0x24]
push ebx
call fcn.0049b220
push ebx
call fcn.00524aa2
add esp, 4
mov ebx, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1028]
push eax
push ebx
call fcn.00475960
test al, al
je 0x4761ca
lea eax, [ebp + 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x47620a
push 0x800
lea eax, [ebp + 0x208c]
push eax
lea eax, [ebp + 0x1028]
push eax
call fcn.004858d0
test al, al
je 0x4761ca
lea eax, [ebp + 0x208c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x47620a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x47620a
push 0x800
lea eax, [ebp + 0x208c]
push eax
push ebx
call fcn.004858d0
test al, al
je 0x476206
lea eax, [ebp + 0x208c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x47620a
xor bl, bl
jmp 0x47620c
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00473560
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308c]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x3090]
pop ebp
ret 4
Function at 0x476b80
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x476c2f
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x476c54
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.004858d0
test al, al
je 0x476bfd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x476c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x476c22
cmp eax, 3
je 0x476c22
cmp eax, 0x12
je 0x476c22
mov eax, 1
mov byte [esi + 0x1044], al
jmp 0x476d22
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x476d22
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x476d24
push 0x800
push ebx
push esi
call fcn.0049dc20
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00486320
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x102c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1034], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1038], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x103c], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x1004], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.0049f720
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.0049f720
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.0049f720
test dword [esp + 0xc], 0x400
je 0x476d1a
cmp dword [esp + 0x30], 0xa0000003
jne 0x476d1a
mov eax, 1
jmp 0x476d1c
xor eax, eax
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x1254
ret 0xc
Function at 0x47af60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
add ebp, eax
cmp eax, ebp
je 0x47afd1
push esi
push edi
mov edi, dword [ebx + 0xd0]
add edi, eax
movzx ecx, byte [edi]
imul edx, ecx, 0x2773
movzx ecx, byte [edi + 1]
xor edx, ecx
movzx ecx, byte [edi + 2]
imul edx, edx, 0x2773
xor edx, ecx
movzx ecx, byte [edi + 3]
imul edx, edx, 0x2773
xor edx, ecx
movzx ecx, byte [edi + 4]
imul esi, edx, 0x2773
xor esi, ecx
mov ecx, dword [ebx + 0xe0]
and esi, dword [ebx + 0xec]
mov edx, dword [ecx + esi*4]
mov dword [ecx + esi*4], eax
mov ecx, dword [ebx + 0xe4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, ebp
jne 0x47af74
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x47b000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], edi
mov eax, dword [edi + 0x6148]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x47b0d7
push ebx
push ebp
push esi
lea ecx, [ecx]
mov edx, dword [edi + 0xd0]
add edx, eax
movzx ecx, byte [edx]
movzx ebp, byte [edx + 2]
movzx ebx, byte [edx + 3]
imul esi, ecx, 0x2773
movzx ecx, byte [edx + 1]
xor esi, ecx
imul ecx, esi, 0x2773
and esi, 0x3fff
add esi, dword [edi + 0xd4]
xor ebp, ecx
mov ecx, ebp
and ebp, 0x3ffff
imul ecx, ecx, 0x2773
xor ebx, ecx
mov cl, byte [esi]
mov byte [esp + 0x13], cl
and ebx, 0x3ffff
mov ecx, dword [edi + 0xd8]
movzx edi, word [ecx + ebp*2]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xdc]
mov edx, dword [ecx + ebx*4]
mov byte [esi], al
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xd8]
mov word [ecx + ebp*2], ax
mov ecx, dword [esi + 0xdc]
mov dword [ecx + ebx*4], eax
inc eax
mov ebx, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
mov word [ebx + 1], di
mov edi, esi
mov dword [ebx + 3], edx
mov byte [ebx], cl
add ebx, 7
mov dword [esp + 0x18], ebx
cmp eax, dword [esp + 0x1c]
jne 0x47b030
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret 8
Function at 0x47c6b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x104]
test eax, eax
je 0x47c7a5
cmp eax, 1
je 0x47c7a5
push 0x4000
push 0
push dword [esi + 0xd4]
call fcn.00520500
add esp, 0xc
cmp byte [esi + 0x6131], 0
jne 0x47c7a7
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0x612c]
shr eax, 2
cmp ecx, eax
ja 0x47c7a7
push ebx
xor ebx, ebx
test ecx, ecx
je 0x47c7a4
push edi
nop
mov edx, dword [esi + 0xd0]
movzx eax, byte [edx + ebx]
imul ecx, eax, 0x2773
movzx eax, byte [edx + ebx + 1]
xor ecx, eax
movzx eax, byte [edx + ebx + 2]
imul edi, ecx, 0x2773
xor edx, edx
xor edi, eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
and ecx, 0x3ffff
mov word [eax + ecx*2], dx
mov eax, dword [esi + 0xd0]
movzx edx, byte [eax + ebx + 3]
imul eax, edi, 0x2773
xor edx, eax
mov eax, dword [esi + 0xdc]
mov ecx, edx
and ecx, 0x3ffff
mov dword [eax + ecx*4], 0
mov eax, dword [esi + 0xd0]
movzx ecx, byte [eax + ebx + 4]
inc ebx
imul eax, edx, 0x2773
xor ecx, eax
mov eax, dword [esi + 0xe0]
and ecx, dword [esi + 0xec]
mov dword [eax + ecx*4], 0
cmp ebx, dword [esi + 0x612c]
jb 0x47c710
pop edi
pop ebx
pop esi
ret
push 0x80000
push 0
push dword [esi + 0xd8]
call fcn.00520500
push 0x100000
push 0
push dword [esi + 0xdc]
call fcn.00520500
mov eax, dword [esi + 0xe8]
shl eax, 2
push eax
push 0
push dword [esi + 0xe0]
call fcn.00520500
add esp, 0x24
pop esi
ret
Function at 0x4811a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb8
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
add ecx, 0xffffff88
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x44], 0
push edi
lea edi, [esp + 0x40]
mov dword [esp + 0x44], 0
add eax, 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
lea ebx, [ebx]
cmp ebx, ecx
jge 0x48132c
lea edx, [esp + 0x4c]
mov ebp, dword [edi]
sub edx, 2
mov edi, dword [esp + 0x28]
mov ecx, edx
lea esi, [esp + 0x4c]
neg ecx
sub esi, edx
add esi, 0xfffffffd
add edi, ebx
lea eax, [edx + 3]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x4d]
add eax, ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
sub eax, edx
dec eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4e]
add eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, ebx
mov dword [esp + 0x34], eax
dec ecx
mov eax, 0x88888889
mul ecx
mov ecx, edx
shr ecx, 0xa
inc ecx
mov dword [esp + 0x14], ecx
xor eax, eax
jmp 0x481280
mov dl, byte [edi + eax - 1]
movzx ecx, byte [edi + eax - 2]
sub cl, dl
mov byte [esp + eax + 0x4d], dl
mov byte [esp + eax + 0x4c], cl
movzx ecx, byte [edi + eax]
sub cl, dl
mov byte [esp + eax + 0x4e], cl
add eax, 3
cmp eax, 0x78
jl 0x481280
mov ebx, dword [esp + 0x2c]
mov edi, 0x27
mov edi, edi
mov eax, dword [esp + 0x30]
lea ebx, [ebx + 3]
movzx eax, byte [ebx + eax - 3]
sub al, byte [esi + ebx - 3]
movsx eax, al
cdq
mov esi, eax
mov eax, dword [esp + 0x34]
xor esi, edx
sub esi, edx
mov cl, byte [ebx + eax - 3]
mov eax, dword [esp + 0x38]
sub cl, byte [eax + ebx - 3]
movsx eax, cl
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x3c]
movzx eax, byte [ebx + eax - 3]
sub al, byte [ebx - 3]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add ebp, eax
add ebp, esi
mov esi, dword [esp + 0x18]
sub edi, 1
jne 0x4812b0
mov edi, dword [esp + 0x10]
add edi, 0x780
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
jne 0x481274
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [edi], ebp
inc ebx
add edi, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
cmp ebx, 2
jle 0x481200
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
cmp eax, edx
ja 0x481372
cmp eax, ecx
ja 0x481372
xor eax, eax
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00507712
add esp, 0xb8
ret 8
cmp ecx, edx
mov ecx, dword [esp + 0xb4]
sbb eax, eax
xor ecx, esp
neg eax
inc eax
call fcn.00507712
add esp, 0xb8
ret 8
Function at 0x485400
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 8], eax
call fcn.004af8b0
test al, al
jne 0x485428
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00507712
add esp, 0xc
ret 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x1c]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4854a1
push edi
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4854a1
cmp word [edi], 0
je 0x4854a1
mov esi, dword [esp + 0x20]
push esi
push edi
call fcn.00484610
push esi
push 0x5445d4
push edi
call fcn.0049dbe0
push edi
call fcn.004750c0
mov bl, al
test bl, bl
jne 0x4854a1
cmp byte [esp + 0x24], al
je 0x4854a1
push 0
push 0
push edi
call fcn.00475640
test eax, eax
sete bl
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov ecx, dword [esp + 0x14]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0xc
ret 0xc

Function at 0x4856f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [esp + 0x14]
push edi
mov word [esi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x550728
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x485749
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edi
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.AppData
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x485759
push esi
call fcn.004750c0
test al, al
jne 0x485795
push dword [esp + 0x20]
push edi
push esi
call fcn.00485400
test al, al
jne 0x485795
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00486220
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x485790
cmp word [esi + 2], 0x3a
jne 0x48578d
lea ecx, [esi + 8]
cmp eax, ecx
jb 0x485790
sub eax, 2
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x4858d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push esi
mov esi, dword [esp + 0x1010]
movzx eax, word [esi]
test ax, ax
jne 0x485907
xor al, al
jmp 0x485ade
push edi
push eax
call fcn.0049d9f0
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x485913
movzx eax, word [esi]
sub edi, ecx
sar edi, 1
push ebp
cmp eax, 0x5c
jne 0x485934
cmp word [esi + 2], ax
lea ebp, [esi + 2]
je 0x48596a
push eax
call fcn.0049d9f0
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x485a01
cmp word [esi + 2], 0x3a
lea ebp, [esi + 2]
jne 0x485a01
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x48596a
cmp eax, 0x2f
jne 0x485a01
movzx eax, word [esi]
push eax
call fcn.0049d9f0
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4859b3
cmp word [ebp], 0x3a
jne 0x4859b3
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x485ada
push edi
push 0x542018
push ebx
call fcn.0049dc20
push edi
push esi
push ebx
call fcn.0049dbe0
mov al, 1
jmp 0x485adc
cmp word [esi], 0x5c
jne 0x485ada
cmp word [ebp], 0x5c
jne 0x485ada
mov esi, dword [esp + 0x1020]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x485ada
push esi
push 0x542018
push ebx
call fcn.0049dc20
push esi
push 0x5507f0
push ebx
call fcn.0049dbe0
push esi
push ebp
push ebx
call fcn.0049dbe0
mov al, 1
jmp 0x485adc
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x485ada
cmp eax, 0x7ff
ja 0x485ada
movzx eax, word [esi]
cmp eax, 0x5c
je 0x485aa1
cmp eax, 0x2f
je 0x485aa1
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.00484610
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485a47
sub ecx, edx
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp edi, eax
jbe 0x485ada
push edi
push 0x542018
push ebx
call fcn.0049dc20
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0049dbe0
cmp word [esi], 0x2e
jne 0x485a95
movzx eax, word [esi + 2]
push eax
call fcn.00485c70
test al, al
je 0x485a95
add esi, 4
push edi
push esi
push ebx
call fcn.0049dbe0
mov al, 1
jmp 0x485adc
lea eax, [edi + 6]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x485ada
push edi
push 0x542018
push ebx
call fcn.0049dc20
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push edi
push eax
push ebx
call fcn.0049dbe0
push edi
push esi
push ebx
call fcn.0049dbe0
mov al, 1
jmp 0x485adc
xor al, al
pop ebp
pop edi
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret 0xc
Function at 0x489d90
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
push esi
mov esi, dword [esp + 0xc]
xor cl, cl
cmp esi, eax
jbe 0x489dac
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x489da4
cmp cl, byte [edx]
jne 0x489ded
push esi
push edx
push 0xffffffffffffffff
call fcn.00469970
xor edx, edx
not eax
xor ecx, ecx
nop
cmp dword [ecx + 0x57304c], eax
jne 0x489dd0
cmp dword [ecx + 0x573048], esi
je 0x489ddd
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x489dc0
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x573050]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc

Function at 0x48bb50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bd8a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5755c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov edx, 0x1c
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 0
mov eax, dword [eax + 0x84f0]
mov dword [esi + 0x40], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00507864
xor edx, edx
mov dword [esi + 0x44], eax
add esp, 4
cmp dword [esi + 0x40], edx
jbe 0x48bc1b
xor ecx, ecx
lea esp, [esp]
mov eax, dword [esi + 0x44]
lea ecx, [ecx + 0x1c]
inc edx
mov dword [ecx + eax - 0x1c], esi
mov eax, dword [esi + 0x44]
mov dword [eax + ecx - 0x18], 0
cmp edx, dword [esi + 0x40]
jb 0x48bc00
cmp byte [ebp + 0xc], 0
je 0x48bc2a
mov dword [esi + 0x3c], 0
jmp 0x48bc74
push 0x338
call fcn.005074d2
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x48bc4e
push dword [esi + 0x40]
mov ecx, eax
call fcn.0049ea10
jmp 0x48bc50
xor eax, eax
mov byte [ebp - 4], 0
push 0x4000010
mov dword [esi + 0x3c], eax
call fcn.00507864
mov ecx, eax
mov dword [esi + 0x1c], eax
not ecx
add esp, 4
inc ecx
and ecx, 0xf
add ecx, eax
mov dword [esi + 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x496480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
push 5
push eax
push dword [0x5b76d8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x5b76d8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x5b76d8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.00524aa7
mov esi, eax
add esp, 4
test esi, esi
jne 0x4964f4
mov dword [ebp], eax
jmp 0x496626
push edi
push ebx
push esi
call fcn.0051ff80
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x20]
movzx ebx, word [esi + 2]
add esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.00495f80
test al, al
je 0x496577
mov edi, esi
cmp ebx, 0xffff
jne 0x49653b
lea edi, [esi + 8]
movsx ecx, word [edi + 0xe]
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x10]
imul ecx
mov eax, 0x51eb851f
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov word [edi + 0xe], cx
movsx ecx, word [edi + 0x10]
imul ecx, dword [esp + 0x14]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [edi + 0x10], ax
xor edx, edx
cmp ebx, 0xffff
mov ebx, 0xffff
sete dl
lea edx, [edx*8 + 0x12]
add edx, esi
cmp word [edx], bx
jne 0x49659c
mov ecx, 2
jmp 0x4965b1
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4965a1
sub ecx, edi
sar ecx, 1
inc ecx
cmp word [edx + ecx*2], bx
lea edi, [edx + ecx*2]
jne 0x4965c1
mov ebx, 2
jmp 0x4965d8
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4965c6
sub edx, ecx
sar edx, 1
lea ebx, [edx + 1]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0x200
push eax
push str.CAPTION
push dword [esp + 0x24]
call fcn.00496030
test al, al
lea eax, [esp + 0x20]
jne 0x4965ff
lea eax, [edi + ebx*2]
push eax
call fcn.0052551d
add esp, 4
mov dword [ebp], eax
cmp dword [esp + 0x10], 0x64
jne 0x496624
cmp dword [esp + 0x14], 0x64
jne 0x496624
push esi
call fcn.00524aa2
add esp, 4
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x414
ret 8