joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511f92
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004219fc
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x511fce
call fcn.005121af
mov dword [esi + 0xc], 1
jmp 0x511fd3
call fcn.005121af
cmp dword [esi], 0
je 0x51201e
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x511ff9
push edi
call fcn.004160b6
lea ecx, [edi + 1]
push ecx
jmp 0x512008
push 0xff
call fcn.004026b0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00411e9f
pop edi
jmp 0x512042
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x512042
push dword [esi]
push dword [ebp - 4]
call fcn.00424831
pop esi
leave
ret 0xc

Function at 0x512106
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005121af
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x51214e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004160b6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00411e9f
jmp 0x512159
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00424831
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5126d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055ccf7
pop ecx
test eax, eax
jne 0x512712
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00412163
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5126d8
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x5228ea
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x522a30
mov ecx, 0x5ccc7c
call fcn.00423218
mov esi, eax
test esi, esi
je 0x522a25
xor eax, eax
cmp word [esi + 8], ax
jne 0x5229ef
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x5229ab
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x522971
push 0x59ebdc
call fcn.00522a6e
pop ecx
test eax, eax
je 0x522971
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x52298c
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5229ab
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x5229b1
push ebx
push edi
push eax
call fcn.0049d1f3
add esp, 0xc
jmp 0x5229b1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00415d00
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x522a2a
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00423b3b
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x5229f2
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x522a00
push edi
call fcn.005542f2
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402290
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.0041599b
call fcn.004159b5
int3

Function at 0x544f99
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5cd000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x545003
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x544fe8
lea eax, [ebp - 0x2ac]
push eax
jmp 0x544fed
push 0x5a6588
call fcn.00403195
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054c3e4
leave
ret 8
call fcn.0041599b
int3

Function at 0x5454e8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401d70
call fcn.00419e7d
cmp dword [eax + 0x14], 0
jne 0x545503
mov ecx, esi
pop esi
jmp fcn.00544d43
pop esi
ret
Function at 0x54d232
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x54d271
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54d271
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54d271
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x54d271
cmp dword [ecx + 0x74], 0xe
jbe 0x54d271
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x560857
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab9f0
push 0x5ab9e8
push str.FlsAlloc
push 0x1f
call fcn.005606d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56088b
push dword [ebp + 8]
mov ecx, esi
call dword [0x57a9a0]
call esi
jmp 0x560891
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5608d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5aba00
push 0x5ab9f8
push str.FlsGetValue
push 0x21
call fcn.005606d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56090c
push dword [ebp + 8]
mov ecx, esi
call dword [0x57a9a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x560914
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5aba08
push 0x5aba00
push str.FlsSetValue
push 0x22
call fcn.005606d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56094e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57a9a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x563f19
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5cd000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x563f64
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005640b4
test al, al
jne 0x563f5e
sub edx, 2
cmp edx, edi
jne 0x563f44
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x563f86
lea eax, [edi + 2]
cmp edx, eax
je 0x563f86
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00563e65
add esp, 0x10
jmp 0x564080
push esi
lea ecx, [ebp - 0x255]
call fcn.005640b4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x563fc9
push dword [ebp - 0x25c]
jmp 0x563f76
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x564006
cmp word [ebp - 0x226], 0
je 0x564027
cmp word [ebp - 0x226], ax
jne 0x564006
cmp word [ebp - 0x224], 0
je 0x564027
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00563e65
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x564073
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x563fe0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x56405b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x564080
push 0x563c95
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005692c0
add esp, 0x10
jmp 0x564050
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054c3e4
leave
ret

Function at 0x564b3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x564b4c
pop esi
ret
push ebx
push edi
push esi
call fcn.00564b04
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0055eac2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x564b74
push ebx
push esi
push edi
call fcn.0054dd60
add esp, 0xc
push 0
call fcn.0055ea88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x564f44
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564b89
Function at 0x56a440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56a46d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56a46d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f01
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x59716c], 0
push esi
mov esi, ecx
je 0x402f29
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x402feb
push ebx
push edi
test esi, esi
je 0x402fe7
xor ebx, ebx
cmp word [esi], bx
je 0x402fe7
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x402fe7
cmp ecx, edi
jae 0x402fe7
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x402fe7
movzx eax, word [esi]
test ax, ax
je 0x402f97
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x402fe7
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x402f7d
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x597164]
test eax, eax
je 0x402fb5
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x402fba
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x402fe3
mov ecx, dword [0x597164]
test ecx, ecx
je 0x402fe3
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x402fe9
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404f29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404f29
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404f1a
cmp esi, edx
jae 0x404f29
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404f08
cmp esi, edx
jae 0x404f29
cmp word [esi], 0
je 0x404f29
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x405290
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x668], ebx
call fcn.0050ce60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x54576c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405304
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
xor esi, esi
lea ecx, [ecx]
test byte [ebp - 0x664], 0x10
jne 0x405324
add esi, dword [ebp - 0x644]
jmp 0x4053e0
mov ecx, 0x545900
lea eax, [ebp - 0x638]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405356
test dx, dx
je 0x405352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405356
add eax, 4
add ecx, 4
test dx, dx
jne 0x405330
xor eax, eax
jmp 0x40535b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4053e0
mov eax, 0x545904
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405396
test dx, dx
je 0x405392
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405396
add ecx, 4
add eax, 4
test dx, dx
jne 0x405370
xor eax, eax
jmp 0x40539b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4053e0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0050ce60
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call fcn.00405290
add esp, 4
add esi, eax
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
jne 0x405310
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], esi
je 0x4058ad
or edi, 0x8000
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0050ce60
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
test eax, eax
je 0x4058f7
xor eax, eax
mov word [esi], ax
push 0x544c1c
jmp 0x405903
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00405080
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004eda39
mov esp, ebp
pop ebp
ret
Function at 0x405f00
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405f72
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x405f22
push 9
push ebx
call esi
push 5
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
pop esi
pop ebx
pop ebp
ret

Function at 0x407040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5392ea
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 3
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40715f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 5
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x407169
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 7
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x407173
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 9
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40717d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004088b0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
int3
Function at 0x408310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539490
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40840b
cmp dword [edi + 0xbc], 0
jne 0x408381
cmp dword [edi + 4], 0
jne 0x40836c
push 0
push 0
push edi
push 0x4097b0
push 0
push 0
call fcn.00515649
add esp, 0x18
mov dword [edi + 4], eax
lea ecx, [edi + 0x80]
mov dword [edi + 0xbc], 1
call fcn.00409c50
lea ecx, [ebp - 0x40]
call fcn.004072a0
mov eax, esi
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408395
sub eax, edx
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00408420
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0xd4]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc0]
push eax
call fcn.0040a3c0
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [edi + 8]
mov dword [edi + 0x64], 0
call fcn.00418a50
lea ecx, [ebp - 0x40]
call fcn.004079b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a1e0
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5396b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004036d0
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40a305
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40a330
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404540
test al, al
jne 0x40a268
push 0x33
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x10]
call fcn.00408420
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x545bb8
push eax
call fcn.00404330
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x24], reloc.gdiplus.dll_Ordinal_1
xor ebx, ebx
mov dword [ebp - 0x20], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0x20219
mov dword [ebp - 0x18], 0x20019
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + edi*4 - 0x1c]
push 0
push esi
push dword [ebp + ebx*4 - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a2d3
inc edi
cmp edi, 2
jb 0x40a2a3
inc ebx
cmp ebx, 2
jb 0x40a2a1
xor bl, bl
jmp 0x40a2e3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40a2e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
or ecx, 0xffffffff
add esi, 0xfffffff0
mov eax, ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a300
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x40a307
xor bl, bl
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40a31c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404520
int3
Function at 0x40bc50
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57e7f8
push 0x50d500
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40bc9f
mov dword [eax], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x40bd04
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x40bd04
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x40bd04
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0
je 0x40bdb3
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10
push 1
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40bd83
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40bd83
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bd83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40bd83
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x40bd7b
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x40bd88
mov edi, 0xd
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40bdb8
mov edi, 0xd
test ebx, ebx
je 0x40bdc3
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40bdd3
push eax
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x40bdde
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40be02
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret