joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a56
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44f1d8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44f1d8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x426efe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x426f32
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426f2d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x426f5a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x426f43
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0042b3c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x427d87
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x427dbb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427dbb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x427e65
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x427dd7
cmp cx, 0x5c
jne 0x427dd9
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x427dcb
cmp eax, esi
je 0x427e19
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042b3c0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00427d87
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x427e35
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c26d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c23c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427e65
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd98
leave
ret
Function at 0x4293e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42948d
cmp dword [esi + 4], 0xffffffff
jne 0x42948d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0042c221
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x429434
cmp eax, 0x2f
je 0x429434
push 0x453ad8
push edi
call fcn.0042c23c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x429456
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x429456
mov eax, 0x2000000
jmp 0x429492
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426d23
add esp, 0x10
test eax, eax
jne 0x429474
mov eax, dword [ebp + 0x10]
jmp 0x429492
push eax
call fcn.00428eb7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x429492
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x429a43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.004299d9
test eax, eax
je 0x429aeb
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x429ae3
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebx + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429ae2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x429ae2
mov eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x429ae2
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x429aad
mov edi, esi
lea ecx, [eax + edi]
cmp ecx, esi
jbe 0x429ab8
sub esi, eax
mov edi, esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0040d950
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x429adb
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x18]
push edi
push ecx
push eax
call fcn.0042b3c0
add esp, 0xc
mov dword [ebp - 4], 1
pop esi
mov ecx, ebx
call fcn.00429997
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x18
Function at 0x42a16a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44fa10]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44fa10]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42a236
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42a2ab
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x42a262
cmp dword [esi + 0x40], edi
jae 0x42a262
push eax
call fcn.0042c59d
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x42a277
lea eax, [edi + edi]
push eax
call fcn.0042b301
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.0042b3c0
add esp, 0xc
test edi, edi
je 0x42a2a8
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0042a1d7
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x42a28a
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42a2da
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42a2c6
mov dword [esi + 0x14], 0x30000
jmp 0x42a2fc
push edi
push edx
add eax, ecx
push eax
call fcn.0042b3c0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x42a2fe
mov eax, dword [esi + 4]
test eax, eax
je 0x42a2f5
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x42a2fe
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a499
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x45fad0]
push esi
push dword [0x45fad0]
mov esi, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0042d28b
add esp, 0x10
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.0042c23c
push 0x44fe14
push esi
call fcn.0042c23c
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0042bd98
leave
ret 4
Function at 0x42a555
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
test ebx, ebx
je 0x42a65f
cmp dword [ebp + 0xc], 0
je 0x42a65f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a5b9
push esi
call edi
test eax, eax
je 0x42a65e
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a499
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a5ed
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x42a643
lea eax, [ebp - 0x20c]
push 0x454e20
push eax
call fcn.0042cd2d
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
test eax, eax
je 0x42a643
push eax
push dword [ebp + 0xc]
push 1
push ebx
call fcn.0042cbf5
push dword [ebp - 0x210]
call fcn.0042ca2a
mov ecx, dword [ebp - 0x218]
add esp, 0x14
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042a507
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a65e
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd98
leave
ret 0x10

Function at 0x42bd98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d320]
jne 0x42bda2
repz ret
jmp fcn.0043385c
Function at 0x441ced
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00433305
and dword [ebp - 0x14], 0
cmp dword [0x460a60], 0
mov dword [ebp - 0x18], eax
jne 0x441da0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x441e48
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x452cdc
push ebx
call edi
test eax, eax
je 0x441e48
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x460a60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x460a64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x460a68], eax
call edi
push eax
call esi
mov dword [0x460a70], eax
test eax, eax
je 0x441da0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x460a6c], eax
mov eax, dword [0x460a6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x441df9
cmp dword [0x460a70], ecx
je 0x441df9
push eax
call esi
push dword [0x460a70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x441df9
test ebx, ebx
je 0x441df9
call edi
test eax, eax
je 0x441df0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x441df0
test byte [ebp - 8], 1
jne 0x441df9
or dword [ebp + 0x10], 0x200000
jmp 0x441e2c
mov eax, dword [0x460a64]
cmp eax, dword [ebp - 0x18]
je 0x441e2c
push eax
call esi
test eax, eax
je 0x441e2c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x441e2c
mov eax, dword [0x460a68]
cmp eax, dword [ebp - 0x18]
je 0x441e2c
push eax
call esi
test eax, eax
je 0x441e2c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x460a60]
call esi
test eax, eax
je 0x441e48
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x441e4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd98
leave
ret
Function at 0x40cc50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push eax
call fcn.004ae180
add esp, 4
test eax, eax
jne 0x40cd19
mov eax, dword [esp + 0x210]
test eax, eax
je 0x40cd0e
push esi
push edi
call fcn.00447590
mov eax, dword [eax + 0x298]
test eax, eax
je 0x40cc92
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x40cc9a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov edx, dword [0x58e228]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0xc389
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40044
push 0xc38b
call fcn.0049bcd0
add esp, 4
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
cmp eax, 6
pop esi
jne 0x40ccff
push 0x53ad54
call fcn.00450c80
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x208
ret 8
mov eax, 1
add esp, 0x208
ret 8
Function at 0x422c40
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x628
push ebx
push ebp
push esi
mov dword [esp + 0x18], ecx
call fcn.00406200
mov esi, eax
xor ebp, ebp
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0xc], esi
je 0x422e42
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x422e42
push edi
mov ecx, 0x100
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x228]
stosw word es:[edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 0x103
push ecx
push edx
mov ecx, esi
call fcn.00439850
test eax, eax
je 0x422e41
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x432]
mov word [esp + 0x430], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
stosw word es:[edi], ax
je 0x422d33
lea eax, [esp + 0x20]
push 0x103
push eax
call fcn.0042f3d0
lea ecx, [esp + 0x430]
push 0x103
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0042f2f0
jmp 0x422dd4
cmp word [esp + 0x228], bp
je 0x422dd4
lea edx, [esp + 0x228]
push ebp
push edx
mov ecx, esi
call fcn.00430070
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x422d75
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
push 1
push eax
call fcn.00430070
mov esi, eax
push esi
call edi
test eax, eax
je 0x422dd0
lea ecx, [esp + 0x430]
push 0x103
push ecx
push esi
call fcn.0043f930
lea edx, [esp + 0x234]
lea ecx, [esp + 0x2c]
add esp, 0xc
mov esi, 0x104
lea eax, [esp + 0x20]
sub edx, ecx
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x422dc6
mov cx, word [edx + eax]
cmp cx, bp
je 0x422dc6
mov word [eax], cx
add eax, 2
dec esi
jne 0x422da8
jmp 0x422dca
cmp esi, ebp
jne 0x422dcd
sub eax, 2
mov word [eax], bp
mov esi, dword [esp + 0x10]
cmp word [esp + 0x20], bp
je 0x422e38
cmp word [esp + 0x430], bp
je 0x422e38
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x200
jge 0x422e41
cmp eax, ebp
jne 0x422e11
lea edx, [esp + 0x430]
lea eax, [esp + 0x20]
push edx
push eax
push 0x53bd30
push 0x1ff
push ebx
jmp 0x422e2f
lea ecx, [esp + 0x430]
lea edx, [esp + 0x20]
push ecx
mov ecx, 0x1ff
push edx
sub ecx, eax
push 0x53bd20
lea edx, [ebx + eax*2]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
inc dword [esp + 0x18]
jmp 0x422c8f
pop edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x638]
push ebx
push eax
mov edx, dword [ecx + 4]
push 0x401
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
pop ebx
add esp, 0x628
ret 4
Function at 0x423bb0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push esi
mov dword [esp + 4], eax
push edx
lea eax, [esp + 8]
push 0
push eax
push 0x423c10
push 0
push 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x423c04
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
add esp, 0xc
ret

Function at 0x423d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push esi
call fcn.00423c40
add esp, 4
test eax, eax
je 0x423db3
test esi, esi
je 0x423d8d
push 1
push 0x53bf34
push 0x53a9a8
mov dword [0x59e2fc], 1
call fcn.0040ec00
add esp, 0xc
push esi
push 0x53bf14
push 0x53a9a8
mov dword [0x59e300], esi
call fcn.0040ec00
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x20c
ret
call fcn.004c24f0
test eax, eax
jne 0x423e44
push eax
push str._tp:
mov ecx, 0x56e210
call fcn.0040aec0
push eax
call fcn.0044fd20
add esp, 0xc
cmp eax, 2
je 0x423e44
mov ax, word [0x56e1d0]
push edi
mov word [esp + 0xc], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
push esi
push 0x53aa2c
push 2
push str._tp:
push str._s_d__s_d
lea ecx, [esp + 0x20]
push 0x103
push ecx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
lea edx, [esp + 0xc]
push 5
push 0
push edx
push 0x56e274
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
test esi, esi
je 0x423e66
push 1
push 0x53bf34
push 0x53a9a8
mov dword [0x59e2fc], 1
call fcn.0040ec00
add esp, 0xc
push esi
push 0x53bf14
push 0x53a9a8
mov dword [0x59e300], esi
call fcn.0040ec00
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00425150
push esi
call fcn.00424010
push esi
call fcn.00424430
push esi
call fcn.00424150
push esi
call fcn.00424840
add esp, 0x10
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0xa
push 2
push str.SOFTWAREClientsStartMenuInternet
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
pop esi
add esp, 0x20c
ret
Function at 0x424150
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword [0x5884f4]
sub esp, 0x22c
test eax, eax
je 0x424330
mov eax, dword [esp + 0x230]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x42417f
mov ebp, str.360seURL
mov dword [esp + 0x10], ebp
mov edi, ebp
jmp 0x424191
mov ebp, str.htmlfile
mov dword [esp + 0x10], str.mhtmlfile
mov edi, str.IE.HTTP
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call esi
add esp, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_ftpUserChoice
push SysReAllocStringLen
call ebx
push edi
call esi
add esp, 4
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocStringLen
call ebx
push edi
call esi
add esp, 4
shl eax, 1
push eax
push edi
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
push SysReAllocStringLen
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], str..htm
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push SysReAllocStringLen
mov dword [esp + 0x3c], 0x53b30c
mov dword [esp + 0x40], str..shtm
mov dword [esp + 0x44], str..shtml
mov dword [esp + 0x30], str..mht
mov dword [esp + 0x34], str..mhtml
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edi, [esp + 0x24]
mov dword [esp + 0x14], 4
mov ecx, dword [edi]
lea edx, [esp + 0x34]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [esp + 0x34]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
call esi
add esp, 4
lea ecx, [esp + 0x34]
shl eax, 1
push eax
push ebp
push 1
push str.Progid
push ecx
push SysReAllocStringLen
call ebx
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x424262
lea edi, [esp + 0x1c]
mov ebp, 2
mov edx, dword [edi]
lea eax, [esp + 0x34]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0x10]
push edx
call esi
add esp, 4
lea ecx, [esp + 0x34]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push str.Progid
push ecx
push SysReAllocStringLen
call ebx
add edi, 4
dec ebp
jne 0x4242c6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
Function at 0x42dc90
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
lea esi, [eax + 1]
lea edi, [esi + esi]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 8
test edx, edx
je 0x42dd46
mov ecx, edi
push ebp
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x42dd15
cmp esi, 0x7fffffff
ja 0x42dd15
mov ebp, SysReAllocString
mov edi, ebx
sub ebp, esi
mov eax, edx
sub edi, edx
lea ecx, [esi + ebp]
test ecx, ecx
je 0x42dd09
mov cx, word [edi + eax]
test cx, cx
je 0x42dd09
mov word [eax], cx
add eax, 2
dec esi
jne 0x42dcee
jmp 0x42dd0d
test esi, esi
jne 0x42dd10
sub eax, 2
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 0x42dd50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
pop ebp
test esi, esi
je 0x42dd46
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42fe50
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x820
push ebx
push esi
push edi
mov esi, dword [esp + 0x830]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
stosw word es:[edi], ax
push 0x53a4a4
lea eax, [esp + 0x21c]
push 0x103
push eax
call ebx
lea ecx, [esp + 0x224]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 0x18
test eax, eax
je 0x42fec3
add eax, 2
lea edx, [esp + 0x214]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x626]
mov word [esp + 0x624], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x624]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x214]
lea edx, [esp + 0x624]
push ecx
push edx
push 0x53ac6c
lea eax, [esp + 0x18]
push 0x103
push eax
call ebx
mov cx, word [0x56e1d0]
xor eax, eax
mov word [esp + 0x430], cx
mov ecx, 0x81
lea edi, [esp + 0x432]
add esp, 0x14
rep stosd dword es:[edi], eax
push 0x53ab68
push 0x56e47c
push str._s_s_
lea edx, [esp + 0x428]
push 0x103
push edx
stosw word es:[edi], ax
call ebx
lea eax, [esp + 0x430]
push eax
call fcn.0043fa40
lea ecx, [esp + 0x434]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004402a0
add esp, 0x24
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0xc]
push ecx
call edi
push 0
push esi
call fcn.00440120
add esp, 8
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x820
ret 4