joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e486eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov eax, ebp
mov ecx, ebp
or eax, 0x9e67924e
and ecx, 0x61986db1
push edi
xor edi, edi
sub ecx, eax
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], 0x2ba5d405
mov dword [esp + 0x1c], 0x4d25c369
mov dword [esp + 0x20], 0x80206f79
mov dword [esp + 0x18], 0xfa755180
mov esi, 0x8378a78d
add ecx, 0x7319dbb3
jmp 0x5e486f10
add ecx, 0x2b4db69d
cmp ecx, 9
ja case.0x5e486f1f.726513303
jmp dword [ecx*4 + 0x5e48710c]
lea ecx, [edi + 0x4402304f]
mov eax, 0xbfffffff
imul ecx
sar edx, 0x1d
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffffff
add ecx, eax
jmp 0x5e486f10
mov ecx, dword [esp + 0x14]
xor ecx, 0x4387c31c
jmp 0x5e486f10
mov eax, dword [esp + 0x1c]
add eax, 0x580c1a5e
cdq
mov ecx, 0x7fffffff
idiv ecx
lea eax, [esi - 0x5aa0d3d1]
xor dword [esp + 0x14], 0x29dc2400
xor dword [esp + 0x20], 0x98a23de0
xor dword [esp + 0x18], 0xdab34138
mov edi, 0x1347b857
mov dword [esp + 0x10], 0x94ba29ee
mov ebx, 0x19bcac8c
mov dword [esp + 0x1c], edx
cdq
idiv ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov esi, edx
xor edx, edx
test ecx, ecx
sete dl
imul ecx, ecx, 0xd4b2496c
imul edx, edx, 0x2b4db695
sub ecx, edx
jmp 0x5e486f10
mov ecx, dword [esp + 0x10]
xor ecx, 0x53fbc736
jmp 0x5e486f10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
xor dword [esp + 0x14], 0x954c7a7f
mov dword [esp + 0x28], eax
xor ecx, 0xf47459dc
jmp 0x5e486f10
lea ecx, [ebx - 0x6a0d8]
jmp 0x5e486f2c
mov ecx, dword [esp + 0x1c]
add ecx, 0x2f806ba1
jmp 0x5e486f2c
lea eax, [edi + 0x1ecf1860]
cdq
mov edi, 0x7fffffff
idiv edi
lea eax, [ebx - 0x3ba10952]
mov ebx, 0x7fffffff
mov ecx, dword [esp + 0x20]
xor dword [esp + 0x10], 0xdcdd12b6
xor ecx, 0xcc301bf0
mov edi, edx
cdq
idiv ebx
lea eax, [esi - 0x5a1be226]
mov esi, 0x7fffffff
mov ebx, edx
cdq
idiv esi
mov esi, edx
jmp 0x5e486f10
mov ecx, dword [esp + 0x34]
push 0x40
push 0x2000
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
lea eax, [edi + 0x5e994864]
cdq
mov ecx, 0x7fffffff
idiv ecx
lea eax, [ebx - 0x962b8fa]
xor dword [esp + 0x10], 0xcf2eb504
mov dword [esp + 0x24], ebp
mov edi, edx
cdq
idiv ecx
lea ecx, [esi + 0x5f657cd]
mov eax, 0x40000001
mov ebx, edx
imul ecx
sar edx, 0x1d
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffffff
sub ecx, eax
xor edx, edx
test ebp, ebp
setne dl
mov dword [esp + 0x2c], ecx
lea ecx, [esi + 0x5f657d1]
mov eax, 0x40000001
mov ebp, edx
imul ecx
sar edx, 0x1d
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffffff
sub ecx, eax
xor edx, edx
imul ecx, ebp
test ebp, ebp
mov ebp, dword [esp + 0x38]
sete dl
imul edx, dword [esp + 0x2c]
add ecx, edx
jmp 0x5e486f10
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x5e4940c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.5e496909
xor ebx, ebx
cmp dword [0x5e4c1af0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5e494198
push 0x5e4baa0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x5e494278
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x5e494278
push eax
call fcn.5e49689b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5e4c1af0], eax
call esi
push eax
call fcn.5e49689b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5e4c1af4], eax
call esi
push eax
call fcn.5e49689b
mov dword [0x5e4c1af8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.5e493c65
test eax, eax
pop ecx
pop ecx
je 0x5e494166
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.5e4936f9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5e494198
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.5e49689b
cmp eax, ebx
pop ecx
mov dword [0x5e4c1b00], eax
je 0x5e494198
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.5e49689b
pop ecx
mov dword [0x5e4c1afc], eax
mov eax, dword [0x5e4c1afc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5e49421d
cmp dword [0x5e4c1b00], ecx
je 0x5e49421d
push eax
call fcn.5e496912
push dword [0x5e4c1b00]
mov esi, eax
call fcn.5e496912
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5e49421d
cmp edi, ebx
je 0x5e49421d
call esi
cmp eax, ebx
je 0x5e4941ea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5e4941ea
test byte [ebp - 0x18], 1
jne 0x5e49421d
lea eax, [ebp - 0x10]
push eax
call fcn.5e493c9c
test eax, eax
pop ecx
je 0x5e494205
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.5e4936f9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5e494214
or dword [ebp + 0x10], 0x200000
jmp 0x5e494258
or dword [ebp + 0x10], 0x40000
jmp 0x5e494258
mov eax, dword [0x5e4c1af4]
cmp eax, dword [ebp - 8]
je 0x5e494258
push eax
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e494258
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5e494258
mov eax, dword [0x5e4c1af8]
cmp eax, dword [ebp - 8]
je 0x5e494258
push eax
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e494258
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5e4c1af0]
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e494278
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5e49427a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5e4950cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e4c032c]
jne 0x5e4950d5
repz ret
jmp fcn.5e49a87b
Function at 0x5e498a84
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5e4c0c30]
je 0x5e498a9f
inc edi
cmp edi, 0x17
jb 0x5e498a90
cmp edi, 0x17
jae 0x5e498c1f
push ebp
push 3
call fcn.5e49463e
cmp eax, 1
pop ecx
je 0x5e498beb
push 3
call fcn.5e49463e
test eax, eax
pop ecx
jne 0x5e498ad3
cmp dword [0x5e4c1a88], 1
je 0x5e498beb
cmp ebx, 0xfc
je 0x5e498c1e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5e4c1cb0
push ebp
call fcn.5e494ce0
add esp, 0xc
test eax, eax
je 0x5e498b09
push esi
push esi
push esi
push esi
push esi
call fcn.5e4936f9
add esp, 0x14
push 0x104
mov esi, 0x5e4c1cc9
push esi
push 0
mov byte [0x5e4c1dcd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5e498b4d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.5e494ce0
add esp, 0xc
test eax, eax
je 0x5e498b4d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.5e4936f9
add esp, 0x14
push esi
call fcn.5e49a7f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5e498b92
push esi
call fcn.5e49a7f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5e4c1fc4
push 0x5e4ba984
sub ecx, eax
push ecx
push eax
call fcn.5e49b6d6
add esp, 0x14
test eax, eax
je 0x5e498b92
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.5e4936f9
add esp, 0x14
jmp 0x5e498b94
xor esi, esi
push 0x5e4baa24
push ebx
push ebp
call fcn.5e494d45
add esp, 0xc
test eax, eax
je 0x5e498bb4
push esi
push esi
push esi
push esi
push esi
call fcn.5e4936f9
add esp, 0x14
push dword [edi*8 + 0x5e4c0c34]
push ebx
push ebp
call fcn.5e494d45
add esp, 0xc
test eax, eax
je 0x5e498bd6
push esi
push esi
push esi
push esi
push esi
call fcn.5e4936f9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.5e49a4f4
add esp, 0xc
jmp 0x5e498c1e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5e498c1e
cmp ebp, 0xffffffff
je 0x5e498c1e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5e4c0c34]
push dword [esi]
call fcn.5e49a7f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5e49a4f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.5e496909
xor ebx, ebx
cmp dword [0x5e4c20fc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5e49a5ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5e49a6aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x5e49a6aa
push eax
call fcn.5e49689b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5e4c20fc], eax
call esi
push eax
call fcn.5e49689b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5e4c2100], eax
call esi
push eax
call fcn.5e49689b
mov dword [0x5e4c2104], eax
lea eax, [ebp - 0xc]
push eax
call fcn.5e493c65
test eax, eax
pop ecx
pop ecx
je 0x5e49a598
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.5e4936f9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5e49a5ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.5e49689b
cmp eax, ebx
pop ecx
mov dword [0x5e4c210c], eax
je 0x5e49a5ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.5e49689b
pop ecx
mov dword [0x5e4c2108], eax
mov eax, dword [0x5e4c2108]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5e49a64f
cmp dword [0x5e4c210c], ecx
je 0x5e49a64f
push eax
call fcn.5e496912
push dword [0x5e4c210c]
mov esi, eax
call fcn.5e496912
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5e49a64f
cmp edi, ebx
je 0x5e49a64f
call esi
cmp eax, ebx
je 0x5e49a61c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5e49a61c
test byte [ebp - 0x18], 1
jne 0x5e49a64f
lea eax, [ebp - 0x10]
push eax
call fcn.5e493c9c
test eax, eax
pop ecx
je 0x5e49a637
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.5e4936f9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5e49a646
or dword [ebp + 0x10], 0x200000
jmp 0x5e49a68a
or dword [ebp + 0x10], 0x40000
jmp 0x5e49a68a
mov eax, dword [0x5e4c2100]
cmp eax, dword [ebp - 8]
je 0x5e49a68a
push eax
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e49a68a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5e49a68a
mov eax, dword [0x5e4c2104]
cmp eax, dword [ebp - 8]
je 0x5e49a68a
push eax
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e49a68a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5e4c20fc]
call fcn.5e496912
cmp eax, ebx
pop ecx
je 0x5e49a6aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5e49a6ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e4b6750
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5e4b676a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5e4b687c
push ebp
jmp 0x5e4b6780
cmp ebx, 0x15b0
mov eax, ebx
jb 0x5e4b678f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5e4b683b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x5e4b67b0
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x5e4b67b0
test eax, eax
je 0x5e4b684f
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x5e4b6840
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x5e4b6780
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x4167b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ba5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x4ec6a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push esi
lea ecx, [esp + 0x18]
call fcn.0047a69e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00479edd
mov ecx, dword [esi + 0x54]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x140]
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.0047a9aa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
test byte [esi + 0x64], 4
je 0x416838
add dword [edi], 0xe
push ebx
lea ecx, [esp + 0x18]
call fcn.00479f0e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047a6f2
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret 8
Function at 0x418ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4baab3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4ec6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0047a13d
xor ecx, ecx
mov dword [esp + 0x24], ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x24], 1
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x418d6b
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0047a60b
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0047a8d2
test ebp, ebp
je 0x418d49
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0047a957
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0047a251
jmp 0x418d7d
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x4594d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x20
push esi
jg 0x459583
mov esi, 1
mov ecx, eax
shl esi, cl
cmp edx, esi
jae 0x459583
mov ecx, 0x20
sub ecx, eax
xor esi, esi
shl edx, cl
mov ecx, esi
shl ecx, 0x18
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dword [edi + esi*4], ecx
add esi, 1
cmp esi, 0x100
jl 0x4594f7
mov dword [edi + 0x400], 1
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x475578
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x4ec6a0]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 0x18
mov eax, 0x4b8fad
call int.00499e45
mov edi, dword [ebp + 0x118]
mov eax, dword [edi]
mov ecx, dword [ebp + 0x114]
add dword [eax], eax
add byte [ebp + 0x5052e855], cl
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x475631
push 0x104
lea eax, [ebp]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x47560b
and dword [ebp - 4], eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d650
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00475549
mov ecx, dword [ebp - 0x14]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00404170
test bl, bl
jne 0x47560b
or dword [ebp - 4], 0xffffffff
jmp 0x475597
cmp esi, 0x103
je 0x47561b
cmp esi, 0x3f2
jne 0x475628
push dword [edi]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.00491285
add ebp, 0x10c
leave
ret 8
Function at 0x475725
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push esi
call fcn.00475549
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47576a
push 0x104
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x475761
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00475549
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404170
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404170
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.00491285
add ebp, 0x10c
leave
ret

Function at 0x475fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x476026
call fcn.00478342
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x476026
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x476069
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x476052
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 0x476052
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x476066
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 0x47ebc6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x47ebff
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004049a0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00473cef
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x480853
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x480896
call fcn.00478342
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x480896
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4808b1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0048040a
test ebx, ebx
mov esi, eax
je 0x4808af
test edi, edi
je 0x4808af
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x484e1b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x484e49
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x484e67
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00484d85
jmp 0x484e67
mov eax, dword [esi + 0x14]
test eax, eax
je 0x484e67
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00484d85
test edi, edi
mov eax, edi
jne 0x484e51
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f0f50]
test ecx, ecx
je 0x484f2a
jmp 0x484e1a
ret 8

Function at 0x4b5736
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4ec6a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004b56cb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00499500
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4b5785
cmp dword [ebp - 0x1c], 5
jb 0x4b579d
jmp 0x4b5799
cmp dword [ebp - 0x10], 1
jne 0x4b579d
cmp dword [ebp - 0x1c], 4
ja 0x4b5799
jne 0x4b579d
cmp dword [ebp - 0x18], 0
jbe 0x4b579d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c750c
call fcn.004b55bc
test eax, eax
jge 0x4b57be
mov byte [0x4f1b64], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491285
add ebp, 0x78
leave
ret