joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bf10
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x323c
call fcn.0055d880
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x3238]
push 0x5b7eb8
push eax
call esi
xor ecx, ecx
push 0xffe
push ecx
lea edx, [ebp - 0x21d2]
push edx
mov word [ebp - 0x21d4], cx
call fcn.0055ca80
xor eax, eax
push 0x118e
push eax
lea ecx, [ebp - 0x11d2]
push ecx
mov word [ebp - 0x11d4], ax
call fcn.0055ca80
lea edx, [ebp - 0x24]
push 0x10
push edx
call fcn.0055ac58
lea eax, [ebp - 0x44]
push 0x10
push eax
call fcn.0055ad21
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x21d4]
push str.____Date:_s___Time:_s____
push eax
call esi
add esp, 0x44
lea ecx, [ebp - 0x3238]
push ecx
lea edx, [ebp - 0x21d4]
push edx
lea eax, [ebp - 0x11d4]
push str.__s____s
push eax
call esi
push 0x5bea28
lea ecx, [ebp - 0x11d4]
push 0x8c8
push ecx
call fcn.00559142
add esp, 0x1c
cmp byte [0x60a365], 0
je 0x45c046
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45c046
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x323c]
push edx
lea eax, [ebp - 0x11d4]
push eax
mov dword [ebp - 0x323c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x11d4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x60a366], 0
pop esi
je 0x45c080
lea edx, [ebp - 0x3238]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WIWatch
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x45c080
lea ecx, [ebp - 0x11d4]
push ecx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x45c420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push edi
mov ebx, ecx
mov edi, edx
push esi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [edi], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c49a
lea eax, [ebp - 0x48]
push eax
mov ebx, esi
call fcn.0044ec50
mov ebx, dword [ebp - 0x8c]
add esp, 4
jmp 0x45c4a0
mov dword [edi], 2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c551
lea ecx, [ebp - 0x88]
push ecx
call fcn.0044ec50
add esp, 4
cmp dword [edi], 0
jne 0x45c53f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x5b69a4
lea edx, [ebp - 0x48]
push edx
call ebx
test eax, eax
je 0x45c569
push 0x5b69a4
lea eax, [ebp - 0x88]
push eax
call ebx
test eax, eax
je 0x45c569
lea ecx, [ebp - 0x48]
push ecx
call fcn.0055930c
fstp dword [ebp - 0x94]
lea edx, [ebp - 0x88]
add esp, 4
push edx
call fcn.0055930c
fstp dword [ebp - 0x90]
fld dword [ebp - 0x94]
add esp, 4
fld dword [ebp - 0x90]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x45c530
mov dword [edi], 1
fcompp
fnstsw ax
test ah, 0x41
jne 0x45c569
mov dword [edi], 0xffffffff
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xfffffffe
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
jne 0x45c53f
push edi
mov edi, dword [ebp - 0x8c]
mov ecx, esi
call fcn.0045c590
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop ebx
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x45e180
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581e10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.IsAdministrators_____Start
call fcn.0045c120
add esp, 4
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45e1ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
jmp 0x45e2d3
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push 2
push eax
mov dword [ebp - 0x24], ebx
call esi
test eax, eax
jne 0x45e226
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x45e226
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45e2d3
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00461caa
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x45e2b6
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push ecx
push edi
push 2
push edx
call esi
test eax, eax
je 0x45e2ad
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x18], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x45e2ad
xor esi, esi
cmp dword [edi], ebx
jbe 0x45e2a3
lea ebx, [edi + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x45e29b
mov dword [ebp - 0x2c], 1
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x45e283
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00461cb5
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
push esi
push str.IsAdministrators_____End__d_
call fcn.0045c120
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x460ab0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DeleteRegICMProfile_____Start
mov esi, ecx
call fcn.0045c120
add esp, 4
test esi, esi
jne 0x460af6
push esi
push str.DeleteRegICMProfile_____End__d_
call fcn.0045c120
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x628], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
mov dword [ebp - 0x624], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
mov word [ebp - 0x20c], ax
call fcn.0055ca80
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0055ca80
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.0055ca80
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
push 0
push 0
push esi
call fcn.00557258
add esp, 0x48
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x414]
push eax
push 0
push 0
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00558c88
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
xor esi, esi
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x628]
lea edx, [ebp - 0x620]
push edx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x460c22
mov edx, dword [ebp - 0x620]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x460c11
mov ecx, dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x460c22
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [ebp - 0x620], 0
cmp esi, 2
jb 0x460bc0
push 1
push str.DeleteRegICMProfile_____End__d_
call fcn.0045c120
mov ecx, dword [ebp - 4]
add esp, 8
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0055649d
mov esp, ebp
pop ebp
ret

Function at 0x4646bc
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00464360
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x464706
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00461d33
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004108b0
jmp 0x464711
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00475fa9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x464717
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0046bd3c
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x464754
call fcn.00464360
mov dword [esi + 0xc], 1
jmp 0x464759
call fcn.00464360
cmp dword [esi], 0
je 0x4647a2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x46477a
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00461d33
jmp 0x46478c
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403550
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004108b0
jmp 0x4647c6
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4647c6
push dword [esi]
push dword [ebp + 8]
call fcn.00475fa9
pop esi
pop ebp
ret 0xc

Function at 0x4651ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046d2d8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4651e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00464deb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x465245
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x465269
cmp dword [edi + 0x74], 0
jne 0x465269
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0046d2d8
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.00465206
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 0x46bc30
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 0x46bc77
call fcn.0046d2d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46bc77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x46bc93
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0046b730
mov esi, eax
test edi, edi
je 0x46bc91
test ebx, ebx
je 0x46bc91
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46c09e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x576809
call fcn.0055b31c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x46c0c3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46c115
call fcn.00461e32
push eax
lea ecx, [ebp - 0x10]
call fcn.00403770
mov ecx, dword [esi + 0x6c]
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.005591b7
push eax
call fcn.00402510
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402670
mov eax, esi
call fcn.0055b3f4
ret 8

Function at 0x4706c8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x47070d
push 0x58fcf8
push 4
push eax
call fcn.005579b2
push eax
call fcn.00402510
add esp, 0x10
jmp 0x470723
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4707a3
push edi
call fcn.0055b4de
mov edi, dword [eax]
call fcn.0055b4de
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005578de
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0055b4de
cmp dword [eax], 0
je 0x470777
call fcn.0055b4de
push dword [eax]
call fcn.0046290d
pop ecx
jmp 0x47077e
call fcn.0055b4de
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4707a3
cmp dword [ebp - 0x234], esi
jae 0x4707a3
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4707a5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055649d
leave
ret
Function at 0x470cc8
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00467292
pop ecx
cmp eax, esi
je 0x470db2
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x470db2
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0055ca80
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x470db2
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x470db2
cmp esi, 0x14
jge 0x470db2
push 0x10
push 0
push edi
call fcn.0055d6d8
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x470da1
call fcn.0055b4de
cmp dword [eax], 0x22
je 0x470da1
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0055ade1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x470d77
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x605840], 0
jne 0x470e3d
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x470e66
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004706c8
pop ecx
pop ecx
test eax, eax
jne 0x470e68
inc edi
cmp edi, esi
jl 0x470e43
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055649d
leave
ret 8

Function at 0x477b94
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x477bc9
xor eax, eax
jmp 0x477c1c
lea eax, [ebp - 0x210]
push eax
call fcn.0055ade1
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x477bfa
push 0x5b7ddc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00559142
add esp, 0xc
test eax, eax
jne 0x477bc5
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00559142
add esp, 0xc
test eax, eax
jne 0x477bc5
lea eax, [ebp - 0x210]
push eax
call fcn.00467292
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055649d
leave
ret
Function at 0x4bdb3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4bdb58
call fcn.0046d2d8
mov esi, dword [eax + 0xc]
push dword [0x6074a0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4bdb76
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4bdb6e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4bdba3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4bdb70
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004bda6c
mov esi, eax
jmp 0x4bdb95

Function at 0x4f0c89
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004efd9d
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
daa

Function at 0x53384c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0046a296
call fcn.00429f80
cmp eax, esi
pop esi
jne 0x533868
mov ecx, 0x605b80
jmp fcn.00478789
ret
Function at 0x53bed5
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 0x53beed
mov edi, dword [esi + 0xc]
jmp 0x53bf2d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x53bf06
call fcn.0046e7b8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x53bf1b
call fcn.0046e7b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x53bf2d
call fcn.0046e7b8
call fcn.0046d2d8
cmp dword [eax + 0x3c], 0
je 0x53bf42
push edi
mov ecx, ebx
call fcn.0053acff
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0053bdef
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x53bf60
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x53bf6c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x55649d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5eb770]
jne 0x5564a7
repz ret
jmp fcn.005609c3
Function at 0x56d698
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005603eb
and dword [ebp - 0x14], 0
cmp dword [0x60a04c], 0
mov dword [ebp - 0x18], eax
jne 0x56d74b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x56d7f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b46a8
push ebx
call edi
test eax, eax
je 0x56d7f3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b4698
push ebx
mov dword [0x60a04c], eax
call edi
push eax
call esi
push 0x5b4684
push ebx
mov dword [0x60a050], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x60a054], eax
call edi
push eax
call esi
mov dword [0x60a05c], eax
test eax, eax
je 0x56d74b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x60a058], eax
mov eax, dword [0x60a058]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x56d7a4
cmp dword [0x60a05c], ecx
je 0x56d7a4
push eax
call esi
push dword [0x60a05c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x56d7a4
test ebx, ebx
je 0x56d7a4
call edi
test eax, eax
je 0x56d79b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x56d79b
test byte [ebp - 8], 1
jne 0x56d7a4
or dword [ebp + 0x10], 0x200000
jmp 0x56d7d7
mov eax, dword [0x60a050]
cmp eax, dword [ebp - 0x18]
je 0x56d7d7
push eax
call esi
test eax, eax
je 0x56d7d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x56d7d7
mov eax, dword [0x60a054]
cmp eax, dword [ebp - 0x18]
je 0x56d7d7
push eax
call esi
test eax, eax
je 0x56d7d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x60a04c]
call esi
test eax, eax
je 0x56d7f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x56d7f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055649d
leave
ret