joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100881eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100aa848]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10088231
cmp word [ebx], dx
jne 0x10088231
or byte [eax + edi + 0x28], 4
jmp 0x10088236
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10088399
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10088379
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10088277
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100882ad
cmp eax, edx
jae 0x100882bb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10088252
jmp 0x10088399
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10088374
cmp dword [ebp - 0x18], 0
je 0x10088374
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100aa848]
test byte [eax + edi + 0x28], 0x48
je 0x1008834a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1008830e
mov word [esi], cx
jmp 0x10088345
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100aa848]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100aa848]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100aa848]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10088399
pop eax
cmp word [ebp - 4], ax
jne 0x1008835a
cmp esi, ebx
jne 0x1008835a
mov word [esi], ax
jmp 0x10088396
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10030550
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10088399
push 0xd
pop eax
jmp 0x10088355
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100aa848]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10088393
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10088399
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x403b87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415168]
jne 0x403b91
repz ret
jmp fcn.00406773

Function at 0x40b1a7
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.00407195
and dword [ebp - 4], 0
cmp dword [0x468888], 0
mov ebx, eax
jne 0x40b258
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b309
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40eb64
push edi
call esi
test eax, eax
je 0x40b309
push eax
call fcn.00407123
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x468888], eax
call esi
push eax
call fcn.00407123
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46888c], eax
call esi
push eax
call fcn.00407123
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x468890], eax
call esi
push eax
call fcn.00407123
pop ecx
mov dword [0x468898], eax
test eax, eax
je 0x40b258
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407123
pop ecx
mov dword [0x468894], eax
mov eax, dword [0x468894]
cmp eax, ebx
je 0x40b2b0
cmp dword [0x468898], ebx
je 0x40b2b0
push eax
call fcn.0040719e
push dword [0x468898]
mov esi, eax
call fcn.0040719e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2b0
test edi, edi
je 0x40b2b0
call esi
test eax, eax
je 0x40b2a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2a7
test byte [ebp - 0xc], 1
jne 0x40b2b0
or dword [ebp + 0x10], 0x200000
jmp 0x40b2e9
mov eax, dword [0x46888c]
cmp eax, ebx
je 0x40b2e9
push eax
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b2e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2e9
mov eax, dword [0x468890]
cmp eax, ebx
je 0x40b2e9
push eax
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b2e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x468888]
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b309
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b30b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x69b02121
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x1a163d57
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x62c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0062c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0062c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0062c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0062c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x62cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x63e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x62cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x62cc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3fd20c67
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x70500c01
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x47e530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x47e552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e548
mov eax, 1
add ebx, ebx
jne 0x47e56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e560
jne 0x47e57c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e560
xor ecx, ecx
sub eax, 3
jb 0x47e590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e602
mov ebp, eax
add ebx, ebx
jne 0x47e59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47e5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47e5cc
inc ecx
add ebx, ebx
jne 0x47e5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e5ad
jne 0x47e5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e5ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e5dd
jmp 0x47e54e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e5ec
add edi, ecx
jmp 0x47e54e
pop esi
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47e64b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e609
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e044]
or eax, eax
je 0x47e645
mov dword [ebx], eax
add ebx, 4
jmp 0x47e626
call dword [esi + 0x7e040]
mov ebp, dword [esi + 0x7e048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x47e67f
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402c59
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c62
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x402c99
push 0x5b097c
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.0055148b
add esp, 0xc
test eax, eax
jne 0x402c49
push str.dwmapi.dll
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.0055148b
add esp, 0xc
test eax, eax
jne 0x402c49
lea eax, [ebp - 0x210]
push eax
call fcn.004024e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x404790
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x5b0980
mov esi, ecx
call fcn.004024e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
add esp, 4
mov dword [esi + 0x1ec], eax
cmp eax, ebx
je 0x404800
push str.DrawThemeParentBackground
push eax
call edi
mov dword [esi + 0x1f4], eax
mov eax, dword [esi + 0x1ec]
push str.DrawThemeTextEx
push eax
call edi
mov ecx, dword [esi + 0x1ec]
push str.BeginBufferedPaint
push ecx
mov dword [esi + 0x1f8], eax
call edi
mov edx, dword [esi + 0x1ec]
push str.EndBufferedPaint
push edx
mov dword [esi + 0x204], eax
call edi
mov dword [esi + 0x208], eax
jmp 0x404818
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
cmp dword [esi + 0x1f0], ebx
je 0x40486a
call fcn.00402c20
mov dword [esi + 0x1f0], eax
cmp eax, ebx
jne 0x404834
call fcn.004646ea
push str.DwmExtendFrameIntoClientArea
push eax
call edi
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x1f0]
push str.DwmDefWindowProc
push eax
call edi
mov ecx, dword [esi + 0x1f0]
push str.DwmIsCompositionEnabled
push ecx
mov dword [esi + 0x210], eax
call edi
mov dword [esi + 0x214], eax
mov eax, 1
cmp dword [esi + 0x19c], ebx
je 0x40487d
mov dword [esi + 0x19c], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40a440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x20]
push 0
mov byte [edi + 0x210], 1
call ebx
push 1
call ebx
mov eax, dword [edi + 0x284]
mov ebx, dword [edi + 0x288]
push eax
call fcn.00408660
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call ebx
push 0xfffffffffffffff0
push esi
call ebx
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x40a500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57d4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5ebdb0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov eax, dword [0x5ebdb0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x40a548
xor eax, eax
jmp 0x40a54b
mov eax, dword [esi + 0x20]
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x34], 0x32
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
test byte [0x5f4698], 1
jne 0x40a581
or dword [0x5f4698], 1
push esi
lea ecx, [esp + 0x30]
mov dword [0x5f4690], 5
mov dword [0x5f4694], 5
call fcn.0046d51f
push 8
mov dword [esp + 0x9c], ebx
call fcn.0046459d
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
cmp eax, ebx
je 0x40a5d3
push 0xff
push 1
push ebx
mov ecx, eax
call fcn.0046d7fc
mov esi, eax
jmp 0x40a5d5
xor esi, esi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], bl
call fcn.0046d728
mov edx, dword [0x5f4694]
mov eax, dword [0x5f4690]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0046d05e
push 5
push 0x64
lea ecx, [esp + 0x34]
call fcn.0046cab9
cmp esi, ebx
je 0x40a61d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov esi, vtable.CRgn.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
push 0xdc
push 0x15e
push 0x28
push 0x32
mov byte [esp + 0xa8], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.0046d63b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ecx
push edx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov byte [esp + 0x98], bl
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.004025e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x98], 0xffffffff
call fcn.0046d573
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x419de0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584e68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ebdb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00408260
cmp dword [edi + 0xb7410], 0
jne 0x419fc8
push 1
mov ecx, edi
call fcn.004669d8
push 0x5b0bc8
lea ecx, [ebp - 0x10]
call fcn.00401d90
lea ecx, [edi + 0xb73f0]
push eax
mov dword [ebp - 4], 0
call fcn.004050b0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.download
lea ecx, [ebp - 0x10]
call fcn.00401d90
lea ecx, [edi + 0xb73f4]
push eax
mov dword [ebp - 4], 1
call fcn.004050b0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x419ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x2ac]
sub eax, 0x10
push eax
call fcn.00405320
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
lea esi, [edi + 0x27c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004050b0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x419fbd
push 0
push eax
push 0
call dword [sym.imp.urlmon.dll_IsValidURL]
test eax, eax
jne 0x419fbd
mov ecx, dword [edi + 0xb7428]
mov eax, dword [edi + 0x20]
lea ebx, [edi + 0xb7414]
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0xb7428]
push esi
lea ecx, [edi + 0xb741c]
mov dword [edi + 0xb7418], edx
call fcn.004050b0
lea ecx, [edi + 0xb7420]
call fcn.00401f20
push 0
push 4
push 0
push 0
push ebx
push 0x419fe0
call fcn.0047451f
mov dword [edi + 0xb7410], eax
test eax, eax
je 0x419fc8
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0xb7410]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x20
call fcn.0046459d
add esp, 4
test eax, eax
je 0x419f9e
mov esi, eax
call fcn.004081f0
jmp 0x419fa0
xor eax, eax
push 0
push 0
push 0
push 0
push eax
push 0x41b5c0
mov dword [eax], edi
call fcn.0047451f
mov dword [edi + 0xb7430], eax
jmp 0x419fc8
push 0xffffffffffffffff
push 0x10
push 0x66
call fcn.0046e0aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cc00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x41cc12
push 0x80004005
call fcn.00401090
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x41cc77
mov ecx, dword [edi]
test ecx, ecx
je 0x41cc72
mov edx, dword [ebp - 4]
test edx, edx
je 0x41cc9c
cmp edx, 2
jbe 0x41cc7d
cmp edx, 7
jne 0x41cc9c
test cl, 1
jne 0x41cc6d
shr ecx, 1
cmp ecx, 1
jb 0x41cc6d
cmp word [esi + ecx*2 - 2], 0
jne 0x41cc6d
cmp ecx, 1
jbe 0x41cc77
cmp word [esi + ecx*2 - 4], 0
je 0x41cc77
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 8
test cl, 1
jne 0x41cc8c
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41cc77
xor edx, edx
mov word [esi], dx
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8