joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x476030
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x476062
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x47605f
inc esi
cmp esi, edx
jb 0x476050
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x47618c
cmp ecx, 3
jbe 0x4760a2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x4760e0
cmp cl, 0xff
je 0x4760e0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x476044
dec ecx
shl eax, cl
and eax, 7
je 0x47607a
movzx ecx, byte [eax + 0x4d3a0c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4d3a04], 0
mov cl, byte [edx + 4]
je 0x4760ca
test cl, cl
je 0x4760ca
cmp cl, 0xff
jne 0x47607a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x476044
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x47610e
lea edx, [edi + ebx]
add edx, esi
jmp 0x476114
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x476152
movzx edi, byte [eax + 0x4d3a0c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x47613e
cmp cl, 0xff
jne 0x476152
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x476101
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x476044
pop edi
pop esi
cmp ecx, 3
jbe 0x4761a1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b20e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b1da9
Function at 0x405743
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x40575d
xor esi, esi
jmp 0x40578b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00408e70
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x4057c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4057bf
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40585b
xor esi, esi
jmp 0x40585b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4057e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x4057fc
xor esi, esi
jmp 0x405852
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40580e
jmp 0x4057d9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x405852
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x405844
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.00408e70
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00408790
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.004058c2
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4062d1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x40f8c0
call fcn.004084bc
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00406293
mov edi, eax
cmp edi, esi
je 0x40631b
cmp dword [ebp - 0x10], esi
je 0x406314
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4063b8
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40638c
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.004062d1
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x406379
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x40633e
cmp dword [ebp - 0x10], esi
je 0x406387
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4063b8
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40639f
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4063b6
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4063c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00408e70
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00405a1b
xor edi, edi
cmp eax, edi
jl 0x406581
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0040658e
pop ecx
test eax, eax
pop ecx
jne 0x406414
mov eax, 0x80020009
jmp 0x406581
mov ecx, esi
call fcn.004059f3
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00405a1b
cmp eax, edi
jl 0x406581
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x406549
sub eax, 9
je 0x4064ae
dec eax
dec eax
jne 0x406570
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x406459
xor ebx, ebx
jmp 0x40648e
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00408e70
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x406561
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x4064ea
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00408e70
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.00408620
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x4064f4
mov eax, 0x80004005
jmp 0x406581
cmp dword [ebp - 8], 0
jle 0x40652e
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00406615
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x4064fa
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x406570
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00405a1b
cmp eax, edi
jl 0x406581
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4067c3
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x4067e2
xor al, al
jmp 0x406806
lea eax, [esp + 8]
push ebx
push eax
push edi
push esi
push 0x40680a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x401140
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push edi
call fcn.00467340
mov edi, eax
test edi, edi
jne 0x401157
lea eax, [edi + 2]
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x401162
mov eax, dword [eax]
push eax
push 0x2712
push edi
call fcn.004673a0
push 0
push 0x4e2c
push edi
call fcn.004673a0
mov eax, dword [ebp + 0xc]
add esp, 0x18
cmp dword [eax + 0x10], 0
je 0x40119e
cmp dword [eax + 0x14], 0x10
jb 0x40118f
mov eax, dword [eax]
push eax
push 0x2720
push edi
call fcn.004673a0
add esp, 0xc
push esi
push 0x401220
push 0x4e2b
push edi
call fcn.004673a0
push dword [ebp + 0x10]
push 0x2711
push edi
call fcn.004673a0
push 1
push 0x3a
push edi
call fcn.004673a0
push 1
push 0x34
push edi
call fcn.004673a0
push 5
push 0x44
push edi
call fcn.004673a0
push 0x4cf728
push 0x2722
push edi
call fcn.004673a0
add esp, 0x48
push 1
push 0x63
push edi
call fcn.004673a0
push 0x1e
push 0x4e
push edi
call fcn.004673a0
push edi
call fcn.00467380
push edi
mov esi, eax
call fcn.00467320
add esp, 0x20
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4017b0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x54], 0x42007b
push edi
mov word [ebp - 8], ax
mov esi, ecx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0x440036
push eax
push 0
push 0
mov dword [ebp - 0x4c], 0x310045
mov dword [ebp - 0x48], 0x380033
mov dword [ebp - 0x44], 0x2d0034
mov dword [ebp - 0x40], 0x410042
mov dword [ebp - 0x3c], 0x420046
mov dword [ebp - 0x38], 0x34002d
mov dword [ebp - 0x34], 0x330037
mov dword [ebp - 0x30], 0x2d0033
mov dword [ebp - 0x2c], 0x450041
mov dword [ebp - 0x28], 0x360038
mov dword [ebp - 0x24], 0x32002d
mov dword [ebp - 0x20], 0x310046
mov dword [ebp - 0x1c], 0x420043
mov dword [ebp - 0x18], 0x370030
mov dword [ebp - 0x14], 0x440031
mov dword [ebp - 0x10], 0x420030
mov dword [ebp - 0xc], 0x7d0032
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401894
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 8], 0
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x4018b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov edi, ecx
call fcn.00401c60
mov ecx, eax
call fcn.00407910
call fcn.00401b50
mov ecx, eax
call fcn.00406db0
mov ecx, edi
call fcn.004017b0
test eax, eax
je 0x401916
call fcn.00401c60
pop edi
mov dword [eax + 0x100], 1
mov dword [eax + 0x104], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 4
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call esi
push eax
call fcn.00412a40
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.004a3390
add esp, 0xc
mov dword [ebp - 0x34], 0x30
push 0
call esi
push 0
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], str.84AD4FF9_2D92_47EC_BD8B_03DD6E282D1C_WND
mov dword [ebp - 0x2c], 0x402d60
call esi
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
call esi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x86ca0080
push 0
push str.84AD4FF9_2D92_47EC_BD8B_03DD6E282D1C_WND
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4019d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401c60
mov dword [eax + 0x104], esi
pop esi
mov dword [eax + 0x100], 2
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call esi
push edi
push 0xffffffffffffffeb
push dword [edi + 4]
call esi
push dword [edi + 4]
call fcn.00401a20
mov ecx, eax
call fcn.00404940
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 4
Function at 0x4020d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00401c60
mov dword [eax + 0x108], 1
call fcn.00401a20
cmp dword [eax + 0x250], 1
jne 0x402105
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
mov ecx, esi
call fcn.00402120
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret

Function at 0x402120
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb27b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c4], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x80
mov ebx, eax
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.004a3390
mov eax, ebx
mov dword [ebp - 0x34], 0x25007e
and eax, 0xff000000
mov dword [ebp - 0x30], 0x320030
push eax
mov eax, ebx
mov dword [ebp - 0x2c], 0x250078
and eax, 0xff0000
mov dword [ebp - 0x28], 0x320030
push eax
mov eax, ebx
mov dword [ebp - 0x24], 0x250078
and eax, 0xff00
mov dword [ebp - 0x20], 0x320030
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0x250078
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x18], 0x320030
push eax
mov dword [ebp - 0x14], 0x78
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x20a
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.004a3390
add esp, 0x30
lea eax, [ebp - 0x2c0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x2c0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
call fcn.00401a20
mov ebx, eax
mov esi, dword [ebx + 0x32c]
cmp esi, dword [ebx + 0x330]
je 0x4022bf
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
cmp dword [esi + 0x1c], 0
jne 0x40225c
cmp dword [esi + 0x10], 0
je 0x4022b1
mov eax, dword [esi + 4]
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x4022b1
mov dword [esi + 0x20], 1
cmp dword [esi + 0x40], 0x10
jb 0x40227b
mov eax, dword [esi + 0x2c]
jmp 0x40227e
lea eax, [esi + 0x2c]
push 5
push 0
push 0
push eax
push 0x4cf810
push 0
call edi
mov dword [esi + 0x24], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4022b1
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.004022e0
add esi, 0x11c
cmp esi, dword [ebx + 0x330]
jne 0x402250
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x402b01
push dword [esi + 4]
lea ecx, [esi + 0xc]
call fcn.00409390
test eax, eax
je 0x402b01
push 1
lea ecx, [esi + 0xc]
call fcn.00409a80
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
call fcn.00401c60
push 0
mov dword [eax + 0x100], 3
mov dword [eax + 0x104], 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x402b40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 0x64
jne 0x402be4
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x419
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea ecx, [edi + 0xc]
call fcn.00409a80
push 0
push 0x5dc
push 0xc8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xc8
jne 0x402c45
inc dword [edi + 0x1c]
cmp dword [edi + 0x1c], 3
jle 0x402bfe
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x419
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 8

Function at 0x402ce0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0xc]
call fcn.004097c0
call fcn.00401b50
mov ecx, eax
call fcn.00406dc0
call fcn.00401b50
mov ecx, eax
call fcn.00409b00
lea ecx, [edi + 0xc]
call fcn.00409b00
call fcn.00401a20
mov ecx, eax
call fcn.00406470
mov eax, dword [edi + 8]
test eax, eax
je 0x402d38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
call fcn.00412ad0
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00401c60
pop edi
mov ecx, eax
pop esi
jmp fcn.00409b00
Function at 0x407830
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 0x2000
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00408510
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x2000
cmovae eax, dword [ebp - 0x28]
push eax
push 0x4cf9ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4078c4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4078d1
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408510
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00408b60
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0x10
jb 0x4078f3
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00410090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x409670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x409733
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4cfb4c
push 0x6e
mov dword [ebx], 0
push 0
mov dword [eax], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x409729
push esi
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x40971e
push dword [ebp + 8]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40971e
inc esi
push esi
call fcn.004a17a0
push esi
mov edi, eax
push 0
push edi
call fcn.004a3390
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 8]
push edi
call fcn.004a2e10
mov eax, dword [ebp + 0xc]
add esp, 0x1c
mov byte [edi + esi], 0
mov dword [ebx], edi
push dword [ebp + 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8