joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453dca
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4c7674]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
mov esi, dword [ebp + 0x198]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x80], esi
je 0x453e78
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x453e78
lea eax, [ebp - 0x78]
push eax
push 0x10008
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x453e7d
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x453e61
cmp esi, edi
jne 0x453e6d
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00453dca
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x453e20
jmp 0x453e6d
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x453e7d
mov esi, 0x3f2
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d103
add ebp, 0x190
leave
ret

Function at 0x453e97
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x453ee7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x453ede
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4556ca
Capabilities:
Resolve dns

Disassembly:
push 0x2c
mov eax, 0x49401e
call fcn.004826ac
call dword [0x4c898c]
push 0
push str.GR_AddressToLong
push 1
push 1
lea ecx, [ebp - 0x2c]
call fcn.00466de8
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x38]
call fcn.004489ad
push 0x10
lea eax, [ebp - 0x24]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.0047d5e0
mov eax, dword [edi]
add esp, 0xc
push dword [eax - 0xc]
mov ecx, edi
call fcn.004017ad
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x455747
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x455755
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403194
mov esi, dword [ebp - 0x20]
jmp 0x455762
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor esi, esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00448a35
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00466e33
mov eax, esi
call fcn.0048272f
ret
Function at 0x455e64
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x494c7e
call fcn.00482643
mov ebx, dword [ebp + 8]
push str.MIKEBURF
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040145d
add esp, 0xc
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 0xc]
mov eax, dword [ebx]
inc edi
cmp dword [eax - 0xc], esi
jle 0x455ee4
lea ebx, [esi + 1]
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f710
xor ecx, ecx
mov ch, al
push esi
movzx eax, cx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040f710
movzx eax, al
or eax, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040f710
movzx eax, al
shl eax, 0x10
or eax, dword [ebp - 0x14]
add esi, 3
xor edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp esi, dword [eax - 0xc]
jl 0x455e98
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, edi
call fcn.0048271b
ret

Function at 0x45a14f
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c7674]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1c], 5
jb 0x45a2e7
jne 0x45a19c
cmp dword [ebp - 0x18], 1
jb 0x45a2e7
jne 0x45a19c
cmp dword [ebp - 0x14], 0x9c9
jb 0x45a2e7
xor ebx, ebx
cmp dword [0x4cc290], ebx
jne 0x45a288
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4cc290], eax
je 0x45a2e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x4cc290]
mov dword [0x4cc294], eax
call esi
push str.IsAppThemed
push dword [0x4cc290]
mov dword [0x4cc298], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x4cc290]
mov dword [0x4cc29c], eax
call esi
push str.DrawThemeBackground
push dword [0x4cc290]
mov dword [0x4cc2a0], eax
call esi
mov edi, str.DrawThemeText
push edi
push dword [0x4cc290]
mov dword [0x4cc2a4], eax
call esi
push edi
push dword [0x4cc290]
mov dword [0x4cc2a8], eax
call esi
push str.GetThemeSysSize
push dword [0x4cc290]
mov dword [0x4cc2ac], eax
call esi
push str.GetThemeRect
push dword [0x4cc290]
mov dword [0x4cc2b0], eax
call esi
push str.GetThemePartSize
push dword [0x4cc290]
mov dword [0x4cc2b4], eax
call esi
push str.SetWindowTheme
push dword [0x4cc290]
mov dword [0x4cc2b8], eax
call esi
mov dword [0x4cc2bc], eax
pop edi
mov esi, dword [0x4cc408]
call fcn.00466a93
mov eax, dword [eax + 4]
push 1
push str.DoXPThemes
push esi
mov ecx, eax
call fcn.00465edc
cmp dword [0x4cc294], ebx
mov dword [0x4c8e60], eax
je 0x45a2e7
cmp dword [0x4cc298], ebx
je 0x45a2e7
cmp dword [0x4cc29c], ebx
je 0x45a2e7
cmp dword [0x4cc2a0], ebx
je 0x45a2e7
cmp dword [0x4cc2a4], ebx
je 0x45a2e7
cmp dword [0x4cc2a8], ebx
je 0x45a2e7
cmp dword [0x4cc2b8], ebx
je 0x45a2e7
xor eax, eax
inc eax
jmp 0x45a2e9
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d103
add ebp, 0x78
leave
ret
Function at 0x45cdb5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x492693
call fcn.00482676
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00466a93
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x45ce00
call fcn.00466a93
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x45ce11
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x45ce1e
or eax, 0xffffffff
jmp 0x45cf7a
mov ecx, esi
call fcn.0045c907
mov dword [ebp - 0x14], eax
call fcn.0045fd9c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x45ce9c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45ce9c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ce9c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0045c796
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x45ce9c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x45ce9c
mov ecx, ebx
call fcn.00463243
test eax, eax
je 0x45ce9c
push 0
mov ecx, ebx
call fcn.0046325e
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0046179e
push dword [ebp - 0x14]
call fcn.0045fcf4
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0045cbbd
xor edi, edi
cmp eax, edi
je 0x45cef9
test byte [esi + 0x3c], 0x10
je 0x45cee3
push 4
pop edi
mov ecx, esi
call fcn.00463100
test ax, 0x100
je 0x45ced9
push 5
pop edi
push edi
mov ecx, esi
call fcn.0045f8bc
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x45cef9
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00463431
or dword [ebp - 4], 0xffffffff
jmp 0x45cf24
cmp dword [ebp - 0x28], edi
je 0x45cf32
push 1
mov ecx, ebx
call fcn.0046325e
cmp dword [ebp - 0x2c], edi
je 0x45cf42
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45cf5b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x45cf5b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0045c941
cmp dword [esi + 0x58], edi
je 0x45cf77
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0048271b
ret
Function at 0x460d6e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x460da7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460d31
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403194
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4628ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x462911
call fcn.00466a93
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x462911
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46292c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00462485
test ebx, ebx
mov esi, eax
je 0x46292a
test edi, edi
je 0x46292a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4643ae
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x4643c6
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x46446e
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x464792
Capabilities:
Resolve dns

Disassembly:
push 0x18
mov eax, 0x492962
call fcn.004826ac
mov esi, dword [ebp + 8]
mov ebx, ecx
call dword [0x4c898c]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x4647d2
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.00403ecb
xor eax, eax
call fcn.0048272f
ret 8
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0047d5e0
add esp, 0xc
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x46480b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x464829
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov edi, eax
jmp 0x464834
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.00403ecb
mov eax, edi
jmp 0x4647ca
Function at 0x4711f1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c7674]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x471231
push 0x4a45d0
push 4
push eax
call fcn.00482db4
push eax
call fcn.00403136
add esp, 0x10
jmp 0x471243
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4712b1
push edi
call fcn.00482aa5
mov edi, dword [eax]
call fcn.00482aa5
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00481621
add esp, 0x18
mov ebx, eax
call fcn.00482aa5
cmp dword [eax], 0
je 0x471291
call fcn.00482aa5
push dword [eax]
call fcn.0045d675
pop ecx
jmp 0x471298
call fcn.00482aa5
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4712b1
cmp ebx, esi
jae 0x4712b1
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4712b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d103
leave
ret
Function at 0x47270c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x472752
call fcn.00466a93
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x472752
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x472795
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x47277e
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 0x47277e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x472792
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 0x47d103
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c7674]
jne 0x47d10d
repz ret
jmp fcn.00485287
Function at 0x488696
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c8030]
je 0x4886b1
inc edi
cmp edi, 0x17
jb 0x4886a2
cmp edi, 0x17
jae 0x488831
push ebp
push 3
call fcn.0048e05d
cmp eax, 1
pop ecx
je 0x4887fd
push 3
call fcn.0048e05d
test eax, eax
pop ecx
jne 0x4886e5
cmp dword [0x4c7670], 1
je 0x4887fd
cmp ebx, 0xfc
je 0x488830
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4cb7b8
push ebp
call fcn.00482db4
add esp, 0xc
test eax, eax
je 0x48871b
push esi
push esi
push esi
push esi
push esi
call fcn.00483c22
add esp, 0x14
push 0x104
mov esi, 0x4cb7d1
push esi
push 0
mov byte [0x4cb8d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48875f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00482db4
add esp, 0xc
test eax, eax
je 0x48875f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00483c22
add esp, 0x14
push esi
call fcn.0047cc80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4887a4
push esi
call fcn.0047cc80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4cbacc
push 0x4aa34c
sub ecx, eax
push ecx
push eax
call fcn.0048274d
add esp, 0x14
test eax, eax
je 0x4887a4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00483c22
add esp, 0x14
jmp 0x4887a6
xor esi, esi
push 0x4a63d0
push ebx
push ebp
call fcn.00483364
add esp, 0xc
test eax, eax
je 0x4887c6
push esi
push esi
push esi
push esi
push esi
call fcn.00483c22
add esp, 0x14
push dword [edi*8 + 0x4c8034]
push ebx
push ebp
call fcn.00483364
add esp, 0xc
test eax, eax
je 0x4887e8
push esi
push esi
push esi
push esi
push esi
call fcn.00483c22
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048dea0
add esp, 0xc
jmp 0x488830
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x488830
cmp ebp, 0xffffffff
je 0x488830
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c8034]
push dword [esi]
call fcn.0047cc80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48dea0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00485e28
xor ebx, ebx
cmp dword [0x4cbc54], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48df76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48e056
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a73c0
push edi
call esi
cmp eax, ebx
je 0x48e056
push eax
call fcn.00485dba
mov dword [esp], 0x4a73b0
push edi
mov dword [0x4cbc54], eax
call esi
push eax
call fcn.00485dba
mov dword [esp], 0x4a739c
push edi
mov dword [0x4cbc58], eax
call esi
push eax
call fcn.00485dba
mov dword [0x4cbc5c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048306a
test eax, eax
pop ecx
pop ecx
je 0x48df44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483c22
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48df76
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00485dba
cmp eax, ebx
pop ecx
mov dword [0x4cbc64], eax
je 0x48df76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00485dba
pop ecx
mov dword [0x4cbc60], eax
mov eax, dword [0x4cbc60]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48dffb
cmp dword [0x4cbc64], ecx
je 0x48dffb
push eax
call fcn.00485e31
push dword [0x4cbc64]
mov esi, eax
call fcn.00485e31
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48dffb
cmp edi, ebx
je 0x48dffb
call esi
cmp eax, ebx
je 0x48dfc8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48dfc8
test byte [ebp - 0x18], 1
jne 0x48dffb
lea eax, [ebp - 0x10]
push eax
call fcn.004830a1
test eax, eax
pop ecx
je 0x48dfe3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483c22
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48dff2
or dword [ebp + 0x10], 0x200000
jmp 0x48e036
or dword [ebp + 0x10], 0x40000
jmp 0x48e036
mov eax, dword [0x4cbc58]
cmp eax, dword [ebp - 8]
je 0x48e036
push eax
call fcn.00485e31
cmp eax, ebx
pop ecx
je 0x48e036
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48e036
mov eax, dword [0x4cbc5c]
cmp eax, dword [ebp - 8]
je 0x48e036
push eax
call fcn.00485e31
cmp eax, ebx
pop ecx
je 0x48e036
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cbc54]
call fcn.00485e31
cmp eax, ebx
pop ecx
je 0x48e056
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48e058
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49226e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c7674]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00492203
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047d5e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4922bd
cmp dword [ebp - 0x1c], 5
jb 0x4922d5
jmp 0x4922d1
cmp dword [ebp - 0x10], 1
jne 0x4922d5
cmp dword [ebp - 0x1c], 4
ja 0x4922d1
jne 0x4922d5
cmp dword [ebp - 0x18], 0
jbe 0x4922d5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a7cd8
call fcn.004920d7
test eax, eax
jge 0x4922f6
mov byte [0x4cbcf1], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047d103
add ebp, 0x78
leave
ret
Function at 0x401790
Capabilities:
Create thread

Disassembly:
push 0x10
push 0
push 0
push 1
push str.amber.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
push str.Researcher_starting
push 0x80
push 0x413d30
mov dword [0x413d2c], eax
call fcn.004031d8
add esp, 0xc
push 0x413d18
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0
push 0
push 0
push 0x401890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4140d4], eax
ret
Function at 0x407ea5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4120c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00405c70
mov dword [ebp - 0x14], eax
cmp dword [0x413ca4], edi
jne 0x407f96
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x407f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408076
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x408076
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408076
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x413ca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x413ca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x413cac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413cb4], eax
test eax, eax
je 0x407f93
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413cb0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407fbb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407fae
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x407fd0
push 4
pop eax
jmp 0x408078
cmp dword [ebp - 0x14], edi
je 0x407fd0
push dword [0x413ca4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407fb5
mov eax, dword [0x413cb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40802e
cmp dword [0x413cb4], esi
je 0x40802e
push eax
call ebx
push dword [0x413cb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40802e
test eax, eax
je 0x40802e
call ecx
test eax, eax
je 0x408023
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408023
test byte [ebp - 8], 1
jne 0x40802e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40805e
mov eax, dword [0x413ca8]
cmp eax, esi
je 0x40805b
push eax
call ebx
test eax, eax
je 0x40805b
call eax
mov edi, eax
test edi, edi
je 0x40805b
mov eax, dword [0x413cac]
cmp eax, esi
je 0x40805b
push eax
call ebx
test eax, eax
je 0x40805b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x413ca4]
call ebx
test eax, eax
je 0x408076
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x408078
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004029cd
leave
ret