joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455d00
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0x1a
push 0
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x455d87
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x455d87
cmp byte [esi], 0
je 0x455d87
push esi
call fcn.00455c00
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x455d47
mov ecx, dword [0x4c8d4c]
mov dword [eax], ecx
mov dx, word [0x4c8d50]
mov word [eax + 4], dx
mov cl, byte [0x4c8d52]
push 0
push esi
mov byte [eax + 6], cl
call fcn.00434ed0
test al, al
jne 0x455db3
push 0
push 0
push 0
push esi
call fcn.00435700
test eax, eax
je 0x455db3
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.004556c0
lea edx, [esi + 2]
cmp eax, edx
jb 0x455db0
cmp byte [esi + 1], 0x3a
jne 0x455daf
add esi, 4
cmp eax, esi
jb 0x455db0
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4

Function at 0x455dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
xor ecx, ecx
push 0x1a
push ecx
mov word [esi], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x455e6d
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x455e6d
cmp word [esi], 0
je 0x455e6d
push esi
call fcn.004550c0
mov eax, esi
add eax, 0xfffffffe
jmp 0x455e20
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x455e20
mov ecx, dword [0x4c786c]
mov dword [eax], ecx
mov edx, dword [0x4c7870]
mov dword [eax + 4], edx
mov ecx, dword [0x4c7874]
mov dword [eax + 8], ecx
mov dx, word [0x4c7878]
push esi
push 0
mov word [eax + 0xc], dx
call fcn.00434ed0
test al, al
jne 0x455e9e
push 0
push 0
push esi
push 0
call fcn.00435700
test eax, eax
je 0x455e9e
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00455740
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x455e99
cmp word [esi + 2], 0x3a
jne 0x455e96
add esi, 8
cmp eax, esi
jb 0x455e99
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4
Function at 0x455ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x4c8d5c
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455f17
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x4c8d54
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x455f28
push 0
push esi
call fcn.00434ed0
test al, al
jne 0x455f2e
push esi
call fcn.00455d00
pop esi
add esp, 8
ret 4

Function at 0x455f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push 1
xor eax, eax
push eax
push str.SoftwareWinRARPaths
push 0x80000001
mov word [esi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455f99
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.AppData
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x455fab
push esi
push 0
call fcn.00434ed0
test al, al
jne 0x455fb1
push esi
call fcn.00455dd0
pop esi
add esp, 8
ret 4
Function at 0x45f040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
mov ebp, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
cmp word [edi], 0
je 0x45f13b
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f13b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x45f118
lea ebx, [ebx]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1b8]
push 0x4c8ed0
push eax
mov edx, 0x200
call fcn.00407130
add esp, 0x10
lea ecx, [esp + 0x1b0]
push ecx
push ebp
call fcn.0045f040
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x45f0c0
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x45f129
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45f13b
inc dword [0x53123c]
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebp
xor ecx, esp
call fcn.004af72c
add esp, 0x5a4
ret 8

Function at 0x45f160
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x40c]
cmp esi, 0x80000001
jne 0x45f1ce
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x45f1be
test cx, cx
mov ecx, 0x4c5884
jne 0x45f1a3
mov ecx, 0x4c5d80
push eax
push ecx
lea eax, [esp + 0xc]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.00407130
add esp, 0x10
jmp 0x45f1de
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0xc]
push ecx
jmp 0x45f1d9
push 0x200
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0046f3f0
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x404
ret 8
Function at 0x45f210
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x41c]
cmp esi, 0x80000001
jne 0x45f286
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x45f276
test cx, cx
mov ecx, 0x4c5884
jne 0x45f25b
mov ecx, 0x4c5d80
push eax
push ecx
lea eax, [esp + 0x14]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.00407130
add esp, 0x10
jmp 0x45f296
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0x14]
push ecx
jmp 0x45f291
push 0x200
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0046f3f0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f2cd
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
test eax, eax
je 0x45f2cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x408
ret 0xc

Function at 0x45f590
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
push eax
lea edi, [esp + 0x14]
call fcn.0045f400
mov edi, eax
test edi, edi
je 0x45f5e8
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f5b3
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 0x10

Function at 0x45f6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push eax
call fcn.0045f4d0
mov esi, eax
mov dword [esp + 0x10], 4
test esi, esi
je 0x45f6f4
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x45f6f4
cmp dword [esp + 0x10], 0
jne 0x45f6fd
mov eax, dword [esp + 0x18]
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 0x10
Function at 0x465dc0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x1010
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
mov ebp, dword [esp + 0x1024]
push esi
mov esi, dword [esp + 0x1020]
cmp ebx, esi
je 0x465dfc
push ebp
push esi
push ebx
call fcn.0046f3f0
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x465ef9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465e22
sub eax, edx
sar eax, 1
mov ecx, 0x3ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x81c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x465eee
push 0x400
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x820]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x18]
push eax
call fcn.004550c0
push esi
call fcn.00455740
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465ea0
push edi
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x465eb5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0
call fcn.00434ed0
pop edi
test al, al
je 0x465eee
push ebp
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.0046f3f0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1018]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af72c
add esp, 0x1010
ret 0xc
Function at 0x46a000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push edi
push 0x4c95e8
push eax
mov esi, ecx
call fcn.0048af20
mov edi, eax
test edi, edi
sete al
mov byte [esi + 0x1c2c], al
test al, al
je 0x46a046
xor al, al
jmp 0x46a101
push ebx
push ebp
push edi
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.004b241a
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x46a0c7
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jle 0x46a09e
nop
cmp byte [esp + esi + 0x10], 0x61
jne 0x46a096
cmp byte [esp + esi + 0x11], 0x73
jne 0x46a096
push 0x14
lea ecx, [esp + esi + 0x16]
push str.Invoker_
push ecx
call fcn.004b0fe7
add esp, 0xc
test eax, eax
je 0x46a0d4
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jl 0x46a070
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.004b2d11
push edi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004b241a
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x46a066
push edi
call fcn.004b24ae
add esp, 4
xor al, al
jmp 0x46a0ff
push 0
add esi, ebx
push esi
push edi
call fcn.004b2d11
push edi
push 0x15
push 1
push str.requireAdministrator_
call fcn.004b20f8
cmp eax, 0x15
push edi
sete bl
call fcn.004b24ae
add esp, 0x20
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 0x2008]
pop edi
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x2004
ret 4

Function at 0x46b560
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x4c7358
push eax
call fcn.004356e0
mov esi, eax
mov dword [esp + 8], esi
cmp esi, ebx
jne 0x46b5a0
xor al, al
jmp 0x46b630
push ebp
push edi
mov dword [esp + 0x14], ebx
push esi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004b241a
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jle 0x46b623
lea ebp, [edi - 0x20]
xor esi, esi
test ebp, ebp
jle 0x46b5fb
jmp 0x46b5d0
cmp byte [esp + esi + 0x18], 0x72
jne 0x46b5f6
cmp byte [esp + esi + 0x19], 0x65
jne 0x46b5f6
push 0x14
lea ecx, [esp + esi + 0x1e]
push str.quireAdministrator_
push ecx
call fcn.004b0fe7
add esp, 0xc
test eax, eax
je 0x46b649
inc esi
cmp esi, ebp
jl 0x46b5d0
mov edx, dword [esp + 0x10]
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push edx
call fcn.004b2d11
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x80
jb 0x46b5a6
push esi
call fcn.004b24ae
add esp, 4
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x2010]
pop esi
pop ebx
xor ecx, esp
call fcn.004af72c
add esp, 0x200c
ret 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004b24ae
add esp, 4
mov al, 1
jmp 0x46b62e
Function at 0x4720b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
cmp ebp, 0xa8
jne 0x472109
push 1
push str.Settings
call fcn.004201f0
test eax, eax
je 0x4720fe
mov eax, dword [0x51a8cc]
mov ecx, dword [0x5062f0]
lea esi, [edi + 0x8cc]
push esi
push 0x471ce0
push eax
push str.ORGTHEMES
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
cmp ebp, 0xa9
jne 0x47213a
push 1
push 0x4c5d80
push 0
push 0x4f8
call fcn.00465ff0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
mov eax, dword [0x51a8cc]
test eax, eax
jne 0x472147
xor esi, esi
jmp 0x472170
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x472156
xor esi, esi
jmp 0x472170
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push 4
push eax
call esi
test eax, eax
jne 0x472169
xor esi, esi
jmp 0x472170
push 5
push eax
call esi
mov esi, eax
cmp ebp, 0xaa
jne 0x472189
mov dword [edi + 0xc4], 0xffffffff
push 0x4c5d80
jmp 0x4721f1
lea edx, [ebp - 0x3e8]
cmp edx, 0x7f
ja 0x472237
push 0x30
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004afbb0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push ebp
push esi
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x472237
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0xbc]
jae 0x472237
mov dword [edi + 0xc4], eax
imul eax, eax, 0xb04
add eax, dword [edi + 0xb8]
push eax
call fcn.00455740
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.0045fb40
mov eax, dword [edi + 0x8c8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CheckMenuItem]
cmp eax, 0xffffffff
je 0x472218
push 0
push eax
push esi
call ebx
push 8
push ebp
push esi
call ebx
mov ecx, edi
mov dword [edi + 0x8c8], ebp
call fcn.00471750
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x30
ret 4
Function at 0x473320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
xor esi, esi
jmp 0x473345
xor edi, edi
push 0xf
call ebp
mov edx, dword [0x5062f0]
push 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4d7bec]
push edi
push eax
push edx
mov dword [esp + 0x34], edi
call ebx
push 0xf
mov dword [esi + 0x4d7c10], eax
call ebp
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x4d7bf0]
push 2
mov dword [esp + 0x20], eax
mov eax, dword [0x5062f0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x5062f0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4733ab
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x4733b3
mov dword [esp + 0x18], 0x800080
mov eax, dword [0x5062f0]
push 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov dword [esi + 0x4d7c14], eax
add esi, 0x38
cmp esi, 0x460
jb 0x473343
push 0xf
mov dword [esp + 0x2c], 0xc0c0c0
call ebp
mov edx, dword [0x5062f0]
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x67
push edx
mov dword [esp + 0x40], eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
cmp byte [0x506328], 0
je 0x473414
push eax
call fcn.0048a4b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4748a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4748bb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.0045fc40
test eax, eax
je 0x474a73
mov eax, dword [0x5062ec]
mov ecx, dword [0x51a8cc]
push ebx
push ebp
push edi
push 0
push eax
push 0xd
push ecx
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push eax
mov dword [esi + 4], eax
call ebp
call fcn.0048aeb0
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x474942
push ebx
call fcn.0048ae10
push 0x10
mov ebx, eax
call fcn.0048ae10
mov dword [esp + 0x14], eax
movzx edi, word [esp + 0x14]
mov eax, dword [esi + 4]
movzx edx, bx
shl edi, 0x10
or edi, edx
push edi
push 0
push 0x41f
push eax
call ebp
mov ecx, dword [esi + 4]
push edi
push 0
push 0x420
push ecx
call ebp
push 0
push 0xf
push str.FolderUp.bmp
mov ecx, 0x521fe0
call fcn.00471bd0
mov edi, eax
test edi, edi
jne 0x474987
mov edi, dword [esi + 0x18]
cmp byte [esp + 0x13], 0
je 0x4749a7
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.0048a5a0
mov edi, eax
push edi
mov ecx, 0x521fe0
call fcn.00471990
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push 1
push 0x413
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call ebp
mov edx, dword [esi + 4]
push 0x4d8048
push 1
push 0x444
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.00473b70
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x474a02
mov eax, 1
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
or eax, 4
push 0x12
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x68], 2
mov dword [esp + 0x58], 0
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x40], eax
jne 0x474a45
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x520098]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
push 0x40a
push eax
mov dword [esp + 0x68], ecx
call ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret

Function at 0x475f50
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x519514]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4e08b8]
mov edx, dword [0x51951c]
mov dword [0x519514], ecx
movzx ecx, cl
add ecx, dword [0x519518]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x519518], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4e08b8]
mov dword [0x51951c], edx
ret 4
Function at 0x4809b2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp dword [ecx + 0x2c], 0
mov eax, dword [esp + 0x1008]
je 0x480a62
cmp byte [ecx + 0x28], 0
je 0x480a62
cmp dword [eax + 8], 6
jb 0x480a62
mov edx, dword [eax]
push esi
mov esi, 0x400c
cmp word [edx + 0x50], si
jne 0x480a61
mov edx, dword [edx + 8]
or esi, 0xffffffff
mov word [edx], si
cmp dword [ecx + 0x2c], 2
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov esi, dword [edx + 8]
mov eax, 5
jne 0x480930
call fcn.0047fe90
push ebx
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 4
ja case.0x480941.3
jmp dword [eax*4 + 0x480a7c]
push 1
push 0x4c5d80
push esi
push str.iexplore.exe
jmp 0x480a3e
push esi
lea eax, [esp + 0x10]
push str._new_window__s
push eax
mov edx, 0x400
call fcn.00407130
add esp, 0xc
push 1
push 0x4c5d80
lea ecx, [esp + 0x14]
push ecx
push str.firefox.exe
jmp 0x480a3e
push esi
lea edx, [esp + 0x10]
push str.__new_window__s
push edx
mov edx, 0x400
call fcn.00407130
add esp, 0xc
push 1
push esi
lea eax, [esp + 0x14]
push eax
push str.chrome.exe
jmp 0x480a3e
push 0x400
push 0x4c5d80
lea ecx, [esp + 0x14]
push ecx
push 0x4c5d80
push str.http_shellopencommand
push 0x80000000
call fcn.0045f600
cmp word [esp + 0xc], 0x22
jne case.0x480941.3
lea edx, [esp + 0xe]
push 0x22
push edx
call fcn.004b0312
mov ebx, eax
add esp, 8
test ebx, ebx
je case.0x480941.3
push 9
push str.opera.exe
lea eax, [esp + 0x14]
push eax
call fcn.00455740
push eax
call fcn.00476cb0
test eax, eax
jne case.0x480941.3
push esi
lea edx, [esp + 0x810]
push str._newwindow__s
xor ecx, ecx
push edx
mov edx, 0x400
mov word [ebx + 2], cx
call fcn.00407130
add esp, 0xc
push 1
push esi
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x480a5f
push 1
push 0x4c5d80
push 0
push esi
push str.open
push 0
call edi
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004af72c
add esp, 0x1004
ret 4