joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45f4e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404740
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x45f4f8
call fcn.0040439c
mov eax, ebx
call fcn.0041de88
mov edi, eax
dec edi
test edi, edi
jl 0x45f3e8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041de5c
mov edx, dword [0x4332bc]
call fcn.00403444
test al, al
je 0x45f3e4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041de5c
lea edx, [ebp - 0x14]
call fcn.0043db20
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404740
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404410
inc esi
dec edi
jne 0x45f396
mov al, byte [0x45f4fc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x45f508
mov eax, dword [ebp - 0xc]
call fcn.0040cd3c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404128
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043db20
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x45f4f8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0043db20
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x45f4f8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x45f4f8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x45f514
call fcn.00408fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f4e8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004040b4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004040b4
lea eax, [ebp - 0x14]
call fcn.00404090
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004040b4
ret
Function at 0x462c50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462eb0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x462cb3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00462768
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c2a4
cmp al, 1
jne 0x462cb3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00462a30
test al, al
je 0x462e3f
cmp dword [ebp - 8], 0
jge 0x462cd1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00462768
mov eax, dword [ebp - 0x210]
call fcn.00404350
cmp ebx, eax
jge 0x462d1b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00462768
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4683f8]
and eax, 0xff
bt dword [edx], eax
jae 0x462d1b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x462d2f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00462c2c
cmp ebx, dword [ebp - 8]
je 0x462e31
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x462d5b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x467f90]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x462e1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x467f90]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00444308
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x467f90]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00444308
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e25
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x462e92
cmp dword [ebp - 8], 0
jge 0x462e4a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00462768
mov eax, dword [ebp - 0x218]
call fcn.00404350
cmp eax, dword [ebp - 8]
jg 0x462e84
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00462768
mov eax, dword [ebp - 0x21c]
call fcn.00404350
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00462c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462eb7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004040b4
ret
Function at 0x401b58
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401b72
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401b9b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401ba6
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402512
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00401b23
cmp eax, esi
jne 0x40258a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402553
lea eax, [ebp - 0x110]
push eax
call fcn.00402512
cmp eax, esi
jne 0x402589
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402543
call fcn.00401abe
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00401abe
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x402749
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x402765
xor al, al
jmp 0x40277f
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40273b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x110e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x110e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x110e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e06a
add dl, dl
jne 0x110e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e0dc
xor eax, eax
add dl, dl
jne 0x110e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e17d
add dl, dl
jne 0x110e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x110e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x110e075
mov eax, 1
add dl, dl
jne 0x110e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e0e1
sub eax, ebx
mov ebx, 1
jne 0x110e128
mov ecx, 1
add dl, dl
jne 0x110e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x110e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x110e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x110e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e136
cmp eax, 0x7d00
jae 0x110e16d
cmp eax, 0x500
jb 0x110e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e075
cmp eax, 0x7f
ja 0x110e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x110e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x110e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x504c7a
Capabilities:
Terminate process

Disassembly:
jmp fcn.0068bae0
jmp 0x66f840
cmp ecx, dword [0x773434]
jne 0x66f84a
repz ret
jmp 0x500157
Function at 0x524b80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x203
jne 0x524c4f
push 0x409
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x20]
jne 0x524be1
push 0x3f5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.004ff4cd
push 0x40a
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x20]
jne 0x524c0f
push 0x3f5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.004ff4cd
push 0x413
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x20]
jne 0x524c4a
mov eax, dword [ebp - 8]
mov dword [eax + 0x6d4], 1
push 0x411
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.004ff4cd
jmp 0x524d57
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x206
jne 0x524cbc
push 0x409
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x20]
jne 0x524c89
push 0x411
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
call fcn.004ff4cd
push 0x40a
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x20]
jne 0x524cb7
push 0x411
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
call fcn.004ff4cd
jmp 0x524d57
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x524d57
mov dword [ebp - 0x2c], 7
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00506c64
cwde
mov dword [ebp - 0x2c], eax
push 0x44b
mov ecx, dword [ebp - 8]
call fcn.00500ddc
mov ecx, eax
call fcn.004ff022
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
jge 0x524d1d
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0x45
jne 0x524d1d
cmp dword [ebp - 0x38], 0
je 0x524d1d
mov eax, 1
jmp 0x524d63
cmp dword [ebp - 0x2c], 0
jge 0x524d3b
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0x57
jne 0x524d3b
cmp dword [ebp - 0x38], 0
je 0x524d3b
mov eax, 1
jmp 0x524d63
cmp dword [ebp - 0x2c], 0
jge 0x524d57
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0x57
jne 0x524d57
cmp dword [ebp - 0x38], 0
je 0x524d57
mov eax, 1
jmp 0x524d63
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.005071e1
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.00506c64
mov esp, ebp
pop ebp
ret 4
Function at 0x539000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x78d5e0]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor edx, ecx
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0x10]
sub al, 1
mov byte [ebp + 0x10], al
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x53901e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57fa30
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x773434]
xor eax, ebp
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0x800
jne 0x57fa6a
push 0x722694
push 4
lea eax, [ebp - 0x5c]
push eax
call fcn.00502f8d
add esp, 0xc
jmp 0x57faac
push 4
lea ecx, [ebp - 0x5c]
push ecx
push 3
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jne 0x57fa92
xor eax, eax
jmp 0x57fbdd
cmp dword [ebp - 0x294], 4
je 0x57faac
push 0x3e
push 0x7225fc
call fcn.00502533
test eax, eax
je 0x57faac
int3
call fcn.0050797a
mov ecx, dword [eax]
mov dword [ebp - 0x298], ecx
call fcn.0050797a
mov dword [eax], 0
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x111
push 0x112
lea edx, [ebp - 0x290]
push edx
call fcn.00509982
add esp, 0x18
mov dword [ebp - 8], eax
call fcn.0050797a
cmp dword [eax], 0
je 0x57fb08
call fcn.0050797a
mov eax, dword [eax]
push eax
call fcn.00504644
add esp, 4
jmp 0x57fb15
call fcn.0050797a
mov ecx, dword [ebp - 0x298]
mov dword [eax], ecx
xor edx, edx
jne 0x57faac
cmp dword [ebp - 8], 0xffffffff
je 0x57fb28
cmp dword [ebp - 8], 0x112
jb 0x57fb44
xor eax, eax
jne 0x57fb3d
push 0x45
push 0x7225fc
call fcn.00502533
test eax, eax
je 0x57fb3d
int3
xor eax, eax
jmp 0x57fbdd
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0x40
push 0x3c
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00509c1b
add esp, 0xc
push 0x72267c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x64], 0
je 0x57fb98
push str.FindActCtxSectionStringW
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x57fbc6
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
push eax
push 2
push 0
push 0
call dword [ebp - 0x60]
test eax, eax
je 0x57fbc6
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0xc], eax
jmp 0x57fbda
push 0
push 0
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x54]
xor ecx, ebp
call fcn.00504c7a
mov esp, ebp
pop ebp
ret
Function at 0x58aaa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x58abc8
call fcn.00505fa3
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58ab5b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x58ab32
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0
mov ecx, 0x790000
call fcn.0050486a
push eax
push 0x16f
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x20]
call fcn.005075e7
push eax
call fcn.00508aeb
add esp, 0x10
xor eax, eax
jmp 0x58ac36
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58ab59
push 0x175
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.00502533
test eax, eax
je 0x58ab59
int3
jmp 0x58abc8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x58ab7e
push 0x17d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.00502533
test eax, eax
je 0x58ab7e
int3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x58abc8
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x58abbd
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0
mov ecx, 0x790000
call fcn.0050486a
push eax
push 0x183
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x28]
call fcn.005075e7
push eax
call fcn.00508aeb
add esp, 0x10
jmp 0x58abc8
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x58ab7e
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x58abf1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x58ac10
cmp dword [ebp - 0xc], 0
je 0x58ac10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050a995
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4c], 0
je 0x58ac33
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [eax]
mov eax, dword [edx + 0xa8]
call eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d1c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
je 0x5d1c51
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x5d1cac
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5d1c75
call fcn.00504022
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5d1c94
call fcn.00504022
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5d1cac
call fcn.00504022
call fcn.005075ce
cmp dword [eax + 0x3c], 0
je 0x5d1cc6
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00501895
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00500657
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x5c], 0
je 0x5d1cf6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], 0
cmp dword [ebp - 4], 0
je 0x5d1d0b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x401040
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x401069
mov ecx, dword [esi + 0x24]
cmp ecx, edi
je 0x401069
mov eax, dword [esi + 4]
cmp eax, edi
je 0x401069
push ecx
call eax
mov eax, dword [esi + 0x20]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x24], edi
cmp eax, edi
mov dword [esi + 0x20], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
je 0x40111f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esi + 0x20], eax
je 0x40111f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VisInit_
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.VisFree_
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x20]
push str.VisFileName_
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
push str.VisDraw_
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.VisCurTime_
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 0x20]
push str.VisTotalTime_
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
push str.VisGetProperty_
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.VisSetProperty_
push ecx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4