joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e30
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
push 0x4cfac0
push 0xd2
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0
mov dword [0x51d550], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
mov eax, dword [0x51d550]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov dword [0x51d564], eax
call ebp
push 0x4cfac0
push 0xd5
push 0
mov dword [0x51d56c], eax
call esi
push eax
xor esi, esi
push esi
mov dword [0x51d560], eax
call edi
mov ecx, dword [0x51d560]
push ecx
push esi
call ebx
push eax
mov dword [0xf1d574], eax
call ebp
push 0x414370
mov dword [0xf4075c], eax
call fcn.0047d129
add esp, 4
push esi
push 0x4143f0
call fcn.00483b60
push 0xa00000
push 0x51d570
call fcn.0047da32
push 0xf40c8c
mov dword [0x51d558], eax
call fcn.00478a71
fld dword [0x4d0430]
mov eax, dword [0x51d558]
fstp dword [esp + 0x2c]
add esp, 0x14
push 0xf40c8c
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], 6
call fcn.0045b6b0
add esp, 0xc
mov dword [0x51d554], eax
call fcn.00413110
test eax, eax
jne 0x413f45
mov dword [0xf40c98], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [0xf40c98], esi
call fcn.00413130
mov dword [0xf40c94], eax
cmp eax, esi
je 0x413f33
mov ecx, dword [0x51d554]
mov edx, dword [eax]
mov edx, dword [edx + 4]
push ecx
push 0x414390
mov ecx, eax
mov dword [0xf40c98], esi
call edx
mov ecx, dword [0xf40c94]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [0x51d554]
mov ecx, dword [0x51d558]
push 0xf40c8c
push str.Tutorial
push eax
push ecx
call fcn.0045c790
mov edx, dword [0x51d558]
push 0xf40c8c
push edx
mov dword [0x51d55c], eax
call fcn.0045e570
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
add esp, 0x18
push 0xf40c8c
push ecx
mov ecx, dword [0x51d56c]
push ecx
mov ecx, eax
mov dword [0x51d548], eax
call edx
mov ecx, dword [0x51d55c]
mov eax, dword [ecx]
mov edx, dword [0x51d548]
mov eax, dword [eax + 4]
push 0xf40c8c
push edx
call eax
mov ecx, dword [0x51d55c]
push 0xf40c8c
push ecx
call fcn.00458380
push 0xf1d570
push esi
push esi
push 0x4143c0
push esi
push esi
mov dword [0x51d54c], eax
call fcn.0043c9fe
mov dword [0x51d568], eax
call fcn.00484e30
push esi
push esi
call fcn.00484130
push 0x231e4
push 0xf1d578
push 2
call fcn.00484dd0
add esp, 0x34
pop edi
pop esi
pop ebp
mov dword [0x51d544], eax
pop ebx
add esp, 0x1c
ret
Function at 0x415a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push edi
push 0
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edi, [esi + 0x10]
push edi
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0x4a8d84
push ebx
call ecx
test eax, eax
jne 0x415b23
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
shr eax, 2
lea edx, [eax + eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
lea eax, [eax + eax*2]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
push 4
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x415b17
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
push 0x415a10
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x415b17
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi], ebx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4164e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, ecx
cmp dword [ebx + 0xd4], 0
push esi
push edi
je 0x41666a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov dword [esp + 0x74], 0x1f40
mov dword [esp + 0x78], 0x2b11
mov dword [esp + 0x7c], 0x5622
mov dword [esp + 0x80], 0xac44
mov dword [esp + 0x84], 0xbb80
mov dword [esp + 0x88], 0x17700
call fcn.00417370
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + eax*4 + 0x70]
cmp dword [ebx + 0x58], edi
ja 0x41664d
cmp edi, dword [ebx + 0x5c]
ja 0x41664d
mov eax, dword [ebx + 0x54]
test eax, 0x400
je 0x4165ae
test eax, 0x100
je 0x4165ae
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
push esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], edi
call fcn.00417190
mov eax, dword [ebx + 0x54]
test eax, 0x400
je 0x4165e3
test eax, 0x200
je 0x4165e3
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], edi
call fcn.00417190
mov eax, dword [ebx + 0x54]
test eax, 0x800
je 0x416618
test eax, 0x100
je 0x416618
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], edi
call fcn.00417190
mov eax, dword [ebx + 0x54]
test eax, 0x800
je 0x41664d
test eax, 0x200
je 0x41664d
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x68]
push eax
push esi
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x48], edi
call fcn.00417190
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 6
jb 0x416563
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41af40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x204
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
xor ecx, ecx
lea edx, [esp + 0x10]
mov eax, ecx
shl eax, 8
movzx eax, ax
mov esi, 8
test eax, 0x8000
je 0x41af85
add eax, eax
xor eax, 0x1021
movzx eax, ax
jmp 0x41af87
add eax, eax
sub esi, 1
jne 0x41af72
mov word [edx], ax
inc ecx
mov eax, 0xff
add edx, 2
cmp cx, ax
jbe 0x41af65
movzx edi, word [ebp + 0xc]
xor eax, eax
xor ecx, ecx
mov word [ebp + 0xc], cx
lea ecx, [ebp + 2]
mov esi, 0x8e
movzx ebx, byte [ecx - 2]
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx ebx, byte [ecx - 1]
shl eax, 8
xor ax, word [esp + edx*2 + 0x10]
add ecx, 6
movzx eax, ax
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx ebx, byte [ecx - 6]
shl eax, 8
xor ax, word [esp + edx*2 + 0x10]
movzx eax, ax
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx ebx, byte [ecx - 5]
shl eax, 8
xor ax, word [esp + edx*2 + 0x10]
movzx eax, ax
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx ebx, byte [ecx - 4]
shl eax, 8
xor ax, word [esp + edx*2 + 0x10]
movzx eax, ax
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx ebx, byte [ecx - 3]
shl eax, 8
xor ax, word [esp + edx*2 + 0x10]
movzx eax, ax
mov edx, eax
shr edx, 8
movzx edx, dl
shl eax, 8
xor edx, ebx
xor ax, word [esp + edx*2 + 0x10]
sub esi, 1
movzx eax, ax
jne 0x41afb1
mov ecx, dword [esp + 0x210]
mov word [ebp + 0xc], di
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
not eax
call fcn.0043ba5f
add esp, 0x204
ret 4
Function at 0x41b6d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a02e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.0041b5f0
push 0xc
push str.settings.dat
mov eax, edi
call fcn.0040d710
mov eax, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x41b747
lea eax, [esp + 0x10]
push 0x4d0330
push eax
call fcn.0043cea6
mov esi, eax
add esp, 8
test esi, esi
je 0x41b907
push esi
push 1
push 0x354
push 0xf40ca0
call fcn.0043d15d
push esi
call fcn.0043d3d5
add esp, 0x14
cmp dword [0xf40ca0], 0x46434557
jne 0x41b907
cmp dword [0xf40ca4], 2
jne 0x41b907
cmp dword [0xf40ca8], 0x354
jb 0x41b907
push 0xf40ca0
call fcn.0041af40
cmp word [0xf40cac], ax
jne 0x41b907
mov eax, dword [0xf40dd4]
mov ecx, dword [0xf40dd8]
mov edx, dword [0xf40ddc]
mov dword [0xf40780], eax
mov eax, dword [0xf40de0]
mov dword [0xf40784], ecx
mov ecx, dword [0xf40de4]
mov dword [0xf40788], edx
mov edx, dword [0xf40de8]
mov dword [0xf4078c], eax
mov eax, dword [0xf40dec]
mov dword [0xf40790], ecx
mov ecx, dword [0xf40df0]
mov dword [0xf40794], edx
mov edx, dword [0xf40df4]
mov dword [0xf40798], eax
mov eax, dword [0xf40df8]
mov dword [0xf4079c], ecx
mov ecx, dword [0xf40dfc]
mov dword [0xf407a0], edx
mov edx, dword [0xf40e00]
mov dword [0xf407a4], eax
mov eax, dword [0xf40e04]
mov dword [0xf407a8], ecx
mov ecx, dword [0xf40e08]
mov dword [0xf407ac], edx
mov edx, dword [0xf40e0c]
mov dword [0xf407b0], eax
mov eax, dword [0xf40e10]
mov dword [0xf407b4], ecx
mov ecx, dword [0xf40e14]
mov dword [0xf407b8], edx
mov edx, dword [0xf40e18]
mov dword [0xf407bc], eax
mov eax, dword [0xf40e1c]
mov dword [0xf407c0], ecx
mov ecx, dword [0xf40e20]
mov dword [0xf407c4], edx
mov edx, dword [0xf40e24]
mov dword [0xf407c8], eax
mov eax, dword [0xf40e28]
mov dword [0xf407cc], ecx
mov ecx, dword [0xf40e2c]
mov dword [0xf407d0], edx
mov edx, dword [0xf40e30]
mov dword [0xf407d4], eax
mov eax, dword [0x4fc070]
mov dword [0xf407d8], ecx
mov ecx, dword [0x4fc074]
mov dword [0xf407dc], edx
mov edx, dword [0x4fc078]
mov dword [0xf407e0], eax
mov dword [0xf407e4], ecx
mov dword [0xf407e8], edx
cmp dword [esp + 0x24], edi
jb 0x41b903
mov eax, dword [esp + 0x10]
push eax
call fcn.0041d512
add esp, 4
mov al, 1
jmp 0x41b91c
cmp dword [esp + 0x24], edi
jb 0x41b91a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041d512
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043ba5f
add esp, 0x2c
ret
Function at 0x41b940
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a02b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edi, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.0041b5f0
mov ecx, dword [esp + 0x14]
mov edi, 0x10
cmp dword [esp + 0x28], edi
jae 0x41b9a9
lea ecx, [esp + 0x14]
call fcn.0041b320
push 0xc
push str.settings.dat
lea eax, [esp + 0x18]
call fcn.0040d710
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x41b9cc
lea eax, [esp + 0x14]
push 0x4d0334
push eax
call fcn.0043cea6
mov esi, eax
add esp, 8
test esi, esi
je 0x41ba1f
push 0xf40ca0
mov dword [0xf40ca0], 0x46434557
mov dword [0xf40ca8], 0x354
call fcn.0041af40
push esi
push 1
push 0x354
push 0xf40ca0
mov word [0xf40cac], ax
call fcn.0043d2dc
push esi
call fcn.0043d3d5
add esp, 0x14
cmp dword [esp + 0x28], edi
jb 0x41ba32
mov eax, dword [esp + 0x14]
push eax
call fcn.0041d512
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043ba5f
add esp, 0x30
ret
Function at 0x41c860
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x44
push str.GlobalMemoryStatusEx
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c8ab
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x40
call eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esp, 0x44
ret
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0
add esp, 0x44
ret

Function at 0x41cf70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x314], eax
push 0
push 0x4cf3cf
mov ecx, esi
call fcn.004074c0
lea eax, [esp + 4]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41d027
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0
push 0x104
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x120]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x41d027
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d011
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004074c0
mov ecx, dword [esp + 0x314]
xor eax, eax
cmp eax, dword [esi + 0x14]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.0043ba5f
add esp, 0x318
ret

Function at 0x41d050
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.0043ef30
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x41d0aa
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043ba5f
add esp, 0x118
ret
jne 0x41d0cb
xor eax, eax
cmp dword [esp + 8], eax
setne al
inc eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043ba5f
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 3
call fcn.0043ba5f
add esp, 0x118
ret

Function at 0x41d440
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41f3af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41f3d3
cmp dword [edi + 0x54], 0
jne 0x41f3d3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041fe5e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041f370
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426399
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4263e0
call fcn.0041fe5e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4263e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4263fc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00425f11
mov esi, eax
test edi, edi
je 0x4263fa
test ebx, ebx
je 0x4263fa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x426bab
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x49dabd
call fcn.0043f3aa
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x426bd0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x426c16
lea ecx, [ebp - 0x10]
call fcn.00401970
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e9cc
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401040
mov eax, esi
call fcn.0043f482
ret 8
Function at 0x4281a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4281bc
mov edi, dword [esi + 0xc]
jmp 0x4281fc
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4281d5
call fcn.00420068
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4281ea
call fcn.00420068
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4281fc
call fcn.00420068
call fcn.0041fe5e
cmp dword [eax + 0x3c], 0
je 0x428211
push edi
mov ecx, ebx
call fcn.00427060
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004280ca
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x42822f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42823b
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x429e35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x429e7d
call fcn.0041fe5e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429e7d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x429ec0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x429ea9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x429ea9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x429ebd
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43ba5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4de6d0]
jne 0x43ba69
repz ret
jmp fcn.004420de
Function at 0x44db82
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.00441a42
and dword [ebp - 4], 0
cmp dword [0x4ffae0], 0
mov ebx, eax
jne 0x44dc33
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44dce4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44dce4
push eax
call fcn.004419d0
mov dword [esp], 0x4a6c0c
push edi
mov dword [0x4ffae0], eax
call esi
push eax
call fcn.004419d0
mov dword [esp], 0x4a6bf8
push edi
mov dword [0x4ffae4], eax
call esi
push eax
call fcn.004419d0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ffae8], eax
call esi
push eax
call fcn.004419d0
pop ecx
mov dword [0x4ffaf0], eax
test eax, eax
je 0x44dc33
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004419d0
pop ecx
mov dword [0x4ffaec], eax
mov eax, dword [0x4ffaec]
cmp eax, ebx
je 0x44dc8b
cmp dword [0x4ffaf0], ebx
je 0x44dc8b
push eax
call fcn.00441a4b
push dword [0x4ffaf0]
mov esi, eax
call fcn.00441a4b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44dc8b
test edi, edi
je 0x44dc8b
call esi
test eax, eax
je 0x44dc82
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44dc82
test byte [ebp - 0xc], 1
jne 0x44dc8b
or dword [ebp + 0x10], 0x200000
jmp 0x44dcc4
mov eax, dword [0x4ffae4]
cmp eax, ebx
je 0x44dcc4
push eax
call fcn.00441a4b
pop ecx
test eax, eax
je 0x44dcc4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44dcc4
mov eax, dword [0x4ffae8]
cmp eax, ebx
je 0x44dcc4
push eax
call fcn.00441a4b
pop ecx
test eax, eax
je 0x44dcc4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ffae0]
call fcn.00441a4b
pop ecx
test eax, eax
je 0x44dce4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44dce6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45637c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4de6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
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 0x456451
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x456440
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x45642a
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x456440
push eax
push edi
push dword [ebp - 0x110]
call fcn.00456319
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x456453
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043ba5f
leave
ret 4

Function at 0x45bcc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49ee78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi], vtable.CriAuObjLoc.0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x18], edi
call eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [0x4ffd7c], 0x4a9bf8
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10