joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40184f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1dc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f0]
push edi
mov ebp, dword [esi + 0x3c]
mov eax, dword [esi + ebp + 0x78]
test eax, eax
je 0x401954
lea edi, [eax + esi]
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x401954
mov eax, dword [edi + 0x1c]
xor edx, edx
add eax, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
add eax, esi
mov cl, byte [eax]
test cl, cl
je 0x4018d3
mov esi, dword [esp + 0x10]
lea edx, [esp + 0xe8]
sub edx, eax
or cl, 0x20
inc esi
mov byte [edx + eax], cl
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4018b6
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1f4]
mov edx, dword [esp + 0x10]
push dword [esp + 0x204]
lea eax, [esp + 0xec]
mov byte [esp + edx + 0xec], 0
push dword [esp + 0x204]
push eax
call fcn.00403049
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
mov dword [esp + 0x1c], edx
lea eax, [eax + ebx*4]
mov dword [esp + 0x10], eax
push dword [esp + 0x204]
mov ecx, dword [eax]
push dword [esp + 0x204]
add ecx, esi
push ecx
call fcn.00403049
xor eax, dword [esp + 0x24]
add esp, 0xc
xor edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x1f8]
jne 0x401944
cmp edx, dword [esp + 0x1fc]
je 0x401961
mov eax, dword [esp + 0x10]
sub eax, 4
mov dword [esp + 0x10], eax
sub ebx, 1
jne 0x40190f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2 - 2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
cmp ecx, edi
jb 0x4019f4
mov eax, dword [esi + ebp + 0x7c]
add eax, edi
cmp ecx, eax
jae 0x4019f4
xor edx, edx
cmp byte [ecx], dl
je 0x4019a5
lea edi, [esp + 0x28]
mov esi, ecx
sub edi, ecx
cmp edx, 0x3c
jae 0x4019a5
mov al, byte [esi]
mov byte [edi + esi], al
cmp byte [esi], 0x2e
je 0x4019a5
inc edx
inc esi
cmp byte [esi], 0
jne 0x40198f
mov dword [esp + edx + 0x29], 0x6c6c64
inc edx
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x4019cd
lea esi, [esp + 0x68]
sub esi, ecx
cmp edx, 0x7f
jae 0x4019cd
mov al, byte [ecx]
inc edx
mov byte [esi + ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x4019bc
mov esi, dword [esp + 0x1f0]
lea eax, [esp + 0x28]
push eax
mov byte [esp + edx + 0x6c], 0
call dword [esi + 0x30]
test eax, eax
je 0x4019f2
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [esi + 0x34]
mov ecx, eax
jmp 0x4019f4
xor ecx, ecx
mov eax, ecx
jmp 0x401956
Function at 0x403006
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
xor ecx, ecx
push esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
jmp 0x40303d
test ecx, ecx
jne 0x403044
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0040184f
mov esi, dword [esi]
add esp, 0x18
mov ecx, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40301d
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x403110
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
and dword [esp + 0x20], 0
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
lea edi, [esp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov eax, edx
mov esi, edi
shl eax, 0x18
mov edi, ebp
shr edx, 8
or edx, eax
shl edi, 0x18
mov eax, dword [esp + 0x10]
add edx, ebx
xor edx, ecx
shr ebp, 8
mov ecx, ebx
or edi, ebp
mov ebp, dword [esp + 0x14]
add edi, eax
xor edi, dword [esp + 0x30]
shr ecx, 0x1d
shl ebx, 3
or ebx, ecx
mov dword [esp + 0x14], esi
mov ecx, eax
xor ebx, edx
shr ecx, 0x1d
shl eax, 3
or ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, edi
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
cmp eax, 0x1b
jb 0x403148
pop edi
pop esi
mov eax, edx
mov edx, ebx
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4031aa
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x2c], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
je 0x4032cd
xor eax, eax
lea ecx, [ebp + 0xf]
inc eax
mov dword [esp + 0xc], ecx
sub eax, ebp
push esi
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x1c]
cmp eax, ecx
ja 0x4031dc
lea eax, [esp + 0x2b]
mov edx, dword [esp + 0x30]
lea edi, [esp + 0x1c]
mov esi, ebp
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [edx + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 4
jb 0x4031ec
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x10
mov ebx, dword [esp + 0x10]
lea edx, [edi + eax]
add ecx, esi
mov eax, edi
shl edi, 5
shr eax, 0x1b
or edi, eax
mov eax, esi
shl esi, 8
xor edi, edx
shr eax, 0x18
or esi, eax
ror edx, 0x10
xor esi, ecx
add ecx, edi
ror edi, 0x19
xor edi, ecx
ror ecx, 0x10
lea eax, [edx + esi]
ror esi, 0x13
xor esi, eax
sub ebx, 1
jne 0x403215
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 4
jb 0x403266
mov edi, dword [esp + 0x38]
mov ecx, ebx
push 0x10
pop edx
cmp ebx, edx
cmova ecx, edx
test ecx, ecx
je 0x40329b
lea esi, [esp + 0x1c]
mov edx, edi
sub esi, edi
mov ebp, ecx
mov al, byte [esi + edx]
xor byte [edx], al
inc edx
sub ebp, 1
jne 0x403290
mov ebp, dword [esp + 0x18]
sub ebx, ecx
add edi, ecx
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], edi
add byte [ecx], 1
jne 0x4032bc
dec ecx
lea eax, [ecx + ebp]
test eax, eax
jg 0x4032af
mov ebp, dword [esp + 0x34]
lea ecx, [ebp + 0xf]
test ebx, ebx
jne 0x4031d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4032d3
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov al, byte [ecx]
push esi
push edi
mov byte [ebp], al
or edi, 0xffffffff
lea eax, [ebp + 1]
xor esi, esi
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.00403477
pop ecx
test eax, eax
je 0x40344b
lea eax, [esp + 0x14]
push eax
call fcn.00403477
test eax, eax
lea eax, [esp + 0x18]
pop ecx
push eax
je 0x4033a9
call fcn.00403477
pop ecx
test eax, eax
je 0x40336d
push 4
xor esi, esi
pop ebx
lea eax, [esp + 0x14]
push eax
call fcn.00403477
pop ecx
lea esi, [eax + esi*2]
sub ebx, 1
jne 0x40333b
mov edx, dword [esp + 0x18]
test esi, esi
je 0x403360
mov eax, edx
sub eax, esi
mov al, byte [eax]
mov byte [edx], al
jmp 0x403363
mov byte [edx], 0
mov ebx, dword [esp + 0x10]
inc edx
jmp 0x40345d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx edi, byte [eax]
inc eax
mov ecx, edi
mov dword [esp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x40339d
mov esi, edx
sub esi, edi
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
sub ecx, 1
jne 0x40338d
jmp 0x403442
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x403446
call fcn.004034ae
mov edx, eax
pop ecx
test esi, esi
jne 0x4033e0
cmp edx, 2
jne 0x4033e0
lea eax, [esp + 0x14]
push eax
call fcn.004034ae
mov edx, dword [esp + 0x1c]
mov esi, eax
pop ecx
test esi, esi
je 0x403446
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x4033d3
jmp 0x403442
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [ecx]
add edi, 0xfffffe00
add edi, edx
inc ecx
push eax
mov dword [esp + 0x18], ecx
call fcn.004034ae
mov edx, dword [esp + 0x1c]
cmp edi, 0x7d00
pop ecx
lea ecx, [eax + 1]
cmovb ecx, eax
cmp edi, 0x500
lea eax, [ecx + 1]
cmovb eax, ecx
cmp edi, 0x80
lea esi, [eax + 2]
cmovae esi, eax
test esi, esi
je 0x403446
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x403437
mov dword [esp + 0x18], edx
xor esi, esi
inc esi
jmp 0x403463
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x403305
pop edi
pop esi
sub edx, ebp
pop ebp
mov eax, edx
pop ebx
add esp, 0x14
ret
Function at 0x402081
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x4020a1
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x4020aa
cmp byte [ebx], 0
jne 0x4020b1
xor eax, eax
jmp 0x402145
xor esi, esi
jmp 0x402107
inc ebx
xor ecx, ecx
mov cl, al
cmp ecx, 0x3d
jne 0x4020d9
cmp dword [ebp - 4], 0
je 0x4020d9
test esi, esi
jne 0x4020d9
cmp dword [ebp + 8], 0
je 0x4020d5
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402107
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x4020e7
cmp ecx, 0xa
jne 0x4020ef
cmp ecx, 0xd
jne 0x40210d
inc ebx
jmp 0x40210d
xor ecx, ecx
mov cl, al
cmp ecx, 0x5c
jne 0x402104
xor ecx, ecx
mov cl, byte [ebx]
cmp ecx, 0x6e
jne 0x402104
inc ebx
mov al, 0xa
mov byte [edx], al
inc edx
mov al, byte [ebx]
test al, al
jne 0x4020b5
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402143
mov edx, dword [ebp - 4]
test esi, esi
mov byte [edx], 0
je 0x402143
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040b5c4
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402376
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040b544
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040b618
test eax, eax
jne 0x40240d
push 0x4101e8
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040b544
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040b4c4
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x4024c8
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x410058], 0
je 0x40253f
cmp byte [0x411b68], 0
je 0x40253f
lea edx, [esp + 8]
mov eax, 0x411b68
call fcn.00402497
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x40253f
mov eax, ebx
call fcn.0040b544
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4026b0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x4027f4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x410a00
push 1
push 0
push 0x410a10
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x4028f3
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402857
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402869
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040b5c4
lea eax, [ebp - 0x40c]
call fcn.0040633c
cmp byte [ebp - 0x40c], 0
je 0x40289a
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x410a30
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x4028ea
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x4028e1
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402a1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x410ab0]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x41001d], 0
jne 0x402a78
mov eax, dword [0x411f68]
call fcn.00404598
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x410095
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x41001d], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402ac4
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402acf
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x4100bc
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403730
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov eax, 0x41034c
push ebx
mov ebx, 0x411760
push esi
call fcn.0040b6f0
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40376a
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40376a
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040b554
mov esi, eax
test esi, esi
je 0x4037d6
mov edx, 0x4100f2
mov eax, esi
call fcn.0040b598
mov esi, eax
test eax, eax
je 0x403789
mov eax, ebx
mov edx, esi
call fcn.0040b5c4
xor ecx, ecx
xor eax, eax
jmp 0x4037c8
and edx, 0xff
cmp edx, 0x20
je 0x40379c
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x4037ab
cmp edx, 0x2f
jne 0x4037c7
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4037bb
cmp edx, 0x53
jne 0x4037c7
mov dword [0x410054], 1
jmp 0x4037cf
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40378f
test cl, cl
jne 0x4037d6
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x4123c8], ebx
mov dword [0x4123c4], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x411b60], eax
push 0x65
push dword [0x4123c4]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x411b64], eax
mov word [ebp - 0x4c], 8
lea eax, [ebp - 8]
call fcn.00405984
inc dword [ebp - 0x40]
mov word [ebp - 0x4c], 0x14
push 0x400
push 0x411360
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov edx, 0x411360
mov eax, 0x4123cc
call fcn.00405038
mov word [ebp - 0x4c], 0x20
lea eax, [ebp - 0x20]
call fcn.00404400
inc dword [ebp - 0x40]
mov word [ebp - 0x4c], 0x14
mov word [ebp - 0x4c], 0x2c
lea eax, [ebp - 0x38]
call fcn.00404400
inc dword [ebp - 0x40]
lea edx, [ebp - 0x20]
mov word [ebp - 0x4c], 0x14
mov dword [0x411f68], edx
lea ecx, [ebp - 0x38]
mov dword [0x411f6c], ecx
call fcn.0040100c
cmp dword [0x410050], 0
jle 0x403899
mov eax, dword [0x410044]
call fcn.0040b448
push dword [0x411b60]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x411b64]
test eax, eax
je 0x4038b3
push eax
call sub.GDI32.DLL_DeleteObject
dec dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404470
dec dword [ebp - 0x40]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404470
dec dword [ebp - 0x40]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a44
mov word [ebp - 0x4c], 0
cmp dword [0x4123b8], 0
jne 0x40390a
cmp dword [0x410ab8], 0
je 0x40390a
mov eax, 0x4123b8
mov edx, 0xff
call fcn.00409244
mov dword [0x410ab8], 2
push dword [0x4123b8]
call sub.KERNEL32.DLL_ExitProcess
mov ecx, dword [ebp - 0x5c]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404498
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x4044b9
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.004045ac
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x4044ff
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x404550
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x40458e
mov eax, dword [ebx + 4]
test eax, eax
je 0x404568
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.00404964
mov ebx, eax
test ebx, ebx
je 0x40458e
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040b448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4047a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x40480a
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x40481b
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x40480a
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4047c2
cmp dword [esp], 0
je 0x4047c2
xor ebx, ebx
cmp dword [esp], 0
je 0x404865
lea eax, [esp + 4]
push eax
push 0x410a40
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404865
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40485b
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x4055ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.004057e8
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x405683
cmp byte [ebp + 8], 0
jne 0x405683
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x4056c1
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00405470
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x4057cf
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405720
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00405470
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x4057bf
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x405748
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x4057df
inc esi
test edi, edi
je 0x4057df
cmp esi, 0x200
jl 0x4056df
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4