joyce8/EMBER2024-capa huggingface dataset:
Function at 0x559810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section._5464064
lea edi, [esi - 0x135000]
push edi
or ebp, 0xffffffff
jmp 0x559832
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x559839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x559828
mov eax, 1
add ebx, ebx
jne 0x55984b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55985c
jne 0x55987b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55987b
dec eax
add ebx, ebx
jne 0x559868
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x559840
add ebx, ebx
jne 0x559877
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5598cd
xor ecx, ecx
sub eax, 3
jb 0x559893
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x559902
sar eax, 1
mov ebp, eax
jmp 0x55989e
add ebx, ebx
jne 0x55989e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55986c
inc ecx
add ebx, ebx
jne 0x5598ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55986c
add ebx, ebx
jne 0x5598b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5598ae
jne 0x5598ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5598ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5598ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5598de
jmp 0x55982e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5598ec
add edi, ecx
jmp 0x55982e
pop esi
mov edi, esi
mov ecx, 0x1182
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55990a
cmp byte [edi], 0x13
jne 0x55990a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55990f
lea edi, [esi + 0x156000]
mov eax, dword [edi]
or eax, eax
je 0x559987
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16361c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x163674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55993c
mov ecx, edi
jns 0x55996b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16367c]
or eax, eax
je 0x559981
mov dword [ebx], eax
add ebx, 4
jmp 0x559959
call dword [esi + 0x163678]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5599b8
cmp al, 0xef
ja 0x5599ab
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x55998d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x55999a
mov ebp, dword [esi + 0x163680]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5599ec
sub esp, 0xffffff80
jmp 0x41f530
Function at 0x4018bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018d2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401907
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401903
cmp edi, eax
jae 0x401907
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4018f5
cmp edi, eax
jb 0x40190b
xor eax, eax
jmp 0x401914
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401d51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d030]
jne 0x401d5b
repz ret
jmp fcn.00402d1c

Function at 0x406dce
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.00403119
and dword [ebp - 4], 0
cmp dword [0x40e7d0], 0
mov ebx, eax
jne 0x406e7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406f30
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406f30
push eax
call fcn.004030a7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e7d0], eax
call esi
push eax
call fcn.004030a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e7d4], eax
call esi
push eax
call fcn.004030a7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e7d8], eax
call esi
push eax
call fcn.004030a7
pop ecx
mov dword [0x40e7e0], eax
test eax, eax
je 0x406e7f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004030a7
pop ecx
mov dword [0x40e7dc], eax
mov eax, dword [0x40e7dc]
cmp eax, ebx
je 0x406ed7
cmp dword [0x40e7e0], ebx
je 0x406ed7
push eax
call fcn.00403122
push dword [0x40e7e0]
mov esi, eax
call fcn.00403122
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406ed7
test edi, edi
je 0x406ed7
call esi
test eax, eax
je 0x406ece
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406ece
test byte [ebp - 0xc], 1
jne 0x406ed7
or dword [ebp + 0x10], 0x200000
jmp 0x406f10
mov eax, dword [0x40e7d4]
cmp eax, ebx
je 0x406f10
push eax
call fcn.00403122
pop ecx
test eax, eax
je 0x406f10
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406f10
mov eax, dword [0x40e7d8]
cmp eax, ebx
je 0x406f10
push eax
call fcn.00403122
pop ecx
test eax, eax
je 0x406f10
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e7d0]
call fcn.00403122
pop ecx
test eax, eax
je 0x406f30
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406f32
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push eax
push 0x1951085b
push 0x30ef20c9
pushfd
sub eax, 0x7467303d
push eax
xor eax, eax
je 0x104a8
and dl, byte [eax]
sbb byte [eax], bh
loope 0x104b4
daa
adc al, 0x95
pop ecx
les ebp, [eax]
pop eax
popfd
pop eax
pop eax
pop eax
call fcn.00010918
mov dword [ebp - 4], eax
cld
cmp dword [ebp - 4], 0
jne 0x104e7
push 0
push 0x104f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x104e7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41cc7f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4a7e10
push dword [ebp + 0xc]
xor esi, esi
and dword [ebp - 4], esi
and dword [ebp - 8], esi
call fcn.00429a29
add esp, 0x10
test eax, eax
jne 0x41ccbe
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
mov ebx, eax
je 0x41ccdb
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00429bdc
pop ecx
pop ecx
pop esi
test ebx, ebx
pop ebx
je 0x41cce5
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00429849
pop ecx
or eax, 0xffffffff
leave
ret

Function at 0x41cd77
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
mov eax, dword [0x4a89e8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push edi
xor ebx, ebx
push ebx
push ebx
call esi
push 0x4a9fe0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x10]
push eax
mov edi, 0x82
push edi
call esi
cmp eax, ebx
je 0x41ce74
cmp eax, edi
ja 0x41ce74
push 1
mov dword [0x4a96a8], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [ebp - 0x10], bl
mov dword [ebp - 0x14], eax
je 0x41ce60
lea edi, [ebp - 0x10]
mov al, byte [edi]
cmp al, 0x41
je 0x41ce47
cmp al, 0x42
je 0x41ce47
movsx esi, al
push edi
sub esi, 0x41
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, 2
je 0x41ce0d
cmp eax, 3
je 0x41ce1a
cmp eax, 4
jbe 0x41ce47
cmp eax, 6
ja 0x41ce47
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
or dword [0x4a9710], eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41ce47
cmp dword [0x4a96a4], esi
jae 0x41ce3d
mov dword [0x4a96a4], esi
mov eax, dword [ebp - 0x1c]
mov dword [esi*4 + 0x4a96a8], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax + 1]
lea edi, [ebp + eax - 0x10]
cmp byte [edi], bl
mov dword [ebp - 0x18], eax
jne 0x41cde2
cmp dword [ebp - 0x14], 0xffffffff
je 0x41ce6f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
inc eax
jmp 0x41ce76
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ff5a
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403203
pop dword [ebp - 0xc]
mov eax, 0xd7226848
sub eax, 0xd6e23645
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x85f5eb11
add dword [ebp - 0x1c], 0xc85c5a3a
mov dword [ebp - 0x18], 0x249e9ff0
sub dword [ebp - 0x18], 0xf26b53ab
mov dword [ebp - 0x14], 0x993fab74
sub dword [ebp - 0x14], 0x4cf36746
mov dword [ebp - 0x10], 0xbde1e853
add dword [ebp - 0x10], 0x421e17ad
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x55c6f42a
sub eax, 0x5586739e
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5ba5450b
sub dword [ebp - 0x1c], 0xe732dbb5
mov dword [ebp - 0x18], 0x8d6ec601
add dword [ebp - 0x18], 0xb3fd9b74
mov dword [ebp - 0x14], 0x5e178237
add dword [ebp - 0x14], 0x557ea35
mov dword [ebp - 0x10], 0x8c803712
sub dword [ebp - 0x10], 0x8c803712
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x341b9
push 0
call eax
mov ecx, 0xba7ac137
sub ecx, 0xba7a8329
xor edx, edx
add edx, eax
mov edi, 0x2d21d33f
add edi, 0xd31f3cc1
add edi, dword [ebp - 0xc]
mov esi, 0x4a74e583
add esi, 0x36224149
xor dword [ebp - 4], esi
mov ebx, dword [edi]
sub dword [ebp - 8], 0xce87a4a4
xor ebx, esi
add dword [ebp - 8], ebx
mov dword [edx], ebx
sub dword [ebp - 8], 0x7c1dfbb6
add edx, 0x6e54d804
add edx, 0x91ab2800
add edi, 0x805d4bc9
add edi, 0x7fa2b43b
loop 0x403322
add eax, 0xbd5112f7
add eax, 0x42afd814
mov ebx, eax
add eax, 0x78756db6
sub eax, 0x78756db1
mov ecx, 0xfbac9094
sub ecx, 0xfb6c9094
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476718
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00436df4
push eax
lea ecx, [esp + 0x30]
call fcn.0043b41f
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00436df4
mov ecx, eax
call fcn.0043b0d2
cmp dword [esi + 0x128], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x402171
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x124]
call fcn.0043b38c
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x134]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0043b653
test edi, edi
je 0x40212b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x128]
push edi
push eax
call fcn.0043b721
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x13c], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x128]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x124]
test edx, edx
je 0x40218e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0043b473
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x402480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
cmp dword [eax + 0x78], 0
push ebx
push ebp
push esi
push edi
je 0x402491
test ecx, ecx
jmp 0x4024be
cmp dword [esp + 0x34], 0
je 0x4024a7
cmp dword [eax + 0x3ac], 0
mov cl, 3
jne 0x4024c1
mov cl, 1
jmp 0x4024c1
test ecx, ecx
je 0x4024ba
cmp dword [eax + 0x398], 0
mov cl, 2
jne 0x4024c1
xor cl, cl
jmp 0x4024c1
cmp dword [eax + 0x60], 0
sete cl
movzx ecx, cl
lea edx, [ecx + ecx*4 + 0xdc]
cmp dword [eax + edx*4], 0
lea ebp, [eax + edx*4]
je 0x4025b6
mov edi, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov edx, dword [eax + ecx*4 + 0x378]
lea ebx, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, dword [ebx + 0x374]
push eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x1c]
call fcn.004022d0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
mov ecx, dword [ebp]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push ecx
push esi
call ebp
push 0
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [ebx + 0x37c]
mov edi, eax
push edx
push edi
call ebp
mov ecx, dword [ebx + 0x374]
mov edx, dword [esp + 0x14]
push 0x8800c6
push 0
push 0
push edi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x378]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x378]
mov ecx, dword [ebx + 0x374]
mov edx, dword [esp + 0x14]
push 0xee0086
push 0
push 0
push esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x34]
push eax
push edi
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov ecx, dword [esp + 0x28]
push ecx
push esi
call ebp
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14

Function at 0x402ce0
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 0x402cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d30
lea ebx, [ebx]
cmp esi, eax
jae 0x402d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d20
cmp esi, eax
jb 0x402d3a
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 0x4037d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x477c48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x5c], ebx
push 0x39
mov ebp, 7
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea esi, [esp + 0x20]
mov byte [esp + 0x1b], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004073c0
mov byte [esp + 0x5c], 1
lea eax, [esp + 0x64]
push eax
mov ecx, esi
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00407f20
add esp, 0xc
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x403860
lea eax, [esp + 0x38]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20006
push 1
push ebx
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4038b0
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x84]
push edx
push 4
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4038a1
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4038b4
mov byte [esp + 0x13], bl
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x4c], esi
jb 0x4038cc
mov edx, dword [esp + 0x38]
push edx
call fcn.00434567
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x30], esi
jb 0x4038f0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00434567
add esp, 4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x7c], esi
jb 0x403918
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00434567
add esp, 4
mov al, byte [esp + 0x13]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00454567
add esp, 0x50
ret

Function at 0x403e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x40c]
push esi
push edi
mov esi, edx
push 0xffffffffffffffff
mov edi, ecx
push 0
mov ecx, esi
call fcn.00407310
cmp dword [edi + 0x18], 8
mov dword [esp + 8], 0x400
jb 0x403ecf
mov edi, dword [edi + 4]
jmp 0x403ed2
add edi, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x403f0f
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ef5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.004073c0
mov ecx, dword [esp + 0x40c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00454567
add esp, 0x408
ret
Function at 0x40a320
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00455df0
add esp, 0xc
push str..localinfo.dat
push 0x104
lea ecx, [esp + 8]
push ecx
push 0x483884
push str.VersionUrl
push 0x484814
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40a38a
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00454567
add esp, 0x108
ret
lea edx, [esp]
push edx
push 0x104
push esi
call fcn.00455410
mov ecx, dword [esp + 0x110]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.00454567
add esp, 0x108
ret

Function at 0x40a3c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47748d
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
push esi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x32c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call fcn.00406b50
mov ebp, 1
mov dword [esp + 0x334], ebp
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx - 0xc]
add esi, 0x1c
cmp eax, ebx
jne 0x40a481
push 0x103
lea edx, [esp + 0x229]
push ebx
push edx
mov byte [esp + 0x230], bl
call fcn.00455df0
add esp, 0xc
push str..localinfo.dat
push 0x104
lea eax, [esp + 0x22c]
push eax
push 0x483884
push str.MaintenanceUrl
push 0x484814
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40a481
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.0040a6b0
jmp 0x40a566
push 0x103
lea edx, [esp + 0x21]
push ebx
push edx
mov byte [esp + 0x28], bl
call fcn.00455df0
push 0x103
lea eax, [esp + 0x131]
push ebx
push eax
mov byte [esp + 0x138], bl
call fcn.00455df0
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push str._smaintenance.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi]
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], ebp
jle 0x40a4ed
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00407e60
mov esi, dword [esi]
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.0041edf0
test eax, eax
je 0x40a55b
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.IsUsed
push str.MAINTENANCE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
jne 0x40a51f
lea edx, [esp + 0x10]
push edx
jmp 0x40a560
lea eax, [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0x128]
push ecx
push str.Maintenance
push 0x48485c
push str.MAINTENANCE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40a55b
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x14]
call fcn.0040a670
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040a6b0
mov dword [esp + 0x14], ebp
mov byte [esp + 0x334], bl
lea ecx, [esp + 0x10]
call fcn.00406bc0
mov eax, edi
mov ecx, dword [esp + 0x32c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00454567
add esp, 0x328
ret